/* ------------------ CSS RESET & NORMALIZE ------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.6;
  background: #F4F6FB;
  color: #25314D;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 10px; }

/* ------------------ FONT IMPORTS ------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');


/* ------------------ COLOR VARIABLES ------------------- */
:root {
  --primary: #193759;
  --primary-90: #224569;
  --secondary: #EEB051;
  --accent: #F4F6FB;
  --success: #AEE9D1;
  --pastel-blue: #BEE3F6;
  --pastel-green: #D0F2E7;
  --pastel-yellow: #FFF2BE;
  --pastel-lavender: #E3DCF7;
  --pastel-pink: #FFDBDB;
  --bg: #F4F6FB;
  --text-dark: #25314D;
  --text-light: #FFFFFF;
  --box-shadow: 0 4px 32px 0 rgba(31,60,117,0.08), 0 1.5px 6px 0 rgba(130,148,183,0.08);
  --radius-xl: 32px;
  --radius-md: 16px;
  --radius-sm: 8px;
}


/* ------------------ LAYOUT CONTAINERS ------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--box-shadow);
}


/* ------------------ TYPOGRAPHY ------------------- */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-90);
  margin-bottom: 10px;
}
h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-90);
}
p, li, .small {
  color: var(--text-dark);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}
p.small, .small {
  font-size: .95rem;
  color: #698094;
}
strong {
  font-weight: 700;
}

.text-section {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

ul, ol {
  margin: 10px 0 10px 1.2em;
  padding-left: 0.8em;
}
li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}
li::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  margin-right: 0.6em;
  position: absolute;
  left: 0;
  top: 6px;
}

/* Links */
a.cta-btn, .cta-btn, .filter-btn, .read-more, .mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
}
a, .read-more {
  font-size: 1rem;
  color: var(--primary);
  text-decoration: underline dotted rgba(30,55,90,0.08);
  transition: color 0.15s;
}
a:hover, .read-more:hover {
  color: var(--secondary);
}


/* ------------------ HERO SECTION ------------------- */
.hero {
  background: linear-gradient(120deg, var(--pastel-blue) 60%, var(--pastel-pink) 100%);
  border-radius: var(--radius-xl);
  margin-bottom: 40px;
  min-height: 240px;
  display: flex;
  align-items: center;
  box-shadow: var(--box-shadow);
  width: 100%;
}
.hero .container { padding-top: 32px; padding-bottom: 32px; }
.hero .content-wrapper {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.hero h1 {
  color: var(--primary);
  filter: drop-shadow(0 3px 12px rgba(238,176,81,0.06));
}
.hero p {
  color: #3A4B68;
  font-size: 1.075rem;
  margin-bottom: 8px;
  opacity: 0.9;
}


/* ------------------ BUTTONS ------------------- */
.cta-btn,
button.cta-btn,
.filter-btn {
  background: var(--secondary);
  color: var(--primary);
  padding: 13px 34px;
  border-radius: var(--radius-md);
  font-size: 1.07rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 rgba(238,176,81,0.10);
  cursor: pointer;
  border: none;
  display: inline-block;
  margin: 0 8px 16px 0;
  min-width: 160px;
  text-align: center;
}
.cta-btn:hover, button.cta-btn:hover, .filter-btn:hover {
  background: #FFD689;
  color: var(--primary-90);
  box-shadow: 0 4px 16px 0 rgba(238,176,81,0.20);
}

.filter-btn {
  min-width: 140px;
  margin-bottom: 0;
  margin-right: 10px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}
.filter-btn.active {
  background: var(--pastel-yellow);
  color: var(--primary);
  box-shadow: 0 2px 12px 0 rgba(255,242,190,0.15);
}

.read-more {
  display: inline-block;
  font-size: 1rem;
  color: var(--secondary);
  font-weight: 600;
  margin-top: 10px;
  transition: color 0.15s;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.read-more:hover {
  color: var(--primary);
  text-decoration: underline wavy var(--primary);
}


/* ------------------ NAVIGATION ------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #E3DCF7;
  box-shadow: 0 1.5px 8px 0 rgba(190,227,246,0.10);
  margin-bottom: 0;
  z-index: 1003;
  position: relative;
}
.header-sticky {
  position: fixed;
  width: 100%;
  top: 0; left: 0; right: 0;
  animation: fadeInDown 0.3s;
}
@keyframes fadeInDown {
  0% { transform: translateY(-64px); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}

.logo img {
  height: 52px;
  margin: 10px 0 10px 0;
}

.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  color: var(--primary-90);
}
.main-nav a:hover {
  background: var(--pastel-yellow);
  color: var(--primary);
}
.main-nav a.cta-btn {
  background: var(--secondary);
  color: var(--primary);
  margin-left: 14px;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(238,176,81,0.10);
  padding: 9px 22px;
}
.main-nav a.cta-btn:hover {
  background: #FFD689;
  color: var(--primary-90);
}

.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2rem;
  border-radius: 99px;
  padding: 7px 19px;
  margin-left: 14px;
  border: none;
  cursor: pointer;
  z-index: 1101;
  box-shadow: 0 2px 8px 0 rgba(238,176,81,0.10);
  transition: background .15s;
}
.mobile-menu-toggle:hover {
  background: #FFD689;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(244,246,251,0.975);
  box-shadow: 0 12px 48px 0 rgba(27,57,89,0.12);
  z-index: 1200;
  transform: translateX(100vw);
  transition: transform 0.32s cubic-bezier(0.65,0,0.35,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 54px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  font-size: 2.3rem;
  border: none;
  color: var(--primary-90);
  padding: 2px 6px;
  cursor: pointer;
  font-weight: bold;
  z-index: 1210;
  transition: color .15s;
}
.mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin-top: 2rem;
  margin-left: 44px;
}
.mobile-nav a {
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 12px 32px 12px 6px;
  color: var(--primary-90);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background 0.12s, color 0.14s;
}
.mobile-nav a:hover {
  background: var(--pastel-yellow);
  color: var(--primary);
}


/* ------------------ SECTIONS & CARDS ------------------- */
.features-grid, .service-list, .team-grid, .project-stories, .usp-features, .usp-proof, .post-previews, .testimonial-list, .testimonial-card, .contact-details, .blog-filter, .footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-grid > div, .service-list > div, .team-grid .team-bio, .post-previews > article {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px 0 rgba(30,55,90,0.06);
  padding: 28px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 225px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  transition: box-shadow .2s, transform .2s;
}
.features-grid > div:hover, .service-list > div:hover, .post-previews > article:hover, .team-grid .team-bio:hover {
  box-shadow: 0 7px 32px 0 rgba(130,148,183,0.17);
  transform: translateY(-4px) scale(1.016);
}
.features-grid img, .service-list img, .team-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
}

/* Testimonials */
.testimonial-list {
  flex-direction: row;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.testimonial-card {
  background: linear-gradient(120deg, var(--pastel-lavender) 60%, var(--pastel-blue) 100%);
  box-shadow: 0 2px 12px 0 rgba(121,148,183,0.12);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 260px;
  margin-right: 20px;
}
.testimonial-card img {
  width: 40px; height: 40px; margin-right: 10px;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.06rem;
  font-style: italic;
  margin-bottom: 4px;
}
.testimonial-card strong {
  font-size: 1rem;
  color: var(--primary-90);
  font-weight: 700;
}

.star-rating {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}
.star-rating img {
  width: 19px; height: 19px;
}

.project-stories > div {
  background: #FFF2BE;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-bottom: 10px;
  color: var(--primary-90);
  font-size: 1rem;
  flex: 1 1 360px;
}

.usp-features ul, .usp-proof ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pricing-tables {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.pricing-tables table {
  background: #fff;
  box-shadow: 0 2px 14px 0 rgba(190,227,246,0.13);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 1rem;
  margin-bottom: 9px;
}
.pricing-tables th, .pricing-tables td {
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 13px 22px;
  text-align: left;
  color: var(--primary-90);
}
.pricing-tables th {
  background: var(--pastel-yellow);
  font-weight: 700;
}
.pricing-tables td {
  border-bottom: 1px solid #F4F6FB;
}
.pricing-tables tr:last-child td {
  border-bottom: none;
}


/* Blog Previews */
.post-previews {
  margin-top: 10px;
  margin-bottom: 10px;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.post-previews article {
  min-width: 230px;
  max-width: 350px;
  gap: 8px;
}

/* Contact Details */
.contact-details {
  gap: 22px;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}
.contact-details > div {
  background: var(--pastel-blue);
  color: var(--primary-90);
  border-radius: var(--radius-md);
  padding: 13px 24px 12px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-size: 1.01rem;
  min-width: 220px;
}
.contact-details img {
  width: 22px;
  height: 22px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Team Bios */
.team-grid {
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  justify-content: flex-start;
}
.team-bio {
  flex: 1 1 250px;
  min-width: 220px;
  text-align: center;
  align-items: center;
  gap: 12px;
}
.team-bio img {
  margin: 0 auto 10px auto;
  width: 52px; height: 52px;
}


/* ------------------ CTA SECTION ------------------- */
.cta-section, .thank-you-section {
  background: linear-gradient(100deg, var(--pastel-green) 60%, var(--pastel-yellow) 100%);
  text-align: center;
  border-radius: var(--radius-xl);
  margin-bottom: 0;
  box-shadow: var(--box-shadow);
  padding: 48px 16px;
}
.cta-section h2,
.thank-you-section h1 {
  color: var(--primary);
  margin-bottom: 18px;
}
.cta-section .cta-btn, .thank-you-section .cta-btn {
  margin-top: 10px;
}


/* ------------------ FOOTER ------------------- */
footer {
  background: var(--primary);
  color: var(--accent);
  font-size: 1rem;
  padding-top: 44px;
  padding-bottom: 12px;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  box-shadow: 0 -6px 32px 0 rgba(25,55,89,0.07);
}
.footer-top {
  padding-bottom: 38px;
  border-bottom: 1px solid #4D6084;
  gap: 42px;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-top nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-top nav a, .footer-legal a {
  color: var(--accent);
  font-size: 1rem;
  opacity: 0.85;
  padding: 5px 0;
  letter-spacing: 0.01em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background .1s;
}
.footer-top nav a:hover, .footer-legal a:hover {
  background: var(--pastel-blue);
  color: var(--primary-90);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.footer-contact > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .99rem;
  color: var(--pastel-yellow);
}
.footer-contact img {
  width: 18px;
  height: 18px;
}
.footer-social {
  display: flex;
  gap: 13px;
  margin-top: 18px;
}
.footer-social a {
  background: rgba(238,176,81,0.14);
  border-radius: 50%;
  padding: 8px;
  transition: background 0.18s;
}
.footer-social a:hover {
  background: var(--secondary);
}
.footer-bottom {
  color: #fff;
  text-align: center;
  font-size: 0.98rem;
  opacity: .70;
  margin-top: 22px;
  letter-spacing: 0.01em;
}


/* ------------------ COOKIE CONSENT BANNER ------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--pastel-pink) 70%, var(--pastel-lavender) 100%);
  box-shadow: 0 -2px 18px 0 rgba(30,55,90,0.11);
  padding: 24px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2100;
  gap: 14px;
  animation: fadeInCookie 0.35s;
}
@keyframes fadeInCookie {
  0% { transform: translateY(80px); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-banner p {
  font-size: 1.06rem;
  color: var(--primary-90);
  text-align: center;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: center;
}
.cookie-btn {
  padding: 9px 20px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
  margin-right: 5px;
  box-shadow: 0 1.5px 14px 0 rgba(238,176,81,0.07);
  border: none;
  cursor: pointer;
}
.cookie-btn:last-child { margin-right: 0; }
.cookie-btn.accept {
  background: #AAD6C9;
  color: #25314D;
}
.cookie-btn.reject {
  background: var(--pastel-pink);
  color: var(--primary);
}
.cookie-btn.settings {
  background: var(--pastel-lavender);
  color: var(--primary-90);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 3px 14px rgba(238,176,81,0.17);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2500;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(44, 50, 60, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal .38s;
}
@keyframes fadeInCookieModal {
  0% { opacity:0; }
  100% { opacity:1; }
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 24px 0 rgba(41,57,97,0.17);
  padding: 34px 28px 26px 28px;
  min-width: 340px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--primary-90);
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category strong {
  min-width: 132px;
}
.cookie-toggle {
  width: 42px; height: 24px;
  background: var(--pastel-blue);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.17s;
}
.cookie-toggle input { display: none; }
.cookie-toggle .knob {
  width: 22px; height: 22px;
  background: var(--secondary);
  border-radius: 50%;
  position: absolute;
  left: 2px; top: 1px;
  transition: left 0.14s cubic-bezier(0.5,0,0.5,1), background 0.13s;
}
.cookie-toggle input:checked + .knob {
  left: 18px;
  background: #DEE8B8;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 11px; right: 13px;
  font-size: 1.7rem;
  background: none;
  border: none;
  color: var(--primary-90);
  cursor: pointer;
  padding: 2px 7px;
}
.cookie-modal .cookie-modal-close:hover {
  color: var(--secondary);
}
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 16px;
}


/* ------------------ MEDIA QUERIES (MOBILE FIRST) ------------------- */
@media (max-width: 1110px) {
  .features-grid > div, .service-list > div, .post-previews > article {
    flex: 1 1 48%;
    min-width: 180px;
    max-width: 400px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
  }
  .footer-top {
    gap: 22px;
  }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 1.5rem; }
  h2, .h2 { font-size: 1.14rem; }
  .section {
    margin-bottom: 40px;
    padding: 25px 10px;
  }
  .hero {
    padding: 1.5rem 5px 1rem 5px;
    min-height: 105px;
  }
  .cta-section, .thank-you-section {
    padding: 20px 6px;
    min-height: 140px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 18px;
  }
  .features-grid, .service-list, .team-grid, .post-previews, .project-stories, .testimonial-list, .testimonial-card, .contact-details, .blog-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .features-grid > div, .service-list > div, .team-grid .team-bio, .post-previews > article,.testimonial-card{
    min-width: unset;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  .testimonial-list {
    gap: 17px;
  }
  .contact-details {
    flex-direction: column;
    gap: 13px;
  }
  .project-stories > div {
    min-width: unset;
    max-width: 100%;
  }
  .mobile-nav {
    margin-left: 20px;
    font-size: 1.06rem;
  }
  .cookie-modal {
    min-width: unset;
    padding: 16px 7px 13px 7px;
    max-width: 98vw;
  }
}
@media (max-width: 430px) {
  .section { padding: 14px 0; }
  .cta-section, .thank-you-section { padding: 13px 4px; }
  .hero { padding: 13px 2px; }
  .cookie-banner { padding: 15px 2px 7px 2px; }
}

/* Fix: no overlapping for cards */
.features-grid > div, .service-list > div, .post-previews > article, .testimonial-card, .team-grid .team-bio {
  margin-bottom: 22px;
}
.features-grid, .service-list, .team-grid, .post-previews, .testimonial-list {
  gap: 24px;
}

/* Extra Spacing for stacked sections on all sizes */
section + section, .section + .section {
  margin-top: 16px;
}

/* Prevent content overlap in all flex containers */
.card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px 0 rgba(25, 55, 89, 0.06);
  padding: 22px 15px;
  min-width: 220px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 7px 32px 0 rgba(130,148,183,.15);
  transform: translateY(-2px) scale(1.015);
}

/* Misc utility */
.align-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.align-start {
  display: flex;
  align-items: flex-start;
}
.align-end {
  display: flex;
  align-items: flex-end;
}
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mb-20 { margin-bottom: 20px; }

/********* Hiding by default on mobile ********/
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* Hide when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Map embed / Placeholder */
.map-embed {
  margin: 24px 0 18px 0;
  display: flex;
  align-items: center;
  background: var(--pastel-lavender);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  color: var(--primary-90);
  font-size: .96rem;
  gap: 10px;
}
.map-embed img {
  width: 22px; height: 22px;
}

/****** Hide scroll on modal open *****/
body.cookie-modal-open {
  overflow: hidden !important;
}

/*************************
  Soft pastel theme elements: Cards, section backgrounds, buttons,
  border-radii, shadows, hover color transitions, hierarchy
**************************/

/******** Accessibility tweaks for testimonials (contrast) *******/
.testimonial-card p, .testimonial-card strong {
  color: #25314D !important;
  background: none;
}

/*************************
 Animations/Micro-interactions
**************************/
.cta-btn, .filter-btn, .read-more, .cookie-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.20s, transform 0.19s;
}
.cta-btn:active, .filter-btn:active, .cookie-btn:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 0px 2px 0 rgba(120,120,120,0.01);
}

/*************************
  Form fields for contact
**************************/
input[type="text"], input[type="email"], textarea {
  background: var(--bg);
  border: 1.3px solid #DCE3F2;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--primary-90);
  margin-bottom: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
  width: 100%;
  transition: border 0.15s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: none;
  border: 1.7px solid var(--secondary);
}

/*************************
  Misc
**************************/
::-webkit-input-placeholder, ::placeholder {
  color: #8AA1C3;
  opacity: 1;
}

/* Print: Hide navigation, footer, cookie banner */
@media print {
  header, nav, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer {
    display: none !important;
    height: 0 !important;
  }
}
