/* =====================================================
   연세밝은치과 - style.css
   ===================================================== */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #2E86AB;
  --blue-dark:   #1a6a8a;
  --blue-light:  #e8f4f8;
  --blue-mid:    #c5e3ee;
  --teal:        #48A999;
  --orange:      #F4A261;
  --coral:       #E76F51;
  --white:       #ffffff;
  --off-white:   #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-600:    #475569;
  --gray-800:    #1e293b;
  --text:        #1e293b;
  --text-light:  #64748b;
  --nav-h:       72px;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.14);
  --transition:  .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

/* ── Scroll Animation ── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1) var(--delay, 0s),
              transform .65s cubic-bezier(.4,0,.2,1) var(--delay, 0s);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section Header ── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-800);
  line-height: 1.3;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  font-size: .95rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,134,171,.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255,255,255,.6);
  color: var(--white);
  font-size: .95rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 100px;
  transition: border-color var(--transition), background var(--transition);
  backdrop-filter: blur(6px);
}
.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.15);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav-header.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gray-200);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo svg { flex-shrink: 0; }
.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-header.scrolled .logo-text { color: var(--blue); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,.15);
}
.nav-header.scrolled .nav-link { color: var(--gray-600); }
.nav-header.scrolled .nav-link:hover { color: var(--blue); background: var(--blue-light); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-phone:hover { color: var(--white); }
.nav-header.scrolled .nav-phone { color: var(--text-light); }
.nav-header.scrolled .nav-phone:hover { color: var(--blue); }

.btn-reserve {
  background: var(--blue);
  color: var(--white);
  font-size: .88rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 100px;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-reserve:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(46,134,171,.4);
}
.nav-header.scrolled .btn-reserve { box-shadow: 0 2px 10px rgba(46,134,171,.25); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.nav-header.scrolled .hamburger span { background: var(--gray-800); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 35, 55, .72) 0%,
    rgba(46, 134, 171, .45) 60%,
    rgba(10, 35, 55, .30) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: var(--nav-h);
}
.hero-badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-accent {
  color: #7dd3f0;
  display: block;
}
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.88);
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-cta {
  font-size: 1rem;
  padding: 16px 32px;
  box-shadow: 0 8px 32px rgba(46,134,171,.5);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat-item { text-align: left; }
.stat-item strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-item span {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .06em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.25);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  animation: bounce 2.2s infinite;
  z-index: 2;
  transition: color var(--transition);
}
.hero-scroll-hint:hover { color: var(--white); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =====================================================
   ABOUT
   ===================================================== */
.about { background: var(--off-white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  flex-shrink: 0;
}
.about-img {
  border-radius: var(--radius-lg);
  height: 480px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.about-badge-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.about-badge-card strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--gray-800);
}
.about-badge-card span {
  font-size: .78rem;
  color: var(--text-light);
}

.about-content .section-label { margin-bottom: 12px; }
.about-content .section-title { text-align: left; margin-bottom: 16px; }
.about-text {
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.9;
}
.about-features { display: flex; flex-direction: column; gap: 12px; }
.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .93rem;
  color: var(--gray-600);
  font-weight: 500;
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--blue-light);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
}

/* =====================================================
   SERVICES
   ===================================================== */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--icon-color, var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon-wrap {
  width: 68px;
  height: 68px;
  background: color-mix(in srgb, var(--icon-color, var(--blue)) 12%, white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--icon-color, var(--blue));
  transition: background var(--transition), transform var(--transition);
}
.service-card:hover .service-icon-wrap {
  background: color-mix(in srgb, var(--icon-color, var(--blue)) 20%, white);
  transform: scale(1.08);
}
.service-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 10px;
}
.service-desc {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 16px;
}
.service-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 12px;
  border-radius: 100px;
}

/* =====================================================
   DOCTORS
   ===================================================== */
.doctors { background: var(--off-white); }
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.doctor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.doctor-img-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.doctor-img-wrap img {
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  object-position: top center;
}
.doctor-card:hover .doctor-img-wrap img { transform: scale(1.05); }
.doctor-specialty-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--white);
  background: var(--blue);
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: .04em;
}
.doctor-info { padding: 24px; }
.doctor-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 4px;
}
.doctor-title {
  font-size: .85rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 14px;
}
.doctor-career {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.doctor-career li {
  font-size: .8rem;
  color: var(--text-light);
  padding-left: 12px;
  position: relative;
  line-height: 1.5;
}
.doctor-career li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background: var(--blue-mid);
  border-radius: 50%;
}

/* =====================================================
   FACILITY
   ===================================================== */
.facility { background: var(--white); }
.facility-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 16px;
}
.gallery-large {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.gallery-item:hover .gallery-label { transform: translateY(0); }

/* =====================================================
   LOCATION
   ===================================================== */
.location { background: var(--off-white); }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
.hours-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.hours-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 20px;
}
.hours-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.hours-list li:last-child { border-bottom: none; padding-bottom: 0; }
.hours-list .day { color: var(--gray-600); font-weight: 500; }
.hours-list .time { font-weight: 700; color: var(--gray-800); }
.hours-list .closed .day { color: var(--gray-400); }
.hours-list .closed-text { color: var(--gray-400); font-weight: 600; }
.hours-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-light);
  background: var(--blue-light);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.contact-item:last-child { border-bottom: none; }
.contact-item strong { font-size: .8rem; color: var(--text-light); font-weight: 600; }
.contact-item span { font-size: .92rem; color: var(--gray-800); font-weight: 500; }
.contact-item[href]:hover span { color: var(--blue); }

.reserve-cta-btn { justify-content: center; }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 520px;
  box-shadow: var(--shadow-md);
}
.map-wrap iframe { width: 100%; height: 100%; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: #0f1f2e;
  color: rgba(255,255,255,.75);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo span {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}
.footer-tagline {
  font-size: .88rem;
  line-height: 1.9;
  margin-bottom: 24px;
  color: rgba(255,255,255,.55);
}
.footer-sns { display: flex; gap: 12px; }
.sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: rgba(255,255,255,.55);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.sns-link:hover {
  color: var(--white);
  border-color: var(--blue);
  background: rgba(46,134,171,.25);
}
.footer-col h4 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: .04em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-hours { gap: 8px !important; }
.footer-hours li {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.footer-hours li span:last-child { font-weight: 600; color: rgba(255,255,255,.7); }
.footer-hours .closed-li { opacity: .5; }
.footer-tel {
  display: inline-block;
  margin-top: 16px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: .04em;
  transition: color var(--transition);
}
.footer-tel:hover { color: #7dd3f0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  color: rgba(255,255,255,.3);
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* =====================================================
   MODAL
   ===================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 25, 40, .65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s cubic-bezier(.4,0,.2,1);
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  transform: translateY(24px) scale(.97);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}
.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gray-800);
}
.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--gray-400);
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: var(--gray-100); color: var(--gray-800); }

.reserve-form { padding: 24px 28px 28px; }
.form-group { margin-bottom: 18px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}
.required { color: var(--blue); }
input[type="text"],
input[type="tel"],
input[type="date"],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: .9rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,134,171,.15);
}
input.error, select.error, textarea.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,.1);
}
textarea { resize: vertical; min-height: 88px; }

.select-wrap {
  position: relative;
}
.select-wrap select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: .9rem;
  color: var(--gray-800);
  background: var(--white);
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.select-wrap select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,134,171,.15);
}
.select-wrap svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gray-400);
}
.form-error {
  display: block;
  font-size: .78rem;
  color: #e53e3e;
  margin-top: 6px;
  min-height: 18px;
}
.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 15px;
  margin-top: 8px;
}
.form-notice {
  text-align: center;
  font-size: .78rem;
  color: var(--gray-400);
  margin-top: 12px;
}

/* Success screen */
.modal-step.hidden { display: none; }
.success-content {
  padding: 40px 28px 36px;
  text-align: center;
}
.success-icon {
  width: 96px;
  height: 96px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success-content h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 12px;
}
.success-content p {
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 24px;
}
.success-summary {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 24px;
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.9;
}
.success-summary strong { color: var(--gray-800); }
#successClose { width: 100%; justify-content: center; }

/* =====================================================
   SCROLL TO TOP
   ===================================================== */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 46px;
  height: 46px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(46,134,171,.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition);
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img { height: 360px; }
  .about-badge-card { right: 16px; bottom: -16px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .facility-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gallery-large { grid-column: auto; grid-row: auto; height: 220px; }
  .location-grid { grid-template-columns: 1fr; }
  .map-wrap { height: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .section { padding: 72px 0; }

  /* Nav */
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 0 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    transform: translateY(-110%);
    transition: transform var(--transition);
    z-index: 999;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-link {
    width: 100%;
    padding: 13px 24px;
    color: var(--gray-600);
    border-radius: 0;
  }
  .nav-link:hover { color: var(--blue); background: var(--blue-light); }
  .nav-phone { display: none; }
  .hamburger { display: flex; }
  .nav-actions .btn-reserve { display: none; }

  /* Hero */
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .hero-btns { flex-direction: column; align-items: flex-start; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 22px; }

  /* Doctors */
  .doctors-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  /* Facility */
  .facility-gallery { grid-template-columns: 1fr; }
  .gallery-item, .gallery-large { height: 200px; }

  /* Location */
  .hours-card { padding: 24px; }

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

  /* Modal */
  .modal { border-radius: 16px 16px 0 0; max-height: 95vh; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .form-row { grid-template-columns: 1fr; }
  .modal-backdrop.open .modal { transform: translateY(0) scale(1); }
  .modal { transform: translateY(100%); }
  .modal-backdrop.open .modal { transform: translateY(0); }

  .scroll-top { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .about-img { height: 260px; }
  .about-badge-card { position: static; margin-top: 16px; width: fit-content; }
}
