:root {
  /* Clean, Minimalist Palette */
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --ink: #171717;
  --muted: #66645f;
  --line: #dedbd3;
  --primary: #1f4f46;
  --primary-dark: #111c18;
  --accent: #8a6f43;
  --mint: #dfe8df;
  --lemon: #eee8d7;
  --soft: #eeece6;
  --shadow: 0 14px 34px rgba(23, 23, 23, 0.08);
  --shadow-tight: 0 8px 18px rgba(23, 23, 23, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 245, 242, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 7px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
}

.brand strong {
  display: block;
  font-size: 0.96rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #334844;
  font-weight: 650;
  font-size: 0.82rem;
}

.nav-links a {
  border-radius: 8px;
  padding: 7px 10px;
  transition: background 0.2s ease;
}

.nav-links a:hover {
  background: var(--soft);
}

.nav-cta,
.nav-links a.active {
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 7px 10px;
}

.nav-cta:not(.active) {
  background: transparent;
  color: inherit;
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 9px 12px;
  font: inherit;
  cursor: pointer;
}

/* --- Hero Sections --- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 44px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 24px 34px;
}

.hero-content h1,
.section h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(1.72rem, 3.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-content p {
  max-width: 650px;
  color: var(--muted);
  font-size: 0.96rem;
}

.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 24px 20px;
}

.page-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(1.85rem, 4vw, 3.35rem);
  line-height: 1.1;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 0.96rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* --- Buttons --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 180ms ease, opacity 180ms ease;
}

.button:hover {
  opacity: 0.9;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

/* --- Media & Profile Elements --- */
.hero-media {
  position: relative;
}

.hero-media img,
.doctor-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.doctor-photo {
  object-position: center top;
}

.hero-stat {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 148px;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow-tight);
}

.hero-stat strong {
  display: block;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
}

.hero-stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* --- Structure & Grids --- */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 24px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 34px;
}

.copy-stack {
  display: grid;
  gap: 18px;
}

.copy-stack p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  color: var(--primary);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  gap: 34px;
  align-items: start;
}

.about-grid p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* --- Clean Setup for about.html Timeline Components --- */
.info-panel h2 {
  margin-top: 0;
}

.info-panel ul {
  padding-left: 0;
  list-style: none;
}

.info-panel li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--line);
}

.info-panel li:first-of-type {
  border-left-color: var(--primary);
}

/* --- Content Cards & Components --- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 38px;
  gap: 14px;
}

.trust-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  color: var(--muted);
}

.doctor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  padding: 16px;
}

.doctor-card img {
  aspect-ratio: 16 / 11;
  border-radius: 4px;
}

.doctor-card div {
  padding: 6px 0;
}

.doctor-card h3 {
  margin: 0 0 8px;
}

.expertise-grid,
.card-grid,
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.expertise-grid article,
.card-grid article,
.method-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.card-grid article h2,
.card-grid article h3,
.method-grid h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.card-grid article p,
.method-grid p,
.expertise-grid p,
.resource-band p,
.contact-section p,
.policy-copy p {
  color: var(--muted);
  margin-bottom: 0;
}

.large-cards article {
  min-height: 250px;
}

.expertise-grid span {
  color: var(--accent);
  font-weight: 900;
}

.expertise-grid h3 {
  margin: 16px 0 8px;
}

/* --- Contextual Layout Bands --- */
.services-section,
.services-band {
  background: var(--soft);
  max-width: none;
}

.services-section > *,
.services-band > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.service-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  font-weight: 800;
  transition: border-color 0.2s ease;
}

.service-list a:hover {
  border-color: var(--accent);
}

.resource-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.resource-band p {
  max-width: 720px;
}

.pathway {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.steps div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.steps span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  margin-bottom: 12px;
}

.steps p {
  color: var(--muted);
  margin-bottom: 0;
}

/* --- Conversions & Forms --- */
.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 32px;
}

.cta-panel p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
}

.cta-panel .section-kicker {
  color: #d8c59a;
}

.cta-panel .button.primary {
  background: #fff;
  color: var(--primary-dark);
}

.info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  margin-bottom: 20px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.skill-tags span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f6f2;
  color: var(--ink);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.info-panel .skill-tags span {
  background: var(--soft);
}

.condition-list {
  display: grid;
  gap: 14px;
}

.condition-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.condition-list h2,
.condition-list p {
  margin: 0;
}

.condition-list p {
  margin-top: 6px;
  color: var(--muted);
}

.faq-section details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-top: 12px;
  padding: 16px 18px;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 850;
  outline: none;
}

.faq-section p {
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 0;
}

/* --- Galleries & Maps --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.gallery-grid img,
.placeholder-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.placeholder-box,
.map-placeholder {
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--primary-dark);
  font-weight: 900;
}

.gallery-grid figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 750;
}

.map-placeholder {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policy-copy h2 {
  font-size: 1.3rem;
  margin-top: 24px;
  margin-bottom: 8px;
}

/* --- Contact & Forms --- */
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 520px);
  gap: 34px;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  color: var(--primary-dark);
  font-weight: 750;
}
.linkedin-contact-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-dark);
  text-decoration: none;
  margin-top: 4px;
}

.linkedin-contact-link:hover {
  text-decoration: underline;
  color: #0077B5;
}
.appointment-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

label {
  display: grid;
  gap: 7px;
  color: #344b46;
  font-weight: 750;
  font-size: 0.84rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(20, 31, 45, 0.16);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(19, 111, 143, 0.7);
  box-shadow: 0 0 0 4px rgba(19, 111, 143, 0.12);
  outline: none;
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--primary-dark);
  font-weight: 750;
}

.form-intro,
.small-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

/* --- Footer & Floating Elements --- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  background: #f0eee8;
  padding: 26px 24px;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 60px;
}

.footer p,
.footer div {
  max-width: 1180px;
  margin: 0;
}

.footer div {
  display: flex;
  gap: 18px;
}

.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  border-radius: 8px;
  background: #1f4f46;
  color: #fff;
  padding: 12px 15px;
  font-weight: 900;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.05);
}
/* --- Adaptive Breakpoints (Mobiles/Tablets) --- */
@media (max-width: 900px) {
  .linkedin-contact-link {
    font-size: inherit;
  }
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
    text-align: center;
  }
  .menu-button {
    position: relative;
    z-index: 9999;
  }
  
  .topbar a:last-child {
    width: 100%;
    order: -1;
    background: rgba(255,255,255,0.15);
    padding: 4px;
    border-radius: 4px;
  }

  .nav-links {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }
  .cta-panel {
    flex-direction: column; /* Force the button and text to stack vertically */
    align-items: flex-start; /* Align contents cleanly to the left edge */
    gap: 20px; /* Reduce space slightly for mobile convenience */
  }

  /* Triggered cleanly when state changes dynamically via script.js scripts */
  .nav-links.open {
    position: absolute;
    top: 100%;
    right: 24px;
    display: grid;
    width: min(280px, calc(100vw - 48px));
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    box-shadow: var(--shadow);
    z-index: 25;
  }
  
  .nav-links.open a {
    padding: 10px;
  }

  .hero,
  .about-grid,
  .contact-section,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 44px;
  }
  
  .hero-media {
    order: -1; /* Flips image to top layout position on smartphones for reading clarity */
  }

  .trust-strip,
  .expertise-grid,
  .card-grid,
  .service-list,
  .method-grid,
  .steps,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .resource-band,
  .footer,
  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  
  .footer div {
    width: 100%;
    justify-content: flex-start;
  }
  .resources-grid, 
  .guides-grid,
  .grid {
    display: grid !important;
    grid-template-columns: 1fr !important; /* Forces cards into a single column */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

@media (max-width: 560px) {
  .nav {
    padding: 12px 16px;
  }
  
  .nav-links.open {
    right: 16px;
  }

  .hero,
  .section,
  .trust-strip {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-stat {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .brand small {
    display: none;
  }
}
