/* RESET & NORMALIZE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F7F6F2;
  color: #334046;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.7;
  font-size: 1rem;
  background: #F7F8FA;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  outline: none;
}

/* VINTAGE RETRO COLORS AND PATTERNS */
:root {
  --primary: #275473;
  --primary-dark: #16324b; 
  --secondary: #178D8B;
  --accent: #F7F8FA;
  --vintage-gold: #E9C46A;
  --vintage-orange: #F4A259;
  --vintage-red: #EF5B5B;
  --vintage-blue: #B3C7D6;
  --paper-bg: #F7F6F2;
  --heading-font: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --body-font: 'Roboto', Arial, sans-serif;
  --nav-shadow: 0 2px 10px 0 rgba(39,84,115,0.06);
  --card-shadow: 0 1px 8px 0 rgba(33,40,49,0.07);
  --card-radius: 18px;
  --btn-radius: 16px;
  --transition: 0.18s cubic-bezier(.32,.72,.38,1.4);
  --pattern-url: url('data:image/svg+xml;utf8,<svg fill="%23e9c46a" width="24" height="24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="2"/><circle cx="2" cy="2" r="1"/></svg>');
}

body {
  background: var(--paper-bg);
  letter-spacing: 0.01em;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

header {
  background: #fff8e6;
  box-shadow: var(--nav-shadow);
  border-bottom: 4px double var(--vintage-gold);
  padding-bottom: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  min-height: 72px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.logo {
  display: flex;
  align-items: center;
  padding: 4px 0;
}
.logo img {
  height: 48px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  background: none;
  padding: 6px 10px;
  border-radius: 9px;
  position: relative;
  transition: background 0.16s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--vintage-gold);
  color: var(--primary-dark);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--btn-radius);
  padding: 12px 28px;
  box-shadow: 0 4px 16px -8px rgba(39,84,115,0.14);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-left: 22px;
  text-shadow: 0 1px 2px #0001;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.05) rotate(-0.5deg);
  box-shadow: 0 8px 18px -4px rgba(39,84,115,0.19);
}

/* Hamburger Burger */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  margin-left: 16px;
  z-index: 202;
  padding: 6px 16px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--vintage-gold);
  color: var(--primary-dark);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff8e7;
  box-shadow: 2px 0 18px -2px #b89a4e33;
  transition: transform 0.33s cubic-bezier(.62,.2,.2,1);
  transform: translateX(-100vw);
  z-index: 3000;
  padding: 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--primary-dark);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  margin: 18px 24px 10px 0;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100vw;
  align-items: flex-start;
  padding: 18px 24px;
  margin-top: 10px;
}
.mobile-nav a {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--primary);
  background: none;
  padding: 9px 0;
  border-radius: 8px;
  width: 100%;
  display: block;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--vintage-gold);
  color: var(--primary-dark);
}

/* HERO */
.hero {
  background: var(--pattern-url), linear-gradient(120deg, #F7F2E7, #D9E7EC 84%);
  background-size: 44px 44px, cover;
  background-repeat: repeat, no-repeat;
  background-position: top left, center;
  margin-bottom: 60px;
  min-height: 320px;
  display: flex;
  align-items: center;
  border-bottom: 4px double var(--vintage-gold);
}
.hero .container {
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding: 42px 0;
}
.hero h1 {
  font-family: var(--heading-font);
  font-size: 2.3rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 14px;
  text-shadow: 0 2px 0 #e9c46a44;
}
.hero p {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 18px;
}

/* SECTIONS */
.section, .features, .directory-categories, .providers, .resource-library, .articles, .about, .testimonials, .contact-details, .legal, .thank-you, .cta-banner {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.12rem;
}
.text-section ul {
  padding-left: 1em;
  margin-top: 12px;
  font-size: 1rem;
}
.text-section ul li {
  margin-bottom: 12px;
  padding-left: 0.75em;
  position: relative;
}
.text-section ul li:before {
  content: '\2022';
  color: var(--vintage-orange);
  position: absolute;
  left: 0;
  font-size: 1.1em;
  line-height: 1;
  top: 0.2em;
}
.text-section ul li img {
  display: inline-block;
  height: 22px;
  width: 22px;
  margin-right: 8px;
  vertical-align: middle;
}
.text-section p, .content-wrapper p {
  color: #334046;
  letter-spacing: 0.002em;
}
.text-section strong, .content-wrapper strong {
  color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
h1 {
  font-size: 2.2rem;
}
h2 {
  font-size: 1.6rem;
}
h3 {
  font-size: 1.24rem;
  color: var(--secondary);
}

/* VINTAGE PATTERNS ON ABOUT/THANK-YOU/LEGAL */
.about, .thank-you, .legal {
  background: var(--paper-bg);
  border: 2px solid #e9c46a55;
  border-radius: 28px;
  box-shadow: 0 6px 22px -8px #90733a19;
  margin: 60px 0;
  position: relative;
}

/* FEATURES/GRID */
.features .feature-grid, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fffdf7;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 28px 24px 24px 24px;
  min-width: 230px;
  flex: 1 1 calc(48% - 24px);
  border: 2px solid #e9c46a22;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, border 0.18s, transform 0.19s;
}
.feature-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 7px;
  filter: saturate(1.2) brightness(1) drop-shadow(0 2px 0 #e9c46a22);
}
.feature-item h3 {
  font-size: 1.13rem;
  color: var(--vintage-orange);
  margin-bottom: 7px;
  font-family: var(--heading-font);
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 24px -4px #F4A25960, var(--card-shadow);
  border-color: var(--vintage-gold);
  transform: translateY(-4px) scale(1.025);
}

/* CARD/TESTIMONIALS */
.testimonial-slider, .testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 30px 20px 30px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 2px 12px -2px #2e201061;
  min-width: 250px;
  margin-bottom: 20px;
  border: 2px solid #e9c46a44;
  position: relative;
  font-size: 1.08rem;
  color: #2D3135;
  transition: box-shadow 0.18s, border 0.18s, transform 0.19s;
}
.testimonial-card p {
  color: #222;
  font-style: italic;
  font-size: 1.07rem;
  line-height: 1.6;
}
.testimonial-card span {
  font-family: var(--display-font);
  font-size: 1rem;
  color: var(--vintage-orange);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: var(--vintage-orange);
  box-shadow: 0 8px 18px -6px #F4A25966;
  transform: scale(1.024) rotate(-0.4deg);
}

.with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* CTA BANNER */
.cta-banner {
  background: linear-gradient(90deg, #D9E7EC 60%, #FFEFD2 100%);
  border-radius: 26px;
  box-shadow: 0 4px 16px -8px #b3c7d621;
  border: 2px solid #b3c7d655;
  margin-bottom: 60px;
}
.cta-banner .content-wrapper {
  align-items: flex-start;
}
.cta-banner h2 {
  color: var(--secondary);
  font-size: 1.44rem;
}

/* DIRECTORY CATEGORIES, PROVIDER LISTINGS, ARTICLES */
.directory-categories, .providers, .articles, .resource-library {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 18px -6px #b3c7d624;
  border: 2px solid #b3c7d644;
}
.directory-categories ul li:before,
.providers ul li:before,
.articles ul li:before {
  color: var(--vintage-blue);
}
.insights-highlight {
  background: #F9E5BE;
  border-left: 8px solid var(--vintage-gold);
  border-radius: 0 11px 11px 0;
  padding: 16px 20px;
  margin: 18px 0;
}

/* CONTACT DETAILS */
.contact-details ul li {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  font-size: 1.06rem;
}
.contact-details ul li img {
  height: 23px;
  width: 23px;
  filter: sepia(0.35) hue-rotate(-8deg) brightness(1.1);
}

/* THANK YOU */
.thank-you {
  background: #fff;
  border: 2px solid #e9c46a77;
  border-radius: 30px;
  box-shadow: 0 8px 36px -10px #90733a24;
  padding: 70px 24px 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}
.thank-you .btn-primary {
  margin-top: 34px;
}

/* LEGAL PAGES */
.legal {
  background: #fffefb;
  border-radius: 20px;
  border: 2px solid #e9c46a44;
  box-shadow: 0 6px 34px -8px #e9c46a13;
}
.legal h2 {
  color: var(--secondary);
}

/* FOOTER */
footer {
  background: #fff8e6;
  border-top: 3px double #e9c46a;
  padding: 44px 0 0 0;
  margin-top: 60px;
}
footer .container {
  gap: 0;
}
.footer-main {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 18px;
}
.footer-main .logo img {
  height: 40px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--heading-font);
  font-size: 1rem;
}
.footer-nav a {
  color: var(--primary);
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--vintage-orange);
  text-decoration: underline wavy var(--vintage-orange) 2px;
}
.footer-contact {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 16px 0;
  color: #a79768;
  font-size: 1rem;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3500;
  background: #fffef9;
  border-top: 2px solid #e9c46a;
  box-shadow: 0 -2px 16px -4px #b3c7d622;
  width: 100vw;
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: row;
  gap: 25px;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  animation: cookie-slide 0.6s ease;
}
@keyframes cookie-slide {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-banner p {
  flex: 3 2 220px;
  color: #334046;
}
.cookie-banner .cookie-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-banner .btn-cookie {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 9px 22px;
  cursor: pointer;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1rem;
  margin-right: 3px;
  transition: background 0.16s, transform 0.16s;
}
.cookie-banner .btn-cookie.reject {
  background: var(--vintage-red);
}
.cookie-banner .btn-cookie.settings {
  background: var(--secondary);
}
.cookie-banner .btn-cookie:hover,
.cookie-banner .btn-cookie:focus {
  background: var(--vintage-gold);
  color: var(--primary-dark);
  transform: scale(1.04);
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: #275473cc;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .modal-box {
  background: #fffef9;
  padding: 36px 28px 28px 28px;
  border-radius: 18px;
  box-shadow: 0 8px 44px -8px #4A392013;
  max-width: 98vw;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modal-pop 0.33s cubic-bezier(.19,.54,.45,1.33);
}
@keyframes modal-pop {
  0% { transform: scale(0.97) translateY(30px); opacity: 0.3; }
  100%{ transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal .modal-title {
  font-family: var(--heading-font);
  color: var(--primary);
  font-size: 1.24rem;
  margin-bottom: 16px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 1.07rem;
}
.cookie-modal input[type=checkbox] {
  width: 19px;
  height: 19px;
  accent-color: var(--secondary);
}
.cookie-modal .toggle-always-on {
  color: var(--vintage-gold);
  font-weight: 700;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-modal .btn-cookie {
  padding: 9px 22px;
  border-radius: 10px;
}

/* CARDS & FLEX CONTAINERS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  position: relative;
  border: 2px solid #b3c7d622;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, border .13s, transform .18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 10px 22px -8px #27547322, var(--card-shadow);
  border-color: var(--secondary);
  transform: scale(1.017) rotate(-0.5deg);
}
.content-grid { /* for horizontal layouts */
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 32px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* VISUAL SEPARATOR STYLES */
hr {
  border: none;
  border-top: 2px dashed #e9c46a77;
  margin: 32px 0 28px 0;
}

/* RESPONSIVE DESIGN (MOBILE-FIRST) */
@media (max-width: 1050px) {
  .container {
    max-width: 900px;
  }
  .footer-main {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container {
    flex-direction: row;
    gap: 5px;
  }
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-item, .testimonial-card, .card {
    min-width: 80vw;
    padding: 19px 13px 13px 13px;
  }
  .feature-grid, .testimonial-slider, .testimonial-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .about, .thank-you, .legal, .directory-categories, .providers, .resource-library, .articles, .cta-banner {
    border-radius: 16px;
    padding: 24px 10px 18px 10px;
    margin: 32px 0;
  }
  .footer-main {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 22px 10px 15px 10px;
    font-size: 0.98rem;
    align-items: flex-start;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 9px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 520px) {
  html {
    font-size: 14px;
  }
  .hero {
    padding: 6px 0;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.13rem; }
  h3 { font-size: 1.01rem; }
  .btn-primary {
    padding: 10px 18px;
    font-size: 0.98rem;
  }
  .about, .thank-you, .legal, .directory-categories, .providers, .resource-library, .articles, .cta-banner {
    padding: 16px 2vw 10px 2vw;
    border-radius: 8px;
  }
}

/* FOCUS & A11Y */
a:focus-visible, button:focus-visible, .btn-primary:focus-visible {
  outline: 3px dashed var(--secondary);
  outline-offset: 2px;
}

/* UTILITIES */
.d-none { display: none !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.gap-20 { gap: 20px !important; }

/* ANIMATIONS & MICROINTERACTIONS */
.card, .feature-item, .testimonial-card, .btn-primary {
  transition: box-shadow 0.19s, border 0.14s, transform 0.16s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover {
  transform: scale(1.018) rotate(-0.7deg);
  box-shadow: 0 10px 22px -8px #EF5B5B0f, var(--card-shadow);
}

/* CRITICAL FLEXBOX LAYOUTS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* BRAND FONTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');
