/* ==========================================================================
   Kemelman Dental — "Editorial Boutique" design system
   ========================================================================== */

:root {
  --navy-deep: #0a1c30;
  --navy: #153862;
  --navy-soft: #1f4571;
  --gold: #bd9060;
  --gold-bright: #e0b483;
  --gold-deep: #8d653a;
  --cream: #f6f1e9;
  --ink: #14181d;
  --white: #fbfaf8;
  --muted: rgba(251, 250, 248, 0.62);
  --muted-ink: rgba(20, 24, 29, 0.65);
  --muted-faint: rgba(251, 250, 248, 0.55);
  --hairline: rgba(251, 250, 248, 0.12);
  --hairline-ink: rgba(20, 24, 29, 0.14);

  --font-display: 'Suez One', serif;
  --font-body: 'Heebo', sans-serif;

  --container: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.002em;
}

a { color: inherit; text-decoration: none; }

/* Grain overlay for atmosphere */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-line {
  border-color: rgba(251,250,248,0.35);
  color: var(--white);
}
.btn-line:hover { border-color: var(--gold); color: var(--gold); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px 0;
  transition: all 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 16px 0;
  background: rgba(10, 28, 48, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img {
  height: 38px;
  width: auto;
}
.nav-logo span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--muted);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  right: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: none; }
@media (min-width: 860px) { .nav-cta { display: inline-flex; } }
.nav-links { display: none; }
@media (min-width: 860px) { .nav-links { display: flex; } }

.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
@media (min-width: 860px) { .nav-burger { display: none; } }
.nav-burger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav.is-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 20, 34, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.nav.is-open .nav-mobile-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-mobile-panel a { font-family: var(--font-display); font-size: 1.6rem; color: var(--white); }
.nav-mobile-panel a.btn { font-family: var(--font-body); }
@media (min-width: 860px) { .nav-mobile-panel { display: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 900px 600px at 82% 12%, rgba(189,144,96,0.16), transparent 60%),
    radial-gradient(ellipse 700px 700px at 8% 90%, rgba(31,69,113,0.55), transparent 65%),
    linear-gradient(160deg, var(--navy-deep) 0%, #0d2035 55%, var(--navy-deep) 100%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 24px;
}
.hero-copy { padding-bottom: 40px; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.6rem);
  color: var(--white);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-sub {
  margin-top: 26px;
  max-width: 46ch;
  font-size: 1.12rem;
  color: var(--muted);
  font-weight: 300;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: 64px;
  display: flex;
  gap: 48px;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--white);
}
.hero-stats div span {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-visual {
  position: relative;
  height: 640px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-visual::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(189,144,96,0.32), transparent 70%);
  filter: blur(10px);
  top: 8%;
  right: 8%;
}
.hero-portrait-frame {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.hero-portrait-frame img {
  height: 92%;
  max-width: none;
  width: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55)) drop-shadow(0 0 40px rgba(189,144,96,0.18));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-ring {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid rgba(189,144,96,0.35);
  border-radius: 50%;
  z-index: -1;
}
.hero-tag {
  position: absolute;
  bottom: 6%;
  right: -4px;
  background: rgba(10,28,48,0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hairline);
  padding: 14px 20px;
  border-radius: 3px;
  max-width: 210px;
}
.hero-tag strong { display:block; font-family: var(--font-display); color: var(--gold); font-size: 1.3rem; }
.hero-tag span { font-size: 0.78rem; color: var(--muted); }

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}
.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 900px) {
  .hero { padding-top: 110px; min-height: unset; padding-bottom: 60px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; order: -1; margin-bottom: 24px; }
  .hero-stats { gap: 32px; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee-wrap {
  position: relative;
  background: var(--navy);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
  transform: rotate(-0.6deg) scale(1.02);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-marquee 32s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-bright);
  padding: 0 28px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 28px;
}
.marquee-track span::after { content: '✦'; font-size: 0.7rem; color: rgba(251,250,248,0.4); }
@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Section shell
   ========================================================================== */
.section { padding: 88px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-top: 14px; }
.section-light { background: var(--cream); color: var(--ink); }
.section-light .muted { color: var(--muted-ink); }
.section-light .eyebrow { color: var(--gold-deep); }
.muted { color: var(--muted); }

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .container { padding: 0 22px; }
  .section-head { margin-bottom: 32px; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 70px;
  align-items: center;
}
.about-copy .eyebrow { margin-bottom: 20px; }
.about-copy h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 28px; }
.about-copy p { color: var(--muted); margin-bottom: 18px; max-width: 56ch; font-weight: 300; }
.about-copy p strong { color: var(--white); font-weight: 500; }

.about-pull {
  margin: 34px 0;
  padding-right: 24px;
  border-right: 2px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--white);
}

.about-signature {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.about-signature strong { display: block; font-family: var(--font-display); color: var(--gold); font-size: 1.15rem; margin-bottom: 6px; }
.about-signature span { font-size: 0.88rem; color: var(--muted); }

.about-media { position: relative; }
.about-media-frame {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.about-media-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.about-media-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(189,144,96,0.18), transparent 45%);
}
.about-media-badge {
  position: absolute;
  bottom: -22px;
  right: -22px;
  background: var(--gold);
  color: var(--navy-deep);
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.3;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 380px; margin: 0 auto; }
  .about-pull { border-right: none; border-top: 2px solid var(--gold); padding-right: 0; padding-top: 18px; }
}

/* ==========================================================================
   Treatments — editorial numbered list
   ========================================================================== */
.treatments-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.treatments-head p { max-width: 42ch; }

.treatment-row {
  display: flex;
  align-items: flex-start;
  gap: 44px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
  cursor: default;
  transition: padding 0.4s var(--ease);
}
.treatments-list .treatment-row:last-child { border-bottom: 1px solid var(--hairline); }

.treatment-num {
  order: 2;
  flex: 0 0 auto;
  width: 110px;
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(189,144,96,0.55);
  transition: color 0.4s var(--ease), -webkit-text-stroke 0.4s var(--ease);
}
.treatment-row:hover .treatment-num {
  color: var(--gold);
  -webkit-text-stroke: 1px var(--gold);
}

.treatment-body { order: 1; flex: 1; display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.treatment-heading { flex: 1 1 260px; }
.treatment-heading h3 { font-size: 1.5rem; margin-bottom: 10px; display: flex; align-items: center; gap: 14px; }
.treatment-icon { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; }
.treatment-heading span { font-size: 0.9rem; color: var(--muted); }

.treatment-list { flex: 1 1 320px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.treatment-list li { font-size: 0.94rem; color: var(--muted); position: relative; padding-right: 16px; }
.treatment-list li::before { content: ''; position: absolute; right: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.treatment-list small { display: block; color: var(--muted-faint); margin-top: 2px; }

@media (max-width: 760px) {
  .treatment-row { flex-direction: column; gap: 18px; padding: 32px 0; }
  .treatment-num { order: 1; font-size: 2.4rem; width: auto; }
  .treatment-body { order: 2; flex-direction: column; gap: 18px; }
  .treatment-heading, .treatment-list { flex: 1 1 auto; }
  /* Touch devices have no hover, so the ghost-outline-until-hover numeral
     from desktop would stay permanently near-invisible. Fill it directly. */
  .treatment-num { color: var(--gold); -webkit-text-stroke: 1px var(--gold); }
}

/* ==========================================================================
   Clinic showcase
   ========================================================================== */
.clinic-showcase {
  position: relative;
  height: 640px;
  overflow: hidden;
}
.clinic-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% top;
}
.clinic-showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--navy-deep) 0%, rgba(10,28,48,0.62) 32%, rgba(10,28,48,0.08) 62%, transparent 100%);
}
.clinic-content {
  position: absolute;
  z-index: 1;
  bottom: 64px;
  right: 0; left: 0;
}
.clinic-content .eyebrow { margin-bottom: 16px; }
.clinic-content h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); max-width: 20ch; margin-bottom: 14px; color: var(--white); }
.clinic-content p { max-width: 50ch; color: var(--muted); }

@media (max-width: 760px) {
  .clinic-showcase { height: 440px; }
  .clinic-content { bottom: 36px; }
}

/* ==========================================================================
   Approach (light inverted panel)
   ========================================================================== */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.approach-block .eyebrow { margin-bottom: 18px; }
.approach-block h3 { font-size: 1.7rem; margin-bottom: 18px; }
.approach-block p { color: var(--muted-ink); font-weight: 300; max-width: 48ch; }
.approach-icon {
  width: 54px; height: 54px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin-bottom: 24px;
}
.approach-icon svg { width: 26px; height: 26px; }
.approach-quote {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--navy);
  padding-right: 20px;
  border-right: 2px solid var(--gold);
}

@media (max-width: 860px) {
  .approach-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ==========================================================================
   Footer / CTA
   ========================================================================== */
.footer-cta {
  padding: 88px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 500px at 50% 0%, rgba(189,144,96,0.14), transparent 65%);
}
.footer-cta .eyebrow { justify-content: center; margin-bottom: 24px; }
.footer-cta h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 16ch; margin: 0 auto; position: relative; z-index: 1; }
.footer-cta p { margin: 26px auto 0; max-width: 50ch; color: var(--muted); position: relative; z-index: 1; }
.footer-cta .hero-actions { justify-content: center; margin-top: 44px; position: relative; z-index: 1; }

.footer-info {
  border-top: 1px solid var(--hairline);
  padding: 56px 0;
}
.footer-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.footer-brand img { height: 32px; width: auto; opacity: 0.95; }
.footer-brand span { font-family: var(--font-display); font-size: 1.1rem; }

.footer-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.footer-list li { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--muted); }
.footer-list svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }

.footer-hours { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-hours div h4 { color: var(--gold); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; margin-bottom: 6px; }
.footer-hours div p { font-size: 0.86rem; color: var(--muted); }

.footer-map {
  height: 260px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  filter: grayscale(0.5) invert(0.92) contrast(0.9);
}
.footer-map iframe { width: 100%; height: 100%; border: 0; }

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted-faint);
}

@media (max-width: 800px) {
  .footer-info-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-map { height: 220px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
