/* Stor(i) Practice — site styles
   Built from "Stori Website Wireframes.dc.html" (mid-fi → build) on the
   Stor(i) design system: bone canvas, taupe accents, rust for the logo + CTA,
   PP Editorial Old Italic for feelings, Haas Grotesk for facts.
   10px radius, no shadows, no gradients. Sentence case everywhere. */

@import url("fonts.css");
@import url("tokens.css");

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans-text);
  font-size: 17.6px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.serif {
  font-family: var(--font-serif-display);
  font-style: italic;
  font-weight: 400;
  line-height: 1.12;
}

.sans { font-family: var(--font-sans); }

.tag {
  font-family: var(--font-sans-text);
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(0, 0, 0, .45);
}

.tag--inverse { color: rgba(255, 255, 255, .6); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.rule { height: 1px; background: rgba(0, 0, 0, .12); border: 0; margin: 0 var(--pad-x); }

/* ---------- pills / buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 40px;
  border: 0;
  font: 500 13px/1 var(--font-sans);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .18s ease;
}

.pill:hover { opacity: .85; }

.pill--rust  { background: var(--stori-rust); color: #fff; }
.pill--taupe { background: var(--stori-taupe); color: #000; } /* filled/selected state — brand rule: no black backgrounds */
.pill--white { background: #fff; color: #000; }
.pill--ghost {
  background: transparent;
  color: #000;
  border: 1.5px solid rgba(0, 0, 0, .55);
}

.pill--lg { padding: 14px 28px; font-size: 14px; }
.pill--full { width: 100%; }

/* above-the-fold CTAs — header "Book now" + homepage hero. Punchier at rest,
   darker-rust sweep on hover (same left-to-right motion as the nav underline). */
.site-header .pill--rust,
.hero .pill--rust {
  position: relative;
  z-index: 0; /* own stacking context — keeps the negative-z fill layers inside the button */
  overflow: hidden;
  background: transparent; /* rust lives on ::before so the sweep can pass under the label */
  transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}

.site-header .pill--rust { padding: 12px 24px; font-size: 14px; }
.hero .pill--rust { padding: 16px 32px; font-size: 15px; }

.site-header .pill--rust::before,
.hero .pill--rust::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--stori-rust);
}

.site-header .pill--rust::after,
.hero .pill--rust::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #A94600; /* deeper rust — hover sweep */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.site-header .pill--rust:hover,
.hero .pill--rust:hover {
  opacity: 1;
  transform: translateY(-1px) scale(1.03);
}

.site-header .pill--rust:hover::after,
.hero .pill--rust:hover::after { transform: scaleX(1); }

.site-header .pill--rust:active,
.hero .pill--rust:active { transform: scale(.97); }

@media (prefers-reduced-motion: reduce) {
  .site-header .pill--rust,
  .hero .pill--rust,
  .site-header .pill--rust::after,
  .hero .pill--rust::after { transition: none; }

  .site-header .pill--rust:hover,
  .hero .pill--rust:hover { transform: none; }
}

/* ---------- header / nav ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px var(--pad-x);
  border-bottom: 1px solid rgba(0, 0, 0, .1);
  background: var(--surface-canvas);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  font-family: var(--font-serif-display);
  font-style: italic;
  font-size: 22px;
  text-decoration: none;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-family: var(--font-sans-text);
  font-size: 13.65px;
  color: #000;
}

.nav-links a {
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2.5px; /* inline box extends ~6px below the baseline; this sits the line ~0.5px under the descenders */
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a[aria-current="page"] { font-weight: 700; }

/* hamburger toggle (CSS-drawn bars, not an icon font; morphs to an X when open —
   Michael's exception to words-over-icons for the nav, Jul 27 2026) */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid rgba(0, 0, 0, .55);
  border-radius: 40px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px; /* full-round on a 2px bar = pill, the excepted radius */
  background: currentColor; /* the bars are drawn strokes, like the nav underline */
  transition: transform .3s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- real imagery ---------- */
.photo {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-card);
  display: block;
}

.video-cover {
  width: 100%;
  object-fit: cover;
  display: block;
  background: #6f6a5b;
}

/* ---------- placeholders (imagery pending) ----------
   brand-exemption: the repeating-linear-gradient hatching below is review-only
   chrome marking unfinished spots — it never ships on a real surface. */
.ph {
  background: repeating-linear-gradient(135deg, rgba(0, 0, 0, .05) 0 10px, rgba(0, 0, 0, .02) 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, .4);
  font: 400 12px var(--font-sans-text);
  text-transform: uppercase;
  border-radius: var(--radius-card);
  min-height: 120px;
  text-align: center;
  padding: 12px;
}

.ph--taupe {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .14) 0 10px, rgba(255, 255, 255, .05) 10px 20px), var(--stori-taupe);
  color: rgba(255, 255, 255, .85);
}

.ph--flush { border-radius: 0; }

.vid {
  position: relative;
  background: #6f6a5b;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-card);
  color: rgba(255, 255, 255, .9);
}

.vid::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-left: 22px solid rgba(255, 255, 255, .9);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

.vid-note {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font: 400 11px/1 var(--font-sans-text);
  opacity: .7;
}

/* ---------- shared sections ---------- */
.section { padding: 56px var(--pad-x); }

.section-title {
  font-family: var(--font-serif-display);
  font-style: italic;
  font-weight: 400;
  text-align: center;
  font-size: clamp(30px, 4vw, 40px);
  margin: 0 0 12px;
}

.section-sub {
  text-align: center;
  color: rgba(0, 0, 0, .55);
  font-size: 15.4px;
  margin: 0 auto 32px;
  max-width: 560px;
}

.band--taupe { background: var(--stori-taupe); color: #fff; }
.band--soft  { background: var(--stori-off-white); }

/* two-column editorial row */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

/* three-up grid */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- how it works ---------- */
.step-num {
  font-family: var(--font-serif-display);
  font-style: italic;
  font-size: 52px;
  color: var(--stori-taupe);
  line-height: 1;
}

.step-title { font: 500 15px/1.3 var(--font-sans); margin: 8px 0 8px; }

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--stori-taupe);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font: italic 400 20px var(--font-serif-display);
}

/* ---------- forms ---------- */
.field {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, .16);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  font: 400 13px/1.4 var(--font-sans-text);
  color: #000;
}

.field::placeholder { color: rgba(0, 0, 0, .4); }

.field:focus { outline: 2px solid var(--stori-taupe); outline-offset: 1px; }

textarea.field { min-height: 110px; resize: vertical; }

.form-note {
  font-size: 12.5px;
  color: rgba(0, 0, 0, .55);
  margin-top: 10px;
}

.band--taupe .form-note { color: rgba(255, 255, 255, .85); }

/* ---------- faq ---------- */
.faq details {
  border-bottom: 1px solid rgba(0, 0, 0, .12);
  padding: 4px 0 10px;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font: 400 14.85px/1.5 var(--font-sans-text);
  padding: 6px 0;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after { content: "+"; color: rgba(0, 0, 0, .35); font-size: 16px; }

.faq details[open] summary::after { content: "–"; }

.faq p { margin: 4px 0 8px; font-size: 14.3px; color: rgba(0, 0, 0, .6); max-width: 52ch; }

/* ---------- tabs (home 1b) ---------- */
.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }

.tab {
  background: var(--stori-off-white);
  color: rgba(0, 0, 0, .6);
  border: 1px solid rgba(0, 0, 0, .14);
}

.tab[aria-selected="true"] { background: var(--stori-taupe); color: #000; border-color: var(--stori-taupe); }

.tab-panel[hidden] { display: none; }

/* ---------- blog ---------- */
.post-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.post-card .serif { font-size: 20px; line-height: 1.25; }
.post-card p { margin: 0; font-size: 14.3px; color: rgba(0, 0, 0, .6); }
.post-meta { font-size: 11px; color: rgba(0, 0, 0, .4); }
.post-card.is-hidden { display: none; }

.filters { display: flex; gap: 9px; flex-wrap: wrap; }
.filters .pill { padding: 8px 16px; font-size: 12px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--surface-footer);
  padding: 52px var(--pad-x) 0;
  color: rgba(0, 0, 0, .65);
  font-size: 14.3px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 44px;
}

.footer-brand p { margin: 16px 0 0; max-width: 260px; line-height: 1.6; }

.footer-cred { font-size: 11.5px; color: rgba(0, 0, 0, .45); }

.footer-col h4 {
  font: 400 11.5px var(--font-sans-text);
  color: rgba(0, 0, 0, .45);
  margin: 0 0 14px;
}

.footer-col h4 + h4, .footer-col .footer-subhead { margin-top: 24px; }

.footer-col a, .footer-col span { display: block; margin: 0 0 9px; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, .12);
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(0, 0, 0, .5);
}

.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- CTA form band ---------- */
.cta-form {
  max-width: 480px;
  margin: 26px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

/* multi-select dropdown — styled to match the other form fields */
.field-select { position: relative; }

.field-select summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.field-select summary::-webkit-details-marker { display: none; }

/* chevron, drawn like the field border */
.field-select summary::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid rgba(0, 0, 0, .45);
  border-bottom: 1.5px solid rgba(0, 0, 0, .45);
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform .15s ease;
}

.field-select[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }

.field-select-value { color: rgba(0, 0, 0, .4); }

.field-select.has-value .field-select-value { color: #000; }

.field-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .16);
  border-radius: 8px;
  padding: 6px;
  z-index: 20;
}

.field-select-menu label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  font: 400 13px/1.3 var(--font-sans-text);
  color: #000;
  cursor: pointer;
}

.field-select-menu label:hover { background: var(--stori-off-white); }

.field-select-menu input { accent-color: var(--stori-taupe); }

/* ---------- direction switcher (review chrome, home variants only) ---------- */
.dir-switch {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a1a1a;
  color: rgba(255, 255, 255, .75);
  border-radius: 40px;
  padding: 8px 14px;
  font: 500 11px/1 var(--font-sans);
}

.dir-switch a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  padding: 4px 9px;
  border-radius: 40px;
}

.dir-switch a:hover { color: #fff; }
.dir-switch a.is-active { background: var(--stori-rust); color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  :root { --pad-x: 28px; }
  .split, .trio { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  :root { --pad-x: 20px; }

  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface-canvas);
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    padding: 8px 0;
    /* closed: kept in the layout but invisible, so open/close can animate */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
  }

  .nav-links.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: opacity .28s ease, transform .28s ease;
  }

  @media (prefers-reduced-motion: reduce) {
    .nav-links, .nav-toggle-bar { transition: none; }
  }

  .nav-links a { padding: 12px var(--pad-x); }

  .nav-links a::after { display: none; }

  .site-header .pill { padding: 9px 16px; font-size: 12px; }

  /* re-assert mobile size over the above-the-fold CTA rule declared later in the file */
  .site-header .pill--rust { padding: 10px 18px; font-size: 13px; }

  .site-footer { flex-direction: column; align-items: flex-start; }

  .dir-switch { left: 10px; bottom: 10px; }
}
