/* --- CSS NORMALIZE + RESET --- */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #F8F6F1;
  color: #3F3B2F;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 16px;
  border: 1px solid #d6c7b5;
  font-size: 16px;
}
th {
  background: #E3DDD7;
  letter-spacing: 1px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* --- RETRO VINTAGE STYLE CONFIG --- */
:root {
  --c-main: #23425a;
  --c-main-dark: #1b3144;
  --c-accent: #46AD76;
  --c-retro-sand: #F8F6F1;
  --c-retro-yellow: #FFE185;
  --c-retro-orange: #FDB44D;
  --c-retro-red: #CE5A57;
  --c-retro-green: #46AD76;
  --c-retro-olive: #94857E;
  --c-retro-brown: #A79277;
  --c-retro-blue: #62A2C0;
  --c-retro-bg: #FEF8E7;
  --c-white: #fff;
  --font-display: 'Montserrat', Impact, Arial, sans-serif;
  --font-body: 'Lato', Arial, Helvetica, sans-serif;
}

/* --- TYPOGRAPHY & HEADINGS --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--c-main);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-shadow: 0 2px 0 rgba(170,139,55,.17);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 28px;
  line-height: 1.15;
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
  margin-bottom: 22px;
  letter-spacing: .5px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
h4, h5 {
  font-size: 1.1rem;
}

p {
  font-family: var(--font-body);
  font-size: 1.06rem;
  margin-bottom: 18px;
  color: #4D4434;
}
strong {
  font-weight: bold;
  font-family: var(--font-display);
  letter-spacing: .5px;
}

/* --- LAYOUT CONTAINER --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--c-retro-bg);
  border-radius: 22px;
}

/* --- HEADER --- */
header {
  background: var(--c-retro-brown);
  border-bottom: 4px solid var(--c-retro-orange);
  box-shadow: 0 1px 8px 0 rgba(60,33,9,0.07);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0px 3px 4px rgba(220,163,55,0.12));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.02rem;
  padding: 12px 17px;
  color: var(--c-main);
  opacity: 0.85;
  border-radius: 11px;
  background: transparent;
  transition: background .22s, color .19s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--c-retro-orange);
  background: var(--c-retro-yellow);
  opacity: 1;
}
.main-nav .cta-primary {
  background: var(--c-retro-orange);
  color: #48330F;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: 15px;
  padding: 12px 24px;
  margin-left: 12px;
  box-shadow: 0 4px 22px -9px #dbba5a65;
  transition: box-shadow .18s, background .21s;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: var(--c-retro-red);
  color: #fff;
  box-shadow: 0 3px 24px -5px #ce5a5799;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: var(--c-retro-orange);
  color: #48330F;
  font-size: 2.1rem;
  padding: 6px 15px;
  border-radius: 10px;
  margin-left: 16px;
  z-index: 9001;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: var(--c-retro-brown);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .37s cubic-bezier(.55,.11,.37,1.74);
  box-shadow: -6px 0 28px #986b439c;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.3rem;
  margin: 17px 19px 0 0;
  color: var(--c-retro-red);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color .17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 54px 0 0 36px;
  gap: 28px;
}
.mobile-nav a {
  color: var(--c-main);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--c-retro-yellow);
  border-radius: 10px;
  padding: 11px 24px;
  margin-bottom: 2px;
  opacity: 0.95;
  box-shadow: 0 2px 13px -4px #fdb44d77;
  transition: background .19s, color .19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--c-retro-red);
  background: var(--c-retro-bg);
  opacity: 1;
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-wrap: wrap;
    height: auto;
    padding: 0 8px;
    gap: 10px;
  }
  .main-nav {
    gap: 7px;
  }
  .main-nav .cta-primary {
    margin-left: 3px;
  }
}
@media (max-width: 820px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- HERO / CTA SECTIONS --- */
.hero-section, .cta-section {
  background: var(--c-retro-yellow);
  border-radius: 24px;
  margin-top: 32px;
  margin-bottom: 60px;
  box-shadow: 0 8px 40px -7px #e2be2972;
  padding: 44px 0 44px 0;
  display: flex;
  align-items: center;
  min-height: 265px;
  position: relative;
}
.hero-section h1, .cta-section h2 {
  color: var(--c-main-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero-section p, .cta-section p {
  color: #846f39;
  margin-bottom: 28px;
  font-size: 1.13rem;
}
.cta-primary {
  display: inline-block;
  font-family: var(--font-display);
  background: var(--c-retro-orange);
  color: #48330F;
  font-size: 1.18rem;
  font-weight: bold;
  padding: 15px 36px;
  border-radius: 17px;
  margin-top: 10px;
  box-shadow: 0 7px 29px -10px #E4B65E;
  border: none;
  outline: none;
  transition: background .23s, box-shadow .2s, color .18s, transform .13s;
  letter-spacing: .7px;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--c-retro-red);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 11px 28px -10px #CE5A5777;
}

/* --- FLEXBOX PATTERNS AS REQUIRED --- */
.feature-grid, .specialty-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 22px;
}
.feature-grid li,
.specialty-grid > div {
  background: var(--c-retro-bg);
  color: var(--c-main-dark);
  font-family: var(--font-display);
  font-size: 1.04rem;
  padding: 19px 26px;
  border-radius: 15px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px -6px #98421b35;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 230px;
  border: 2px solid var(--c-retro-olive);
  transition: box-shadow .21s, border-color .17s;
}
.feature-grid li:hover, .specialty-grid > div:hover {
  border-color: var(--c-retro-orange);
  box-shadow: 0 4px 20px -6px #fdb44d50;
}

.quick-links {
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 1.07rem;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.quick-links a {
  color: var(--c-retro-red);
  border-bottom: 1px solid var(--c-retro-red);
  transition: color .19s, border-color .17s;
}
.quick-links a:hover { color: var(--c-main-dark); border-color: var(--c-main-dark); }

/* --- TESTIMONIALS --- */
.testimonials-section {
  background: var(--c-retro-bg);
  padding: 40px 18px 30px 18px;
  border-radius: 20px;
  margin-bottom: 60px;
}
.testimonials-section h2 {
  color: var(--c-retro-brown);
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--c-white);
  border-left: 6px solid var(--c-retro-orange);
  border-radius: 13px;
  margin-bottom: 20px;
  min-width: 220px;
  box-shadow: 0 4px 18px -5px #966f2150;
  transition: box-shadow .16s, border-color .13s;
}
.testimonial-card:last-child { margin-bottom: 0; }
.testimonial-card:hover {
  box-shadow: 0 7px 24px -4px #e5a31d20;
  border-color: var(--c-retro-red);
}
.testimonial-content p {
  color: #473E36;
  font-family: var(--font-body);
  font-size: 1.08rem;
  margin-bottom: 9px;
}
.testimonial-content strong {
  font-size: 1.05rem;
  color: var(--c-main-dark);
  letter-spacing: 0.5px;
}
.testimonial-content span {
  color: var(--c-retro-orange);
  font-size: 1.14rem;
  letter-spacing: 2.5px;
}

/* --- CARD CONTAINERS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  min-width: 210px;
  background: var(--c-retro-bg);
  border-radius: 15px;
  box-shadow: 0 3px 18px -8px #a7927766;
  padding: 26px 20px;
  transition: box-shadow .19s, background .18s;
}
.card:hover {
  background: #f5e7d1;
  box-shadow: 0 3px 35px -6px #eab05f42;
}

.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- SPECIALIST/PROVIDER LIST --- */
.provider-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 14px 0;
}
.doctor-profile {
  background: var(--c-retro-bg);
  border: 2px dotted var(--c-retro-brown);
  box-shadow: 0 2px 15px -8px #eab05f81;
  border-radius: 17px;
  padding: 22px 24px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.08rem;
  transition: border-color .17s, box-shadow .18s;
}
.doctor-profile:hover {
  border-color: var(--c-retro-orange);
  box-shadow: 0 4px 17px -4px #fdb44d66;
}
.doctor-profile strong {
  color: var(--c-retro-red);
  font-size: 1.19rem;
  font-family: var(--font-display);
}
.doctor-profile span {
  color: var(--c-main);
  opacity: .8;
  font-size: 1.02rem;
}
.specialty-tags {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.specialty-tags span {
  background: var(--c-retro-yellow);
  color: var(--c-retro-red);
  font-size: 0.99rem;
  font-family: var(--font-display);
  letter-spacing: .7px;
  border-radius: 6px;
  padding: 5px 13px;
  margin-bottom: 6px;
  border: 1px solid var(--c-retro-olive);
}

/* --- ACCORDION FAQ --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: #fff8e9;
  border-radius: 12px;
  border-left: 6px solid var(--c-retro-orange);
  padding: 20px 26px 15px 23px;
  box-shadow: 0 4px 14px -8px #c8ac72;
  margin-bottom: 0;
  transition: box-shadow .18s, border-color .15s;
}
.faq-item strong {
  font-family: var(--font-display);
  color: var(--c-main-dark);
  margin-bottom: 8px;
  display: block;
}
.faq-item:hover {
  border-color: var(--c-retro-red);
  box-shadow: 0 6px 21px -9px #dbba5aa3;
}

/* --- TABLES --- */
table, th, td {
  border-radius: 6px;
}
table {
  background: var(--c-retro-bg);
  box-shadow: 0 2px 16px -9px #b9b59a76;
  margin-bottom: 24px;
}
th {
  font-family: var(--font-display);
  color: var(--c-main);
}
td {
  color: #594826;
}
tr:nth-child(odd) td {
  background: #f9ebd3;
}

/* --- FOOTER --- */
footer {
  background: var(--c-retro-brown);
  color: #fff8e9;
  padding: 32px 0 0 0;
  font-size: 0.99rem;
  margin-top: 68px;
  border-top: 5px solid var(--c-retro-orange);
}
footer .container {
  padding-bottom: 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.footer-contact img {
  margin-top: 8px;
  filter: sepia(0.3) contrast(1.03);
}
.footer-contact p {
  color: #fff4e0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-contact a { color: #ffe185; text-decoration: underline; }
.footer-contact a:hover { color: var(--c-retro-red); }
.footer-nav, .footer-legal {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav ul, .footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-nav strong, .footer-legal strong {
  color: var(--c-retro-yellow);
  font-size: 1.11rem;
  margin-bottom: 6px;
}
.footer-nav a, .footer-legal a {
  color: #fff8e9;
  transition: color .17s;
}
.footer-nav a:hover, .footer-legal a:hover {
  color: var(--c-retro-orange);
}
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
}
.footer-social strong {
  color: #ffe185;
  font-size: 1.04rem;
}
.footer-social a img {
  height: 27px;
  opacity: .89;
  filter: drop-shadow(0 2px 4px #aa903399);
  margin-right: 5px;
  transition: filter .18s, opacity .17s;
}
.footer-social a:hover img {
  filter: brightness(1.1) drop-shadow(0 0 11px #fdb44d23);
  opacity: 1;
}
.footer-bottom {
  border-top: 1px solid #aa903377;
  margin-top: 33px;
  padding: 14px 0 10px 0;
  text-align: center;
  font-size: 0.98rem;
  color: #ffe185;
  letter-spacing: .3px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff8e4;
  border-top: 3px solid var(--c-retro-orange);
  box-shadow: 0 -2px 18px -11px #9e8f6e80;
  z-index: 13000;
  padding: 24px 10vw 20px 10vw;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: banner-in .5s cubic-bezier(.5,0,.13,1.16);
}
@keyframes banner-in {
  0% { transform: translateY(100%); opacity:0; }
  80% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  color: #6B4620;
  font-size: 1rem;
  flex: 1 1 320px;
  margin-right: 15px;
}
.cookie-banner__buttons {
  display: flex;
  gap: 14px;
}
.cookie-banner__btn {
  background: var(--c-retro-orange);
  color: #3C2307;
  font-family: var(--font-display);
  font-size: 1.03rem;
  border-radius: 9px;
  padding: 10px 19px;
  margin-right: 4px;
  border: none;
  outline: none;
  transition: background .2s, color .15s, box-shadow .17s;
  box-shadow: 0 2px 12px -7px #fdb44d81;
}
.cookie-banner__btn:hover, .cookie-banner__btn:focus {
  background: var(--c-retro-red);
  color: #fff;
}
.cookie-banner__btn.settings {
  background: var(--c-retro-brown);
  color: #fff8e2;
  border: 1.6px solid var(--c-retro-orange);
}

/* --- COOKIE PREFERENCES MODAL --- */
#cookie-modal-overlay {
  position: fixed;
  z-index: 13001;
  inset: 0;
  background: #0008;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn .26s;
}
#cookie-modal {
  background: #fff7e9;
  border-radius: 24px;
  max-width: 440px;
  width: 90vw;
  padding: 34px 28px 24px 28px;
  position: relative;
  box-shadow: 0 17px 44px -16px #9e865c80;
  color: var(--c-main-dark);
  text-align: left;
  animation: modalIn .38s cubic-bezier(.7,0,.23,1.1);
  display: flex;
  flex-direction: column;
  gap: 17px;
}
@keyframes fadeIn {
  from { opacity:0; } to { opacity:1; }
}
@keyframes modalIn {
  0% { transform: scale(.91) translateY(65px); opacity: 0; }
  65% { opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
#cookie-modal h2 {
  font-size: 1.36rem;
  color: var(--c-retro-red);
  margin-bottom: 9px;
  font-family: var(--font-display);
}
.cookie-category {
  margin-bottom: 19px;
  padding-bottom: 9px;
  border-bottom: 1.4px dashed #d3bd92;
}
.cookie-category label {
  margin-left: 9px;
  color: var(--c-main-dark);
}
.cookie-category input[type=checkbox], .cookie-category input[type=radio] {
  accent-color: var(--c-retro-orange);
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}
#cookie-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--c-retro-red);
  font-size: 1.7rem;
  cursor: pointer;
  transition: color .15s;
}
#cookie-modal-close:hover, #cookie-modal-close:focus { color: #805038; }

/* --- UTILITY CLASSES --- */
.hidden { display: none !important; }
.opacity-0 { opacity: 0; }
.visually-hidden { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1050px) {
  .hero-section, .cta-section {
    padding: 38px 0 38px 0;
  }
  .content-wrapper, .footer .content-wrapper {
    gap: 8px;
  }
}
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero-section, .cta-section, .section, .testimonials-section {
    padding: 32px 11px 32px 11px;
    border-radius: 17.5px;
  }
  .feature-grid li, .specialty-grid > div, .doctor-profile {
    min-width: 160px;
    font-size: .95rem;
    padding: 14px 13px;
  }
  .footer .content-wrapper {
    gap: 18px;
    flex-wrap: wrap;
  }
  .cookie-banner {
    padding: 20px 2vw 14px 4vw;
  }
}
@media (max-width: 768px) {
  html { font-size: 96.5%; }
  .container {
    padding: 0 5px;
  }
  .hero-section, .cta-section, .section, .testimonials-section {
    padding: 18px 5px 24px 5px;
    border-radius: 12px;
    margin-bottom: 30px;
  }
  .content-wrapper {
    gap: 5px;
  }
  .feature-grid, .specialty-grid, .provider-list {
    gap: 12px;
  }
  .feature-grid li, .specialty-grid > div {
    min-width: 120px;
    font-size: .93rem;
    padding: 10px 8px;
  }
  .testimonials-section h2, .section h2, h1 {
    margin-bottom: 13px;
  }
  .testimonial-card {
    padding: 14px 8px;
    border-radius: 8px;
    gap: 11px;
  }
  .card {
    padding: 14px 8px;
    border-radius: 7px;
    font-size: .97rem;
  }
  .footer .content-wrapper {
    flex-direction: column;
    gap: 10px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 9px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 13px 7px 11px 7px;
    font-size: .94rem;
  }
  #cookie-modal {
    max-width: 98vw;
    padding: 21px 8px 14px 8px;
  }
  .mobile-nav {
    margin: 34px 0 0 10px;
    gap: 18px;
  }
  .mobile-menu-close { margin: 12px 15px 0 0; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  .content-wrapper, .footer .content-wrapper {
    gap: 5px;
  }
  .hero-section, .cta-section, .section, .testimonials-section {
    border-radius: 7px;
    margin-bottom: 21px;
  }
}

/* --- FORCED MOBILE COLUMN FLEX --- */
@media (max-width: 768px) {
  .feature-grid, .specialty-grid, .provider-list, .content-grid, .card-container {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 13px !important;
    align-items: center !important;
  }
}

/* --- MISC VINTAGE DECORATIVE PATTERNS --- */
.hero-section, .cta-section {
  background: repeating-linear-gradient(
    135deg,
    var(--c-retro-yellow),
    var(--c-retro-yellow) 40px,
    #ffefd0 40px,
    #ffefd0 80px
  );
  border: 3.5px double var(--c-retro-orange);
}
.feature-grid li, .card, .doctor-profile, .faq-item, .testimonial-card {
  border-style: dashed;
  border-width: 1.5px;
  border-color: #ede2b7;
}
.feature-grid li::before, .specialty-grid > div::before {
  display: none;
}

/* Decorative underline on headings for retro touch */
h2::after, h1::after {
  content: '';
  display: block;
  margin: 8px 0 0 0;
  width: 64px;
  height: 3px;
  background: var(--c-retro-orange);
  border-radius: 3px;
}
h1::after { width: 90px; height: 4px; }

/* ========== END CSS =========*/
