/* Altmis — about page-specific styles */

/* ─── Altmis design tokens (Global Design System v1) ─────────────── */
:root {
      /* seed six, bound to the Altmis brand palette */
      --bg:      #FAF9F7;   /* Off-White — page background */
      --surface: #FFFFFF;   /* Pure White — cards, raised areas */
      --fg:      #221B1E;   /* Charcoal — headings */
      --muted:   #7A7276;   /* Muted Grey — secondary text */
      --border:  #F0E1E8;   /* Border / divider */
      --accent:  #E0167C;   /* Primary Pink */

      /* brand extensions (all hex lives here only) */
      --accent-dark:  #B7115F;  /* pink hover / pressed */
      --accent-2:     #FF5FA2;  /* gradient end stop */
      --blush:        #FDF1F6;  /* blush tint section bg */
      --rose:         #FFF6FA;  /* soft rose card bg */
      --offwhite:     #FAF9F7;  /* off-white section bg */
      --ink:          #3A3238;  /* soft black body text */
      --trust:        #2F7D5A;  /* verified-patient green (sparing) */
      --grad:         linear-gradient(135deg, #E0167C, #FF5FA2);
      --accent-soft:  color-mix(in oklch, var(--accent) 14%, transparent);
      --shadow-soft:  0 8px 24px rgba(224, 22, 124, 0.08);
      --shadow-lift:  0 16px 40px rgba(224, 22, 124, 0.14);

      /* type */
      --font-display: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
      --font-body:    'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
      --font-mono:    ui-monospace, 'SF Mono', Menlo, monospace;

      /* scale */
      --fs-h1: clamp(40px, 5.2vw, 64px);
      --fs-h2: clamp(30px, 3.6vw, 44px);
      --fs-h3: 21px;
      --fs-lead: 17px;
      --fs-body: 15.5px;
      --fs-meta: 13px;

      /* spacing — 8pt grid */
      --gap-xs: 8px; --gap-sm: 12px; --gap-md: 20px;
      --gap-lg: 32px; --gap-xl: 56px; --gap-2xl: 96px;
      --container: 1180px;
      --gutter: 24px;

      --radius: 12px;
      --radius-card: 20px;
      --radius-pill: 999px;
      --header-h: 76px;
    }

.bg-rose     { background: var(--rose); }

.stack { display: flex; flex-direction: column; }

.row { display: flex; align-items: center; gap: var(--gap-md); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-lg); }

/* ─── type ─────────────────────────────────────────────────────── */
h1, .h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.01em; margin: 0; font-weight: 400; }

.meta { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); }

.btn-white { background: var(--surface); color: var(--accent-dark); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14); }

.btn-white:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2); }

.btn-outline-white { background: transparent; color: var(--surface); border-color: rgba(255, 255, 255, 0.85); }

.btn-outline-white:hover { background: var(--surface); color: var(--accent-dark); }

.brand .brand-logo {
      height: 48px; width: auto; display: block;
    }

/* ─── page hero (compact) ──────────────────────────────────────── */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(44px, 6vw, 72px); }

.hero-blob {
      position: absolute; top: -30%; right: -8%;
      width: min(560px, 58vw); aspect-ratio: 1; border-radius: 50%;
      background: radial-gradient(circle, rgba(224, 22, 124, 0.14), rgba(255, 95, 162, 0.05) 62%, transparent 72%);
      filter: blur(10px); pointer-events: none;
    }

.breadcrumb {
      display: flex; align-items: center; gap: 8px;
      font-size: 13px; color: var(--muted); margin-bottom: 22px; position: relative;
    }

.breadcrumb a { color: var(--muted); transition: color 0.2s ease; }

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb .sep { opacity: 0.55; }

.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 16px; position: relative; }

.page-hero h1 em { font-style: normal; color: var(--accent); }

.page-hero .lead { position: relative; color: color-mix(in oklch, var(--muted) 45%, var(--ink)); font-weight: 400; }

/* ─── image placeholder (never a broken <img>) ─────────────────── */
.ph-img {
      background: linear-gradient(150deg, var(--rose), var(--blush));
      border: 1px dashed color-mix(in oklch, var(--accent) 35%, var(--border));
      border-radius: var(--radius-card);
      aspect-ratio: 16 / 10;
      display: grid; place-items: center; text-align: center;
      color: var(--muted); font-family: var(--font-mono);
      font-size: 12px; letter-spacing: 0.06em; line-height: 1.7;
      padding: 20px;
    }

.ph-img.portrait { aspect-ratio: 4 / 5; }

.ph-img .ph-tag { color: var(--accent); font-weight: 600; display: block; margin-bottom: 4px; }

/* ─── meet the doctor ──────────────────────────────────────────── */
.doctor-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--gap-2xl); align-items: center; }

.doctor-photo { position: relative; }

.doctor-photo .ph-img { border-radius: 28px; box-shadow: var(--shadow-lift); }

.doctor-photo .doctor-portrait {
      display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
      border-radius: 28px; box-shadow: var(--shadow-lift);
    }

.doctor-name { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 32px); font-weight: 400; color: var(--fg); margin: 0 0 4px; }

.doctor-creds { font-size: 14.5px; color: var(--muted); margin: 0 0 24px; }

.doctor-bio p { font-size: 15px; line-height: 1.75; color: var(--ink); margin-bottom: 16px; }

.doctor-bio p:last-of-type { margin-bottom: 0; }

.cred-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.cred-pill {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 8px 16px; border-radius: var(--radius-pill);
      background: var(--surface); border: 1.5px solid color-mix(in oklch, var(--trust) 45%, var(--surface));
      color: var(--trust); font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

.cred-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(47, 125, 90, 0.16); }

.cred-pill svg { width: 14px; height: 14px; flex: none; }

/* ─── our legacy ─────────────────────────────────────────────── */
.legacy-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--gap-2xl); align-items: center; }

.legacy-copy { margin-top: 26px; }

.legacy-copy p { font-size: 15px; line-height: 1.8; color: var(--ink); margin-bottom: 16px; }

.legacy-copy p:last-of-type { margin-bottom: 0; }

.legacy-stats { display: grid; gap: 14px; }

.stat-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-card); padding: 22px 26px;
      box-shadow: var(--shadow-soft); display: flex; align-items: center; gap: 18px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.stat-num {
      font-family: var(--font-display); font-size: clamp(30px, 3vw, 40px); font-weight: 500;
      line-height: 1; flex: none; min-width: 2.6ch;
      background: var(--grad);
      -webkit-background-clip: text; background-clip: text; color: transparent;
    }

.stat-label { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.legacy-note {
      border-radius: var(--radius-card); padding: 18px 22px;
      background: var(--accent-soft); color: var(--accent-dark);
      font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-align: center;
    }

/* ─── doctor credential card ─────────────────────────────────── */
.doctor-cred-card {
      margin-top: 22px; background: var(--surface); border: 1px solid var(--border);
      border-left: 4px solid var(--accent); border-radius: var(--radius-card);
      padding: 22px 24px; box-shadow: var(--shadow-soft);
    }

.doctor-cred-card .dc-name {
      font-family: var(--font-display); font-size: 18px; font-weight: 600;
      letter-spacing: 0.05em; color: var(--fg); margin: 0 0 8px;
    }

.doctor-cred-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin: 0; }

/* ─── philosophy pillars ───────────────────────────────────────── */
.pillar-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-card); padding: 30px 26px;
      box-shadow: var(--shadow-soft);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

.pillar-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.pillar-icon {
      width: 48px; height: 48px; border-radius: 14px;
      background: var(--accent-soft); color: var(--accent);
      display: grid; place-items: center; margin-bottom: 20px;
    }

.pillar-icon svg { width: 22px; height: 22px; }

.pillar-card h3 { font-size: 17px; margin-bottom: 8px; }

.pillar-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ─── clinic gallery ───────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }

.gallery-item {
      border-radius: var(--radius-card); overflow: hidden;
      box-shadow: var(--shadow-soft);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.gallery-item .ph-img {
      border-radius: 0; border: 0; aspect-ratio: 4 / 3;
      transition: transform 0.45s ease;
    }

.gallery-item:hover .ph-img { transform: scale(1.045); }

.gallery-item img {
      display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
      transition: transform 0.45s ease;
    }

.gallery-item:hover img { transform: scale(1.045); }

.gallery-caption { text-align: center; margin-top: 26px; font-size: 14px; color: var(--muted); }

/* ─── gallery lightbox ─────────────────────────────────────────── */
.gallery-item { position: relative; cursor: zoom-in; }

.gallery-item::after {
      content: ''; position: absolute; right: 10px; bottom: 10px;
      width: 32px; height: 32px; border-radius: 50%; pointer-events: none;
      background: rgba(32, 30, 30, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.35-4.35M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 16px no-repeat;
      opacity: 0; transition: opacity 0.25s ease;
    }

.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }

.lightbox {
      position: fixed; inset: 0; z-index: 3000; padding: 20px;
      display: flex; align-items: center; justify-content: center;
      background: rgba(24, 22, 22, 0.94);
      opacity: 0; visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox img {
      max-width: min(1080px, 92vw); max-height: 80vh;
      width: auto; height: auto; object-fit: contain;
      border-radius: var(--radius-card);
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
      transform: scale(0.96); transition: transform 0.3s ease;
    }

.lightbox.open img { transform: scale(1); }

.lightbox-btn {
      position: absolute; width: 46px; height: 46px; border-radius: 50%;
      background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25);
      color: #fff; display: grid; place-items: center; cursor: pointer;
      transition: background 0.2s ease, border-color 0.2s ease;
    }

.lightbox-btn:hover { background: var(--accent); border-color: var(--accent); }

.lightbox-btn svg { width: 20px; height: 20px; }

.lightbox-close { top: 20px; right: 20px; }

.lightbox-prev { left: 20px; top: 50%; translate: 0 -50%; }

.lightbox-next { right: 20px; top: 50%; translate: 0 -50%; }

.lightbox-caption {
      position: absolute; bottom: 22px; left: 50%; translate: -50% 0;
      color: rgba(255, 255, 255, 0.85); font-size: 14px; text-align: center;
      max-width: 90vw; margin: 0;
    }

.lightbox-count {
      position: absolute; top: 30px; left: 50%; translate: -50% 0;
      color: rgba(255, 255, 255, 0.6); font-family: var(--font-mono); font-size: 13px;
    }

body.lightbox-open { overflow: hidden; }

@media (max-width: 768px) {
      .lightbox-btn { width: 42px; height: 42px; }
      .lightbox-prev { left: 10px; }
      .lightbox-next { right: 10px; }
      .lightbox-close { top: 14px; right: 14px; }
    }

/* ─── credentials strip ────────────────────────────────────────── */
.cred-strip { padding-block: 34px; border-block: 1px solid var(--border); }

.cred-strip-row {
      display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
      gap: 14px 36px; text-align: center;
    }

.cred-strip-item { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--ink); }

.cred-strip-item .chip-dot {
      width: 30px; height: 30px; border-radius: 50%; flex: none;
      background: color-mix(in oklch, var(--trust) 12%, var(--surface)); color: var(--trust);
      display: grid; place-items: center;
    }

.cred-strip-item .chip-dot svg { width: 15px; height: 15px; }

.cred-strip-item .reg { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }

/* ─── final CTA band ───────────────────────────────────────────── */
.cta-band { background: var(--accent); color: var(--offwhite); }

.cta-band-inner { text-align: center; max-width: 640px; margin-inline: auto; }

.cta-band h2 { color: var(--surface); margin-bottom: 14px; }

.cta-band p { color: rgba(255, 255, 255, 0.82); font-size: var(--fs-lead); font-weight: 300; margin-bottom: 32px; }

.cta-band .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ─── responsive: 1024px ───────────────────────────────────────── */
@media (max-width: 1024px) {
      .main-nav, .header-ctas { display: none; }
      .hamburger { display: flex; }
      .doctor-split, .legacy-split { gap: var(--gap-xl); }
      .grid-4 { grid-template-columns: repeat(2, 1fr); }
      .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    }

/* ─── responsive: 768px ────────────────────────────────────────── */
@media (max-width: 768px) {
      :root { --header-h: 68px; }
      body { padding-bottom: 54px; } /* clear the mobile CTA bar */
      .section { padding-block: 48px; }
      .page-hero { padding-block: 36px 44px; }
      .doctor-split, .legacy-split, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
      .doctor-photo { max-width: 400px; }
      .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
      .cred-strip-row { flex-direction: column; gap: 14px; align-items: flex-start; }
      .wa-float { bottom: 76px; right: 16px; width: 52px; height: 52px; }
      .mobile-cta-bar { display: flex; }
      /* footer accordion */
      .footer-grid { grid-template-columns: 1fr; gap: 8px; padding-block: 48px 32px; }
      .f-col { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
      .f-acc {
        display: flex; width: 100%; align-items: center; justify-content: space-between;
        background: none; border: 0; padding: 16px 0;
        color: var(--surface); font-size: 13px; font-weight: 600;
        letter-spacing: 0.1em; text-transform: uppercase;
      }
      .f-acc::after { content: '+'; font-size: 18px; color: var(--accent-2); transition: transform 0.25s ease; }
      .f-col.open .f-acc::after { transform: rotate(45deg); }
      .f-col h4 { display: none; }
      .f-col .f-list { display: none; padding-bottom: 18px; }
      .f-col.open .f-list { display: flex; }
      .footer-bottom { justify-content: center; text-align: center; }
    }
