/* ==========================================================================
   HANARA MEDICAL: design tokens
   Premium health-tech identity: editorial serif + clean sans in a warm,
   tactile palette of ivory, biscotti, antique wood, linen and espresso.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&family=Inter:wght@400;500;600&display=swap');

:root{
  --ink:        #644736;
  --ink-soft:   #765A48;
  --paper:      #EDE6DA;
  --panel:      #F7F1E8;
  --accent:     #9E7655;
  --accent-dark:#9E7655;
  --accent-deep:#644736;
  --accent-tint:#E5D5C4;
  --sage:       #9E7655;
  --line:       #CFBDAA;
  --line-soft:  #DED0C1;

  --chalk-dark: #B59F8C;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1180px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

h1,h2,h3,h4{
  font-family:var(--serif);
  font-weight:500;
  line-height:1.12;
  margin:0 0 0.5em;
  letter-spacing:-0.01em;
  color:var(--ink);
}
h1{ font-size:clamp(2.4rem, 5vw, 3.6rem); font-weight:500; }
h2{ font-size:clamp(1.7rem, 3.2vw, 2.4rem); }
h3{ font-size:1.25rem; }
p{ margin:0 0 1em; color:var(--ink-soft); }
.lede{ font-size:1.15rem; color:var(--ink-soft); max-width:38em; }

.wrap{ max-width:var(--max); margin:0 auto; padding:0 28px; }
section{ padding:88px 0; }
@media (max-width:780px){ section{ padding:56px 0; } }

.label{
  display:inline-flex; align-items:center; gap:9px;
  font-family:var(--sans); font-size:0.82rem; font-weight:600;
  color:var(--accent-dark); margin-bottom:18px;
}
.label::before{
  content:""; width:14px; height:2px; background:var(--accent);
  display:inline-block;
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:14px 26px; font-family:var(--sans); font-weight:600; font-size:0.98rem;
  border-radius:3px; border:1px solid transparent; cursor:pointer;
  transition:background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--accent-deep); color:var(--paper); }
.btn-primary:hover{ background:var(--accent-dark); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--chalk-dark); }
.btn-ghost:hover{ background:var(--chalk-dark); color:var(--paper); }
.btn-accent{ background:var(--accent); color:var(--ink); }
.btn-accent:hover{ background:var(--accent-dark); }
.btn-founding{ background:var(--accent-deep); color:var(--paper); }
.btn-founding:hover{ background:#51382B; }
.btn-block{ width:100%; }

/* Nav */
header.site{
  position:sticky; top:0; z-index:40;
  background:rgba(237,230,218,0.92); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:18px 28px; max-width:var(--max); margin:0 auto; }
.wordmark{ font-family:var(--serif); font-size:1.35rem; font-weight:600; letter-spacing:0.02em; }
.wordmark .dot{ color:var(--accent); }
.navlinks{ display:flex; align-items:center; gap:30px; font-size:0.94rem; font-weight:500; }
.navlinks a{ color:var(--ink-soft); transition:color .15s ease; }
.navlinks a:hover{ color:var(--ink); }
.navcta{ display:flex; align-items:center; gap:14px; }
.navtoggle{ display:none; background:none; border:none; cursor:pointer; }
@media (max-width:900px){
  .navlinks{ display:none; }
  .navtoggle{ display:block; }
}

/* Hero */
.hero{ padding:72px 0 96px; }
.hero-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:64px; align-items:start; }
@media (max-width:900px){ .hero-grid{ grid-template-columns:1fr; gap:40px; } }
.hero-title-wrap{
  position:relative; width:100%; aspect-ratio:16/9;
  border-radius:4px; overflow:hidden; margin-bottom:26px;
}
.hero-title-wrap img{
  width:100%; height:100%;
  object-fit:contain; display:block;
}
.hero-title-wrap h1{
  position:absolute; left:0; right:0; bottom:18px;
  margin:0; padding:0 22px; z-index:1;
}
.hero-cta{ display:flex; gap:14px; margin-top:30px; flex-wrap:wrap; }

/* Verified profile card mockup (hero visual) */
.vcard{
  background:var(--panel); border:1px solid var(--line); border-radius:6px;
  padding:28px; box-shadow:0 24px 60px -30px rgba(100,71,54,0.38);
}
.vcard-top{ display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.vcard-avatar{ width:52px; height:52px; border-radius:50%; background:var(--accent-tint); border:1px solid var(--line); flex-shrink:0; }
.vcard-name{ font-family:var(--serif); font-size:1.1rem; font-weight:600; }
.vcard-role{ font-size:0.86rem; color:var(--sage); }
.vbadge{
  display:inline-flex; align-items:center; gap:6px;
  background:var(--accent-tint); color:var(--accent-dark);
  font-size:0.78rem; font-weight:600; padding:5px 10px; border-radius:3px;
  margin-bottom:16px;
}
.vbadge svg{ width:12px; height:12px; }
.vlist{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.vlist li{ display:flex; align-items:center; gap:10px; font-size:0.9rem; color:var(--ink-soft); }
.vlist svg{ width:16px; height:16px; flex-shrink:0; color:var(--accent); }
.vcard hr{ border:none; border-top:1px solid var(--line-soft); margin:18px 0; }

/* Pillars */
.pillars{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.pillar{ background:var(--panel); padding:36px 32px; }
.pillar svg{ width:30px; height:30px; color:var(--accent); margin-bottom:20px; }
@media (max-width:820px){ .pillars{ grid-template-columns:1fr; } }

/* Journey (numbered sequence) */
.journey{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; counter-reset:step; }
.journey .step{ position:relative; padding:0 24px 0 0; border-left:1px solid var(--line); padding-left:24px; }
.journey .step:first-child{ border-left:none; padding-left:0; }
.step-num{ font-family:var(--serif); font-size:1.6rem; color:var(--accent); margin-bottom:10px; }
@media (max-width:820px){
  .journey{ grid-template-columns:1fr; gap:28px; }
  .journey .step{ border-left:none; padding-left:0; padding-bottom:0; }
}

/* Section split */
.split{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:64px; align-items:start; }
@media (max-width:900px){ .split{ grid-template-columns:1fr; gap:32px; } }
.checklist{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:16px; }
.checklist li{ display:flex; gap:14px; align-items:flex-start; }
.checklist svg{ width:18px; height:18px; color:var(--accent); flex-shrink:0; margin-top:3px; }
.checklist strong{ color:var(--ink); display:block; font-size:0.98rem; }
.checklist span{ color:var(--sage); font-size:0.9rem; }

/* Founding programme */
.founding{ background:var(--paper); color:var(--ink); border-radius:0; }
.founding .label{ color:var(--accent-deep); }
.founding .label::before{ background:var(--accent-deep); }
.founding h2{ color:var(--ink); }
.founding p{ color:var(--ink-soft); }
.founding-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:0;
  background-image:url("founders-card-bg.jpeg"); background-size:cover; background-position:center 52%;
  border:1px solid var(--accent-deep); margin:40px 0 36px; overflow:hidden;
}
.founding-card{ background:transparent; padding:28px 24px; position:relative; border-right:1px solid var(--accent-deep); }
.founding-card:last-child{ border-right:0; }
.founding-card h3, .founding-card p{ position:relative; z-index:1; text-shadow:0 1px 6px rgba(237,230,218,0.72); }
.founding-card h3{ color:var(--ink); font-size:1.05rem; }
.founding-card p{ color:var(--ink-soft); font-size:0.9rem; margin:0; }
@media (max-width:900px){
  .founding-grid{ grid-template-columns:1fr 1fr; }
  .founding-card{ border-bottom:1px solid var(--accent-deep); }
  .founding-card:nth-child(2n){ border-right:0; }
  .founding-card:nth-last-child(-n+2){ border-bottom:0; }
}
@media (max-width:560px){
  .founding-grid{ grid-template-columns:1fr; }
  .founding-card{ border-right:0; border-bottom:1px solid var(--accent-deep); }
  .founding-card:nth-last-child(2){ border-bottom:1px solid var(--accent-deep); }
  .founding-card:last-child{ border-bottom:0; }
}

/* Patient CTA band */
.band{ background:var(--accent-tint); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.band-inner{ display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; }
.band h2{ margin-bottom:8px; }
.band p{ margin:0; max-width:34em; }

/* Standards teaser */
.standards{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
@media (max-width:900px){ .standards{ grid-template-columns:1fr; gap:32px; } }
.standards-card{ background:var(--panel); border:1px solid var(--line); padding:32px; }
.standards-card .vbadge{ margin-bottom:20px; }

/* Footer */
footer.site{ border-top:1px solid var(--line); padding:56px 0 32px; }
.foot-grid{ display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:32px; margin-bottom:48px; }
@media (max-width:820px){ .foot-grid{ grid-template-columns:1fr 1fr; } }
.foot-grid h4{ font-family:var(--sans); font-size:0.85rem; font-weight:600; color:var(--ink); margin-bottom:14px; }
.foot-grid ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.foot-grid a{ color:var(--sage); font-size:0.9rem; }
.foot-grid a:hover{ color:var(--ink); }
.foot-legal{ border-top:1px solid var(--line); padding-top:24px; font-size:0.82rem; color:var(--sage); display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.disclaimer{ font-size:0.82rem; color:var(--sage); max-width:60em; margin-top:18px; }

/* Forms */
.form-panel{ background:var(--panel); border:1px solid var(--line); padding:40px; }
@media (max-width:600px){ .form-panel{ padding:26px; } }
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:0.88rem; font-weight:600; margin-bottom:7px; color:var(--ink); }
.field input, .field select, .field textarea{
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:3px;
  font-family:var(--sans); font-size:0.96rem; background:var(--paper); color:var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:2px solid var(--accent); outline-offset:1px; border-color:var(--accent); }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:560px){ .field-row{ grid-template-columns:1fr; } }
.form-step-label{ font-size:0.82rem; font-weight:600; color:var(--accent-dark); margin-bottom:6px; }
.confirm{ text-align:center; padding:40px 20px; }
.confirm svg{ width:44px; height:44px; color:var(--accent); margin:0 auto 20px; }
.hidden{ display:none !important; }

/* ==========================================================================
   Practitioner profile page (additive only: used solely by
   practitioner-profile.html; nothing here alters existing pages)
   ========================================================================== */

.profile-header{ display:grid; grid-template-columns:auto 1fr; gap:28px; align-items:start; }
@media (max-width:640px){ .profile-header{ grid-template-columns:1fr; text-align:center; } .profile-header .profile-avatar-lg{ margin:0 auto; } }
.profile-avatar-lg{ width:96px; height:96px; border-radius:50%; background:var(--accent-tint); border:1px solid var(--line); flex-shrink:0; }
.profile-title-role{ font-size:1rem; color:var(--sage); margin-bottom:14px; }
.profile-stats{ display:flex; gap:32px; flex-wrap:wrap; margin-top:20px; }
@media (max-width:640px){ .profile-stats{ justify-content:center; } }
.profile-stat strong{ display:block; font-family:var(--serif); font-size:1.35rem; color:var(--ink); font-weight:500; }
.profile-stat span{ font-size:0.8rem; color:var(--sage); }

.tag-row{ display:flex; flex-wrap:wrap; gap:10px; }
.tag{ background:var(--accent-tint); color:var(--accent-dark); font-size:0.85rem; font-weight:600; padding:8px 16px; border-radius:20px; }

.cred-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:16px; }
.cred-list li{ border-bottom:1px solid var(--line-soft); padding-bottom:16px; }
.cred-list li:last-child{ border-bottom:none; padding-bottom:0; }
.cred-list strong{ display:block; font-size:0.98rem; color:var(--ink); margin-bottom:3px; }
.cred-list span{ font-size:0.85rem; color:var(--sage); }

.treatment-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
@media (max-width:640px){ .treatment-grid{ grid-template-columns:1fr; } }
.treatment-card{ background:var(--panel); padding:26px; }
.treatment-card h4{ font-family:var(--serif); font-size:1.05rem; margin:0 0 6px; font-weight:500; }
.treatment-card p{ font-size:0.9rem; margin:0; }
.treatment-price{ font-size:0.85rem; color:var(--accent-dark); font-weight:600; margin-top:10px; }

.ba-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:820px){ .ba-grid{ grid-template-columns:1fr; } }
.ba-card{ background:var(--panel); border:1px solid var(--line); border-radius:4px; overflow:hidden; }
.ba-visual{ aspect-ratio:4/3; display:flex; }
.ba-half{ flex:1; display:flex; align-items:center; justify-content:center; font-size:0.76rem; font-weight:600; letter-spacing:0.03em; text-transform:uppercase; }
.ba-half.before{ background:#D8C7B6; color:var(--ink-soft); }
.ba-half.after{ background:var(--accent-tint); color:var(--accent-dark); }
.ba-caption{ padding:14px 16px; font-size:0.82rem; color:var(--sage); }
.ba-caption strong{ display:block; color:var(--ink); font-size:0.9rem; margin-bottom:3px; }

.review-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:820px){ .review-grid{ grid-template-columns:1fr; } }
.review-card{ background:var(--panel); border:1px solid var(--line); padding:26px; }
.stars{ color:var(--accent); font-size:0.95rem; margin-bottom:12px; letter-spacing:2px; }
.review-quote{ font-size:0.92rem; color:var(--ink-soft); margin-bottom:16px; }
.review-name{ font-size:0.82rem; color:var(--sage); font-weight:600; }

.price-table{ width:100%; border-collapse:collapse; }
.price-table th, .price-table td{ text-align:left; padding:14px 16px; border-bottom:1px solid var(--line); font-size:0.92rem; }
.price-table th{ font-size:0.76rem; text-transform:uppercase; letter-spacing:0.04em; color:var(--sage); font-weight:600; }
.price-note{ font-size:0.82rem; color:var(--sage); margin-top:14px; }

.clinic-block{ display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:start; }
@media (max-width:820px){ .clinic-block{ grid-template-columns:1fr; } }
.map-placeholder{ background:var(--accent-tint); border:1px solid var(--line); aspect-ratio:4/3; display:flex; align-items:center; justify-content:center; color:var(--accent-dark); font-size:0.85rem; text-align:center; padding:20px; border-radius:4px; }

.profile-section-title{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:24px; }
