:root{
  --nav-h: 76px;
  --ink: #2b2525;
  --muted: #756f6e;
  --brand: #7e181b;
  --brand-dark: #4e0d0f;
  --brand-warm: #8f2912;
  --brand-soft: #f4e9e6;
  --accent: #8f2912;
  --surface: #ffffff;
  --section: #f9f6f6;
  --section-strong: #c6c6c6;
  --line: rgba(126,24,27,.14);
  --shadow: 0 18px 45px rgba(60,22,16,.13);
  --radius: 9px;
}

html{ scroll-behavior:smooth; }
body{
  padding-top: var(--nav-h);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #fff;
}
a{ text-underline-offset: .2em; }
.text-muted{ color: var(--muted) !important; }
.text-white-75{ color: rgba(255,255,255,.78); }

.btn{
  border-radius: .45rem;
  font-weight: 700;
  letter-spacing: 0;
}
.btn-primary{
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
}
.btn-outline-primary{
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
}
.btn-appointment{
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.nav-blur{
  min-height: var(--nav-h);
  background: rgba(28,10,8,.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.navbar-brand{
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.brand-logo{
  display: block;
  width: clamp(150px, 18vw, 205px);
  height: auto;
  border-radius: 0;
}
.nav-link{
  font-weight: 650;
  color: rgba(255,255,255,.76);
}
.nav-link:hover,
.nav-link:focus,
.nav-link.active{ color: #fff; }

.hero{
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero-bg,
.contact-bg{
  position:absolute;
  inset:0;
  z-index:0;
}
.hero-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(143,41,18,.22), rgba(0,0,0,.08));
}
.hero-img,
.contact-img{
  width:100%;
  height:100%;
  object-fit: cover;
}
.hero-img{ filter: saturate(1.05); }
.hero-content,
.contact .container{ position: relative; z-index: 1; }
.hero-title{
  font-size: clamp(4rem, 9vw, 7.5rem);
  line-height: .85;
  font-weight: 800;
  letter-spacing: 0;
}
.hero-subtitle{
  max-width: 760px;
  margin: 1.25rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.12;
  font-weight: 650;
}
.hero-copy{
  max-width: 680px;
  margin: 1.25rem 0 0;
  font-size: 1.08rem;
}
.hero .eyebrow{
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.hero-visual{
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--radius);
  box-shadow: 0 22px 55px rgba(0,0,0,.32);
  background: rgba(0,0,0,.18);
}
.hero-visual-img{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hero-info{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--radius);
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
}
.hero-info span{
  display: block;
  color: rgba(255,255,255,.68);
  font-size: .82rem;
}
.hero-info strong{
  color: #fff;
  font-size: 1.02rem;
}

.section{
  scroll-margin-top: calc(var(--nav-h) + 18px);
}
.section-muted{
  background: linear-gradient(90deg, var(--section), var(--section-strong));
}
.eyebrow{
  margin-bottom: .65rem;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-title{
  max-width: 800px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}
.section-lead{
  color: #4f403d;
  font-size: 1.14rem;
  line-height: 1.65;
}
.section-head{
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}
.section-summary{
  max-width: 440px;
  color: var(--muted);
}
.image-frame{
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.image-frame img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.mission-box{
  padding: 1.15rem;
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  background: var(--section);
}
.mission-box h3{
  margin: 0 0 .45rem;
  color: var(--brand);
  font-size: 1rem;
  font-weight: 800;
}
.mission-box p{
  margin: 0;
  color: #4f403d;
}

.stats-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-item{
  padding: 1.35rem;
  background: #fff;
  border-right: 1px solid var(--line);
}
.stat-item:last-child{ border-right: 0; }
.stat-item strong{
  display: block;
  color: var(--brand);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}
.stat-item span{
  color: var(--muted);
  font-weight: 650;
}

.team-block{
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-warm), #120301);
}
.team-block .eyebrow,
.team-block .section-title,
.team-block h3,
.team-block .team-copy,
.team-block .text-muted{
  color: #fff !important;
}
.team-block .team-copy{
  max-width: 900px;
  opacity: .86;
}
.doctors-layout{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}
.doctor-card{
  height: 100%;
  padding: .35rem;
  color: #fff;
}
.doctor-card:nth-child(1){
  grid-column: 2 / span 2;
}
.doctor-card:nth-child(2){
  grid-column: 4 / span 2;
}
.doctor-card:nth-child(n+3){
  grid-column: span 2;
}
.doctor-photo{
  width: min(250px, 100%);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 1rem 2rem rgba(0,0,0,.28);
  background: var(--brand-soft);
}
.doctor-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doctor-name{
  margin: 0 0 .25rem;
  color: #fff;
  font-size: .92rem;
  font-weight: 800;
  text-transform: uppercase;
}
.doctor-mp{
  margin-top: .35rem;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
}

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}
.gallery-item{
  display: block;
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ded8d7;
}
.gallery-featured{
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-img{
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}
.gallery-item:hover .gallery-img,
.gallery-item:focus .gallery-img{
  transform: scale(1.035);
  filter: saturate(1.08);
}
.registry-panel{
  display: grid;
  gap: .45rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(126,24,27,.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  color: #4f403d;
}
.registry-panel strong{
  color: var(--brand);
}
.registry-panel em{
  margin-top: .25rem;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.service-card{
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(60,22,16,.08);
}
.service-media{
  height: 220px;
  overflow: hidden;
}
.service-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-body{
  padding: 1.25rem;
}
.service-body h3{
  margin: 0 0 .55rem;
  font-size: 1.18rem;
  font-weight: 800;
}
.service-body p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.service-link{
  display: inline-block;
  margin-top: .85rem;
  color: var(--brand);
  font-weight: 800;
}
.coverage-panel{
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--section);
}

.contact{
  position: relative;
  overflow: hidden;
}
.contact-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(126,24,27,.94), rgba(0,0,0,.78));
}
.contact-panel,
.map-panel{
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-panel{
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.32);
  backdrop-filter: blur(10px);
}
.contact-address{
  color: rgba(255,255,255,.82);
  font-style: normal;
}
.map-panel{
  background: #fff;
  box-shadow: var(--shadow);
}
.map-panel iframe{ border: 0; }
.site-footer{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.72);
  font-size: .92rem;
}

@media (max-width: 991.98px){
  .navbar-collapse{
    padding: 1rem 0 1.1rem;
  }
  .hero{
    min-height: auto;
    padding: 4rem 0;
  }
  .hero-info{
    grid-template-columns: 1fr;
  }
  .hero-bg::after{
    background: linear-gradient(135deg, rgba(143,41,18,.3), rgba(0,0,0,.05));
  }
  .section-head,
  .coverage-panel{
    display: block;
  }
  .section-head .btn{
    margin-top: 1rem;
  }
  .gallery-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .doctors-layout{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .doctor-card:nth-child(n){
    grid-column: auto;
  }
}

@media (max-width: 767.98px){
  :root{ --nav-h: 70px; }
  .hero-title{ font-size: 4rem; }
  .stats-grid{
    grid-template-columns: 1fr;
  }
  .stat-item{
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stat-item:last-child{ border-bottom: 0; }
  .gallery-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
  }
  .gallery-featured{
    grid-column: span 2;
  }
  .service-media{ height: 190px; }
  .doctors-layout{
    grid-template-columns: 1fr;
  }
  .doctor-photo{
    width: min(240px, 82vw);
  }
}

@media (max-width: 420px){
  .navbar-brand small{ display: none; }
  .brand-logo{ width: 132px; }
  .hero-title{ font-size: 3.3rem; }
  .hero-subtitle{ font-size: 1.35rem; }
}
