/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #1c2b2b;
  --ink-soft: #5a6b6b;
  --ink-mute: #93a3a3;
  --line: #e4e0d6;
  --mint: #2f9e8f;
  --mint-deep: #1f7a6e;
  --mint-soft: #e7f4f1;
  --amber: #d49a5c;
  --amber-soft: #f6ecd9;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(31, 80, 70, 0.25);
  --shadow-sm: 0 6px 22px -10px rgba(31, 80, 70, 0.18);
  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: italic; color: var(--mint-deep); font-family: var(--ff-display); font-weight: 500; }

/* ===== Eyebrow ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mint-deep); background: var(--mint-soft);
  padding: 7px 14px; border-radius: 100px; margin-bottom: 22px;
}
.eyebrow.dark { color: var(--mint-deep); background: transparent; padding: 0; margin-bottom: 18px; }
.eyebrow.dark::before { content: ''; width: 26px; height: 2px; background: var(--mint); display: inline-block; margin-right: 10px; vertical-align: middle; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-body); font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: 100px; border: none; cursor: pointer;
  transition: all .25s ease; white-space: nowrap;
}
.btn-primary { background: var(--mint-deep); color: #fff; box-shadow: 0 10px 24px -10px rgba(31,122,110,.6); }
.btn-primary:hover { background: var(--mint); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(31,122,110,.7); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; padding: 16px; }

/* ===== Top Bar ===== */
.topbar { background: var(--ink); color: #cdd8d6; font-size: 13px; }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 10px 32px; display: flex; gap: 28px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item i { color: var(--mint); font-size: 15px; }
.topbar-tel { margin-left: auto; font-weight: 600; color: #fff; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 245, 240, .92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 32px;
  padding: 16px 32px; max-width: 1240px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--mint), var(--mint-deep));
  color: #fff; display: grid; place-items: center; font-size: 20px;
  box-shadow: 0 6px 16px -6px rgba(31,122,110,.5);
}
.brand-text { font-family: var(--ff-display); font-size: 22px; font-weight: 600; color: var(--ink); }
.brand-text em { font-style: italic; color: var(--mint-deep); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--mint); border-radius: 2px; transition: width .25s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--ink); cursor: pointer; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(20,42,38,.88) 0%, rgba(20,42,38,.55) 45%, rgba(20,42,38,.15) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 80px 32px; width: 100%; }
.hero-content .eyebrow { background: rgba(255,255,255,.14); color: #cfeae3; }
.hero h1 { font-family: var(--ff-display); font-size: clamp(42px, 6vw, 76px); line-height: 1.05; font-weight: 600; margin-bottom: 22px; letter-spacing: -.01em; }
.hero h1 em { color: #f0d9a8; }
.hero-content > p { font-size: 18px; max-width: 540px; color: rgba(255,255,255,.85); margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--ff-display); font-size: 38px; font-weight: 600; color: #fff; line-height: 1; }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 6px; letter-spacing: .04em; }

/* ===== About ===== */
.about { padding: 110px 32px; max-width: 1240px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-badge {
  position: absolute; bottom: -24px; right: -16px;
  background: var(--surface); border-radius: var(--radius-sm); padding: 18px 22px;
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow);
}
.about-badge i { font-size: 30px; color: var(--amber); }
.about-badge strong { display: block; font-size: 15px; color: var(--ink); }
.about-badge span { font-size: 12px; color: var(--ink-mute); }
.about-text h2 { font-family: var(--ff-display); font-size: clamp(34px, 4vw, 48px); line-height: 1.1; font-weight: 600; margin-bottom: 22px; }
.about-text p { color: var(--ink-soft); margin-bottom: 18px; font-size: 16px; }
.about-list { display: grid; gap: 12px; margin-top: 24px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.about-list i { color: var(--mint); font-size: 22px; flex-shrink: 0; }

/* ===== Section Head ===== */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-family: var(--ff-display); font-size: clamp(32px, 4vw, 46px); font-weight: 600; line-height: 1.15; margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 16px; }

/* ===== Doctors ===== */
.doctors { padding: 110px 32px; background: var(--surface); }
.doctor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1240px; margin: 0 auto; }
.doctor-card { background: var(--bg); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; border: 1px solid var(--line); }
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.doctor-photo { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.doctor-card:hover .doctor-photo img { transform: scale(1.05); }
.doctor-tag { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: var(--mint-deep); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 100px; backdrop-filter: blur(6px); }
.doctor-body { padding: 26px 24px 30px; }
.doctor-body h3 { font-family: var(--ff-display); font-size: 24px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.doctor-body h3 span { font-family: var(--ff-body); font-size: 13px; font-weight: 500; color: var(--mint-deep); background: var(--mint-soft); padding: 3px 10px; border-radius: 100px; }
.doctor-exp { font-size: 13px; color: var(--ink-mute); margin: 8px 0 14px; }
.doctor-body > p { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.doctor-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.doctor-skills span { font-size: 12px; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); padding: 5px 12px; border-radius: 100px; }

/* ===== Services ===== */
.services { padding: 110px 32px; max-width: 1240px; margin: 0 auto; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: all .3s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--mint), var(--amber)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--mint-soft); color: var(--mint-deep); display: grid; place-items: center; font-size: 28px; margin-bottom: 20px; transition: transform .3s; }
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.05); }
.service-card h3 { font-family: var(--ff-display); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; min-height: 42px; }
.service-price { font-family: var(--ff-display); font-size: 26px; font-weight: 600; color: var(--ink); }
.service-price span { font-size: 13px; color: var(--ink-mute); font-weight: 400; }

/* ===== Booking ===== */
.booking { padding: 110px 32px; background: var(--surface); }
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; max-width: 1240px; margin: 0 auto; align-items: start; }
.booking-info h2 { font-family: var(--ff-display); font-size: clamp(32px, 4vw, 46px); font-weight: 600; line-height: 1.1; margin-bottom: 18px; }
.booking-info > p { color: var(--ink-soft); margin-bottom: 28px; }
.booking-notes { display: grid; gap: 12px; margin-bottom: 32px; }
.booking-notes li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.booking-notes i { color: var(--mint); font-size: 22px; }
.booking-img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16/10; object-fit: cover; width: 100%; }

.booking-form { background: var(--bg); border-radius: var(--radius); padding: 40px; border: 1px solid var(--line); }
.booking-form h3 { font-family: var(--ff-display); font-size: 24px; font-weight: 600; margin-bottom: 24px; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label em { color: #d65c5c; font-style: normal; font-family: var(--ff-body); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--ff-body); font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(47,158,143,.12); }
.field textarea { resize: vertical; }
.err { display: none; font-size: 12px; color: #d65c5c; margin-top: 5px; }
.field.invalid input, .field.invalid select { border-color: #d65c5c; }
.field.invalid .err { display: block; }
.time-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.slot { position: relative; cursor: pointer; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span { display: block; text-align: center; font-size: 14px; font-weight: 500; padding: 11px 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: all .2s; }
.slot input:checked + span { background: var(--mint-deep); color: #fff; border-color: var(--mint-deep); }
.slot:hover span { border-color: var(--mint); }
.form-foot { font-size: 12px; color: var(--ink-mute); text-align: center; margin-top: 14px; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(20,42,38,.6); backdrop-filter: blur(6px); display: none; place-items: center; padding: 32px; }
.modal.show { display: grid; animation: fadeIn .25s; }
.modal-card { background: var(--surface); border-radius: 24px; padding: 48px 40px; text-align: center; max-width: 420px; width: 100%; box-shadow: var(--shadow); animation: popIn .3s; }
.modal-icon { font-size: 56px; color: var(--mint); display: inline-block; margin-bottom: 18px; }
.modal-card h3 { font-family: var(--ff-display); font-size: 26px; font-weight: 600; margin-bottom: 10px; }
.modal-card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 26px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }

/* ===== Contact ===== */
.contact { padding: 110px 32px; max-width: 1240px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: stretch; }
.contact-info h2 { font-family: var(--ff-display); font-size: clamp(30px, 4vw, 42px); font-weight: 600; line-height: 1.1; margin-bottom: 32px; }
.contact-items { display: grid; gap: 26px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon { width: 48px; height: 48px; border-radius: 13px; background: var(--mint-soft); color: var(--mint-deep); display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.contact-item strong { display: block; font-size: 15px; margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: var(--ink-soft); }
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 360px; background: var(--mint-soft); }
.contact-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 48px 32px; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.footer-brand .brand-text { color: #fff; }
.footer-copy { font-size: 13px; max-width: 640px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); flex-direction: column; gap: 0; padding: 12px 32px 24px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn-sm { display: none; }
  .nav-toggle { display: block; }
  .about-grid, .booking-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .doctor-grid, .service-grid { grid-template-columns: 1fr; }
  .topbar-tel { margin-left: 0; }
  .hero-stats { gap: 28px; }
  .hero-stats strong { font-size: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .booking-form { padding: 28px 22px; }
}
@media (max-width: 600px) {
  .about { padding: 70px 20px; }
  .doctors, .services, .booking, .contact { padding: 70px 20px; }
  .doctor-grid, .service-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 60px 20px; }
  .topbar-inner { padding: 8px 20px; gap: 14px; font-size: 12px; }
  .nav { padding: 14px 20px; }
}
