/* === CSS RESET & VARIABLES === */
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 {
  scroll-behavior: smooth;
}

body {
  background: #F5F3EF;
  color: #243659;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

:root {
  --primary: #243659;
  --secondary: #E8C67F;
  --accent: #F5F3EF;
  --brand-blue: #243659;
  --brand-gold: #E8C67F;
  --brand-bg: #F5F3EF;
  --brand-pink: #FF70A6;
  --brand-green: #72E47B;
  --brand-purple: #946BFF;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--brand-pink);
  outline: none;
}
ul, ol {
  padding-left: 1.5em;
  margin: 1em 0;
}
strong, b {
  font-weight: 700;
}

/* Typography Hierarchy */
h1, .h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
h2, .h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brand-purple);
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
}
.subheadline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--brand-pink);
  margin-bottom: 20px;
}

blockquote {
  font-family: 'Playfair Display', serif;
  background: #fff;
  color: var(--brand-purple);
  padding: 24px 28px;
  border-left: 5px solid var(--brand-gold);
  margin: 20px 0;
  font-style: italic;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(210,180,60, 0.08);
}


/* === MAIN LAYOUT ==== */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Alignment Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(36,54,89,0.05);
  border: 2px solid var(--brand-gold);
  transition: transform 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 8px 30px rgba(36,54,89,0.14);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(36,54,89,0.08);
  padding: 28px 22px 22px 22px;
  margin-bottom: 20px;
  border-left: 5px solid var(--brand-gold);
  position: relative;
  min-width: 230px;
  min-height: 220px;
  transition: box-shadow 0.2s, transform 0.2s;
  animation: swing-in 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.feature-item img {
  height: 44px;
  width: 44px;
}
.feature-item span, .feature-item strong {
  color: var(--brand-pink);
  font-weight: 700;
  font-size: 1.1rem;
}
.feature-item:hover {
  box-shadow: 0 8px 24px rgba(36,54,89,0.17);
  transform: translateY(-3px) scale(1.04);
}
@keyframes swing-in {
  0% { transform: translateY(30px) scale(0.9) rotate(-2deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

.awards {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}
.awards img { height: 44px; width: 44px; }

.content-wrapper {
  margin-bottom: 24px;
}
.text-section {
  background: #fff9ef;
  border-radius: 18px;
  padding: 34px 22px;
  box-shadow: 0 4px 12px rgba(235,195,127,0.11);
}

.card-grid, .features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 24px 0;
}
.features-grid .feature-item {
  flex: 1 1 230px;
  max-width: 350px;
}

.team-member-bio {
  background: #FFFAED;
  border-radius: 14px;
  padding: 22px 18px;
  margin-bottom: 18px;
  border-left: 5px solid var(--brand-purple);
  box-shadow: 0 2px 8px rgba(148,107,255,0.07);
}


/* === HEADER & NAVIGATION === */
header {
  background: var(--brand-blue);
  box-shadow: 0 2px 12px rgba(30,30,60,0.07);
  position: relative;
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
  padding: 18px 0 12px 0;
}
.logo-link {
  margin-right: 26px;
  display: flex;
  align-items: center;
}
.logo-link img {
  height: 48px;
  width: auto;
}

.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-gold);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 10px;
  padding: 7px 13px;
  transition: background 0.18s, color 0.18s;
  margin-bottom: 3px;
}
.main-nav a.cta {
  background: var(--brand-pink);
  color: #fff;
  font-weight: 700;
  padding: 7px 20px;
  border-radius: 20px;
  font-size: 1.08rem;
  box-shadow: 0 2px 7px rgba(255,112,166,0.08);
  margin-left: 16px;
  animation: pulse 1.8s infinite alternate;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,112,166,0.14); }
  100% { box-shadow: 0 0 0 10px rgba(255,112,166,0.02); }
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--brand-pink);
  color: #fff;
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: var(--brand-purple);
  color: #fff;
}


/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 22px;
  background: var(--brand-pink);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  height: 48px;
  width: 48px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px rgba(255,112,166,0.25);
  cursor: pointer;
  z-index: 120;
  transition: background 0.18s;
}
.mobile-menu-toggle:active { background: var(--brand-purple); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--brand-gold);
  padding: 28px 30px 30px 24px;
  box-shadow: 0 8px 30px rgba(36,54,89,0.11);
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.57,-0.34,.42,1.43);
  z-index: 200;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--brand-blue);
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 6px;
  transition: color 0.18s;
  z-index: 210;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--brand-pink);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 14px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-blue);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 10px 0 7px 7px;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
  margin: 0 0 4px 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-pink);
  color: #fff;
}

@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1024px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav {
    display: flex !important;
  }
}

/* === HERO & BUTTONS === */
.cta {
  display: inline-block;
  background: var(--brand-pink);
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 23px;
  padding: 13px 32px;
  margin-top: 14px;
  margin-bottom: 12px;
  box-shadow: 0 3px 14px rgba(255,112,166,0.13);
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  outline: none;
}
.cta:hover, .cta:focus {
  background: var(--brand-blue);
  color: #fff;
  transform: scale(1.07) translateY(-3px);
}

button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  background: var(--brand-blue);
  color: #fff;
  padding: 10px 22px;
  font-weight: 600;
  transition: background 0.14s, transform 0.12s;
  cursor: pointer;
}
button:hover, button:focus {
  background: var(--brand-pink);
  color: #fff;
  transform: translateY(-1px) scale(1.04);
}

/* === FOOTER === */
footer {
  background: var(--brand-blue);
  color: var(--brand-gold);
  padding: 34px 0 18px 0;
  box-shadow: 0 -2px 10px rgba(36,54,89,0.06);
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
  justify-content: center;
}
.footer-menu a {
  color: var(--brand-gold);
  font-weight: 500;
  padding: 7px 9px;
  border-radius: 6px;
  transition: background 0.18s, color 0.15s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: var(--brand-pink);
  color: #fff;
}
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 17px;
}
.social-links img {
  height: 28px;
  width: 28px;
  filter: drop-shadow(0px 1px 4px rgba(36,54,89,0.08));
  transition: transform 0.15s;
  cursor: pointer;
}
.social-links img:hover {
  transform: scale(1.19) rotate(-7deg);
}
footer p {
  text-align: center;
  color: #fff;
  font-size: 0.96rem;
  margin-top: 12px;
}

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 990;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #fff;
  color: var(--brand-blue);
  box-shadow: 0 -6px 24px rgba(36,54,89,0.14);
  padding: 28px 24px 24px 24px;
  border-top: 5px solid var(--brand-gold);
  gap: 28px;
  flex-wrap: wrap;
  animation: slide-up 0.7s;
  font-size: 1rem;
}
@keyframes slide-up {
  from { transform: translateY(120px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-banner__text {
  flex: 1 1 220px;
  margin-right: 12px;
  min-width: 140px;
}
.cookie-banner .cookie-banner__actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-banner button, .cookie-banner .cookie-btn {
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 9px;
  margin-right: 8px;
  border: none;
  font-family: 'Montserrat', Arial;
  font-weight: 700;
  cursor: pointer;
  background: var(--brand-blue);
  color: #fff;
  transition: background 0.14s, color 0.12s;
}
.cookie-banner button.cookie-btn.settings {
  background: var(--brand-pink);
  color: #fff;
}
.cookie-banner button.cookie-btn.reject {
  background: #fff;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}
.cookie-banner button.cookie-btn.accept:hover,
.cookie-banner button.cookie-btn.settings:hover {
  background: var(--brand-purple);
}
.cookie-banner button.cookie-btn.reject:hover {
  background: var(--brand-pink);
  color: #fff;
  border-color: var(--brand-pink);
}

.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(36,54,89,0.22);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cookie-modal.open {
  display: flex;
  animation: fade-in 0.22s;
}
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 28px;
  padding: 36px 30px 28px 30px;
  box-shadow: 0 8px 32px rgba(36,54,89,0.12);
  min-width: 320px;
  max-width: 90vw;
  color: var(--brand-blue);
  position: relative;
  animation: bounce-in 0.45s cubic-bezier(.39,1.42,.39,.97);
}
@keyframes bounce-in {
  0% { transform: scale(0.93) translateY(30px); opacity: 0.6; }
  70% { transform: scale(1.04) translateY(-10px); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 17px; right: 20px;
  border: none;
  background: none;
  color: var(--brand-blue);
  font-size: 2rem;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--brand-pink);
}
.cookie-modal h2 {
  margin-bottom: 14px;
  font-size: 1.5rem;
  color: var(--brand-purple);
  font-family: 'Playfair Display', serif;
}
.cookie-category {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 500;
}
.cookie-category-toggle {
  accent-color: var(--brand-pink);
  height: 22px;
  width: 22px;
}
.cookie-category.essential label {
  color: #aaa;
  font-style: italic;
}

@media (max-width: 600px) {
  .cookie-modal-content { padding: 20px 10px 18px 10px; }
  .cookie-modal h2 { font-size: 1.14rem; }
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 16px 8px; 
    font-size: 0.97rem;
  }
}

/* === SPACING RULES: ENSURE NO OVERLAP === */
section, .section {
  margin-bottom: 60px !important;
  padding: 40px 20px;
}
.content-wrapper > * { margin-bottom: 18px; }
.content-wrapper > *:last-child { margin-bottom: 0; }
.card, .feature-item, .testimonial-card, .team-member-bio {
  margin-bottom: 20px;
}
.testimonial-card + .testimonial-card {
  margin-top: 12px;
}
.features-grid, .card-container, .card-grid, .content-grid {
  gap: 24px;
}
ul li, ol li { margin-bottom: 8px; }
ul li:last-child, ol li:last-child { margin-bottom: 0; }

/*.card, feature-item etc. min spacing */
.feature-item, .testimonial-card, .team-member-bio {
  margin-right: 20px;
  margin-left: 0;
}

/* === MEDIA QUERIES: RESPONSIVE FLEX ALIGNMENT === */
@media (max-width: 1023px) {
  .container {
    padding: 0 11px;
  }
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid .feature-item {
    min-width: 170px;
    max-width: 100%;
  }
  .main-nav { display: none; }
}
@media (max-width: 768px) {
  .container { padding: 0 3vw; }
  .section, section { padding: 24px 8px; margin-bottom: 36px; }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .features-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  h1, .h1 { font-size: 1.6rem; }
  h2, .h2 { font-size: 1.18rem; }
  .content-wrapper { margin-bottom: 14px; }
  .subheadline { font-size: 1.05rem; }
}

/* === PLAYFUL & DYNAMIC VISUAL EFFECTS === */
.card, .feature-item, .testimonial-card, .team-member-bio {
  transition: box-shadow 0.21s, transform 0.22s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover, .team-member-bio:hover {
  box-shadow: 0 8px 24px rgba(148,107,255,0.15), 0 2px 10px rgba(255,112,166,0.09);
  transform: translateY(-4px) scale(1.03);
}
section h2:after {
  content: '';
  display: block;
  width: 60px;
  height: 7px;
  background: var(--brand-green);
  border-radius: 8px;
  margin-top: 8px;
  margin-bottom: 11px;
  animation: grow-bar 1.2s 1 linear;
}
@keyframes grow-bar {
  0% { width: 0; background: var(--brand-pink); }
  100% { width: 60px; background: var(--brand-green); }
}

.cta {
  animation: jello 1.2s infinite alternate both;
}
@keyframes jello {
  0% { transform: scale3d(1,1,1); }
  30% { transform: scale3d(1.06,0.97,1); }
  50% { transform: scale3d(0.97,1.03,1); }
  70% { transform: scale3d(1.03,0.97,1); }
  100% { transform: scale3d(1,1,1); }
}

/* === CUSTOM SCROLLBAR FOR VISUAL FUN === */
::-webkit-scrollbar {
  width: 10px;
  background: var(--brand-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-pink);
  border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-purple);
}

/* === ACCESSIBILITY / CONTRAST FOR TESTIMONIALS === */
.testimonial-card,
blockquote {
  background: #fff !important;
  color: #232340 !important;
}
.testimonial-card span {
  font-size: 1.4rem;
  letter-spacing: 0.07em;
  color: var(--brand-gold);
  margin-bottom: 4px;
}

/* === OVERRIDES FOR MISCELLANEOUS ELEMENTS === */
::-moz-selection { background: var(--brand-pink); color: #fff; }
::selection { background: var(--brand-pink); color: #fff; }

hr {
  border: none;
  border-top: 2px dashed var(--brand-blue);
  margin: 28px 0;
}

/* === FORMS (IN CASE USED LATER) === */
input, textarea, select {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #ddd;
  background: #fff;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border: 2px solid var(--brand-pink);
}
label {
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--brand-blue);
  display: block;
}

/* === PRINT & REDUCED MOTION === */
@media print {
  .main-nav, .footer-menu, .footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; animation-duration: 0.01ms !important; }
}
