/* CSS RESET & NORMALIZATION */
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, body {
  height: 100%;
  color: #344256;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background: #FFF9F6;
  color: #19365C;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
ol, ul {
  list-style: none;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #19365C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F2B94C;
  outline: none;
}

/* FONT IMPORTS (Google Fonts: Montserrat, Roboto) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

/* VARIABLES */
:root {
  --primary: #19365C;
  --secondary: #F2B94C;
  --accent: #FFFFFF;
  --pastel-rose: #FCE1E9;
  --pastel-blue: #E9F2FB;
  --pastel-mint: #D9F6EF;
  --pastel-lavender: #EDEAFE;
  --pastel-yellow: #FFF7E0;
  --shadow: 0 4px 32px 0 rgba(89, 119, 168, 0.11),0 1.5px 4px 0 rgba(131, 125, 164, 0.09);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --body-font: 'Roboto', Arial, sans-serif;
  --display-font: 'Montserrat', 'Roboto', Arial, sans-serif;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.15;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, ul li, ol li, address {
  font-family: var(--body-font);
  font-size: 1.05rem;
  color: #344256;
  margin-bottom: 14px;
}
p:last-child, ul li:last-child { margin-bottom: 0; }
strong {
  color: var(--primary);
  font-weight: 700;
}
em {
  color: #7952a5;
  font-style: italic;
}

/* CONTAINER/SECTION LAYOUTS */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* SPACING AND FLEX UTILS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--pastel-blue);
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  transition: box-shadow 0.22s;
  min-width: 270px;
  flex: 1 1 270px;
  z-index: 1;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(73, 89, 109, 0.16),0 3px 12px 0 rgba(90, 82, 130, 0.11);
  background: var(--pastel-mint);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: var(--pastel-rose);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  color: #23253f;
  font-size: 1.05rem;
  max-width: 650px;
  transition: box-shadow 0.15s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(89, 119, 168, 0.16),0 2px 10px 0 rgba(131, 125, 164, 0.11);
  transform: translateY(-4px) scale(1.01);
}
.testimonial-card strong {
  color: #19365C;
}

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

ul {
  margin-bottom: 18px;
}
ul > li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  line-height: 1.55;
  font-size: 1.08rem;
}
ul > li img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--pastel-mint);
  padding: 4px;
  margin-right: 2px;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  background: linear-gradient(90deg, #FCE1E9 0%, #E9F2FB 100%);
  color: var(--primary);
  font-family: var(--display-font);
  font-size: 1.13rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  margin: 20px 0 0 0;
  transition: background 0.15s, color 0.15s, box-shadow 0.18s, transform 0.18s;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #EDEAFE 0%, #D9F6EF 100%);
  color: #7952a5;
  transform: translateY(-2px) scale(1.033);
  box-shadow: 0 8px 32px 0 rgba(73, 89, 109, 0.19);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  background: var(--pastel-lavender);
  color: var(--primary);
  font-family: var(--body-font);
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 6px 0 rgba(89, 119, 168, 0.08);
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.12s, color 0.13s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--pastel-yellow);
  color: #DA7422;
}

/* HEADER & NAVIGATION */
header {
  width: 100%;
  background: var(--accent);
  box-shadow: 0 2px 16px 0 rgba(89,119,168,0.09);
  position: relative;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  padding: 24px 0 16px 0;
  flex-wrap: wrap;
}
.main-nav > a {
  font-family: var(--body-font);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.13s, color 0.13s;
}
.main-nav > a:hover, .main-nav > a:focus:not(.btn-primary) {
  background: var(--pastel-yellow);
  color: #B16B21;
}
.main-nav > a.btn-primary {
  margin-left: 18px;
}
.main-nav img {
  height: 42px; width: auto; margin-right: 18px; border-radius: 12px;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 32px;
  right: 26px;
  z-index: 31;
  background: var(--pastel-blue);
  color: var(--primary);
  border: none;
  font-size: 2.3rem;
  padding: 6px 14px 7px 10px;
  border-radius: 100px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.14s, color 0.13s, box-shadow 0.16s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--pastel-mint);
  color: #239C7C;
  outline: none;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(255,249,246,0.98);
  box-shadow: 0 7px 28px 0 rgba(24,30,45,0.12);
  transform: translateX(-110vw);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.33s cubic-bezier(.64,.02,.29,.96), opacity 0.23s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  background: none;
  border: none;
  margin: 26px 38px 0 0;
  color: var(--primary);
  cursor: pointer;
  padding: 0 10px 0 0;
  border-radius: 16px;
  transition: color 0.11s, background 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F2B94C;
  background: var(--pastel-yellow);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 40px 0 0 38px;
  gap: 28px;
}
.mobile-nav a {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  padding: 11px 0 11px 0;
  border-radius: var(--radius-md);
  transition: color 0.16s, background 0.15s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-lavender);
  color: #613A84;
}

/* FOOTER */
footer {
  background: var(--pastel-yellow);
  padding: 36px 0 22px 0;
  width: 100%;
  margin-top: 40px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #19365C;
  padding: 3px 5px;
  border-radius: 5px;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--pastel-rose);
  color: #C4375D;
}
address {
  font-style: normal;
  color: #27334b;
  opacity: .87;
  margin: 0 auto 14px auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  font-size: 0.97rem;
}
address img {
  width: 18px; height: 18px; margin-right: 7px; background: var(--pastel-lavender); border-radius: 50%; vertical-align: middle;
}
small {
  display: block;
  text-align: center;
  color: #5c728c;
  opacity: .72;
}

/* CONTENT WRAPPER and TEXT STYLING */
.content-wrapper {
  background: transparent;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 0 8px 0;
}
.text-section {
  max-width: 710px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* CTA/NEWSLETTER STYLING */
section .btn-primary, section .btn-secondary {
  margin-left: 0;
}

/* RESPONSIVENESS: Mobile-first */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
}
@media (max-width: 850px) {
  .main-nav {
    gap: 12px;
    font-size: 0.99rem;
  }
}
@media (max-width: 768px) {
  .container { padding-left: 9px; padding-right: 9px; }
  .section { padding: 25px 7px; margin-bottom: 36px; }
  h1 { font-size: 1.77rem; }
  h2 { font-size: 1.33rem; }
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
  .footer-nav {flex-direction: column; gap: 8px;}
  .card-container, .content-grid, .text-image-section {
    flex-direction: column!important;
    gap: 18px!important;
  }
  .testimonial-card { max-width: 100vw; padding: 14px; }
  .card { min-width: unset; padding: 18px 10px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.24rem; }
  h2 { font-size: 1.01rem; }
  .btn-primary, .btn-secondary { font-size: 0.97rem; padding: 9px 16px; }
  .footer-nav { font-size: 0.95rem; }
  .section { padding: 13px 2px; }
}

/* VISUAL EFFECTS & DREAMY TOUCHES */
section {
  background: var(--pastel-blue);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
section:nth-of-type(2n) {
  background: var(--pastel-mint);
}
section:nth-of-type(3n) {
  background: var(--pastel-rose);
}
section:last-of-type:not(.cookie-consent-banner) {
  background: var(--pastel-lavender);
}

/* ICONS INSIDE CARDS/FEATURES */
ul li img, .feature-item img {
  background: #f7e7ff;
  border: 2px solid #edeafe;
  box-shadow: 0 1px 7px rgba(100,90,140,0.06);
  border-radius: 50%;
  width: 2rem; height: 2rem;
  padding: 2px;
}

/* MICRO-INTERACTIONS */
.btn-primary,.btn-secondary,.main-nav>a,.mobile-nav a,.mobile-menu-toggle,.mobile-menu-close {
  transition:background 0.18s,color 0.17s,box-shadow 0.22s,transform 0.19s,filter 0.15s;
}

/* COOKIES CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: linear-gradient(90deg, #FCE1E9 0%, #FFF7E0 100%);
  color: #273553;
  box-shadow: 0 -3px 28px 0 rgba(41,59,94,0.08);
  z-index: 2222;
  padding: 22px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-size: 1.03rem;
  animation: fadeInBottom 0.6s cubic-bezier(.64,.29,.29,.96);
}
@keyframes fadeInBottom {
  0% { opacity: 0; transform: translateY(45px); }
  78% { opacity: 1; transform: translateY(-6px);  }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner.hidden { display: none!important; }
.cookie-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}
.cookie-consent-banner .btn-primary { background: var(--pastel-lavender); color: #531A88; }
.cookie-consent-banner .btn-primary:hover { background: var(--pastel-rose); color: #B11C40; }

.cookie-consent-banner .btn-secondary { background: var(--pastel-rose); color: #19365C; }
.cookie-consent-banner .btn-secondary:hover { background: var(--pastel-lavender); color: #531A88; }
.cookie-consent-banner .cookie-settings-btn { color: var(--secondary); background: transparent!important; font-size: 1rem; box-shadow: none; padding: 7px 0; text-decoration: underline; border-radius: 5px; }
.cookie-consent-banner .cookie-settings-btn:hover { color: #19365C; background: var(--pastel-yellow); }

/* COOKIES MODAL */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(40,48,76,0.43);
  z-index: 2223;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .cookie-modal-content {
  background: #FCE1E9;
  min-width: 300px;
  max-width: 92vw;
  padding: 44px 32px 32px 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(41,59,94,0.17);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: fadeInBottom 0.32s cubic-bezier(.64,.29,.29,.96);
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 20px;
  background: none;
  border: none;
  color: #C4375D;
  font-size: 1.7rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--pastel-yellow);
}
.cookie-category-toggles {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 12px 0 4px 0;
}
.cookie-category-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-category-toggle input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 21px; height: 21px;
}
.cookie-category-toggle label {
  margin-right: 9px;
}
.cookie-essential-label { color: #999ba1; font-weight: 600; font-size: 0.97em; }

/* MISC ACCESSIBILITY & VISUALS */
:focus { outline: 2px solid #68b2e2; outline-offset: 1.4px; }
::-webkit-selection { background: #FCE1E9; }
::selection { background: #FCE1E9; }

/* ANIMATIONS FOR FOCUSABLE & INTERACTIVE */
.btn-primary:active, .btn-secondary:active, .main-nav > a:active, .mobile-nav a:active {
  transform: scale(.985);
  filter: brightness(.97);
}

/* PREVENT CARD OVERLAP */
.card, .testimonial-card, section, .section, .card-container, .content-grid, .text-image-section, .content-wrapper, .feature-item {
  margin-bottom: 20px;
}
.card:last-child, .testimonial-card:last-child, .section:last-child, section:last-child {
  margin-bottom: 0;
}

/* DEDICATED FLEXBOX ONLY - NEVER CSS GRID! (For Multicolumn Cases) */
.card-container, .content-grid, .feature-item, .footer-nav, .text-image-section {
  display: flex;
  flex-wrap: wrap;
}

.card-container, .content-grid, .card, .testimonial-card, .footer-nav, .feature-item, .text-image-section {
  gap: 20px;
}
@media (max-width:768px){
  .card-container, .content-grid, .feature-item, .footer-nav, .text-image-section {
    flex-direction: column!important;
    gap: 18px!important;
  }
}

/* ENSURE DARK TEXT IN TESTIMONIAL SECTIONS FOR CONTRAST */
section, .testimonial-card, .cookie-consent-banner, .cookie-modal-content {
  color: #2a2335;
}
.testimonial-card p, .testimonial-card span, .testimonial-card strong {
  color: #2a2335!important;
}

/* Hide elements visually but keep accessible */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}
