/* ============================================
   DR. IMDADUL HAQUE — SURGICAL PRACTICE
   Design tokens
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Color tokens */
  --ink: #0F2E2B;            /* deep surgical teal-black — OT backdrop */
  --ink-soft: #1B3F3A;
  --paper: #FAF8F4;          /* warm clinical white */
  --paper-dim: #F1EDE3;
  --amber: #E8A93B;          /* OT lamp glow accent */
  --amber-deep: #C8862A;
  --clinical-red: #A6362A;   /* sparing emphasis */
  --line: #D8D2C2;
  --ink-60: rgba(15, 46, 43, 0.6);
  --ink-40: rgba(15, 46, 43, 0.4);
  --paper-60: rgba(250, 248, 244, 0.6);

  /* Type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;

  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ============================================
   TYPOGRAPHY HELPERS
   ============================================ */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--amber-deep);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  margin-bottom: 16px;
}

.section-sub {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-60);
  max-width: 560px;
  font-weight: 400;
  line-height: 1.7;
}

.section-head {
  margin-bottom: 56px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--amber-deep);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 2px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
}
.btn-primary:hover { background: var(--amber-deep); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(250,248,244,0.35);
}
.btn-outline:hover { border-color: var(--paper); background: rgba(250,248,244,0.08); }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--paper); }

.btn-sm { padding: 11px 20px; font-size: 13px; }

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: all 0.35s ease;
  background: transparent;
}

.navbar.scrolled {
  background: var(--paper);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  transition: color 0.35s ease;
}
.nav-logo span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--amber);
  margin-top: 2px;
}
.navbar.scrolled .nav-logo { color: var(--ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--paper-60);
  transition: color 0.25s ease;
  position: relative;
}
.nav-links a:hover { color: var(--paper); }
.navbar.scrolled .nav-links a { color: var(--ink-60); }
.navbar.scrolled .nav-links a:hover { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}
.nav-toggle span {
  height: 2px;
  background: var(--paper);
  transition: all 0.3s ease;
}
.navbar.scrolled .nav-toggle span { background: var(--ink); }

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.45;
  filter: saturate(0.7) contrast(1.05) hue-rotate(10deg);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(15,46,43,0.96) 35%, rgba(15,46,43,0.65) 65%, rgba(15,46,43,0.3) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 25%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 700px at 78% 18%, rgba(232,169,59,0.14), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250,248,244,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250,248,244,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  z-index: 2;
}

.hero-content { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: rgba(232,169,59,0.1);
  border: 1px solid rgba(232,169,59,0.3);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--amber);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--amber);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  font-size: 11px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  color: var(--paper);
  margin-bottom: 6px;
}
.hero h1 em {
  font-style: italic;
  color: var(--amber);
  font-weight: 400;
}

.hero-quals {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--paper-60);
  margin-bottom: 24px;
  padding-top: 10px;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 16.5px;
  color: var(--paper-60);
  margin-bottom: 36px;
  line-height: 1.75;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid rgba(250,248,244,0.15);
  padding-top: 28px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(250,248,244,0.05);
  border: 1px solid rgba(250,248,244,0.1);
  border-radius: 6px;
}

.stat-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(232,169,59,0.14);
  color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}

.stat-num {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--amber);
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-60);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  flex-shrink: 0;
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45), 0 0 0 1px rgba(232,169,59,0.2);
  filter: saturate(0.95) contrast(1.05);
}

.hero-corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 3px solid var(--amber);
  z-index: 3;
}
.hero-corner.tl { top: -14px; left: -14px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.hero-corner.br { bottom: -14px; right: -14px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.float-card {
  position: absolute;
  background: var(--paper);
  color: var(--ink);
  padding: 16px 18px;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  max-width: 210px;
}

.float-card-1 {
  top: 8%;
  left: -14%;
}
.float-card-2 {
  bottom: 6%;
  right: -10%;
}

.float-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

.float-card strong { display: block; font-family: var(--serif); font-size: 15px; font-weight: 600; }
.float-card span { color: var(--ink-60); font-size: 12px; }

/* ============================================
   ABOUT
   ============================================ */

.about { padding: 130px 0; background: var(--paper); overflow: hidden; }

.about .container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.about-visual {
  position: relative;
  margin-top: 30px;
  margin-bottom: 50px;
}

.about-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
}

.about-img-wrap {
  position: relative;
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--paper-dim);
  border-radius: 8px;
}
.about-img-wrap img {
  width: 100%;
  object-fit: cover;
  filter: saturate(0.95);
  border-radius: 4px;
}
.about-img-wrap.main { aspect-ratio: auto; }
.about-img-wrap.main img { aspect-ratio: 4/5; }

.about-img-wrap.secondary {
  position: absolute;
  width: 46%;
  bottom: -36px;
  right: -36px;
  z-index: 3;
  box-shadow: 0 20px 50px rgba(15,46,43,0.25);
  background: var(--paper);
}
.about-img-wrap.secondary img { aspect-ratio: 1/1; }

.exp-badge {
  position: absolute;
  top: -22px;
  left: -22px;
  background: var(--ink);
  color: var(--paper);
  padding: 22px 22px 20px;
  text-align: center;
  border: 4px solid var(--paper);
  z-index: 4;
  border-radius: 4px;
}
.exp-badge i {
  color: var(--amber);
  font-size: 16px;
  display: block;
  margin-bottom: 6px;
}
.exp-badge .num {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--amber);
  font-weight: 600;
  line-height: 1;
}
.exp-badge .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--paper-60);
}

.about-text p {
  color: var(--ink-60);
  margin-bottom: 18px;
  font-size: 15.5px;
  line-height: 1.8;
  max-width: 620px;
}

.qual-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 36px;
}
.qual-badge {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper-dim);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 8px;
  border-radius: 6px;
  overflow: hidden;
}
.detail-item {
  background: var(--paper);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.25s ease;
}
.detail-item:hover { background: var(--paper-dim); }
.detail-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.detail-item .dl-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 4px;
}
.detail-item .dl-value {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}

/* ============================================
   SERVICES
   ============================================ */

.services { padding: 130px 0; background: var(--ink); color: var(--paper); overflow: hidden; }

.services .eyebrow { color: var(--amber); }
.services .eyebrow::before, .services .eyebrow::after { background: var(--amber); }
.services .section-sub { color: var(--paper-60); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(250,248,244,0.12);
  border: 1px solid rgba(250,248,244,0.12);
}

.service-card {
  background: var(--ink);
  padding: 38px 32px;
  transition: background 0.3s ease;
  position: relative;
}
.service-card:hover { background: var(--ink-soft); }

.service-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 22px;
  display: block;
}

.service-icon {
  width: 56px; height: 56px;
  background: rgba(232,169,59,0.12);
  border: 1px solid rgba(232,169,59,0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
  font-size: 24px;
  margin-bottom: 22px;
  transition: all 0.3s ease;
}
.service-card:hover .service-icon {
  background: var(--amber);
  color: var(--ink);
  transform: scale(1.06);
}

.service-card h3 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--paper);
}

.service-card p {
  font-size: 14px;
  color: var(--paper-60);
  line-height: 1.7;
}

/* ============================================
   STAT BAND
   ============================================ */

.stat-band {
  position: relative;
  padding: 64px 0;
  background: var(--ink);
  overflow: hidden;
}

.stat-band-bg {
  position: absolute;
  inset: 0;
}
.stat-band-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: saturate(0.7) blur(1px);
}
.stat-band-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(15,46,43,0.85) 100%);
}

.stat-band-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sb-item {
  text-align: center;
  padding: 0 12px;
  border-left: 1px solid rgba(250,248,244,0.12);
}
.sb-item:first-child { border-left: none; }

.sb-item i {
  font-size: 26px;
  color: var(--amber);
  margin-bottom: 14px;
  display: block;
}

.sb-num {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 6px;
}

.sb-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-60);
}

/* ============================================
   HOSPITALS
   ============================================ */

.hospitals { padding: 130px 0; background: var(--paper); overflow: hidden; }

.hospitals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hospital-card {
  border: 1px solid var(--line);
  padding: 32px 26px;
  transition: all 0.3s ease;
  background: var(--paper);
}
.hospital-card:hover {
  border-color: var(--amber-deep);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15,46,43,0.08);
}

.hospital-mark {
  width: 52px; height: 52px;
  background: var(--ink);
  color: var(--amber);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  margin-bottom: 22px;
}

.hospital-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.3;
}

.hospital-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 10px;
}

.hospital-addr {
  font-size: 13px;
  color: var(--ink-60);
  line-height: 1.6;
  margin-bottom: 16px;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--amber-deep);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 4px;
  background: var(--paper-dim);
  transition: all 0.25s ease;
  text-decoration: none;
}
.map-btn:hover {
  background: var(--ink);
  color: var(--amber);
  border-color: var(--ink);
}

/* Contact cards as links */
a.contact-card, a.appt-contact-item, a.detail-item, a.location-item {
  text-decoration: none;
  color: inherit;
}
a.contact-card:hover {
  border-color: var(--amber-deep);
  transform: translateY(-4px);
}
a.appt-contact-item:hover .appt-contact-icon {
  background: rgba(232,169,59,0.25);
}
a.detail-item:hover {
  background: #EAE4D6;
}
a.location-item:hover {
  background: var(--paper-dim);
}
a.location-item:hover .loc-num {
  background: var(--amber-deep);
}

/* ============================================
   GALLERY
   ============================================ */

.gallery { padding: 130px 0; background: var(--paper-dim); overflow: hidden; }

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.gtab {
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-60);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: all 0.25s ease;
}
.gtab.active, .gtab:hover {
  background: var(--ink);
  color: var(--amber);
  border-color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 270px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink);
  isolation: isolate;
  contain: layout paint;
  transition: opacity 0.3s ease;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-item.tall { grid-row: span 2; }

.gitem-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,46,43,0.92) 0%, rgba(15,46,43,0.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gitem-overlay { opacity: 1; }

.gitem-cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 4px;
}
.gitem-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--paper);
}

.gallery-item.hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,46,43,0.97);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-content {
  max-width: 800px;
  max-height: 85vh;
  position: relative;
  text-align: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 1px solid rgba(232,169,59,0.3);
}
.lightbox-caption {
  color: var(--paper);
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 17px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  color: var(--paper);
  font-size: 22px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(250,248,244,0.3);
  border-radius: 50%;
  transition: all 0.25s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--amber); color: var(--ink); border-color: var(--amber);
}
.lightbox-close { top: -56px; right: 0; }
.lightbox-prev { left: -70px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -70px; top: 50%; transform: translateY(-50%); }

/* ============================================
   APPOINTMENT
   ============================================ */

.appointment {
  padding: 130px 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.appointment::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 600px at 85% 30%, rgba(232,169,59,0.12), transparent 60%);
}

.appointment .container {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
}

.appt-info .eyebrow { color: var(--amber); }
.appt-info .eyebrow::before { background: var(--amber); }
.appt-info h2 { color: var(--paper); margin-bottom: 20px; }
.appt-info p { color: var(--paper-60); font-size: 15.5px; line-height: 1.8; margin-bottom: 36px; max-width: 420px; }

.appt-contact-list { display: flex; flex-direction: column; gap: 22px; }
.appt-contact-item { display: flex; gap: 16px; align-items: flex-start; }
.appt-contact-icon {
  width: 48px; height: 48px;
  background: rgba(232,169,59,0.12);
  border: 1px solid rgba(232,169,59,0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
  flex-shrink: 0;
  font-size: 18px;
}
.appt-contact-item strong { display: block; font-size: 14.5px; margin-bottom: 2px; color: var(--paper); }
.appt-contact-item span { font-size: 13.5px; color: var(--paper-60); }

.appt-form {
  background: var(--paper);
  padding: 44px;
  border-radius: 4px;
  color: var(--ink);
}
.appt-form h3 {
  font-size: 22px;
  margin-bottom: 6px;
}
.appt-form .form-sub {
  font-size: 13.5px;
  color: var(--ink-60);
  margin-bottom: 28px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--paper-dim);
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.25s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--amber-deep);
  background: var(--paper);
}
.form-group textarea { resize: vertical; min-height: 90px; }

.appt-form .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials { padding: 130px 0; background: var(--paper); }

.testi-slider {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
}

.testi-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.65,0,0.35,1);
}

.testi-slide {
  min-width: 100%;
  text-align: center;
  padding: 0 20px;
}

.testi-quote-icon {
  font-size: 28px;
  color: var(--amber-deep);
  opacity: 0.5;
  margin-bottom: 18px;
}

.testi-stars {
  color: var(--amber-deep);
  font-size: 17px;
  letter-spacing: 3px;
  margin-bottom: 26px;
}

.testi-quote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 32px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
}

.testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.testi-author strong {
  display: block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}
.testi-author span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.testi-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
}
.testi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: all 0.3s ease;
}
.testi-dot.active { background: var(--amber-deep); width: 24px; border-radius: 4px; }

/* ============================================
   CONTACT
   ============================================ */

.contact { padding: 130px 0; background: var(--paper-dim); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 30px 26px;
  text-align: center;
  transition: all 0.3s ease;
}
.contact-card:hover { border-color: var(--amber-deep); transform: translateY(-4px); }

.contact-icon {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  background: var(--ink);
  color: var(--amber);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

.contact-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; font-family: var(--sans); }
.contact-card p { font-size: 13.5px; color: var(--ink-60); }

.location-list {
  border-top: 1px solid var(--line);
  padding-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.location-item { display: flex; gap: 14px; }
.location-item .loc-num {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.location-item strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.location-item span { font-size: 13px; color: var(--ink-60); }

/* ============================================
   FOOTER
   ============================================ */

footer { background: var(--ink); color: var(--paper); padding: 80px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(250,248,244,0.12);
}

.footer-brand .nav-logo { color: var(--paper); margin-bottom: 18px; }
.footer-brand p { color: var(--paper-60); font-size: 13.5px; line-height: 1.7; max-width: 280px; }

.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { font-size: 13.5px; color: var(--paper-60); transition: color 0.25s ease; }
.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  font-size: 12.5px;
  color: var(--paper-60);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .reg { font-family: var(--mono); }

/* ============================================
   FLOATING BUTTONS
   ============================================ */

.float-btns {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
}

.fbtn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: all 0.25s ease;
}
.fbtn:hover { transform: scale(1.08); }
.fbtn-whatsapp { background: #25D366; color: #fff; }
.fbtn-call { background: var(--ink); color: var(--amber); }
.fbtn-top {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.fbtn-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ============================================
   SCROLL REVEAL
   ============================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ============================================
   TABLET (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin: 0 auto 32px; }
  .float-card { display: none; }
  .about .container { grid-template-columns: 1fr; }
  .about-img-wrap.secondary { width: 44%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-band-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .sb-item:nth-child(3) { border-left: none; }
  .hospitals-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; }
  .gallery-item.tall { grid-row: span 2; }
  .appointment .container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   MOBILE (max 768px)
   ============================================ */
@media (max-width: 768px) {

  /* --- Global --- */
  * { -webkit-overflow-scrolling: touch; }
  .container { padding: 0 18px; }

  /* --- Sections --- */
  .hero    { padding: 100px 0 56px; }
  .about   { padding: 72px 0; }
  .services   { padding: 72px 0; }
  .stat-band  { padding: 48px 0; }
  .hospitals  { padding: 72px 0; }
  .gallery    { padding: 72px 0; }
  .appointment { padding: 72px 0; }
  .testimonials { padding: 72px 0; }
  .contact   { padding: 72px 0; }
  footer     { padding: 56px 0 0; }

  /* --- Headings --- */
  .section-head { margin-bottom: 36px; }

  /* --- Navbar --- */
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }

  /* --- Hero --- */
  .hero .container { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { order: -1; max-width: 260px; margin: 0 auto 28px; }
  .hero-frame img { aspect-ratio: 3/3.6; }
  .hero-corner { display: none; } /* remove corners so they don't overflow */
  .hero-badge { font-size: 11px; }
  .hero h1 { font-size: clamp(30px, 8vw, 44px); }
  .hero-quals { font-size: 12px; }
  .hero-desc { font-size: 14.5px; }

  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 15px 20px; }

  .hero-stats { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
  .stat-card { padding: 12px 14px; }
  .stat-num { font-size: 22px; }

  /* --- Float cards --- */
  .float-card { display: none; }

  /* --- Floating buttons --- */
  .float-btns { bottom: 16px; right: 14px; gap: 10px; }
  .fbtn { width: 46px; height: 46px; font-size: 18px; }

  /* --- About --- */
  .about .container { grid-template-columns: 1fr; gap: 0; }
  .about-visual { margin-top: 0; margin-bottom: 60px; }
  .about-img-wrap.secondary {
    position: absolute;
    width: 44%;
    bottom: -48px;
    right: 0;
    top: auto;
    box-shadow: 0 12px 30px rgba(15,46,43,0.2);
  }
  .exp-badge {
    left: -8px;
    top: -16px;
    padding: 16px 18px;
  }
  .exp-badge .num { font-size: 26px; }

  .detail-grid { grid-template-columns: 1fr; }
  .detail-item { padding: 16px 18px; }

  /* --- Services --- */
  .services-grid { grid-template-columns: 1fr; border: none; gap: 2px; background: transparent; }
  .service-card { border: 1px solid rgba(250,248,244,0.1); border-radius: 8px; padding: 28px 24px; }

  /* --- Stat band --- */
  .stat-band-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .sb-item { border-left: none; padding: 0; text-align: center; }
  .sb-item i { font-size: 22px; margin-bottom: 10px; }
  .sb-num { font-size: 26px; }

  /* --- Hospitals --- */
  .hospitals-grid { grid-template-columns: 1fr; gap: 16px; }

  /* --- Gallery --- */
  .gallery-tabs { gap: 6px; }
  .gtab { padding: 9px 14px; font-size: 12px; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 8px;
  }
  .gallery-item.tall { grid-row: span 1; }
  .gitem-title { font-size: 13px; }

  /* --- Appointment --- */
  .appointment .container { grid-template-columns: 1fr; gap: 40px; }
  .appt-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* --- Testimonials --- */
  .testi-slider { max-width: 100%; }
  .testi-quote { font-size: clamp(17px, 4.5vw, 22px); }

  /* --- Contact --- */
  .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .contact-card { padding: 22px 16px; }
  .location-list { grid-template-columns: 1fr; gap: 20px; padding-top: 32px; }

  /* --- Lightbox --- */
  .lightbox { padding: 16px; }
  .lightbox-content { max-width: 100%; }
  .lightbox-prev { left: 4px; width: 36px; height: 36px; font-size: 16px; }
  .lightbox-next { right: 4px; width: 36px; height: 36px; font-size: 16px; }
  .lightbox-close { top: -44px; right: 0; width: 36px; height: 36px; font-size: 16px; }

  /* --- Hero background --- */
  .hero-bg img {
    object-position: 65% center;
    opacity: 0.3;
  }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(15,46,43,0.7) 0%, var(--ink) 60%),
      linear-gradient(90deg, var(--ink) 0%, rgba(15,46,43,0.6) 100%);
  }

  /* --- Footer --- */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
}

/* ============================================
   SMALL MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-visual { max-width: 230px; }
  .hero h1 { font-size: clamp(28px, 9vw, 40px); }
  .hero-stats { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 6px;
  }

  .section-title { font-size: clamp(26px, 7vw, 36px); }

  .contact-grid { grid-template-columns: 1fr; gap: 10px; }

  .qual-badges { gap: 8px; }
  .qual-badge { font-size: 11px; padding: 6px 10px; }

  .about-img-wrap.secondary { width: 48%; }

  .footer-col { display: none; }
  .footer-col:first-child { display: block; }
  .footer-col:last-child { display: block; }
}
