/* ============================================================
   Parkway Dental Care — Redesign
   Palette: deep pine + warm cream + fresh mint + soft clay
   ============================================================ */

:root {
  --pine: #0f2e28;
  --pine-soft: #163e35;
  --cream: #f4efe6;
  --cream-deep: #e9e1d2;
  --mint: #7bd3b4;
  --mint-deep: #3ba585;
  --clay: #d98b6a;
  --ink: #0b1a16;
  --muted: #6f7a74;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Manrope', system-ui, sans-serif;

  --ease: cubic-bezier(0.65, 0.05, 0.1, 1);
  --pad: clamp(1.25rem, 5vw, 6rem);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--mint); color: var(--pine); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--pine);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2.5rem;
}
.loader__inner {
  display: flex; gap: .5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 3rem);
  color: var(--cream);
  overflow: hidden;
}
.loader__word { display: inline-block; transform: translateY(110%); }
.loader__word:nth-child(2) { font-style: italic; color: var(--mint); }
.loader__bar {
  width: min(260px, 60vw); height: 2px;
  background: rgba(244,239,230,.2); overflow: hidden;
}
.loader__bar span {
  display: block; height: 100%; width: 0;
  background: var(--mint);
}

/* ---------- Custom cursor ---------- */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 900;
  border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor {
  width: 40px; height: 40px;
  border: 1px solid var(--cream);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease);
}
.cursor-dot {
  width: 5px; height: 5px; background: var(--cream);
}
.cursor.is-hover { width: 68px; height: 68px; background: var(--cream); }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--mint), var(--clay));
  z-index: 800;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 700;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem var(--pad);
  transition: background .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s;
  mix-blend-mode: difference; color: var(--cream);
}
.nav.is-scrolled {
  mix-blend-mode: normal;
  background: rgba(15,46,40,.85);
  backdrop-filter: blur(14px);
  padding: .85rem var(--pad);
  color: var(--cream);
}
.nav__brand { display: flex; align-items: center; gap: .7rem; }
.nav__logo {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1.5px solid currentColor; border-radius: 50%;
  font-family: var(--font-serif); font-size: 1.2rem;
}
.nav__name { font-weight: 600; font-size: 1rem; letter-spacing: .01em; line-height: 1.1; }
.nav__name em { display: block; font-style: normal; font-weight: 400; font-size: .68rem; opacity: .7; letter-spacing: .05em; }
.nav__links { display: flex; align-items: center; gap: 2rem; font-size: .92rem; font-weight: 500; }
.nav__links a { position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: currentColor; transition: width .35s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  border: 1px solid currentColor; padding: .55rem 1.1rem; border-radius: 40px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav__cta:hover { background: var(--mint); color: var(--pine); border-color: var(--mint); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 24px; position: relative; }
.nav__burger span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .3s; }
.nav__burger span:nth-child(1) { top: 6px; }
.nav__burger span:nth-child(2) { bottom: 6px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.8rem; border-radius: 50px;
  font-weight: 600; font-size: .95rem;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(6px); }
.btn--primary { background: var(--pine); color: var(--cream); }
.btn--primary:hover { background: var(--mint-deep); }
.btn--ghost { border: 1px solid rgba(11,26,22,.3); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

/* ---------- Section shared ---------- */
.section-tag {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: var(--mint-deep); margin-bottom: 1.5rem;
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh;
  padding: 8rem var(--pad) 0;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--pine); color: var(--cream);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,46,40,.7) 0%, rgba(15,46,40,.82) 55%, var(--pine) 100%); }
.hero__orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
}
.hero__orb--1 { width: 46vw; height: 46vw; background: radial-gradient(circle, var(--mint-deep), transparent 70%); top: -10%; right: -8%; }
.hero__orb--2 { width: 38vw; height: 38vw; background: radial-gradient(circle, var(--clay), transparent 70%); bottom: 4%; left: -6%; opacity: .4; }

.hero__inner { position: relative; z-index: 2; max-width: 1100px; }
.hero__eyebrow { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; margin-bottom: 1.75rem; }
.hero__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 8.5rem);
  line-height: .95; letter-spacing: -.02em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word { display: inline-block; transform: translateY(110%); }
.hero__title--italic { font-style: italic; color: var(--mint); }
.hero__lede {
  max-width: 44ch; margin-top: 2rem; font-size: clamp(1rem, 1.5vw, 1.25rem);
  opacity: .8; line-height: 1.6;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.hero .btn--primary { background: var(--cream); color: var(--pine); }
.hero .btn--primary:hover { background: var(--mint); }
.hero .btn--ghost { border-color: rgba(244,239,230,.35); color: var(--cream); }
.hero .btn--ghost:hover { background: var(--cream); color: var(--pine); }

.hero__scroll {
  position: absolute; bottom: 6.5rem; right: var(--pad); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7;
}
.hero__scroll-line { width: 1px; height: 60px; background: linear-gradient(var(--mint), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content:''; position:absolute; top:0; left:0; width:100%; height:40%; background: var(--cream); animation: scrollDown 2s infinite var(--ease); }
@keyframes scrollDown { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

.hero__marquee {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  border-top: 1px solid rgba(244,239,230,.15);
  padding: 1.1rem 0; overflow: hidden; white-space: nowrap;
}
.marquee__track { display: inline-flex; gap: 2.5rem; will-change: transform; }
.marquee__track span { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; opacity: .85; }
.marquee__track span:nth-child(even) { color: var(--mint); font-style: normal; }

/* ---------- ABOUT ---------- */
.about { padding: clamp(5rem, 12vw, 10rem) var(--pad); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.about__sticky { position: sticky; top: 20vh; align-self: start; }
.about__heading {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.8rem); line-height: 1.02; letter-spacing: -.02em;
}
.about__figure { margin: 2.5rem 0 0; border-radius: 24px; overflow: hidden; aspect-ratio: 5/4; }
.about__figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.about__figure:hover img { transform: scale(1.06); }
.about__lead { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 300; line-height: 1.4; margin-bottom: 1.75rem; font-family: var(--font-serif); }
.about__body p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.5rem; }
.about__stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--cream-deep); }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-serif); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--pine); }
.stat__suffix { font-family: var(--font-serif); font-size: 1.6rem; color: var(--mint-deep); vertical-align: super; }
.stat__label { font-size: .85rem; color: var(--muted); margin-top: .6rem; letter-spacing: .02em; }

/* ---------- SERVICES ---------- */
.services { padding: clamp(4rem, 10vw, 8rem) var(--pad); background: var(--pine); color: var(--cream); border-radius: 40px 40px 0 0; }
.services__head { max-width: 900px; margin-bottom: 4rem; }
.services__head .section-tag { color: var(--mint); }
.services__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.02em; }
.services__list { border-top: 1px solid rgba(244,239,230,.18); }
.service {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem;
  padding: clamp(1.6rem, 4vw, 2.8rem) 0;
  border-bottom: 1px solid rgba(244,239,230,.18);
  position: relative; cursor: pointer;
}
.service::before {
  content: ''; position: absolute; inset: 0; background: var(--mint); z-index: 0;
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.service:hover::before { transform: scaleY(1); }
.service > * { position: relative; z-index: 1; transition: color .4s var(--ease); }
.service__index { font-family: var(--font-serif); font-size: 1rem; opacity: .6; }
.service__name { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.5rem, 3.5vw, 2.6rem); letter-spacing: -.01em; }
.service__desc { color: rgba(244,239,230,.6); max-width: 46ch; margin-top: .5rem; font-size: 1rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s var(--ease), margin .4s; }
.service:hover .service__desc { max-height: 100px; opacity: 1; }
.service__plus { font-size: 2rem; font-weight: 300; transition: transform .5s var(--ease); }
.service:hover .service__plus { transform: rotate(135deg); }
.service:hover .service__name, .service:hover .service__index, .service:hover .service__plus { color: var(--pine); }
.service:hover .service__desc { color: rgba(15,46,40,.75); }

/* ---------- STATEMENT ---------- */
.statement {
  padding: clamp(5rem, 14vw, 12rem) var(--pad);
  background: var(--pine); color: var(--cream);
}
.statement__text {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 6.5rem); line-height: 1.05;
  letter-spacing: -.02em; text-align: center; max-width: 18ch; margin: 0 auto;
}
.reveal-word { display: inline-block; opacity: .12; transition: opacity .3s; }
.statement__accent { font-style: italic; color: var(--mint); }

/* ---------- TEAM ---------- */
.team { padding: clamp(5rem, 12vw, 10rem) var(--pad); background: var(--cream); }
.team__head { max-width: 800px; margin-bottom: 4rem; }
.team__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -.02em; }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.member__photo {
  aspect-ratio: 4/5; border-radius: 24px; margin-bottom: 1.5rem;
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.member__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 1s var(--ease); }
.member:hover .member__photo img { transform: scale(1.06); }
.member__photo::after { content:''; position:absolute; inset:0; z-index: 2; background: linear-gradient(180deg, transparent 55%, rgba(11,26,22,.35)); }
.member__photo--a { background: linear-gradient(150deg, var(--mint-deep), var(--pine)); }
.member__photo--b { background: linear-gradient(150deg, var(--clay), var(--pine-soft)); }
.member__photo--c { background: linear-gradient(150deg, var(--mint), var(--mint-deep)); }
.member h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.4rem; margin-bottom: .5rem; }
.member p { color: var(--muted); font-size: .98rem; line-height: 1.6; }

/* ---------- VOICES ---------- */
.voices { padding: clamp(4rem, 10vw, 8rem) 0; background: var(--cream-deep); overflow: hidden; }
.voices__head { padding: 0 var(--pad); margin-bottom: 3rem; }
.voices__viewport { width: 100%; overflow: hidden; }
.voices__track { display: flex; gap: 2rem; padding: 0 var(--pad); will-change: transform; }
.voice {
  flex: 0 0 min(520px, 80vw); background: var(--cream);
  border-radius: 24px; padding: clamp(2rem, 4vw, 3rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.voice p { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.3rem, 2.5vw, 1.9rem); line-height: 1.35; letter-spacing: -.01em; }
.voice cite { font-style: normal; font-weight: 600; color: var(--mint-deep); font-size: .95rem; letter-spacing: .04em; }
.voice cite::before { content: '— '; }

/* ---------- FEES ---------- */
.fees { padding: clamp(5rem, 12vw, 10rem) var(--pad); }
.fees__head { max-width: 700px; margin-bottom: 3.5rem; }
.fees__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3.8rem); letter-spacing: -.02em; }
.fees__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.fee-card {
  border: 1px solid var(--cream-deep); border-radius: 28px;
  padding: clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .5s;
}
.fee-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(15,46,40,.35); }
.fee-card--feature { background: var(--pine); color: var(--cream); border-color: var(--pine); }
.fee-card__badge { display: inline-block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pine); background: var(--mint); padding: .35rem .8rem; border-radius: 40px; margin-bottom: 1.25rem; font-weight: 600; }
.fee-card__top h3 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .8rem; }
.fee-card__top p { color: var(--muted); line-height: 1.6; }
.fee-card--feature .fee-card__top p { color: rgba(244,239,230,.7); }
.fee-card__list { list-style: none; margin: 2rem 0; display: grid; gap: .9rem; flex: 1; }
.fee-card__list li { position: relative; padding-left: 1.8rem; font-size: 1rem; }
.fee-card__list li::before { content: '✓'; position: absolute; left: 0; color: var(--mint-deep); font-weight: 700; }
.fee-card--feature .fee-card__list li::before { color: var(--mint); }
.fee-card__link { font-weight: 600; color: var(--mint-deep); font-size: 1rem; transition: gap .3s; }
.fee-card--feature .fee-card__link { color: var(--mint); }

/* ---------- CONTACT ---------- */
.contact { padding: clamp(5rem, 12vw, 10rem) var(--pad); background: var(--pine); color: var(--cream); }
.contact__inner { display: grid; gap: 4rem; }
.contact__lead { max-width: 700px; }
.contact__lead .section-tag { color: var(--mint); }
.contact__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.6rem, 8vw, 6rem); letter-spacing: -.02em; line-height: 1; }
.contact__sub { margin-top: 1.5rem; opacity: .75; font-size: 1.15rem; max-width: 46ch; line-height: 1.6; }
.contact__details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 3rem 0; border-top: 1px solid rgba(244,239,230,.18); border-bottom: 1px solid rgba(244,239,230,.18); }
.contact__item { display: flex; flex-direction: column; gap: .75rem; }
.contact__label { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mint); }
.contact__value { font-family: var(--font-serif); font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.3; }
a.contact__item:hover .contact__value { color: var(--mint); transition: color .3s; }
.contact__big {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-serif); font-size: clamp(1.8rem, 6vw, 4.5rem);
  letter-spacing: -.02em; border-top: 1px solid rgba(244,239,230,.18);
  padding-top: 2.5rem; transition: color .4s;
}
.contact__big:hover { color: var(--mint); }
.contact__big-arrow { transition: transform .4s var(--ease); }
.contact__big:hover .contact__big-arrow { transform: translate(8px, -8px); }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: var(--cream); padding: clamp(3rem, 6vw, 5rem) var(--pad) 2rem; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(244,239,230,.15); }
.footer__brand { font-family: var(--font-serif); font-size: clamp(1.8rem, 5vw, 3.5rem); }
.footer__tag { font-style: italic; font-family: var(--font-serif); opacity: .6; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 2rem; font-size: .85rem; opacity: .5; }

/* ---------- Reveal helpers ---------- */
[data-anim] { will-change: transform, opacity; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__sticky { position: static; }
  .team__grid { grid-template-columns: 1fr; max-width: 420px; }
  .fees__cards { grid-template-columns: 1fr; }
  .contact__details { grid-template-columns: 1fr; }
  .nav__links {
    position: fixed; inset: 0; background: var(--pine); color: var(--cream);
    flex-direction: column; justify-content: center; gap: 2rem; font-size: 1.5rem;
    transform: translateY(-100%); transition: transform .6s var(--ease);
  }
  .nav.is-open .nav__links { transform: translateY(0); }
  .nav__burger { display: block; z-index: 10; }
  .nav.is-open { mix-blend-mode: normal; color: var(--cream); }
  .service { grid-template-columns: auto 1fr auto; gap: 1rem; }
  .service__desc { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .hero__title .word, .loader__word { transform: none !important; }
}
