/* ============================================================
   DR. PEACHES — Design System
   Palette: Black #0B0B0B · Peach #F4A27A · Olive #7C845E · Ivory #F5F2EA
   Type: Cormorant Garamond (display) · Montserrat (body)
   ============================================================ */

:root {
  --black: #0b0b0b;
  --black-2: #111010;
  --panel: #161413;
  --panel-2: #1c1917;
  --peach: #f4a27a;
  --peach-bright: #ffc09a;
  --copper: #c9825b;
  --copper-deep: #a8663f;
  --olive: #7c845e;
  --olive-soft: #99a17a;
  --ivory: #f5f2ea;
  --ivory-70: rgba(245, 242, 234, 0.72);
  --ivory-50: rgba(245, 242, 234, 0.5);
  --line: rgba(244, 162, 122, 0.16);
  --line-soft: rgba(245, 242, 234, 0.08);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-pad: clamp(4.5rem, 10vw, 9rem);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(244, 162, 122, 0.28); color: var(--ivory); }

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

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

/* ---------- Typography ---------- */

h1, h2, h3, p, a, .lede { overflow-wrap: break-word; min-width: 0; }

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.015em;
  color: var(--ivory);
}

.display-xl {
  font-size: clamp(2.9rem, 7.2vw, 6.4rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.04;
}

@media (max-width: 700px) {
  .display-xl { font-size: clamp(2.1rem, 11vw, 2.9rem); }
  .display-xl br { display: none; }
}

.display-lg { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.display-md { font-size: clamp(1.7rem, 3vw, 2.6rem); }

.accent { color: var(--peach); }
.accent-italic { color: var(--peach); font-style: italic; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 1.6rem;
}

.kicker::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--peach));
  opacity: 0.7;
}

.kicker.centered::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--peach), transparent);
  opacity: 0.7;
}

.lede {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  color: var(--ivory-70);
  font-weight: 300;
  line-height: 1.9;
  max-width: 46rem;
}

/* ---------- Layout ---------- */

.container { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container.narrow { width: min(880px, 100% - 2 * var(--gutter)); }
.container.wide { width: min(1440px, 100% - 2 * var(--gutter)); }

section { position: relative; }
.section-pad { padding-block: var(--section-pad); }

.section-head { max-width: 54rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .kicker { justify-content: center; }

.hairline { border: 0; border-top: 1px solid var(--line-soft); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 2.1rem;
  border: 1px solid rgba(244, 162, 122, 0.45);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--peach);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--copper-deep), var(--peach));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: 0;
}

.btn:hover::before { transform: scaleX(1); }
.btn:hover { color: var(--black); border-color: var(--peach); }
.btn > * { position: relative; z-index: 1; }

.btn .arrow { transition: transform 0.45s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.btn.solid {
  background: linear-gradient(100deg, var(--copper), var(--peach));
  color: var(--black);
  border-color: transparent;
}
.btn.solid::before { background: var(--ivory); }
.btn.solid:hover { color: var(--black); }

.btn.ghost { border-color: var(--line-soft); color: var(--ivory-70); }
.btn.ghost:hover { color: var(--black); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--peach);
  border-bottom: 1px solid rgba(244, 162, 122, 0.35);
  padding-bottom: 0.35rem;
  transition: gap 0.35s var(--ease), border-color 0.35s var(--ease);
}
.text-link:hover { gap: 1rem; border-color: var(--peach); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.4s var(--ease);
  padding-block: 1.4rem;
}

.site-header.scrolled {
  background: rgba(11, 11, 11, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line-soft);
  padding-block: 0.8rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.85rem; }
.brand img { height: 2.6rem; width: auto; }
.brand-word {
  font-family: var(--serif);
  font-size: 1.28rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--peach);
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.6rem); }

.main-nav > a, .nav-drop > button {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory-70);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  padding-block: 0.5rem;
  position: relative;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.main-nav > a::after, .nav-drop > button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--peach);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.main-nav > a:hover, .main-nav > a.active, .nav-drop:hover > button { color: var(--peach); }
.main-nav > a:hover::after, .main-nav > a.active::after, .nav-drop:hover > button::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-drop { position: relative; }
.nav-drop .chev { font-size: 0.55rem; opacity: 0.7; transition: transform 0.3s; }
.nav-drop:hover .chev { transform: rotate(180deg); }

.drop-panel {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 15rem;
  background: rgba(17, 16, 16, 0.97);
  border: 1px solid var(--line);
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}

.nav-drop:hover .drop-panel, .nav-drop:focus-within .drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.drop-panel a {
  display: block;
  padding: 0.55rem 1.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-70);
  transition: color 0.25s, background 0.25s, padding-left 0.25s;
}
.drop-panel a:hover { color: var(--peach); background: rgba(244, 162, 122, 0.06); padding-left: 1.9rem; }

.header-cta { white-space: nowrap; padding: 0.85rem 1.6rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 2.2rem;
  height: 2.2rem;
  position: relative;
  z-index: 130;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--peach);
  margin-block: 0.42rem;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

/* Mobile nav */
@media (max-width: 1024px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }

  .mobile-nav-open .mobile-nav { opacity: 1; visibility: visible; }
  .mobile-nav-open { overflow: hidden; }
  .mobile-nav-open .nav-toggle span:nth-child(1) { transform: translateY(0.43rem) rotate(45deg); }
  .mobile-nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .mobile-nav-open .nav-toggle span:nth-child(3) { transform: translateY(-0.43rem) rotate(-45deg); }
}

/* backdrop-filter on the scrolled header makes it the containing block for
   fixed children, collapsing the mobile menu to the header's height — drop
   the filter while the menu is open so the overlay spans the viewport */
body.mobile-nav-open .site-header.scrolled {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(11, 11, 11, 0.98);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(11, 11, 11, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 6.5rem var(--gutter) 3rem;
  gap: 0.4rem;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
  overflow-y: auto;
}

.mobile-nav a {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  padding-block: 0.45rem;
  color: var(--ivory);
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.3s, padding-left 0.3s;
}
.mobile-nav a:hover { color: var(--peach); padding-left: 0.8rem; }
.mobile-nav .small-links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1.4rem; }
.mobile-nav .small-links a {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-50);
  border: 0;
}

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

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 78% 45%, rgba(244, 162, 122, 0.07), transparent 65%),
    radial-gradient(ellipse 50% 60% at 15% 90%, rgba(124, 132, 94, 0.06), transparent 70%),
    var(--black);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  position: relative;
}

.hero-copy .kicker { margin-bottom: 2rem; }

.hero-sub {
  margin-top: 2rem;
  max-width: 34rem;
  color: var(--ivory-70);
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 2;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 2.8rem; }

@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn, .cta-band .btn { width: 100%; justify-content: center; }
}

.hero-figure { position: relative; }

.hero-figure img {
  width: 100%;
  filter: contrast(1.02);
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 78% 82% at 50% 44%, transparent 34%, var(--black) 86%),
    linear-gradient(180deg, var(--black) 0%, transparent 18%, transparent 68%, var(--black) 98%);
  pointer-events: none;
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: -8% -12%;
  background: radial-gradient(ellipse 55% 55% at 50% 42%, rgba(244, 162, 122, 0.12), transparent 70%);
  z-index: -1;
}

.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ivory-50);
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 3.2rem;
  background: linear-gradient(180deg, var(--peach), transparent);
  animation: scrollPulse 2.2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-height: 880px) {
  .hero-scroll { display: none; }
}

@media (max-width: 900px) {
  .hero { padding-top: 7rem; min-height: auto; padding-bottom: 4rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 26rem; margin-inline: auto; }
  .hero-scroll { display: none; }
}

/* ---------- Marquee ---------- */

.marquee {
  border-block: 1px solid var(--line-soft);
  overflow: hidden;
  padding-block: 1.3rem;
  background: var(--black-2);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-50);
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
  white-space: nowrap;
}
.marquee-track span::after { content: "✦"; font-size: 0.7rem; color: var(--peach); opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }

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

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.pillar {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  position: relative;
  transition: background 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-height: 16rem;
}
.pillar:hover { background: rgba(244, 162, 122, 0.04); }

.pillar .num {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--peach);
  opacity: 0.85;
}

.pillar h3 { font-size: 1.45rem; letter-spacing: 0.03em; }

.pillar p { font-size: 0.88rem; color: var(--ivory-50); line-height: 1.85; flex-grow: 1; }

.pillar .text-link { border: 0; padding: 0; font-size: 0.65rem; opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.pillar:hover .text-link { opacity: 1; transform: none; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease), background 0.45s var(--ease);
}
.card:hover { border-color: rgba(244, 162, 122, 0.4); transform: translateY(-4px); background: var(--panel-2); }

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--peach), transparent 65%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover::after { transform: scaleX(1); }

.card h3 { font-size: 1.3rem; }
.card p { font-size: 0.86rem; color: var(--ivory-50); line-height: 1.8; }
.card .go {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.65rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--peach);
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}
.card .go .arrow { transition: transform 0.35s var(--ease); }
.card:hover .go .arrow { transform: translateX(5px); }

/* chip list */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chip {
  border: 1px solid var(--line);
  padding: 0.65rem 1.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-70);
  transition: all 0.35s var(--ease);
}
.chip:hover { border-color: var(--peach); color: var(--peach); background: rgba(244, 162, 122, 0.05); }

/* ---------- Split sections ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.split-media { position: relative; }
.split-media img { width: 100%; object-fit: cover; }
.split-media.framed::before {
  content: "";
  position: absolute;
  inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  border: 1px solid var(--line);
  z-index: -1;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-soft);
}
@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; gap: 1.4rem; }
}

.stat { min-width: 0; }
.stat .stat-num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  color: var(--peach);
  line-height: 1;
  overflow-wrap: anywhere;
}
.stat .stat-label {
  margin-top: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory-50);
}

/* ---------- Philosophy / quote band ---------- */

.philosophy {
  background:
    radial-gradient(ellipse 70% 90% at 50% 120%, rgba(124, 132, 94, 0.1), transparent 70%),
    var(--black-2);
  border-block: 1px solid var(--line-soft);
  text-align: center;
}

.philosophy .goal-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2.4rem;
  margin-top: 2.6rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-style: italic;
  color: var(--ivory-70);
}
.philosophy .goal-list span::before { content: "— "; color: var(--peach); font-style: normal; }

/* ---------- Process steps ---------- */

.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line-soft); }

.step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: clamp(1.2rem, 3vw, 3rem);
  padding-block: clamp(1.8rem, 3vw, 2.6rem);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.step:hover { background: rgba(244, 162, 122, 0.03); padding-left: 0.8rem; }

.step .step-num {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--peach);
  opacity: 0.9;
  line-height: 1;
}
.step h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.step p { color: var(--ivory-50); font-size: 0.92rem; max-width: 46rem; }

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

.cta-band {
  position: relative;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 75% at 50% 108%, rgba(244, 162, 122, 0.12), transparent 70%),
    var(--black-2);
  border-top: 1px solid var(--line-soft);
}

.cta-band .peach-mark { width: 4.2rem; margin: 0 auto 2rem; opacity: 0.9; }

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

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--black-2);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 3rem;
}

.footer-brand img { height: 4.5rem; margin-bottom: 1.2rem; }
.footer-brand p { color: var(--ivory-50); font-size: 0.85rem; max-width: 20rem; line-height: 1.9; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 1.3rem;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--ivory-50);
  padding-block: 0.32rem;
  font-size: 0.85rem;
  transition: color 0.3s, padding-left 0.3s;
}
.footer-col a:hover { color: var(--peach); padding-left: 0.4rem; }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ivory-50);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.footer-bottom .tagline { font-family: var(--serif); font-style: italic; color: var(--peach); letter-spacing: 0.05em; font-size: 0.9rem; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Inner page hero ---------- */

.page-hero {
  padding-top: clamp(9rem, 16vh, 12rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  background:
    radial-gradient(ellipse 55% 65% at 82% 0%, rgba(244, 162, 122, 0.07), transparent 65%),
    var(--black);
  border-bottom: 1px solid var(--line-soft);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-50);
  margin-bottom: 1.8rem;
}
.breadcrumbs a { color: var(--ivory-50); transition: color 0.3s; }
.breadcrumbs a:hover { color: var(--peach); }
.breadcrumbs .sep { color: var(--peach); opacity: 0.6; }

/* ---------- Article / prose ---------- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
}

.prose { max-width: 46rem; }

.prose h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  margin: 3rem 0 1.1rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line-soft);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.prose h3 { font-size: 1.28rem; margin: 2rem 0 0.6rem; color: var(--peach-bright); font-weight: 500; }

.prose p { margin-bottom: 1.1rem; color: var(--ivory-70); font-size: 0.95rem; line-height: 1.95; }

.prose ul { margin: 0.4rem 0 1.4rem; padding-left: 0; list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.55rem;
  color: var(--ivory-70);
  font-size: 0.93rem;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.85rem;
  height: 1px;
  background: var(--peach);
}

.article-layout aside {
  position: sticky;
  top: 6.5rem;
  align-self: start;
}

.aside-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 1.8rem;
}
.aside-card + .aside-card { margin-top: 1.2rem; }
.aside-card h4 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 1.1rem;
}
.aside-card a.rel {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--ivory-70);
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.3s, padding-left 0.3s;
}
.aside-card a.rel::before { content: "→"; color: var(--peach); font-size: 0.75rem; opacity: 0.75; }
.aside-card a.rel:last-of-type { border-bottom: 0; }
.aside-card a.rel:hover { color: var(--peach); padding-left: 0.4rem; }
.aside-card .btn { width: 100%; justify-content: center; margin-top: 1rem; }
.aside-card p { font-size: 0.85rem; color: var(--ivory-50); line-height: 1.8; }

@media (max-width: 1024px) {
  .article-layout aside { position: static; }
}

/* ---------- Hub (category index) ---------- */

.hub-section { padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line-soft); }
.hub-section:last-of-type { border-bottom: 0; }

.hub-section .hub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.hub-section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.hub-section .count {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivory-50);
}

.hub-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.6rem 2rem;
}
.hub-links a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--ivory-70);
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.3s, padding-left 0.3s;
}
.hub-links a::before { content: "→"; color: var(--peach); font-size: 0.8rem; opacity: 0.7; }
.hub-links a:hover { color: var(--peach); padding-left: 0.4rem; }

/* ---------- Locations ---------- */

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.2rem;
}

.location-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 2.2rem;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.location-card:hover { border-color: rgba(244, 162, 122, 0.4); transform: translateY(-4px); }
.location-card .loc-state {
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--olive-soft);
  margin-bottom: 0.9rem;
}
.location-card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.location-card address { font-style: normal; color: var(--ivory-50); font-size: 0.88rem; line-height: 1.8; margin-bottom: 1.1rem; }
.location-card ul { list-style: none; }
.location-card ul li {
  font-size: 0.78rem;
  color: var(--ivory-70);
  padding: 0.32rem 0 0.32rem 1.4rem;
  position: relative;
}
.location-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.7rem;
  height: 1px;
  background: var(--peach);
}

/* ---------- Contact form ---------- */

.contact-form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivory-50);
  margin-bottom: 0.5rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line-soft);
  padding: 0.95rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ivory);
  transition: border-color 0.35s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--peach) 50%), linear-gradient(135deg, var(--peach) 50%, transparent 50%); background-position: calc(100% - 1.3rem) 50%, calc(100% - 1rem) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--black-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--peach); }
.field textarea { min-height: 9rem; resize: vertical; }

/* ---------- Floating contact widget ---------- */

.fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
}

.fab-btn {
  width: 3.7rem;
  height: 3.7rem;
  border-radius: 50%;
  border: 1px solid rgba(244, 162, 122, 0.55);
  background: radial-gradient(circle at 35% 30%, #201b18, #0e0d0c);
  color: var(--peach);
  font-size: 1.35rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(244, 162, 122, 0.08);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.fab-btn:hover { transform: scale(1.07); box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6), 0 0 0 9px rgba(244, 162, 122, 0.12); }
.fab-btn span { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity 0.25s, transform 0.35s var(--ease); }
.fab-btn .fab-open img { width: 2.15rem; height: auto; display: block; }
.fab .fab-close { opacity: 0; transform: rotate(-90deg); }
.fab.open .fab-close { opacity: 1; transform: none; }
.fab.open .fab-open { opacity: 0; transform: rotate(90deg); }

.fab-menu {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.fab.open .fab-menu { opacity: 1; visibility: visible; transform: none; }

.fab-menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(17, 16, 16, 0.97);
  border: 1px solid var(--line);
  padding: 0.75rem 1.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-70);
  border-radius: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.fab-menu a:hover { color: var(--peach); border-color: rgba(244, 162, 122, 0.5); transform: translateX(-4px); }
.fab-menu .fab-ico { color: var(--peach); font-size: 0.95rem; }

/* ---------- Consultation modal ---------- */

.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.consult-modal.open { opacity: 1; visibility: visible; }

.consult-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.consult-panel {
  position: relative;
  width: min(34rem, 100%);
  max-height: min(92svh, 46rem);
  overflow-y: auto;
  background: var(--black-2);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  transform: translateY(18px);
  transition: transform 0.4s var(--ease);
}
.consult-modal.open .consult-panel { transform: none; }

.consult-panel h3 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 0.4rem;
}
.consult-panel .sub {
  font-size: 0.85rem;
  color: var(--ivory-50);
  margin-bottom: 1.6rem;
  line-height: 1.7;
}

.consult-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--ivory-70);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
}
.consult-close:hover { color: var(--peach); border-color: var(--peach); transform: rotate(90deg); }

body.consult-open { overflow: hidden; }

/* ---------- Site search ---------- */

.search-btn {
  background: none;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  color: var(--ivory-70);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.3s, border-color 0.3s;
}
.search-btn:hover { color: var(--peach); border-color: var(--peach); }

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1rem, 8vh, 6rem) 1.2rem 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.search-modal.open { opacity: 1; visibility: visible; }

.search-panel {
  position: relative;
  width: min(38rem, 100%);
  background: var(--black-2);
  border: 1px solid var(--line);
  transform: translateY(-12px);
  transition: transform 0.35s var(--ease);
  max-height: min(80svh, 40rem);
  display: flex;
  flex-direction: column;
}
.search-modal.open .search-panel { transform: none; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--peach);
}
.search-bar input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  min-width: 0;
}
.search-bar input::placeholder { color: var(--ivory-50); }

.search-results { overflow-y: auto; padding: 0.6rem; }
.search-hint { padding: 1.2rem; font-size: 0.85rem; color: var(--ivory-50); }

.search-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.25s, padding-left 0.25s;
}
.search-item:last-child { border-bottom: 0; }
.search-item:hover { background: rgba(244, 162, 122, 0.06); padding-left: 1.3rem; }
.search-title { font-family: var(--serif); font-size: 1.12rem; color: var(--ivory); }
.search-item:hover .search-title { color: var(--peach); }
.search-cat {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-50);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .search-btn { margin-left: auto; margin-right: 0.9rem; }
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.13s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.21s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.29s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.37s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.53s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.61s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}
