/*
  _shared/styles.css

  Global styles for every page. All values reference variables from
  brand/tokens.css. Edit tokens, not this file, to change your visual
  identity. Edit this file to change layout patterns or add new
  reusable components.
*/

/* RESET */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* LAYOUT */

.container {
  width: 100%;
  max-width: var(--container-default);
  margin: 0 auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}
.container-narrow { max-width: var(--container-narrow); }
.container-wide { max-width: var(--container-wide); }

.grid {
  display: grid;
  gap: var(--space-md);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* TYPOGRAPHY */

h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); margin: 0 0 var(--space-md); }
h2 { font-size: clamp(1.625rem, 2.5vw + 0.5rem, 2.5rem); margin: 0 0 var(--space-md); }
h3 { font-size: 1.25rem; margin: 0 0 var(--space-xs); font-weight: 600; }
p  { margin: 0 0 var(--space-sm); }

.text-muted { color: var(--color-text-muted); }
.text-accent {
  font-family: var(--font-accent);
  font-weight: var(--font-weight-accent);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn-primary:hover { background: var(--color-text); opacity: 1; }
.btn-secondary {
  background: var(--color-text);
  color: #ffffff;
}
.btn-ghost {
  background: var(--color-bg-soft);
  color: var(--color-text);
}
.btn-ghost:hover { background: var(--color-bg-warm); color: #ffffff; opacity: 1; }

/* CARDS */

.card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}
.card h3 { margin-top: 0; }
.card p { color: var(--color-text-muted); }
.card p:last-child { margin-bottom: 0; }

/* QUOTES */

.quote {
  margin: 0 auto;
  max-width: 720px;
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-card);
  text-align: center;
}
.quote p {
  font-size: 1.375rem;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: var(--space-md);
}
.quote footer { margin-top: var(--space-sm); }
.quote cite {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* FORMS */

label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
  width: 100%;
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg-soft);
  padding: 0.875rem 1rem;
  border: 0;
  border-radius: var(--radius-input);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}
.field { margin-bottom: var(--space-sm); }
.field-error { color: var(--color-error); font-size: 0.875rem; margin-top: 0.25rem; }
.field-success { color: var(--color-success); font-size: 0.875rem; margin-top: 0.25rem; }

/* HEADER + NAV */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.site-header > div,
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 1rem var(--space-md);
  max-width: var(--container-wide);
  margin: 0 auto;
}
.site-header .logo {
  height: 2rem;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav-item-group { display: flex; align-items: center; }
.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.5rem 0;
  letter-spacing: -0.005em;
}
.nav-link[aria-current="page"] {
  font-weight: 700;
}
.nav-link:hover { color: var(--color-accent); }

.btn-nav {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.nav-item-group { position: relative; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  min-width: 220px;
  padding: 0.5rem;
  z-index: 60;
  flex-direction: column;
  gap: 0.125rem;
}
.nav-item-group.has-dropdown:hover > .nav-dropdown,
.nav-item-group.has-dropdown:focus-within > .nav-dropdown {
  display: flex;
}
.nav-dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-button);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-text);
  text-decoration: none;
}
.nav-dropdown a:hover {
  background: var(--color-bg-soft);
  color: var(--color-accent);
  opacity: 1;
}

.burger-menu {
  display: none;
  background: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: space-around;
  cursor: pointer;
  padding: 6px 4px;
}
.burger-menu span {
  display: block;
  height: 2px;
  background: var(--color-text);
}

/* FOOTER */

.site-footer {
  background: var(--color-bg-soft);
  color: var(--color-text);
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
}
.site-footer > div,
.site-footer .container {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: left;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.site-footer .footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
  font-weight: 700;
}
.site-footer .footer-col a {
  display: block;
  color: var(--color-text);
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  text-decoration: none;
}
.site-footer .footer-col a:hover { color: var(--color-accent); opacity: 1; }
.site-footer .footer-tagline {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}
.site-footer .footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
  text-align: center;
}
.site-footer .footer-bottom p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* HERO */

.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  background: var(--color-bg);
  text-align: center;
}
.hero .container {
  max-width: 880px;
}
.hero-eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--color-accent);
  margin: 0 0 var(--space-md);
}
.hero-title {
  line-height: 1.08;
  margin-bottom: var(--space-md);
}
.hero-title-accent {
  display: block;
  font-family: var(--font-accent);
  font-weight: var(--font-weight-accent);
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  font-size: 0.7em;
  letter-spacing: -0.005em;
}
.hero-lede {
  font-size: 1.1875rem;
  line-height: 1.6;
  max-width: 36rem;
  margin: 0 auto var(--space-lg);
  color: var(--color-text-muted);
}
.hero-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

/* SECTIONS */

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.section-soft {
  background: var(--color-bg-soft);
}
.section-cta {
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--color-bg-soft);
}
.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.section-lede {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto var(--space-xl);
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* ACCESSIBILITY */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 0;
  background: var(--color-bg);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .burger-menu { display: flex; }
  .nav-right {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    min-width: 220px;
  }
  .nav-right.open { display: flex; }
  .hero { padding: var(--space-xl) 0; }
  .section { padding: var(--space-lg) 0; }
}

/* ════════════════════════════════════════════════════════════════
   MAIJA MORTON - custom components (warm dark theme + light proof cards)
   ════════════════════════════════════════════════════════════════ */

/* Theme corrections: the base template is light-on-white; we run dark-on-brown.
   Cards + quotes must flip to light surfaces so text stays readable. */
.card {
  background: var(--palette-card);
  color: var(--palette-card-text);
  box-shadow: var(--shadow-card);
}
.card h2, .card h3, .card h4 { color: var(--palette-card-text); }
.card p { color: #5c4a40; }
.quote {
  background: var(--palette-card);
  color: var(--palette-card-text);
}
.quote cite { color: #7a6458; }
.section-cta { background: var(--palette-deep); }

/* Eyebrow / section label - Playfair italic in copper, lowercase */
.eyebrow {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  color: var(--palette-copper);
  margin: 0 0 var(--space-sm);
}
.italic-accent { font-style: italic; color: var(--palette-copper); font-weight: 500; }

/* Thin rule under a heading */
.rule {
  width: 140px;
  height: 1px;
  background: var(--color-divider);
  border: 0;
  margin: var(--space-md) 0 var(--space-lg);
}
.rule-center { margin-left: auto; margin-right: auto; }

/* Buttons - copper primary, outline secondary on brown */
.btn-primary:hover { background: var(--palette-copper-deep); opacity: 1; }
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid rgba(243,238,233,0.55);
}
.btn-outline:hover { background: rgba(243,238,233,0.10); opacity: 1; }
.btn-lg { padding: 1.05rem 2.4rem; font-size: 1rem; }

/* SPLIT - photo + text panel, alternating (hero, offers, next steps) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 540px;
}
.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 5rem);
}
.split-photo { position: relative; overflow: hidden; min-height: 360px; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.split-soft { background: var(--color-bg-soft); }
.split-deep { background: var(--color-bg-dark); }
/* reverse: photo on left */
.split.reverse .split-photo { order: -1; }

/* Lead + body inside split text */
.lead { font-weight: 600; color: var(--color-text); font-size: 1.0625rem; }
.muted-on-dark { color: var(--color-text-muted); }

/* Hero specifics */
.hero-split h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); }
.hero-tagline {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--palette-copper);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

/* Brushstroke label */
.brush {
  display: inline-block;
  background: var(--palette-tan);
  color: var(--palette-deep);
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  padding: 0.35rem 1.1rem;
  border-radius: 2px 14px 4px 16px / 16px 4px 14px 2px;
}
.brush-photo {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
}

/* Social proof strip */
.proof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: var(--color-text);
}
.proof-strip .stars { color: var(--palette-copper); letter-spacing: 0.12em; }
.proof-strip .score { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.proof-strip .count { color: var(--color-text-muted); font-size: 0.95rem; }

/* COMPARISON TABLE */
.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 0.95rem;
}
.compare th, .compare td {
  padding: 0.85rem 1rem;
  text-align: center;
  vertical-align: middle;
}
.compare thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-divider);
}
.compare tbody th {
  text-align: left;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  max-width: 320px;
}
.compare tbody tr:nth-child(odd) td,
.compare tbody tr:nth-child(odd) th { background: rgba(243,238,233,0.05); }
.compare .yes { color: #9ED99A; font-weight: 700; }
.compare .no  { color: #E6A48F; }
.compare .price-row th, .compare .price-row td {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--palette-copper);
  border-top: 1px solid var(--color-divider);
}
.compare .sub { display:block; font-size: 0.8rem; color: var(--color-text-muted); }

/* PRICE CARDS */
.price-card {
  background: var(--palette-card);
  color: var(--palette-card-text);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.price-card .pc-photo { aspect-ratio: 4/3; position: relative; }
.price-card .pc-photo img { width:100%; height:100%; object-fit: cover; }
.price-card .pc-tag {
  position:absolute; left:0; bottom:0; right:0;
  background: linear-gradient(transparent, rgba(61,40,32,0.78));
  color: #fff; padding: 1.2rem 1rem 0.7rem;
  font-family: var(--font-accent); font-style: italic; font-size: 0.9rem;
}
.price-card .pc-body { padding: var(--space-md) var(--space-md) var(--space-lg); display:flex; flex-direction:column; gap:0.5rem; flex:1; }
.price-card h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--palette-card-text); margin:0; }
.price-card .pc-full { font-family: var(--font-display); font-size: 1.5rem; color: var(--palette-copper-deep); margin:0.2rem 0; }
.price-card .pc-line { display:flex; justify-content:space-between; gap:1rem; font-size:0.92rem; color:#5c4a40; }
.price-card .pc-line b { color: var(--palette-copper-deep); font-weight:700; }
.price-card .pc-early {
  background: var(--palette-tan); color: var(--palette-deep);
  font-weight: 700; font-size: 0.85rem; padding: 0.45rem 0.7rem; border-radius: 4px;
  margin: 0.3rem 0;
}
.price-card .btn { margin-top: auto; }

/* SESSION CARDS (Fluum bookable services) */
.session-card { display:flex; flex-direction:column; gap:0.5rem; }
.session-card .s-meta { color: var(--palette-copper); font-weight:700; font-size:0.85rem; letter-spacing:0.04em; text-transform:uppercase; }
.session-card .s-price { font-family: var(--font-display); font-size:1.6rem; color: var(--palette-card-text); }

/* TESTIMONIAL WALL - light bubble cards on brown */
.testi-grid { columns: 3; column-gap: var(--space-md); }
.testi-card {
  background: var(--palette-card);
  color: var(--palette-card-text);
  border-radius: 16px;
  padding: var(--space-md);
  margin: 0 0 var(--space-md);
  break-inside: avoid;
  box-shadow: var(--shadow-card);
}
.testi-card p { margin: 0 0 0.75rem; font-size: 0.97rem; line-height: 1.55; color: #4a3a32; }
.testi-card .t-meta { display:flex; align-items:center; gap:0.5rem; font-size: 0.85rem; }
.testi-card .t-name { font-weight: 700; color: var(--palette-card-text); }
.testi-card .t-stars { color: var(--palette-copper); letter-spacing: 0.06em; }
.testi-card .t-date { color: #8a7468; margin-left:auto; }

/* FAQ */
.faq-grid { display:grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.faq-item h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; color: var(--color-text); margin-bottom: 0.4rem; }
.faq-item p { color: var(--color-text-muted); }

/* QUIZ */
.quiz-stage { max-width: 720px; margin: 0 auto; text-align:center; min-height: 60vh; display:flex; flex-direction:column; justify-content:center; }
.quiz-progress { height: 3px; background: rgba(243,238,233,0.18); border-radius: 999px; margin-bottom: var(--space-lg); overflow:hidden; }
.quiz-progress > span { display:block; height:100%; background: var(--palette-copper); width:0; transition: width .35s ease; }
.quiz-q { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: var(--space-lg); }
.quiz-options { display:flex; flex-direction:column; gap: 0.75rem; }
.quiz-opt {
  background: var(--palette-card); color: var(--palette-card-text);
  border: 0; border-radius: 10px; padding: 1rem 1.4rem;
  font: inherit; font-size: 1rem; cursor: pointer; text-align:left;
  transition: transform .12s ease, background .12s ease;
}
.quiz-opt:hover { background: #fff; transform: translateY(-1px); }
.quiz-result .archetype { font-family: var(--font-accent); font-style: italic; color: var(--palette-copper); }
.quiz-back { background:none; border:0; color: var(--color-text-muted); cursor:pointer; font: inherit; margin-top: var(--space-md); }
.hidden { display:none !important; }

/* RESPONSIVE for custom components */
@media (max-width: 880px) {
  .testi-grid { columns: 2; }
}
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-photo { order: 0; }
  .split-photo { min-height: 280px; }
  .faq-grid { grid-template-columns: 1fr; }
  .testi-grid { columns: 1; }
}

