/* ==========================================================================
   NIMBUS DENTAL — Luxury cosmetic clinic template
   Premium dark palette, gold accents, editorial layouts
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --navy-deep: #0B1929;
  --navy-dark: #0F1F32;
  --navy-mid: #1A2D44;
  --navy-soft: #243752;
  --gold: #D4AF7A;
  --gold-light: #E8C896;
  --gold-dark: #B8935E;
  --bone: #F4EFE6;
  --bone-soft: #EBE4D6;
  --bone-warm: #E0D6C2;
  --teal: #4A7C7C;
  --ink-warm: #2A2018;
  --line: rgba(212, 175, 122, 0.18);
  --line-soft: rgba(244, 239, 230, 0.08);

  /* Type */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;

  /* Spacing & layout */
  --container: 1320px;
  --container-narrow: 920px;
  --header-height: 84px;
  --radius: 2px;
  --radius-md: 4px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--bone);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--gold-light); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, textarea, select { font: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--bone);
}

h1 {
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  font-style: italic;
}
h1 .roman { font-style: normal; font-weight: 400; letter-spacing: -0.02em; }

h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 300;
  letter-spacing: -0.018em;
}
h2 em { font-style: italic; color: var(--gold); }

h3 { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.012em; }
h4 { font-size: 1.125rem; font-weight: 500; font-family: var(--font-body); letter-spacing: -0.005em; }

p { color: rgba(244, 239, 230, 0.72); line-height: 1.65; }

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.45;
  font-weight: 300;
  color: rgba(244, 239, 230, 0.85);
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 8rem 0; position: relative; }
.section-sm { padding: 5rem 0; }

.section-header {
  margin-bottom: 5rem;
  max-width: 720px;
}
.section-header.center {
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.section-header.center .eyebrow { justify-content: center; }
.section-header h2 { margin-top: 1.5rem; margin-bottom: 1.25rem; }
.section-header p { font-size: 1.0625rem; max-width: 580px; }
.section-header.center p { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease);
  white-space: nowrap;
  border: 1px solid var(--gold);
  color: var(--bone);
  background: transparent;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left center;
}
.btn:hover { color: var(--navy-deep); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-primary::before {
  background: var(--gold-light);
}
.btn-primary:hover { color: var(--navy-deep); }

.btn-bone {
  background: var(--bone);
  color: var(--navy-deep);
  border-color: var(--bone);
}
.btn-bone::before { background: var(--gold); }
.btn-bone:hover { color: var(--navy-deep); }

.btn .arrow { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  padding-bottom: 4px;
}
.link-arrow::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.link-arrow:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}
.link-arrow .arrow { transition: transform 0.4s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 25, 41, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--bone);
  letter-spacing: 0.04em;
}
.logo:hover { color: var(--bone); }
.logo-mark {
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.7);
  transition: color 0.3s var(--ease);
  position: relative;
  padding: 0.5rem 0;
}
.nav-link:hover { color: var(--bone); }
.nav-link.active { color: var(--gold); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-phone {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--bone);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: var(--bone);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px; height: 1px;
  background: var(--bone);
  transition: all 0.3s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- Hero — full-bleed centered editorial ---------- */
.hero {
  position: relative;
  padding: 7rem 0 9rem;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 122, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(74, 124, 124, 0.1) 0%, transparent 60%);
}

.hero-est {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
}
.hero-est .line {
  width: 60px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  max-width: 1100px;
  margin: 0 auto;
  line-height: 0.98;
}

.hero h1 .accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 300;
}

.hero-lead {
  max-width: 580px;
  margin: 2.5rem auto 3.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 5rem;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  max-width: 760px;
  margin: 0 auto;
}

.meta-item {
  text-align: center;
}
.meta-item .num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--bone);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.meta-item .num em { color: var(--gold); font-style: italic; }
.meta-item .label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.55);
}

/* Gold filigree decorations */
.filigree {
  position: absolute;
  pointer-events: none;
  opacity: 0.35;
}

/* ---------- Services — horizontal scroll rail ---------- */
.services {
  padding: 8rem 0 8rem;
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 3rem;
  flex-wrap: wrap;
}
.services-header-text { max-width: 580px; }
.services-controls {
  display: flex;
  gap: 0.75rem;
}
.scroll-btn {
  width: 52px; height: 52px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  transition: all 0.4s var(--ease);
}
.scroll-btn:hover {
  background: var(--gold);
  color: var(--navy-deep);
}
.scroll-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.services-rail-wrap {
  position: relative;
  /* Bleed to edges */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(2rem, calc(50vw - var(--container) / 2 + 2rem));
  padding-right: max(2rem, calc(50vw - var(--container) / 2 + 2rem));
}

.services-rail {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1rem;
}
.services-rail::-webkit-scrollbar { display: none; }

.service-card {
  flex: 0 0 380px;
  scroll-snap-align: start;
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy-soft) 100%);
  border: 1px solid var(--line);
  padding: 3rem 2.5rem;
  position: relative;
  transition: all 0.5s var(--ease);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 1px;
  background: var(--gold);
  transition: width 0.5s var(--ease);
}
.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
}
.service-card:hover::before { width: 100%; }

.service-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

.service-icon {
  width: 48px; height: 48px;
  margin-bottom: 2rem;
  color: var(--gold);
}

.service-card h3 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.service-card p {
  font-size: 0.9375rem;
  margin-bottom: auto;
  padding-bottom: 2rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: auto;
}
.service-link .arrow { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.service-card:hover .service-link .arrow { transform: translateX(4px); }

.rail-progress {
  height: 1px;
  background: var(--line);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}
.rail-progress-bar {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--gold);
  width: 25%;
  transition: width 0.3s var(--ease), left 0.3s var(--ease);
}

/* ---------- Features (alternative section) ---------- */
.features-block {
  background: var(--navy-deep);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.features-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--navy-mid);
  border: 1px solid var(--line);
}
.features-visual::before {
  content: '';
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  right: -1.5rem; bottom: -1.5rem;
  border: 1px solid var(--gold);
  z-index: -1;
}
.features-visual-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  opacity: 0.4;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
}

.feature-item {
  background: var(--navy-deep);
  padding: 2rem 0;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.feature-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
  width: 60px;
}

.feature-item h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.feature-item p { font-size: 0.9375rem; }

/* ---------- Stats — Bento grid ---------- */
.stats-block {
  background: var(--navy-dark);
}

.stats-bento {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 1px;
  background: var(--line);
}

.stat-tile {
  background: var(--navy-deep);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.stat-tile:hover { background: var(--navy-mid); }

.stat-tile-1 {
  grid-column: 1;
  grid-row: 1 / 3;
  background: var(--navy-mid);
}
.stat-tile-1 .stat-num { font-size: clamp(4rem, 8vw, 6.5rem); }

.stat-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.75rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--bone);
}
.stat-num em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.55);
}

.stat-tile-1 .stat-desc {
  max-width: 280px;
  font-size: 0.9375rem;
  color: rgba(244, 239, 230, 0.7);
  margin-top: 1rem;
}

/* ---------- Doctors — editorial column grid ---------- */
.doctors-block {
  background: var(--navy-deep);
  padding-bottom: 10rem;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.doctor-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Column 1 — first doctor, normal height */
.doctor-card:nth-child(1) { grid-column: 1 / 5; }

/* Column 2 — second doctor, offset down */
.doctor-card:nth-child(2) {
  grid-column: 5 / 9;
  margin-top: 6rem;
}

/* Column 3 — third doctor, offset down further */
.doctor-card:nth-child(3) {
  grid-column: 9 / 13;
  margin-top: 12rem;
}

.doctor-portrait {
  aspect-ratio: 3 / 4;
  background: var(--navy-mid);
  border: 1px solid var(--line);
  position: relative;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.doctor-portrait::before {
  content: '';
  position: absolute;
  bottom: -8px; right: -8px;
  width: 60px; height: 60px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.doctor-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.doctor-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  opacity: 0.6;
}

.doctor-num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.doctor-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.doctor-role {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.doctor-bio {
  font-size: 0.9375rem;
  color: rgba(244, 239, 230, 0.65);
}

/* On doctors page: 6 cards in 2 rows, alternating offset */
.doctors-page-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem 2rem;
  row-gap: 6rem;
}
.doctors-page-grid .doctor-card { margin-top: 0; }
.doctors-page-grid .doctor-card:nth-child(1) { grid-column: 1 / 5; }
.doctors-page-grid .doctor-card:nth-child(2) { grid-column: 5 / 9; margin-top: 5rem; }
.doctors-page-grid .doctor-card:nth-child(3) { grid-column: 9 / 13; margin-top: 10rem; }
.doctors-page-grid .doctor-card:nth-child(4) { grid-column: 1 / 5; margin-top: -2rem; }
.doctors-page-grid .doctor-card:nth-child(5) { grid-column: 5 / 9; margin-top: 3rem; }
.doctors-page-grid .doctor-card:nth-child(6) { grid-column: 9 / 13; margin-top: 8rem; }

/* ---------- Testimonials — slider ---------- */
.testimonials {
  background: var(--navy-dark);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.testimonial-slider {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-track {
  position: relative;
  min-height: 320px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

.testimonial-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.testimonial-stars {
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: 2rem;
  color: var(--gold);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 300;
  line-height: 1.35;
  font-style: italic;
  color: var(--bone);
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

.testimonial-author {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
}
.testimonial-author span {
  display: block;
  color: var(--gold);
  margin-top: 0.5rem;
  font-style: italic;
  letter-spacing: 0.05em;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  text-transform: none;
  font-weight: 400;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-dots {
  display: flex;
  gap: 0.75rem;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(244, 239, 230, 0.25);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.dot.is-active { background: var(--gold); width: 32px; border-radius: 4px; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  text-align: left;
  color: var(--bone);
  transition: color 0.3s var(--ease);
}
.faq-question:hover { color: var(--gold); }

.faq-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  transition: all 0.3s var(--ease);
}
.faq-item.is-open .faq-icon {
  background: var(--gold);
  color: var(--navy-deep);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.faq-answer-inner {
  padding: 0 0 2rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(244, 239, 230, 0.75);
  max-width: 680px;
}

/* ---------- CTA ---------- */
.cta-section {
  padding: 8rem 0;
  background: var(--navy-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(212, 175, 122, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.cta-content h2 { margin: 1.5rem 0 1.5rem; }
.cta-content p { font-size: 1.0625rem; margin-bottom: 3rem; }
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Page hero ---------- */
.page-hero {
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 100% 50%, rgba(212, 175, 122, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-content {
  max-width: 820px;
  position: relative;
}
.breadcrumb {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.5);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb .sep { margin: 0 0.5rem; color: var(--gold); }
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin: 1.5rem 0 1.5rem;
}
.page-hero .lead { max-width: 620px; }

/* ---------- Services full page ---------- */
.services-full {
  background: var(--navy-deep);
}
.services-list-full {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.5fr 200px;
  gap: 3rem;
  padding: 3.5rem 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: all 0.4s var(--ease);
  cursor: pointer;
}
.service-row:hover {
  padding-left: 1rem;
  padding-right: 1rem;
}
.service-row:hover .service-row-link { color: var(--gold-light); }
.service-row:hover .service-row-title { color: var(--gold); }

.service-row-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.service-row-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--bone);
  transition: color 0.4s var(--ease);
}

.service-row-desc {
  font-size: 0.9375rem;
  color: rgba(244, 239, 230, 0.65);
  line-height: 1.6;
}

.service-row-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
  transition: color 0.3s var(--ease);
}

/* ---------- Process ---------- */
.process-block {
  background: var(--navy-dark);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.process-step {
  padding: 3rem 2rem 3rem 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.process-step:last-child { border-right: none; }
.process-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 1px;
  background: var(--gold);
}
.process-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 2.5rem;
}
.process-step h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.process-step p { font-size: 0.9375rem; }

/* ---------- About / story ---------- */
.story-section {
  background: var(--navy-deep);
}
.story-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 5rem;
  align-items: start;
}
.story-visual {
  position: sticky;
  top: calc(var(--header-height) + 3rem);
  aspect-ratio: 4 / 5;
  background: var(--navy-mid);
  border: 1px solid var(--line);
  position: relative;
}
.story-visual::before {
  content: '';
  position: absolute;
  top: 2rem; left: 2rem;
  right: -2rem; bottom: -2rem;
  border: 1px solid var(--gold);
  z-index: -1;
}
.story-visual-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  opacity: 0.4;
}

.story-content h2 { margin-bottom: 2rem; }

.story-content p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(244, 239, 230, 0.85);
  margin-bottom: 1.5rem;
}
.story-content p::first-letter {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 0.9;
  float: left;
  margin: 0.25rem 1rem 0 -0.25rem;
  color: var(--gold);
}
.story-content p:not(:first-of-type)::first-letter {
  font-size: inherit;
  float: none;
  margin: 0;
  color: inherit;
}

.story-signature {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
}
.story-signature span {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.6);
  margin-top: 0.5rem;
}

/* ---------- Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.value-card {
  padding: 3rem 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.value-card:nth-child(3n) { border-right: none; }
.value-card:nth-last-child(-n+3) { border-bottom: none; }

.value-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 2rem;
}
.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
}
.value-card p { font-size: 0.9375rem; }

/* ---------- Blog ---------- */
.blog-block {
  background: var(--navy-deep);
}

.blog-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 5rem;
}
.blog-featured-image {
  aspect-ratio: 4 / 3;
  background: var(--navy-mid);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.blog-featured-image::before {
  content: '';
  position: absolute;
  top: 1rem; left: 1rem;
  right: -1rem; bottom: -1rem;
  border: 1px solid var(--gold);
  z-index: -1;
}
.blog-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.375rem 0;
  margin-bottom: 1rem;
  border-top: 1px solid var(--gold);
}

.blog-featured h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.blog-featured h2 a:hover { color: var(--gold); }
.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.5);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.blog-featured p { font-size: 1.0625rem; margin-bottom: 2rem; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 3rem;
}

.blog-card {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  transition: all 0.4s var(--ease);
}
.blog-card:hover .blog-card-image::before { transform: scaleX(1); }
.blog-card-image {
  aspect-ratio: 16 / 10;
  background: var(--navy-mid);
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.blog-card-image::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.blog-card-image .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  opacity: 0.4;
}
.blog-card h3 {
  font-size: 1.5rem;
  margin: 1rem 0;
  font-weight: 400;
  line-height: 1.2;
}
.blog-card h3 a { color: var(--bone); }
.blog-card h3 a:hover { color: var(--gold); }
.blog-card p {
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 5rem;
}
.pagination a, .pagination span {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--bone);
  font-family: var(--font-display);
  font-style: italic;
}
.pagination a:hover, .pagination .is-active {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Contact ---------- */
.contact-block {
  background: var(--navy-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-info-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.contact-info-item:first-child { padding-top: 0; }

.contact-info-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
}

.contact-info-item h4 { margin-bottom: 0.5rem; font-size: 1.125rem; font-weight: 400; font-family: var(--font-display); }
.contact-info-item p, .contact-info-item a {
  font-size: 0.9375rem;
  color: rgba(244, 239, 230, 0.7);
  display: block;
  line-height: 1.5;
}
.contact-info-item a { color: var(--gold); }

.hours-card {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--navy-mid);
  border: 1px solid var(--line);
}
.hours-card h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.hour-row {
  display: flex;
  justify-content: space-between;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.hour-row:last-child { border-bottom: none; }
.hour-row span:first-child { color: rgba(244, 239, 230, 0.6); }
.hour-row span:last-child { color: var(--bone); }
.hour-row.closed span:last-child { color: var(--gold); font-style: italic; font-family: var(--font-display); }

/* Form */
.contact-form {
  padding: 3rem;
  background: var(--navy-mid);
  border: 1px solid var(--line);
  position: relative;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  right: -1.5rem; bottom: -1.5rem;
  border: 1px solid var(--gold);
  z-index: -1;
  pointer-events: none;
}
.contact-form h3 { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: 0.5rem; font-weight: 400; }
.contact-form > p { font-size: 0.9375rem; margin-bottom: 2rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.625rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.875rem 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--bone);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.3s var(--ease);
}
.form-field select option { background: var(--navy-deep); color: var(--bone); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit { margin-top: 2rem; }
.form-submit .btn { width: 100%; }
.form-note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  text-align: center;
  color: rgba(244, 239, 230, 0.45);
  letter-spacing: 0.05em;
}

/* Map */
.map-card {
  margin-top: 6rem;
  aspect-ratio: 16 / 6;
  background: var(--navy-mid);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.map-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 122, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 122, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
}
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  width: 60px; height: 60px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  transform: translate(-50%, -50%);
}
.map-pin::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.5;
  animation: pulse-ring 2.5s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid var(--line);
  padding: 5rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand .logo { margin-bottom: 1.5rem; }
.footer-brand p {
  font-size: 0.9375rem;
  margin-bottom: 2rem;
  max-width: 320px;
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(244, 239, 230, 0.7);
}

.footer-socials { display: flex; gap: 0.5rem; }
.footer-socials a {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--bone);
  transition: all 0.3s var(--ease);
}
.footer-socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.875rem; }
.footer-col a {
  font-size: 0.9375rem;
  color: rgba(244, 239, 230, 0.7);
}
.footer-col a:hover { color: var(--bone); }

.footer-newsletter p {
  font-size: 0.8125rem;
  color: rgba(244, 239, 230, 0.55);
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-style: italic;
}

.newsletter-form {
  display: flex;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.5rem;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  color: var(--bone);
  font-size: 0.875rem;
}
.newsletter-form input::placeholder { color: rgba(244, 239, 230, 0.4); }
.newsletter-form input:focus { outline: none; }
.newsletter-form button {
  color: var(--gold);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(244, 239, 230, 0.4);
}
.footer-bottom-links { display: flex; gap: 2rem; }
.footer-bottom-links a { color: rgba(244, 239, 230, 0.4); font-size: 0.75rem; }
.footer-bottom-links a:hover { color: var(--gold); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: 0.1s; }
.reveal-2 { transition-delay: 0.2s; }
.reveal-3 { transition-delay: 0.3s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .section { padding: 6rem 0; }
  .stats-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .stat-tile-1 { grid-column: 1 / 3; grid-row: 1; }
  .doctors-grid .doctor-card,
  .doctors-page-grid .doctor-card { margin-top: 0 !important; }
  .doctors-grid .doctor-card:nth-child(1) { grid-column: 1 / 7; }
  .doctors-grid .doctor-card:nth-child(2) { grid-column: 7 / 13; margin-top: 4rem !important; }
  .doctors-grid .doctor-card:nth-child(3) { grid-column: 1 / 13; margin-top: 3rem !important; }
  .doctors-page-grid .doctor-card:nth-child(odd) { grid-column: 1 / 7; }
  .doctors-page-grid .doctor-card:nth-child(even) { grid-column: 7 / 13; margin-top: 3rem !important; }
  .features-grid, .story-grid, .blog-featured, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .story-visual { position: relative; top: 0; max-width: 480px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value-card:nth-child(2n) { border-right: none; }
  .value-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .section { padding: 4.5rem 0; }
  .nav-list { display: none; }
  .nav-list.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    align-items: flex-start;
  }
  .nav-toggle { display: inline-flex; }
  .nav-phone { display: none; }
  .nav-cta .btn { display: none; }

  .hero { padding: 4rem 0 6rem; }
  .hero-meta { gap: 2rem; }

  .services-rail-wrap {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .service-card { flex: 0 0 300px; padding: 2.5rem 2rem; min-height: 400px; }

  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 2rem; }
  .footer-top { grid-template-columns: 1fr; }

  .service-row {
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
  }
  .service-row-desc, .service-row-link { display: none; }

  .doctors-grid .doctor-card,
  .doctors-page-grid .doctor-card {
    grid-column: 1 / 13 !important;
    margin-top: 0 !important;
  }
  .doctors-grid .doctor-card + .doctor-card,
  .doctors-page-grid .doctor-card + .doctor-card { margin-top: 2rem !important; }

  .values-grid { grid-template-columns: 1fr; }
  .value-card { border-right: none !important; }
  .value-card:last-child { border-bottom: none; }

  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2) { border-right: none; }

  .container { padding: 0 1.5rem; }
}

@media (max-width: 480px) {
  .hero-meta { flex-direction: column; gap: 1.5rem; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: none !important; border-bottom: 1px solid var(--line); }
}


/* ───────────────────────────────────────────────────────────────────
   smyleee mobile-nav fix
   - Desktop: hide the drawer entirely so it can't leak into the page.
   - Mobile (≤960px): force an opaque background + high z-index so the
     open drawer actually covers the page content.
   ─────────────────────────────────────────────────────────────────── */
@media (min-width: 961px) {
  .nav-mobile { display: none !important; }
}
@media (max-width: 960px) {
  .nav-mobile {
    background: #ffffff !important;
    z-index: 9999 !important;
  }
}


/* ───────────────────────────────────────────────────────────────────
   smyleee mobile-nav fix
   - Desktop: hide the drawer entirely so it can't leak into the page.
   - Mobile (≤960px):
       * Force opaque white background + high z-index.
       * Remove backdrop-filter on the sticky header — that property
         creates a containing block for position:fixed descendants,
         which trapped the drawer inside the ~80px-tall header.
   ─────────────────────────────────────────────────────────────────── */
@media (min-width: 961px) {
  .nav-mobile { display: none !important; }
}
@media (max-width: 960px) {
  .site-header, header.site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .nav-mobile {
    background: #ffffff !important;
    z-index: 9999 !important;
  }
}
