/* ============================================================
   STUDIO LIRA — Landing page stylesheet
   Byggd enligt Studio LIRA Website Design Guide:
   - CSS custom properties för alla färger
   - Mobile-first responsiv design
   - Franker (rubriker) + Nunito (brödtext)
   ============================================================ */

/* -------------------- Font: Franker (lokal) -------------------- */
@font-face {
  font-family: 'Franker';
  src: url('../fonts/Franker.woff2') format('woff2'),
       url('../fonts/Franker.woff') format('woff'),
       url('../fonts/Franker.ttf') format('truetype'),
       url('../fonts/Franker.otf') format('opentype');
  font-weight: 500 600;
  font-display: swap;
}

/* -------------------- Design tokens -------------------- */
:root {
  --primary: #D4A574;
  --primary-dark: #B8733A;
  --secondary: #B8C5A6;
  --tertiary: #4A5D3A;
  --dark: #3A3A3A;
  --light: #F5F2E8;
  --cream: #FFFEF7;
  --text-soft: #5A5A5A;
  --border-subtle: #E8E3D8;

  --font-heading: 'Franker', 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;

  --container-max: 1400px;
  --radius-card: 20px;
  --radius-btn: 12px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* -------------------- Typography -------------------- */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.15;
}

.hero-title {
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 500;
  text-transform: lowercase;
  background: linear-gradient(135deg, var(--tertiary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}

.class-card h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0.75rem 0 0.5rem;
}

.section-subtext,
.hero-text,
.about-text,
.popup-subtext {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-soft);
}

.small-text { font-size: 0.9rem; color: var(--text-soft); }

/* -------------------- Badge -------------------- */
.badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--dark);
  border-radius: 50px;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1.5rem;
  margin-bottom: 1.25rem;
}

.badge-on-dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--light);
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  border-radius: var(--radius-btn);
  padding: 1rem 2.2rem;
  transition: all 0.3s var(--ease);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--dark);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border-subtle);
}
.btn-secondary:hover {
  border-color: var(--tertiary);
  color: var(--tertiary);
  transform: translateY(-3px);
}

.btn-full { width: 100%; }

/* -------------------- Header / Nav -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-mark-img {
  height: 30px;
  width: auto;
  display: block;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.logo-on-dark { color: var(--light); }

.main-nav ul {
  display: flex;
  gap: 2rem;
}
.main-nav a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: lowercase;
  color: var(--dark);
  transition: color 0.25s var(--ease);
}
.main-nav a:hover { color: var(--primary-dark); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-text { margin: 1.25rem 0 2rem; max-width: 46ch; }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-media {
  position: relative;
  min-height: 280px;
}
.hero-media-main {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--light);
}
.hero-media-main img { width: 100%; height: 100%; object-fit: cover; }

.hero-media-float {
  position: absolute;
  left: 0;
  bottom: -10%;
  width: 46%;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 6px solid var(--cream);
  box-shadow: 0 15px 35px rgba(58, 58, 58, 0.15);
  background: var(--secondary);
}
.hero-media-float img { width: 100%; height: 100%; object-fit: cover; }

.hero-dots {
  position: absolute;
  right: -6%;
  bottom: 6%;
  width: 90px;
  height: 90px;
  background-image: radial-gradient(var(--primary) 22%, transparent 23%);
  background-size: 16px 16px;
  opacity: 0.6;
  z-index: -1;
}

/* -------------------- Sections -------------------- */
.section {
  padding: 4rem 0;
}
.section-light { background: var(--light); }
.section-cream { background: var(--cream); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* -------------------- Class cards -------------------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.class-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.class-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.25);
}

.class-card-image {
  aspect-ratio: 16 / 11;
  background: var(--secondary);
  overflow: hidden;
}
.class-card-image img { width: 100%; height: 100%; object-fit: cover; }

.class-card-body { padding: 1.5rem; }

.class-icon { font-size: 1.6rem; }

.card-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--primary-dark);
  text-transform: lowercase;
}

/* -------------------- About -------------------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-media {
  position: relative;
}
.about-media img {
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.about-blob {
  position: absolute;
  top: -8%;
  right: -6%;
  width: 70px;
  height: 70px;
  background: var(--secondary);
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  z-index: -1;
  opacity: 0.8;
}

.about-list {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1rem;
  color: var(--text-soft);
}
.check {
  color: var(--tertiary);
  font-weight: 700;
}

/* -------------------- Pricing calculator -------------------- */
.pricing-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: 0 15px 35px rgba(58, 58, 58, 0.06);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

.pricing-controls {
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
}

.pricing-field-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
  gap: 1rem;
}
.pricing-field-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  text-transform: lowercase;
}
.pricing-field-value {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
}

.pricing-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--border-subtle);
  outline: none;
  cursor: pointer;
}
.pricing-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--cream);
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.3);
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.pricing-slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
.pricing-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--cream);
  box-shadow: 0 2px 8px rgba(58, 58, 58, 0.3);
  cursor: pointer;
}
.pricing-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--border-subtle);
}

.pricing-slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 0.4rem;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.pricing-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.pricing-toggle-box {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  background: var(--border-subtle);
  border-radius: 999px;
  transition: background 0.25s var(--ease);
}
.pricing-toggle-box::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease);
}
.pricing-toggle-input:checked + .pricing-toggle-box { background: var(--tertiary); }
.pricing-toggle-input:checked + .pricing-toggle-box::after { transform: translateX(18px); }
.pricing-toggle-input:focus-visible + .pricing-toggle-box { outline: 3px solid var(--primary-dark); outline-offset: 2px; }
.pricing-toggle-text { font-size: 0.9rem; color: var(--text-soft); }

.pricing-result-card {
  background: linear-gradient(135deg, var(--dark) 0%, var(--tertiary) 100%);
  color: var(--light);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.pricing-result-label {
  font-family: var(--font-heading);
  text-transform: lowercase;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: rgba(245, 242, 232, 0.7);
}
.pricing-result-price {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 3rem);
  font-weight: 600;
  color: var(--light);
  line-height: 1;
}
.pricing-result-currency { font-size: 1.3rem; font-weight: 500; }

.pricing-result-breakdown {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(245, 242, 232, 0.85);
}
.pricing-result-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(245, 242, 232, 0.14);
}
.pricing-result-breakdown li:last-child { border-bottom: none; padding-bottom: 0; }

.pricing-notes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.pricing-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.pricing-group-box {
  margin-top: 1.5rem;
  text-align: center;
  background: rgba(184, 197, 166, 0.28);
  border: 1px solid rgba(74, 93, 58, 0.18);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
}
.pricing-group-box p { color: var(--text-soft); font-size: 0.98rem; }
.pricing-group-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pricing-group-link:hover { color: var(--tertiary); }

/* -------------------- Stats band -------------------- */
.stats-band {
  background: var(--primary);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 600;
  color: var(--dark);
}
.stat-label {
  font-size: 0.9rem;
  color: var(--dark);
  text-transform: lowercase;
}

/* -------------------- Featured / CTA box -------------------- */
.featured-box {
  background: linear-gradient(135deg, var(--dark) 0%, var(--tertiary) 100%);
  color: var(--light);
  text-align: center;
  border-radius: 24px;
  padding: 3rem 1.5rem;
}

.featured-title {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--light);
  margin-bottom: 0.75rem;
}

.featured-text {
  color: rgba(245, 242, 232, 0.85);
  max-width: 46ch;
  margin: 0 auto 1.75rem;
}

/* -------------------- Legal pages (integritetspolicy) -------------------- */
.legal-hero { padding-bottom: 1rem; }
.legal-updated { color: var(--text-soft); font-size: 0.9rem; margin-top: 0.25rem; }

.legal-content { max-width: 720px; margin: 0 auto; }
.legal-content p { margin-bottom: 1rem; color: var(--text-soft); }
.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: lowercase;
  color: var(--tertiary);
  margin: 2.25rem 0 0.75rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul {
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.legal-content li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--text-soft);
}
.legal-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-dark);
}
.legal-content a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover { color: var(--tertiary); }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--dark);
  color: var(--light);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: lowercase;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: rgba(245, 242, 232, 0.8); transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--primary); }

.footer-tagline {
  margin-top: 0.75rem;
  color: rgba(245, 242, 232, 0.65);
  font-size: 0.95rem;
  max-width: 32ch;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 242, 232, 0.12);
  padding: 1.25rem 0;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(245, 242, 232, 0.6);
}

/* -------------------- Popup form -------------------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 58, 58, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 200;
}
.popup-overlay[hidden] { display: none; }

.popup-dialog {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(58, 58, 58, 0.3);
  animation: popup-in 0.3s var(--ease);
}

@keyframes popup-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease);
}
.popup-close:hover { background: var(--border-subtle); }

.popup-body { padding: 2rem 1.5rem 1.75rem; }

.popup-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.popup-subtext { margin-bottom: 1.5rem; }

.popup-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
}
.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--border-subtle);
  border-radius: 10px;
  background: #fff;
  color: var(--dark);
  transition: border-color 0.25s var(--ease);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--primary-dark);
  cursor: pointer;
}
.form-checkbox a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-checkbox a:hover { color: var(--tertiary); }

.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.is-success { color: var(--tertiary); }
.form-status.is-error { color: #B3452C; }

.form-fineprint {
  font-size: 0.78rem;
  color: var(--text-soft);
  text-align: center;
}

/* -------------------- Focus states (accessibility) -------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 2px;
}

/* -------------------- Reduced motion -------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   Mobile-first: baslägena ovan gäller mobil (<768px).
   Här skalas UPP för tablet och desktop, enligt design guide.
   ============================================================ */

/* ---- Small mobile tweak (extra kompakt) ---- */
@media (max-width: 480px) {
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .section { padding: 3rem 0; }
  .popup-body { padding: 1.75rem 1.25rem 1.5rem; }
}

/* ---- Tablet (≥768px) ---- */
@media (min-width: 768px) {
  .hero-actions { flex-direction: row; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-notes { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 5rem 0; }
}

/* ---- Desktop (≥1024px) ---- */
@media (min-width: 1024px) {
  .container { padding-left: 2.5rem; padding-right: 2.5rem; }

  .nav-toggle { display: none; }

  .hero { padding: 5rem 0 6rem; }
  .hero-inner { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; }
  .hero-text { margin-bottom: 2.5rem; }

  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }

  .about-inner { grid-template-columns: 1fr 1fr; gap: 4rem; }

  .pricing-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }

  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; }

  .section { padding: 6rem 0; }
}

/* ---- Mobile nav (hides desktop nav under 1024px, shows menu button) ---- */
@media (max-width: 1023px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border-subtle);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .main-nav.is-open { max-height: 320px; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem 1.25rem;
  }
  .main-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-actions .btn-primary { display: none; }
}

@media (min-width: 1024px) {
  .main-nav.is-open,
  .main-nav { max-height: none; position: static; border: none; }
  .nav-actions .btn-primary { display: inline-block; }
}
