/* YogaGear base layer.
   Curated copy of the reusable visual conventions in astangastudio.dk/css/astanga-v2.css (snapshot 2026-10-10):
   tokens, typography, header/navigation behaviour, buttons, sections, footer, responsive rules.
   Studio-specific components (rental, schedule, workshop, calendar…) are deliberately not copied, and the studio
   file is never linked or modified — YogaGear stays independent of studio CSS changes.
   Differences from the studio: lotus-orange accent instead of wine, logo is a wide lockup, cart pill in the header. */

:root {
  --ink: #251f1d;
  --ink-soft: #5f5752;
  --paper: #fbf8f3;
  --warm: #f1ebe2;
  --soft: #f7f2eb;
  --white: #fff;
  --line: rgba(37, 31, 29, .18);
  --line-soft: rgba(37, 31, 29, .1);
  --night: #211a18;                 /* footer / dark sections (same as studio footer) */
  --lotus: #f7941d;                 /* logo orange: graphics, highlights, focus — never body text on light */
  --lotus-soft: #fde7cc;
  --accent: #a55b00;                /* AA text/button orange on cream and white (≈4.9:1) */
  --accent-dark: #844800;
  --success: #3d6b3f;
  --danger: #a3271a;
  --display: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Inter, system-ui, sans-serif;
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --radius: .25rem;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Same as astanga-v2.css: no desktop overscroll bounce leaving a background band above the hero. */
@media (hover: hover) and (pointer: fine) { html, body { overscroll-behavior-y: none; } }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
main p a, main li a, .prose a { font-weight: 600; color: var(--accent); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lotus); outline-offset: 3px; }

.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 9999; padding: .75rem 1rem; background: var(--white); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.container { width: min(calc(100% - (2 * var(--gutter))), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 960px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--warm { background: var(--warm); }
.section--soft { background: var(--soft); }
.section--dark { color: var(--white); background: var(--night); }

.eyebrow { margin: 0 0 1.1rem; font-size: .72rem; font-weight: 600; letter-spacing: .18em; line-height: 1.4; text-transform: uppercase; }
.eyebrow--accent { color: var(--accent); }
.section--dark .eyebrow--accent { color: var(--lotus); }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1; letter-spacing: -.03em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 4.2rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.12; }
p { margin: 0 0 1.25rem; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.55; }
.muted { color: var(--ink-soft); }

/* ---- Header ---------------------------------------------------------------------------------------------------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 100; color: var(--white); transition: background .3s ease, color .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled,
.site-header--solid { position: fixed; color: var(--ink); background: rgba(251, 248, 243, .95); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px); }
.site-header--solid + main { padding-top: var(--header-h); }
.site-header__inner { min-height: var(--header-h); width: min(calc(100% - (2 * var(--gutter))), 1440px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

/* Wide logo lockup: white-text version over photos, black-text version on light backgrounds. Proportions from the SVG. */
.wordmark { position: relative; display: block; flex: 0 0 auto; height: 3.1rem; aspect-ratio: 345.61 / 153.5; }
.wordmark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s ease; }
.wordmark__on-dark { opacity: 1; }
.wordmark__on-light { opacity: 0; }
.site-header.is-scrolled .wordmark__on-dark, .site-header--solid .wordmark__on-dark { opacity: 0; }
.site-header.is-scrolled .wordmark__on-light, .site-header--solid .wordmark__on-light { opacity: 1; }

.primary-nav { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2.1rem); }
.primary-nav a { position: relative; font-size: .84rem; font-weight: 600; letter-spacing: .03em; }
.primary-nav > a:not(.nav-language)::after,
.nav-item__row > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.35rem; height: 1px; background: currentColor; transition: right .25s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after, .primary-nav a.is-active::after { right: 0; }
.site-header:not(.is-scrolled):not(.site-header--solid) .primary-nav > a,
.site-header:not(.is-scrolled):not(.site-header--solid) .nav-item__row > a,
.site-header:not(.is-scrolled):not(.site-header--solid) .header-actions a { text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }

.nav-language { display: inline-flex; align-items: center; padding: .25rem; }
.nav-language img { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.cart-pill { display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; padding: .45rem 1rem; border: 1px solid currentColor; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.cart-pill svg { width: 18px; height: 18px; }
.cart-pill__count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; color: var(--ink); background: var(--lotus); border-radius: 999px; font-size: .72rem; text-shadow: none; }
.cart-pill__count[data-count="0"] { color: inherit; background: transparent; box-shadow: inset 0 0 0 1px currentColor; }

/* Dropdown (desktop) — same card design as the studio menu. */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item__row { display: flex; align-items: center; }
.nav-dropdown { display: flex; flex-direction: column; }
.nav-item__toggle { display: none; padding: 0; border: 0; background: none; cursor: pointer; line-height: 1; }
.nav-item__toggle::after { content: "+"; }
.nav-item__toggle[aria-expanded="true"]::after { content: "−"; }
.menu-toggle { display: none; color: inherit; background: none; border: 0; cursor: pointer; padding: .6rem .2rem; }
.menu-toggle__lines, .menu-toggle__lines::before, .menu-toggle__lines::after { display: block; width: 24px; height: 2px; background: currentColor; }
.menu-toggle__lines { position: relative; }
.menu-toggle__lines::before, .menu-toggle__lines::after { content: ""; position: absolute; left: 0; }
.menu-toggle__lines::before { top: -7px; }
.menu-toggle__lines::after { top: 7px; }

@media (min-width: 981px) {
  .nav-dropdown { position: absolute; top: calc(100% + .75rem); left: -1.1rem; z-index: 20; width: 240px; gap: .2rem; padding: 1.1rem; color: var(--ink); background: var(--white); border-radius: 1.25rem; box-shadow: 0 20px 45px rgba(37, 31, 29, .18); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
  .nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-dropdown a { display: block; padding: .5rem .25rem; font-size: .98rem; text-shadow: none !important; }
  .nav-dropdown a::after { display: none; }
  .nav-dropdown a.is-active, .nav-dropdown a:hover { color: var(--accent); }
  .header-actions .nav-language { display: none; }
}

@media (max-width: 980px) {
  :root { --header-h: 76px; }
  .wordmark { height: 2.6rem; }
  .menu-toggle { display: inline-flex; order: 3; }
  .header-actions { order: 2; margin-left: auto; }
  .header-actions .nav-language { display: inline-flex; padding: .55rem; border: 1px solid currentColor; border-radius: 999px; }
  .site-header__inner { position: relative; gap: .6rem; }
  .primary-nav { display: none; }
  .primary-nav.is-open { position: absolute; top: calc(100% + .5rem); right: 0; display: flex; flex-direction: column; align-items: stretch; gap: .15rem; width: min(290px, calc(100vw - 2 * var(--gutter))); padding: 1.1rem; color: var(--ink); background: var(--white); border-radius: 1.25rem; box-shadow: 0 20px 45px rgba(37, 31, 29, .18); }
  .primary-nav.is-open a { display: block; padding: .55rem .25rem; font-size: 1rem; text-shadow: none !important; }
  .primary-nav.is-open a::after { display: none; }
  .primary-nav.is-open .nav-language { display: none; }
  .primary-nav.is-open .nav-item { flex-direction: column; align-items: stretch; }
  .primary-nav.is-open .nav-item__row { justify-content: space-between; }
  .primary-nav.is-open .nav-item__row > a { flex: 1 1 auto; }
  .primary-nav.is-open .nav-item__toggle { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; font-size: 1.15rem; }
  .primary-nav.is-open .nav-dropdown { display: none; padding: 0 0 .3rem .9rem; }
  .primary-nav.is-open .nav-item.is-expanded > .nav-dropdown { display: flex; }
  .primary-nav.is-open .nav-dropdown a { padding: .4rem .25rem; color: var(--ink-soft); font-size: .94rem; font-weight: 500; }
  .cart-pill__label { display: none; }
  .cart-pill { padding: .45rem .75rem; }
}

/* ---- Buttons --------------------------------------------------------------------------------------------------- */
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .85rem 1.4rem; border: 1px solid transparent; border-radius: 999px; font-size: .84rem; font-weight: 600; letter-spacing: .03em; cursor: pointer; transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled, .button[aria-disabled="true"] { cursor: not-allowed; opacity: .55; transform: none; }
.button--primary { color: var(--white); background: var(--accent); }
.button--primary:hover:not(:disabled) { background: var(--accent-dark); }
.button--dark { color: var(--white); background: var(--ink); }
.button--light { color: var(--ink); background: var(--white); }
.button--outline { border-color: currentColor; background: transparent; }
.button--text { padding-inline: .25rem; border-radius: 0; }
.button--block { width: 100%; }

/* ---- Section headings ---------------------------------------------------------------------------------------- */
.section-heading { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-heading--split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .6fr); align-items: end; gap: 2.5rem; }
.section-heading--split > p { max-width: 420px; margin: 0 0 .5rem auto; color: var(--ink-soft); }

/* ---- Footer ---------------------------------------------------------------------------------------------------- */
.site-footer { padding: clamp(4rem, 8vw, 6.5rem) 0 2rem; color: rgba(255, 255, 255, .78); background: var(--night); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.site-footer__logo { width: 190px; aspect-ratio: 345.61 / 153.5; }
.site-footer__note { max-width: 320px; margin-top: 1.5rem; }
.site-footer h2 { margin-bottom: 1.2rem; color: var(--white); font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.site-footer__grid a { display: block; margin: .5rem 0; }
.site-footer__grid a:hover, .site-footer__grid a:focus-visible { color: var(--lotus); }
.site-footer address { font-style: normal; }
.site-footer__bottom { margin-top: 4rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .78rem; }
.site-footer__bottom a:hover { color: var(--lotus); }

@media (max-width: 980px) {
  .section-heading--split { grid-template-columns: 1fr; }
  .section-heading--split > p { margin-left: 0; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 1rem; }
  .button-row { align-items: stretch; flex-direction: column; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
