/* 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
body::-webkit-scrollbar {
  width: 10px;
  background: #f6f7fa;
}
body::-webkit-scrollbar-thumb {
  background: #E0E3E7;
  border-radius: 8px;
}

body {
  background: #f6f7fa;
  color: #243746;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.015em;
}

img {
  max-width: 100%;
  vertical-align: middle;
}
a {
  color: #5c7394;
  text-decoration: none;
  transition: color 0.16s cubic-bezier(.57,.21,.69,1.25);
}
a:hover, a:focus {
  color: #6d94c2;
  outline: none;
  text-decoration: underline;
}

ul, ol {
  list-style-position: inside;
  margin: 0 0 1.2em 0;
}
li {
  margin-bottom: 0.5em;
}

strong {
  font-weight: 700;
}

/* TYPOGRAPHY --------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  color: #243746;
  letter-spacing: 0.025em;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.08rem;
}
p {
  font-size: 1rem;
  margin-bottom: 1.1em;
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.15rem; }
}

/* LAYOUT CONTAINERS -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}

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

.text-section {
  margin-top: 0;
  background: none;
  padding-top: 0;
  padding-bottom: 0;
}

/* SECTION SPACING --------------------------------------------------------- */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 600px) {
  section, .section {
    padding: 26px 5px;
    margin-bottom: 32px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(166, 178, 193, 0.07), 0 2px 4px rgba(36,55,70,0.03);
  padding: 26px 22px;
  transition: box-shadow 0.22s cubic-bezier(.42,.24,.8,1), transform 0.22s cubic-bezier(.68,.08,.47,1.18);
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 30px rgba(166,178,193,0.19), 0 2px 8px rgba(36,55,70,0.06);
  transform: translateY(-3px) scale(1.03);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  color: #273750;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px rgba(166, 178, 193, 0.15);
  font-size: 1.08rem;
  transition: box-shadow 0.17s, transform 0.19s;
}

.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
  color: #5b5c6e;
  font-size: 1rem;
}

.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 24px rgba(166,178,193,0.22), 0 2px 12px rgba(36,55,70,0.07);
  transform: translateY(-2px) scale(1.02);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FEATURES & SERVICES ------------------------------------------------------ */
.features-grid, .service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 24px;
  margin-bottom: 28px;
}

.features-grid > div, .service-cards > div {
  flex: 1 1 260px;
  background: #fffefd;
  border-radius: 14px;
  padding: 28px 22px;
  box-shadow: 0 2px 10px rgba(166,178,193,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.21s cubic-bezier(.44,.17,.73,1.18), transform 0.22s cubic-bezier(.32,.23,.77,.8);
  border: 1px solid #f2f3f8;
}
.features-grid > div:hover, .service-cards > div:hover {
  box-shadow: 0 7px 32px rgba(166,178,193,0.18);
  transform: translateY(-2px) scale(1.015);
}
.features-grid img, .service-cards img {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #EDF7FB;
  padding: 8px;
}
.features-grid h3, .service-cards h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.16rem;
  margin-bottom: 6px;
  color: #334760;
}
.features-grid p, .service-cards p {
  font-size: 1rem;
  color: #516178;
  margin-bottom: 0.5em;
}

/* HERO SECTIONS ----------------------------------------------------------- */
.hero-section {
  background: linear-gradient(145deg, #e9f1fa 0%, #ffeefa 100%);
  border-radius: 0 0 32px 32px;
  position: relative;
  margin-bottom: 60px;
  min-height: 250px;
  display: flex;
  align-items: center;
}
.hero-section .container {
  padding-top: 38px;
  padding-bottom: 38px;
}
.hero-section h1, .hero-section h2 {
  color: #263d51;
  text-shadow: 0 2px 12px rgba(255,236,240,0.12);
}
.hero-section p {
  color: #425067;
  font-size: 1.15rem;
  margin-bottom: 1.2em;
}

/* CTA BUTTONS ------------------------------------------------------------- */
.cta-primary {
  display: inline-block;
  background: #f5bce0;
  color: #243746;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(247, 193, 235, 0.1);
  padding: 14px 32px;
  font-size: 1.13rem;
  cursor: pointer;
  margin-top: 14px;
  transition: background 0.19s, color 0.19s, box-shadow 0.16s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #c2e2ee;
  color: #1b293a;
  box-shadow: 0 6px 24px rgba(198, 174, 216, 0.18);
  outline: none;
}

button, .button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 18px;
  padding: 10px 25px;
  background: #c2e2ee;
  color: #21304a;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.17s;
  margin-right: 14px;
}
button:last-child, .button:last-child {margin-right: 0;}
button:hover, .button:hover,
button:focus, .button:focus{
  background: #f5bce0;
  color: #243746;
  outline: none;
  box-shadow: 0 0 0 2px #BFD7ED;
}

/* NAVIGATION ------------------------------------------------------------- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(166,178,193,0.07);
  position: relative;
  z-index: 40;
  margin-bottom: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: flex-start;
  padding: 16px 0 16px 0;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #436577;
  font-weight: 500;
  font-size: 1.01rem;
  letter-spacing: 0.015em;
  transition: color 0.18s;
  background: none;
  padding: 7px 14px;
  border-radius: 12px;
  position: relative;
}
.main-nav a:not(.cta-primary):hover, .main-nav a:not(.cta-primary):focus {
  color: #a46693;
  background: #fae7f5;
}
.main-nav img {
  height: 40px;
  width: auto;
  margin-right: 19px;
  vertical-align: middle;
}

/* Hide nav links on mobile, show menu toggle */
.mobile-menu-toggle {
  background: #f5bce0;
  color: #243746;
  border: none;
  border-radius: 14px;
  font-size: 2rem;
  padding: 7px 16px;
  cursor: pointer;
  margin-left: auto;
  display: none;
  z-index: 1001;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #d6d9f2;
  color: #243746;
  outline: none;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 11px;
  }
  .main-nav img {
    margin-right: 8px;
  }
}
@media (max-width: 820px) {
  .main-nav a {
    padding: 6px 7px;
    font-size: 0.98rem;
  }
  .cta-primary {
    padding: 10px 18px;
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 14px;
    right: 24px;
  }
}

/* MOBILE MENU OVERLAY ----------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(242,246,255,0.97);
  z-index: 3003;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 0;
  transform: translateX(100vw);
  transition: transform 0.35s cubic-bezier(0.51,0.09,0.37,1.04);
  pointer-events: none;
  opacity: 0.6;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 28px 34px 0 0;
  font-size: 2.3rem;
  background: none;
  border: none;
  color: #243746;
  cursor: pointer;
  padding: 2px 14px 2px 2px;
  border-radius: 12px;
  transition: background 0.17s;
  z-index: 2004;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #fde5f8;
  color: #89268c;
  outline: none;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  margin-top: 41px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  color: #2f415e;
  background: none;
  padding: 16px 0;
  width: 82vw;
  border-radius: 12px;
  text-align: center;
  transition: background 0.18s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #f5bce0;
  color: #243746;
  outline: none;
}

@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle {display: none !important;}
}

/* FOOTER ------------------------------------------------------------------ */
footer {
  background: #f7faff;
  border-top: 1px solid #d6e4f2;
  min-height: 100px;
  padding: 0 0 38px 0;
}
.footer-nav {
  display: flex;
  gap: 22px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav a {
  color: #6e8298;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  padding: 5px 12px;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #f5bce0;
  color: #243746;
  outline: none;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #496685;
  font-size: 1rem;
}
.footer-contact p, .footer-contact a {
  color: #466384;
  font-size: 1rem;
}
.footer-contact img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 8px;
}
.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 17px;
}
.footer-social a img {
  width: 32px; height: 32px;
  border-radius: 6px;
  transition: filter 0.16s;
}
.footer-social a:hover img, .footer-social a:focus img {
  filter: brightness(0.8) saturate(1.9);
}

@media (max-width: 768px){
  .footer-nav {gap: 12px;}
  .footer-contact {font-size: 0.97rem;}
  .footer-social a img {width: 28px; height: 28px;}
}

/* THANK YOU SECTION ------------------------------------------------------- */
.thank-you-section {
  background: linear-gradient(135deg, #e6eaff 0%, #fbe5f4 79%);
  border-radius: 24px;
  padding: 38px 24px;
  margin-top: 40px;
}

/* CARD & LIST FORMATTING -------------------------------------------------- */
ul, ol {
  padding-left: 19px;
  margin-bottom: 1.3em;
}
li {
  margin-bottom: 0.6em;
}

/* TRANSITIONS ------------------------------------------------------------- */
*, *:before, *:after {
  box-sizing: inherit;
  transition: background 0.19s, box-shadow 0.17s;
}

/* MODAL & COOKIE BANNER --------------------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #fffdfa;
  box-shadow: 0 -3px 24px rgba(130,140,240,0.09);
  color: #25394d;
  padding: 24px 30px 24px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  z-index: 4002;
  border-radius: 18px 18px 0 0;
  animation: cookieBannerAppear 0.44s cubic-bezier(.37,.1,.38,1.34);
}
@keyframes cookieBannerAppear {
  0% { transform: translateY(120%); opacity:0; }
  60% { opacity: 1; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner p {
  flex: 1 1 260px;
  color: #25394d;
  margin-bottom: 0;
  font-size: 1rem;
}
.cookie-consent-banner .button {
  min-width: 120px;
  font-size: 1rem;
  margin-right: 8px;
}
.cookie-consent-banner .button.settings {
  background: #c2e2ee;
  color: #243746;
}
.cookie-consent-banner .button.accept {
  background: #a3f5e0;
  color: #1b293a;
}
.cookie-consent-banner .button.reject {
  background: #f7bfbc;
  color: #892e26;
}

/* Cookie Modal ----------------------------------------------------------- */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(85,90,120,0.18);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalAppear 0.33s cubic-bezier(.55,.49,.66,1.06);
}
@keyframes modalAppear {
  0% {opacity:0; transform: scale(1.09);}
  100% {opacity:1; transform:scale(1);}
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 62px rgba(148, 178, 217,0.16);
  max-width: 95vw;
  width: 420px;
  padding: 36px 36px 27px 36px;
  z-index: 5001;
  color: #243746;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 13px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.cookie-modal input[type=checkbox],
.cookie-modal input[type=radio] {
  accent-color: #87bad2;
}
.cookie-modal .categories {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.cookie-modal .cookie-modal-actions {
  width: 100%;
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .button {
  min-width: 98px;
}

@media (max-width: 480px) {
  .cookie-consent-banner {
    flex-direction: column;
    padding: 18px 6vw;
    gap: 12px;
  }
  .cookie-modal {
    padding: 20px 6vw 13px 6vw;
    min-width: 0;
    width: 98vw;
  }
}

/* RESPONSIVE FLEX LAYOUTS ------------------------------------------------- */
@media (max-width: 1010px) {
  .features-grid > div, .service-cards > div {
    flex: 1 1 340px;
  }
}
@media (max-width: 850px) {
  .features-grid, .service-cards {
    gap: 18px 0;
  }
  .features-grid > div, .service-cards > div {
    padding: 17px 12px;
    font-size: 0.97rem;
  }
}
@media (max-width: 768px) {
  .features-grid, .service-cards, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .testimonial-card {
    padding: 16px 10px;
  }
}

/* DREAMY PASTEL & SOFT GRADIENT ACCENTS ----------------------------------- */
body, html {
  background: linear-gradient(120deg, #f6f7fa 67%, #ffeefa 100%);
}
.features-grid > div, .service-cards > div, .testimonial-card, .card {
  background: linear-gradient(133deg, #fffefa 70%, #e7f6fa 100%);
}
.cta-primary, .button.accept {
  background: linear-gradient(98deg, #f5bce0 60%, #c2e2ee 100%);
  box-shadow: 0 3px 21px rgba(204,174,215,0.13), 0 1.5px 5px rgba(166, 219, 240, 0.10);
  color: #243746;
}

/* MICRO-INTERACTIONS & ANIMATIONS ---------------------------------------- */
.cta-primary, .button, .footer-social a img, .main-nav a, .card, .testimonial-card {
  transition: box-shadow 0.2s, background 0.18s, color 0.18s, transform 0.19s;
}
.card:active, .testimonial-card:active, .service-cards > div:active {
  transform: scale(0.98);
}

.card .icon, .features-grid img, .service-cards img {
  transition: filter 0.15s, box-shadow 0.14s, background 0.21s;
}
.card:hover .icon, .features-grid > div:hover img, .service-cards > div:hover img {
  filter: saturate(1.25) drop-shadow(0 2px 12px #f5bce0);
  background: #fcecff;
}

/* FORM ELEMENTS ----------------------------------------------------------- */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid #c0cce0;
  padding: 11px 15px;
  margin-bottom: 11px;
  background: #fafbfb;
  width: 100%;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #c2e2ee;
  border-color: #a6b2c1;
  background: #fff;
}
label {
  display: block;
  margin-bottom: 8px;
  color: #516178;
}

/* ACCESSIBILITY ----------------------------------------------------------- */
:focus-visible {
  outline: 2px solid #f5bce0;
  outline-offset: 1px;
}

/* OVERRIDES FOR EDGE CASES ------------------------------------------------ */
@media (max-width: 500px) {
  h1 { font-size: 1.33rem; }
  h2 { font-size: 1.06rem; }
  .footer-nav {
    gap: 4px;
    font-size: 0.97rem;
  }
}

/* Z-INDEX LAYERING -------------------------------------------------------- */
header {z-index: 40;}
.mobile-menu {z-index: 3003;}
.cookie-consent-banner {z-index: 4002;}
.cookie-modal-backdrop {z-index: 5000;}

/* SPACING ENFORCEMENT ----------------------------------------------------- */
section, .section, .card, .testimonial-card, .features-grid > div, .service-cards > div, .content-grid > * {
  margin-bottom: 20px;
}
.features-grid > div:last-child, .service-cards > div:last-child, .content-grid > *:last-child {
  margin-bottom: 0;
}

/* PRINT ------------------------------------------------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal-backdrop {
    display: none !important;
  }
  body, .container, main, .content-wrapper, section {
    background: #fff !important;
    color: #181f25 !important;
    box-shadow: none !important;
  }
}
