/* ==========================================================================
   Salotto 58 — Design tokens
   ========================================================================== */

:root {
  /* Palette */
  --bg: #F4EFE6;
  --bg-alt: #EAE1D0;
  --bg-alt-2: #E1D6C1;
  --surface: #FDFBF7;
  --charcoal: #322E27;
  --charcoal-deep: #211E19;
  --taupe: #D8CBB4;
  --taupe-line: #C7B89E;
  --sage: #C6B79B;
  --sage-deep: #8C7847;
  --sage-pale: #F1E9D8;
  --ink-soft: #6B6355;

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;

  /* Scale */
  --gutter: clamp(1.5rem, 4vw, 4rem);
  --maxw: 1320px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

body {
  background: var(--bg);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}

/* ==========================================================================
   Type
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--charcoal);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--sage-deep);
  display: inline-block;
}

.display-huge { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.display-lg   { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.display-md   { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 46ch;
}

.italic { font-style: italic; font-weight: 400; }

/* ==========================================================================
   Layout
   ========================================================================== */

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--charcoal-deep); color: var(--bg); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--bg); }
.section--sage { background: var(--sage-pale); }

.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.hr {
  height: 1px;
  background: var(--taupe-line);
  border: none;
  width: 100%;
}

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

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 1rem 2rem;
  border-radius: 999px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--charcoal-deep);
  color: var(--bg);
}
.btn-primary:hover { background: var(--sage-deep); transform: translateY(-2px); }

.btn-ghost {
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
}
.btn-ghost:hover { background: var(--charcoal); color: var(--bg); transform: translateY(-2px); }

.btn-ghost-light {
  border: 1px solid rgba(244,239,230,0.55);
  color: var(--bg);
}
.btn-ghost-light:hover { background: var(--bg); color: var(--charcoal-deep); transform: translateY(-2px); }

.link-underline {
  position: relative;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.link-underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  opacity: 0.4;
  transition: opacity 0.3s var(--ease);
}
.link-underline:hover::after { opacity: 1; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.35rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(244,239,230,0.92);
  backdrop-filter: blur(10px);
  padding-block: 0.9rem;
  box-shadow: 0 1px 0 var(--taupe-line);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.wordmark span { color: var(--sage-deep); }

.logo-img {
  height: 38px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 42px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .logo-img { height: 28px; }
}

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 2.4rem; align-items: center; }
.main-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}
.main-nav a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

.nav-toggle {
  width: 44px; height: 44px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 22px; height: 1px; background: var(--charcoal); transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0;
  background: var(--charcoal-deep);
  color: var(--bg);
  z-index: 99;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 1.4rem; }
.mobile-nav a { font-family: var(--font-display); font-size: 2.1rem; }
.mobile-nav .mobile-nav-foot { margin-top: 3rem; opacity: 0.6; font-size: 0.85rem; }

/* ==========================================================================
   58 mark — signature motif
   ========================================================================== */

.mark-58 {
  font-family: var(--font-display);
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--taupe-line);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  padding-top: 8rem;
  overflow: hidden;
}
.hero-mark {
  position: absolute;
  top: 8%;
  right: -2%;
  font-size: clamp(9rem, 26vw, 22rem);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1.5rem; flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--taupe-line);
}
.hero-foot p { font-size: 0.85rem; color: var(--ink-soft); }

/* ==========================================================================
   Category cards (icon-free, text-led)
   ========================================================================== */

.cat-card { display: flex; flex-direction: column; gap: 1rem; }
.cat-card h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.cat-card p { color: var(--ink-soft); font-size: 0.95rem; }
.cat-card .link-underline { margin-top: 0.2rem; }

/* ==========================================================================
   Cards
   ========================================================================== */

.treatment-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--taupe-line);
}
.treatment-row:last-child { border-bottom: 1px solid var(--taupe-line); }
.treatment-row .t-name { font-family: var(--font-display); font-size: 1.2rem; }
.treatment-row .t-desc { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.35rem; max-width: 46ch; }
.treatment-row .t-meta { font-size: 0.8rem; color: var(--sage-deep); font-weight: 600; letter-spacing: 0.03em; white-space: nowrap; text-align: right; }

.quote-card { padding: 2.4rem; background: var(--surface); border: 1px solid var(--taupe-line); border-radius: 3px; }
.quote-card p.q { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; line-height: 1.55; }
.quote-card .who { margin-top: 1.2rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }

.practitioner-card h3 { font-size: 1.25rem; margin-top: 1.2rem; }
.practitioner-card .role { font-size: 0.8rem; color: var(--sage-deep); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-top: 0.3rem; }
.practitioner-card p.bio { margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.93rem; }

.monogram {
  aspect-ratio: 3 / 4.4;
  border-radius: 2px;
  background: var(--sage-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.monogram span {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 400;
  color: var(--sage-deep);
  letter-spacing: 0.02em;
}
.monogram img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mark-box {
  aspect-ratio: 3 / 4.4;
  border-radius: 2px;
  background: var(--sage-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mark-box img { width: 30%; height: auto; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--charcoal-deep); color: var(--bg); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.footer-grid { display: grid; gap: 2.6rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--taupe); margin-bottom: 1rem; }
.site-footer p, .site-footer a { font-size: 0.92rem; color: rgba(244,239,230,0.85); }
.site-footer a:hover { color: var(--bg); }
.footer-nav li { margin-bottom: 0.6rem; }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(244,239,230,0.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.78rem; color: rgba(244,239,230,0.55);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Misc
   ========================================================================== */

.pill-note {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--sage-deep);
  background: var(--sage-pale);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pill-note.inline {
  font-size: 0.6rem;
  padding: 0.28rem 0.7rem;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.two-col { display: grid; gap: clamp(2.5rem, 6vw, 5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.stat-row { display: flex; flex-wrap: wrap; gap: clamp(2rem, 6vw, 4.5rem); margin-top: 2.5rem; }
.stat-row .stat b { display: block; font-family: var(--font-display); font-size: 2.2rem; }
.stat-row .stat span { font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

.page-hero {
  padding-top: clamp(8rem, 14vw, 11rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.consult-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.8rem 2rem;
  background: var(--surface);
  border: 1px solid var(--taupe-line);
  border-radius: 3px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.map-block {
  aspect-ratio: 16/9;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
.map-illustration { width: 100%; height: 100%; display: block; }
.map-road { fill: none; stroke: var(--taupe-line); stroke-width: 1.4; }
.map-road--minor { stroke-width: 1; opacity: 0.7; }
.map-block-shape { fill: var(--surface); stroke: var(--taupe-line); stroke-width: 1; opacity: 0.75; }
.map-block-highlight { fill: var(--sage-pale); stroke: var(--sage-deep); stroke-width: 1.3; }
.map-pin-body { fill: var(--charcoal-deep); }
.map-pin-label {
  font-family: var(--font-display);
  font-size: 11px;
  fill: var(--bg);
  text-anchor: middle;
}
.map-street-label {
  font-family: var(--font-body);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.12em;
  fill: var(--ink-soft);
}
.map-poi-label {
  font-family: var(--font-body);
  font-size: 5.4px;
  font-weight: 500;
  letter-spacing: 0.01em;
  fill: var(--ink-soft);
  text-anchor: middle;
}
.map-poi-label--home {
  font-family: var(--font-body);
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  fill: var(--sage-deep);
  text-anchor: middle;
}
.map-pin-shadow { fill: var(--charcoal); opacity: 0.14; }
.map-pin-pulse {
  fill: none;
  stroke: var(--sage-deep);
  stroke-width: 1.5;
  opacity: 0.5;
  transform-origin: center;
  animation: map-pulse 2.6s ease-out infinite;
}
@keyframes map-pulse {
  0% { transform: scale(0.6); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .map-pin-pulse { animation: none; opacity: 0; }
}

.form-field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.4rem; }
.form-field label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.form-field input, .form-field textarea {
  font: inherit; font-size: 0.95rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--taupe-line);
  border-radius: 2px;
  color: var(--charcoal);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--sage-deep); }
