/* ==========================================================================
   Dr Eassun — Cosmetic & Implant Dentistry
   Design system: warm ivory ground, antique gold, deep espresso ink.
   Display: Cormorant Garamond · Text/UI: Jost
   ========================================================================== */

:root {
  /* Palette */
  --frame:      #b8862f;   /* gold page frame */
  --gold:       #a8802c;   /* primary accent */
  --gold-deep:  #8c6a22;   /* hover / active */
  --gold-soft:  #cfa951;   /* fine rules, ornament */
  --gold-tint:  #f0e3c8;   /* subtle gold wash */
  --cream:      #f7f0e2;   /* page ground */
  --cream-deep: #f1e7d2;   /* alternating band */
  --ivory:      #fdfaf3;   /* raised cards / pill nav */
  --white:      #ffffff;
  --ink:        #2e2517;   /* headlines */
  --ink-soft:   #55493a;   /* body copy */
  --ink-faint:  #8a7d6a;   /* captions, meta */
  --hairline:   #e3d6bc;
  --night-1:    #1a1612;   /* dark bands & heroes — warm off-black */
  --night-2:    #0e0c09;
  --night-text: #c9bda5;   /* body copy on night */
  --night-head: #f4ecda;   /* headings on night */

  /* Type */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Jost", "Avenir Next", "Helvetica Neue", sans-serif;

  /* Rhythm */
  --section: clamp(5rem, 10vw, 8.5rem);
  --gutter:  clamp(1.25rem, 4vw, 3rem);
  --radius:  1.75rem;

  --shadow-soft: 0 20px 60px -30px rgba(63, 47, 20, .35);
  --shadow-lift: 0 30px 80px -35px rgba(63, 47, 20, .45);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Gold frame around the viewport */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  border: 12px solid var(--frame);
  pointer-events: none;
  z-index: 1200;
}
@media (max-width: 720px) {
  body::after { border-width: 6px; }
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: .015em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

p { margin: 0 0 1.35rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-deep); text-decoration: none; }

::selection { background: var(--gold-tint); color: var(--ink); }

.wrap {
  width: min(72rem, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.wrap--narrow { width: min(50rem, 100% - 2 * var(--gutter)); }

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */

.display {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}

.display .accent,
.title .accent {
  font-style: italic;
  text-transform: none;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .01em;
}

.title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: .02em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.4rem;
}

.rule {
  width: 4.5rem;
  height: 2px;
  background: var(--gold-soft);
  border: 0;
  margin: 1.9rem 0 2.1rem;
}
.rule--center { margin-inline: auto; }

.lede { font-size: 1.16rem; line-height: 1.8; }

.center { text-align: center; }
.center .rule { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: 1.05rem 2.1rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 14px 30px -18px rgba(140, 106, 34, .8);
}

.btn .arrow { transition: transform .3s ease; font-size: 1rem; letter-spacing: 0; }

.btn:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -18px rgba(140, 106, 34, .9);
}
.btn:hover .arrow { transform: translateX(5px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--gold-soft);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--gold-tint); color: var(--ink); box-shadow: none; }

.btn--light {
  background: var(--ivory);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.btn--light:hover { background: var(--white); }

/* --------------------------------------------------------------------------
   Announcement ribbon + Navigation
   -------------------------------------------------------------------------- */

.ribbon {
  position: relative;
  z-index: 900;
  background: transparent;
  text-align: center;
  padding: 1.15rem 4rem .15rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

@media (max-width: 980px) {
  .ribbon { font-size: .6rem; letter-spacing: .18em; padding: 1rem 1.5rem .1rem; }
}

.nav-shell {
  position: sticky;
  top: 1.1rem;
  z-index: 1000;
  padding-inline: var(--gutter);
}

.nav {
  width: min(76rem, 100%);
  margin-inline: auto;
  background: var(--ivory);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .8rem 1rem .8rem 1.9rem;
  border: 1px solid rgba(227, 214, 188, .7);
}

.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  flex: none;
}

.brand-logo {
  height: 3.1rem;
  width: auto;
  display: block;
}

.brand-logo--light { height: 3.6rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: .4rem 0;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right .3s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav .btn { padding: .9rem 1.7rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .6rem;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .3s ease, opacity .3s ease;
}

@media (max-width: 1080px) {
  .nav { padding-right: 1.2rem; }
  .nav-links,
  .nav .btn { display: none; }
  .nav-toggle { display: block; }

  .nav.is-open {
    border-radius: var(--radius);
    flex-wrap: wrap;
  }
  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    order: 3;
    gap: .35rem;
    padding: 1.2rem .8rem 1rem;
    border-top: 1px solid var(--hairline);
    margin-top: .8rem;
  }
  .nav.is-open .nav-links a { font-size: .86rem; padding: .55rem 0; }
  .nav.is-open .btn {
    display: inline-flex;
    order: 4;
    margin: .4rem .8rem 1rem;
  }
  .nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 480px) {
  .nav { padding-left: 1.1rem; gap: .8rem; }
  .brand-logo { height: 2.6rem; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

/* Dark hero canvas — pulled up behind the ribbon and pill nav so the page
   opens on warm off-black, echoing the night bands below. */
.hero,
.page-hero {
  --pullup: 10rem;
}

@media (max-width: 980px) {
  .hero, .page-hero { --pullup: 12rem; }
}
@media (max-width: 560px) {
  .hero, .page-hero { --pullup: 13.5rem; }
}

.hero,
.page-hero {
  margin-top: calc(-1 * var(--pullup));
  background:
    radial-gradient(90rem 40rem at 80% -10%, rgba(168, 128, 44, .16), transparent 60%),
    linear-gradient(168deg, var(--night-1) 0%, var(--night-2) 100%);
  color: var(--night-text);
}

.hero h1, .page-hero h1 { color: var(--night-head); }
.hero .accent, .page-hero .accent { color: var(--gold-soft); }
.hero .eyebrow, .page-hero .eyebrow { color: var(--gold-soft); }
.hero .rule, .page-hero .rule { background: rgba(207, 169, 81, .55); }

.hero {
  padding: calc(var(--pullup) + clamp(3rem, 7vw, 5.5rem)) 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.hero-copy { padding-bottom: clamp(3rem, 7vw, 6rem); }

.hero-copy .lede { max-width: 34rem; }

.hero-portrait {
  position: relative;
  align-self: end;
}

.hero-portrait .portrait-arch {
  border-radius: 20rem 20rem 0 0;
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  border-bottom: 0;
  background:
    radial-gradient(120% 90% at 70% 10%, #fff8ea 0%, var(--cream-deep) 60%, #e9dcc0 100%);
  box-shadow: var(--shadow-lift);
}

.hero-portrait img {
  width: 100%;
  filter: grayscale(1) contrast(1.04);
  mix-blend-mode: multiply;
}

.hero-badge {
  position: absolute;
  left: -1.4rem;
  bottom: 2.6rem;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: 1.1rem;
  box-shadow: var(--shadow-soft);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}

.hero-badge .stars { color: var(--gold); letter-spacing: .15em; font-size: .9rem; }
.hero-badge p {
  margin: 0;
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
}
.hero-badge strong { display: block; font-weight: 500; color: var(--ink); letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-copy { padding-bottom: 0; }
  .hero-portrait { max-width: 26rem; margin-top: 1rem; }
  .hero-badge { left: .8rem; }
}

/* --------------------------------------------------------------------------
   Sections & bands
   -------------------------------------------------------------------------- */

.section { padding: var(--section) 0; }

.band { background: var(--cream-deep); }

.band--ivory {
  background: var(--ivory);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.band--ink {
  background: linear-gradient(150deg, var(--night-1) 0%, var(--night-2) 100%);
  color: var(--night-text);
}
.band--ink h2, .band--ink h3 { color: var(--night-head); }
.band--ink .eyebrow { color: var(--gold-soft); }
.band--ink .rule { background: rgba(207, 169, 81, .6); }
.band--ink .pull-quote { color: var(--night-head); }
.band--ink .accent { color: var(--gold-soft); }

/* Split layout used across pages */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split--tight { align-items: start; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

/* Feature list with gold ticks */
.gold-list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: .8rem 2rem;
}

.gold-list li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 1rem;
  color: var(--ink-soft);
}

.gold-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: .95rem;
  height: 1px;
  background: var(--gold);
}
.gold-list li::after {
  content: "";
  position: absolute;
  left: .62rem;
  top: .28em;
  width: 1px;
  height: .55em;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0;
}
.gold-list--check li::before {
  width: .42rem;
  transform: rotate(45deg);
  top: .68em;
  left: .05rem;
}
.gold-list--check li::after {
  opacity: 1;
  left: .3rem;
  top: .58em;
  width: .78rem;
  height: 1px;
  transform: rotate(-45deg);
}

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-row .stat h3 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 500;
  margin-bottom: .4rem;
}
.stat-row .stat h3 sup { font-size: .45em; color: var(--gold); }
.stat-row .stat p {
  font-size: .74rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1.4rem, 3vw, 2.2rem);
}

.card {
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(2rem, 3.5vw, 2.8rem);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.card .card-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1.3rem;
}

.card h3 { font-size: 1.7rem; margin-bottom: .9rem; }
.card p { font-size: .99rem; }
.card .card-link {
  margin-top: auto;
  padding-top: 1.4rem;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.card .card-link .arrow { display: inline-block; transition: transform .3s ease; margin-left: .5rem; }
.card:hover .card-link .arrow { transform: translateX(5px); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.6rem, 3vw, 2.4rem);
  counter-reset: step;
}

.step {
  position: relative;
  padding: 2.4rem 2rem 2rem;
  border-top: 1px solid var(--gold-soft);
}

.step .step-no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.2rem;
  font-weight: 500;
  color: var(--gold);
  opacity: .55;
  line-height: 1;
  display: block;
  margin-bottom: 1.2rem;
}

.step h3 {
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}

.step p { font-size: .98rem; }

/* --------------------------------------------------------------------------
   Before / After slider
   -------------------------------------------------------------------------- */

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: clamp(1.6rem, 3vw, 2.4rem);
}

.ba {
  position: relative;
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-soft);
  user-select: none;
  touch-action: pan-y;
  background: #000;
}

.ba img {
  width: 100%;
  aspect-ratio: 668 / 314;
  object-fit: cover;
  pointer-events: none;
}

.ba .ba-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}

.ba .ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--ivory);
  transform: translateX(-1px);
  pointer-events: none;
}

.ba .ba-handle::after {
  content: "\2194";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

.ba .ba-tag {
  position: absolute;
  bottom: .8rem;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(46, 37, 23, .55);
  padding: .35rem .8rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.ba .ba-tag--before { left: .8rem; }
.ba .ba-tag--after  { right: .8rem; }

.ba-caption {
  margin-top: 1rem;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.quote-grid {
  columns: 3;
  column-gap: 1.8rem;
}
@media (max-width: 1000px) { .quote-grid { columns: 2; } }
@media (max-width: 680px)  { .quote-grid { columns: 1; } }

.quote {
  break-inside: avoid;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: 1.4rem;
  padding: 2rem 2rem 1.7rem;
  margin: 0 0 1.8rem;
  box-shadow: var(--shadow-soft);
}

.quote .stars { color: var(--gold); letter-spacing: .2em; font-size: .82rem; margin-bottom: 1rem; }

.quote blockquote {
  margin: 0 0 1.3rem;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink);
}

.quote figcaption {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.quote figcaption strong { color: var(--gold-deep); font-weight: 500; }

.pull-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  max-width: 44rem;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Accordion (FAQs)
   -------------------------------------------------------------------------- */

.accordion { border-top: 1px solid var(--hairline); }

.accordion details {
  border-bottom: 1px solid var(--hairline);
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem .2rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  transition: color .3s ease;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--gold-deep); }

.accordion summary .marker {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--gold);
  flex: none;
  transition: transform .3s ease;
  line-height: 1;
}

.accordion details[open] summary .marker { transform: rotate(45deg); }

.accordion .accordion-body {
  padding: 0 2.5rem 1.8rem .2rem;
  font-size: 1rem;
  max-width: 46rem;
}

/* --------------------------------------------------------------------------
   Video
   -------------------------------------------------------------------------- */

.video-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-lift);
  background: #000;
}
.video-frame video { width: 100%; display: block; }

/* Google Maps embeds */
.map-frame {
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  margin-top: 1.6rem;
}
.map-frame iframe {
  width: 100%;
  height: 19rem;
  border: 0;
  display: block;
  filter: saturate(.82) contrast(1.02);
}

.card .card-address {
  font-size: .92rem;
  color: var(--ink-faint);
  line-height: 1.6;
  margin: -0.4rem 0 1rem;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-card {
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: clamp(2rem, 4vw, 3.2rem);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem 1.5rem;
}
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .55rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: .9rem;
  padding: .95rem 1.15rem;
  font-family: var(--sans);
  font-size: .98rem;
  font-weight: 300;
  color: var(--ink);
  transition: border-color .3s ease, box-shadow .3s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(207, 169, 81, .18);
}

.field textarea { resize: vertical; min-height: 8rem; }

.form-consent {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--ink-faint);
  margin: 1.4rem 0 1.8rem;
}
.form-consent input { margin-top: .3rem; accent-color: var(--gold); }

.form-note { font-size: .85rem; color: var(--ink-faint); margin-top: 1.2rem; }

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}
.form-success h3 { font-size: 1.9rem; }
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: block; }

/* --------------------------------------------------------------------------
   Contact block
   -------------------------------------------------------------------------- */

.contact-lines { list-style: none; margin: 0 0 2rem; padding: 0; }

.contact-lines li {
  display: flex;
  gap: 1.1rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 1rem;
}

.contact-lines .k {
  flex: none;
  width: 6.5rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact-lines a { color: var(--ink); }
.contact-lines a:hover { color: var(--gold-deep); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band { text-align: center; }
.cta-band .title { margin-bottom: 1rem; }
.cta-band p { max-width: 36rem; margin: 0 auto 2.4rem; }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  padding: calc(var(--pullup) + clamp(3.5rem, 8vw, 6rem)) 0 clamp(4rem, 7vw, 6rem);
  text-align: center;
}
.page-hero .display { max-width: 56rem; margin-inline: auto; }
.page-hero .lede { max-width: 40rem; margin-inline: auto; }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1.4rem, 3vw, 2.2rem);
}

.post-card { text-decoration: none; }
.post-card .meta {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.9rem; margin-top: 3rem; }
.prose h3 { font-size: 1.45rem; margin-top: 2.4rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose .post-meta {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2.5rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: linear-gradient(150deg, var(--night-1) 0%, var(--night-2) 100%);
  color: var(--night-text);
  padding: clamp(4rem, 8vw, 6rem) 0 3rem;
  font-size: .95rem;
}

.footer a { color: #e9dfc9; }
.footer a:hover { color: var(--gold-soft); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(233, 223, 201, .15);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer .brand { margin-bottom: 1.6rem; }

.footer h4 {
  color: #f6efe0;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .7rem; }
.footer li a { font-size: .92rem; font-weight: 300; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding-top: 2.2rem;
  font-size: .78rem;
  letter-spacing: .08em;
  color: #9c8f77;
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.19, 1, .22, 1), transform .9s cubic-bezier(.19, 1, .22, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
