/* Nittany Dental Associates concept site, round two: sticky split screen.
   Newsreader (display) + Hanken Grotesk (body). Palette from their logo olive and site slate. */

:root {
  --ridge: #224C61;
  --ink: #183745;
  --muted: #4A6371;
  --mist: #F3F6F7;
  --lime: #E2E8E8;
  --moss: #64763A;
  --moss-d: #56672C;
  --rule: #C9D3D6;
  --white: #FFFFFF;

  --sa-accent: #64763A;
  --sa-accent-ink: #FFFFFF;

  --f-display: "Newsreader", Georgia, "Times New Roman", serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --m: clamp(22px, 5.6vw, 96px);   /* right-column margins */
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--mist); color: var(--ink);
  font-family: var(--f-body); font-size: 18px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
a { color: var(--moss); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--moss-d); text-decoration-thickness: 2px; }

h1, h2, h3 {
  margin: 0; font-family: var(--f-display); font-weight: 400; color: var(--ridge);
  font-optical-sizing: auto; letter-spacing: -0.01em; text-wrap: balance;
}
h1 { font-size: clamp(44px, 5.2vw, 78px); line-height: 1.04; letter-spacing: -0.018em; }
h2 { font-size: clamp(36px, 3.5vw, 54px); line-height: 1.08; }
h3 { font-size: clamp(25px, 2vw, 30px); line-height: 1.2; font-weight: 500; }

:focus-visible { outline: 2px solid var(--moss); outline-offset: 4px; border-radius: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 4px; font: 500 16px/1 var(--f-body); }
.skip:focus { top: 12px; color: var(--white); }

/* ---------- Buttons: rectangular, solid olive, no icons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 4px;
  background: var(--moss); color: var(--white);
  font: 500 17px/1.2 var(--f-body); letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--moss-d); color: var(--white); text-decoration: none; }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn--slate { background: var(--ink); }
.btn--slate:hover { background: var(--ridge); }

/* Secondary actions and assistant seeds: underlined text, still a real tap target */
.ask, .textlink {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  font: 500 17px/1.3 var(--f-body); color: var(--moss);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.ask:hover, .textlink:hover { color: var(--moss-d); text-decoration-thickness: 2px; }

.act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 34px; }
.act .textlink { font-weight: 400; color: var(--ink); }
.act .textlink:hover { color: var(--moss-d); }

/* ---------- The split ---------- */
.pane { display: none; }
.col { min-width: 0; }

@media (min-width: 1024px) {
  .split { display: grid; grid-template-columns: 1fr 1fr; }
  .pane { display: block; position: sticky; top: 0; height: 100vh; height: 100svh; }
}

.pane__frame { position: relative; height: 100%; overflow: hidden; background: var(--lime); }
.pane__layer {
  position: absolute; inset: 0; margin: 0; opacity: 0;
  transition: opacity 1s cubic-bezier(.4, 0, .2, 1);
}
.pane__layer img { width: 100%; height: 100%; object-fit: cover; }
.pane__layer.is-active { opacity: 1; z-index: 1; }
.pane__layer--pair { display: grid; grid-template-rows: 1fr 1fr; gap: 3px; background: var(--mist); }
.pane__layer--pair img { height: 100%; min-height: 0; }
.pane__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 200px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(24, 55, 69, 0) 0%, rgba(24, 55, 69, .42) 45%, rgba(24, 55, 69, .78) 100%);
}
.ridge-hair { position: absolute; left: 0; right: 0; bottom: 60px; width: 100%; height: 104px; }
.ridge-hair path { fill: none; stroke: var(--mist); stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.pane__caption {
  position: absolute; left: clamp(24px, 3vw, 48px); bottom: 22px; z-index: 4; margin: 0;
  font: 400 15px/1.4 var(--f-body); color: var(--white); letter-spacing: .01em;
  opacity: 0; transition: opacity .6s ease .25s;
}
.pane__caption.is-active { opacity: 1; }

/* ---------- Right column ---------- */
.topnav { padding: 26px var(--m) 0; }
.topnav__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { width: 244px; height: auto; }
.topnav__links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule); }
.topnav__links a {
  display: inline-flex; align-items: center; min-height: 36px;
  font: 500 16px/1 var(--f-body); color: var(--ink); text-decoration: none;
}
.topnav__links a:hover { color: var(--moss); }
.topnav__links a[aria-current="page"] { color: var(--moss); text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.menu-btn { display: none; }

.sec { padding: clamp(80px, 13vh, 150px) var(--m); }
.sec > * { max-width: var(--measure); }
.sec__photo { display: none; }
.sec p + p { margin-top: 18px; }
.sec h2 + p, .sec h2 + .lede { margin-top: 22px; }

.hero { min-height: calc(100vh - 118px); min-height: calc(100svh - 118px); display: flex; flex-direction: column; justify-content: center; padding-top: 48px; }
.hero__inner { max-width: 100%; }
.hero h1 { max-width: 11.5em; }
.lede { font-size: 21px; line-height: 1.6; color: var(--ink); max-width: 30em; }
.hero .lede { margin-top: 28px; }
.statement { margin-top: 26px; font: 400 clamp(25px, 2.1vw, 31px)/1.35 var(--f-display); color: var(--ink); letter-spacing: -0.005em; }

.label { font: 500 15px/1.3 var(--f-body); color: var(--muted); letter-spacing: .01em; }

/* Plain labelled paragraphs (payment, contact facts) */
.facts-list { margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.facts-list > li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.facts-list h3 { font: 500 17px/1.3 var(--f-body); color: var(--ink); letter-spacing: 0; }
.facts-list p { margin-top: 6px; }
.facts-list .ask, .facts-list .act { margin-top: 6px; }

/* ---------- First visit: vertical sequence ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.step {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 8px;
  padding: clamp(48px, 9vh, 104px) var(--m); min-height: 54vh; align-content: center;
}
.step > * { max-width: var(--measure); }
.step__num { grid-row: 1 / span 3; font: 400 58px/0.9 var(--f-display); color: var(--moss); font-variant-numeric: lining-nums; }
.step h3 { grid-column: 2; }
.step p { grid-column: 2; margin-top: 12px; }
.step .quote, .step .act, .step .ask { grid-column: 2; }
.step .ask { margin-top: 14px; justify-self: start; }
.quote { margin: 24px 0 0; padding-left: 20px; border-left: 1px solid var(--moss); }
.quote p { font: 400 21px/1.5 var(--f-display); color: var(--ink); margin: 0; }
.quote footer { margin-top: 10px; font-size: 15px; color: var(--muted); }
.sec--head-only { padding-bottom: 0; }

/* ---------- Services as ruled rows ---------- */
.rows { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li { padding: 26px 0 22px; border-bottom: 1px solid var(--rule); }
.rows h3 a { color: inherit; text-decoration: none; }
.rows h3 a:hover { color: var(--moss); }
.rows p { margin-top: 8px; }
.rows .ask { margin-top: 4px; }

/* ---------- Dentists ---------- */
.dentists { margin-top: 30px; }
.dentist + .dentist { margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--rule); }
.dentist__since { margin-top: 6px; font: 500 16px/1.3 var(--f-body); color: var(--moss); }
.dentist p.bio { margin-top: 12px; }
.dentist .textlink { margin-top: 6px; }

.profile__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--rule); }
.profile__lists h4 { margin: 0; font: 500 17px/1.3 var(--f-body); color: var(--ink); }
.profile__lists ul { margin: 10px 0 0; padding: 0 0 0 18px; }
.profile__lists li { margin-top: 6px; font-size: 17px; line-height: 1.55; }
.profile__lists li::marker { color: var(--moss); }
@media (max-width: 1280px) { .profile__lists { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.reviews { margin: 34px 0 0; padding: 0; list-style: none; }
.reviews li + li { margin-top: 38px; }
.reviews blockquote { margin: 0; font: 400 clamp(22px, 1.8vw, 26px)/1.5 var(--f-display); color: var(--ink); }
.reviews blockquote p::before { content: "\201C"; }
.reviews blockquote p::after { content: "\201D"; }
.reviews figure { margin: 0; }
.reviews figcaption { margin-top: 10px; font: 500 16px/1.3 var(--f-body); color: var(--moss); }
.rating { margin-top: 40px; font: 400 21px/1.5 var(--f-display); color: var(--ink); }

/* ---------- Hours ---------- */
.hours { width: 100%; max-width: 30em; margin-top: 28px; border-collapse: collapse; font-size: 18px; }
.hours caption { text-align: left; font: 500 17px/1.3 var(--f-body); color: var(--ink); padding-bottom: 8px; }
.hours th, .hours td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--rule); font-weight: 400; vertical-align: baseline; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 500; }
.today-tag { display: none; margin-left: 10px; font: 500 14px/1 var(--f-body); color: var(--moss); }
.is-today .today-tag { display: inline; }
.addr { font-style: normal; font-size: 20px; line-height: 1.55; }
.contact-lines { margin-top: 18px; }

/* ---------- Page heads (inner pages) ---------- */
.pagehead { padding-top: clamp(64px, 12vh, 132px); }
.pagehead .lede { margin-top: 24px; }
.index { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 30px 0 0; padding: 0; }
.index a { display: inline-flex; min-height: 40px; align-items: center; font-weight: 500; }

/* ---------- Form ---------- */
.form { margin-top: 30px; }
.field + .field { margin-top: 22px; }
.field label { display: block; font: 500 16.5px/1.3 var(--f-body); color: var(--ink); }
.field input, .field textarea {
  display: block; width: 100%; margin-top: 8px; padding: 14px 16px;
  font: 400 18px/1.4 var(--f-body); color: var(--ink);
  background: var(--white); border: 1px solid #8FA2A8; border-radius: 4px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; border-color: var(--moss); }
.form .btn { margin-top: 28px; }
.form__status { margin-top: 18px; padding: 16px 18px; border-radius: 4px; font-size: 17px; display: none; }
.form__status.is-ok { display: block; background: #E6ECD3; color: #3F4D1B; border: 1px solid var(--moss); }
.form__status.is-err { display: block; background: #F6E3E1; color: #7A2A22; border: 1px solid #A8463C; }

/* ---------- Footer (inside the right column) ---------- */
.foot { background: var(--lime); padding: clamp(56px, 8vh, 88px) var(--m) 32px; font-size: 17px; }
.foot__name { font: 400 30px/1.15 var(--f-display); color: var(--ridge); }
.foot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin-top: 28px; max-width: 44em; }
.foot h2 { font: 500 16px/1.3 var(--f-body); color: var(--ink); letter-spacing: 0; margin-bottom: 8px; }
.foot address { font-style: normal; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li + li { margin-top: 4px; }
.foot a { color: var(--ink); }
.foot a:hover { color: var(--moss-d); }
.foot__hours { border-collapse: collapse; }
.foot__hours th, .foot__hours td { padding: 2px 0; text-align: left; font-weight: 400; vertical-align: top; white-space: nowrap; }
.foot__hours td { padding-left: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.foot__concept { margin-top: 44px; padding-top: 18px; border-top: 1px solid #C3CDD0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.foot__concept a { color: var(--ink); }


/* ---------- Enterprise layer: proof and polish ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 26px; padding: 0; font: 400 15px/1.4 var(--f-body); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: #8FA2A8; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--moss-d); }
.crumbs [aria-current] { color: var(--ink); }

.bigrating { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 22px; margin-top: 26px; }
.bigrating__num { font: 400 clamp(88px, 8.4vw, 132px)/0.82 var(--f-display); color: var(--ridge); letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.bigrating__txt { display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; font: 400 clamp(22px, 1.9vw, 27px)/1.25 var(--f-display); color: var(--ink); }
.stars { color: var(--moss); letter-spacing: .12em; font-family: var(--f-body); font-size: 17px; line-height: 1; }

.orgs { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--rule); }
.orgs li { padding: 16px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 2px; }
.orgs .org { font: 400 20px/1.3 var(--f-display); color: var(--ink); }
.orgs .who { font-size: 15px; color: var(--muted); }
.partner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.partner-mark { width: 168px; height: auto; color: var(--muted); flex: none; }
.partner p { margin: 0; max-width: 30em; }
@media (max-width: 1280px) and (min-width: 1024px), (max-width: 560px) { .orgs { grid-template-columns: 1fr; } }

.map { margin-top: 26px; border-radius: 4px; overflow: hidden; background: var(--lime); aspect-ratio: 16 / 10; max-width: 36em; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(.75); }

.faq { margin-top: 26px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 12px 0; font: 400 21px/1.35 var(--f-display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--f-body); color: var(--moss); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; }

.tm.is-clamped blockquote p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tm.is-open blockquote p { display: block; -webkit-line-clamp: none; }
.more { display: inline-flex; align-items: center; min-height: 44px; padding: 0; margin-top: 6px; border: 0; background: none; cursor: pointer; font: 500 16px/1.2 var(--f-body); color: var(--moss); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.more:hover { color: var(--moss-d); }

.wall { list-style: none; margin: 30px 0 0; padding: 0; columns: 2; column-gap: 28px; border-top: 1px solid var(--rule); }
.rv { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); break-inside: avoid; }
.rv__mono { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 50%; background: var(--lime); color: var(--ridge); display: inline-flex; align-items: center; justify-content: center; font: 500 15px/1 var(--f-body); letter-spacing: .02em; }
.rv__name { font: 500 16.5px/1.3 var(--f-body); color: var(--ink); overflow-wrap: anywhere; }
.rv__meta { font-size: 15px; color: var(--muted); }
.rv__meta .stars { font-size: 14px; margin-right: 6px; }
.rv__reply { grid-column: 1 / -1; margin: 12px 0 2px; padding: 12px 16px; background: var(--white); border-left: 2px solid var(--moss); border-radius: 0 4px 4px 0; }
.rv__from { display: block; font: 500 14px/1.3 var(--f-body); color: var(--moss-d); }
.rv__reply p { margin-top: 4px; font-size: 16px; line-height: 1.55; }
@media (max-width: 1280px) and (min-width: 1024px), (max-width: 620px) { .wall { columns: 1; } }
@media (max-width: 620px) { .rv { padding: 10px 0; } }

.foot__logo img { width: 230px; height: auto; }
.foot__tag { margin-top: 14px; max-width: 34em; }
.foot__lines { margin-top: 8px !important; }
.foot__area { margin-top: 22px; }
.foot__rating { margin-top: 40px; font: 400 20px/1.4 var(--f-display); color: var(--ink); }

/* ---------- Mobile and tablet ---------- */
.dock { display: none; }
@media (max-width: 1023px) {
  :root { --m: clamp(22px, 6vw, 56px); }
  body { font-size: 17px; }
  .topnav { position: relative; padding: 14px var(--m); background: var(--mist); border-bottom: 1px solid var(--rule); }
  .brand img { width: 190px; }
  .topnav__row .btn { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 4px;
    background: var(--ink); color: var(--white); font: 500 16px/1 var(--f-body); cursor: pointer;
  }
  .topnav__links { display: none; flex-direction: column; gap: 0; margin: 10px 0 0; padding: 6px 0 4px; }
  .topnav__links.is-open { display: flex; }
  .topnav__links a { min-height: 50px; font-size: 19px; width: 100%; }

  .sec { padding-top: 0; padding-bottom: clamp(56px, 12vw, 88px); }
  .sec__photo {
    display: block; position: relative; height: 55vh; height: 55svh; min-height: 300px;
    margin: 0 calc(-1 * var(--m)) 36px; max-width: none; overflow: hidden; background: var(--lime);
  }
  .sec__photo img { width: 100%; height: 100%; object-fit: cover; }
  .sec__photo--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
  .sec__photo::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
    background: linear-gradient(to bottom, rgba(24, 55, 69, 0), rgba(24, 55, 69, .45));
  }
  .sec__photo .ridge-hair { bottom: 16px; height: 64px; z-index: 1; }
  .hero { min-height: 0; padding-top: 0; }
  .step { padding: 0 var(--m) clamp(48px, 11vw, 72px); min-height: 0; grid-template-columns: 56px minmax(0, 1fr); }
  .step .sec__photo { grid-column: 1 / -1; height: 44vh; height: 44svh; min-height: 260px; margin-bottom: 26px; }
  .step__num { font-size: 46px; grid-row: auto; }
  .step .sec__photo + .step__num { grid-row: 2 / span 3; }
  .pagehead { padding-top: 0; }
  .lede { font-size: 19px; }

  body { padding-bottom: 78px; }
  .dock {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 12px 88px calc(12px + env(safe-area-inset-bottom)) 12px;
    background: rgba(243, 246, 247, .97); border-top: 1px solid var(--rule);
  }
  .dock .btn { flex: 1; min-height: 50px; padding: 0 10px; }
}
@media (max-width: 520px) {
  .foot__grid { grid-template-columns: 1fr; }
  .hours th, .hours td { font-size: 16.5px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
