/* ==========================================================================
   עלמה · קונדיטוריה ביתית — Design System
   Motif: "warm boutique patisserie" — appetizing, handmade, refined.
   RTL / Hebrew. Vanilla CSS only.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;500;600;700;800&display=swap');

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --bg:            #F6ECE0; /* warm vanilla cream — page background */
  --surface:       #FCF6EE; /* cards / raised panels */
  --text:          #382A2B; /* deep cocoa-plum — headings & body */
  --text-muted:    #8A766C; /* warm taupe — sub-copy, captions */
  --accent:        #C0436A; /* raspberry rose — CTAs, links, active */
  --accent-hover:  #A6395A; /* deep raspberry — hover/pressed */
  --accent-2:      #D08A3E; /* golden caramel — eyebrows, details */
  --border:        #E7D8C7; /* soft warm tan — borders, dividers */

  /* The one permitted gradient + hero scrim */
  --gradient:      linear-gradient(135deg, #C0436A 0%, #D08A3E 100%);
  --hero-overlay:  linear-gradient(rgba(40,28,28,0.30), rgba(40,28,28,0.62));

  /* Tinted accents (translucent) */
  --accent-tint:   rgba(192, 67, 106, 0.10);
  --caramel-tint:  rgba(208, 138, 62, 0.12);

  /* Radius */
  --r-card:   20px;
  --r-img:    18px;
  --r-input:  14px;
  --r-pill:   999px;
  --r-btn-2:  14px;

  /* Shadow — warm-tinted, never black, never glowing */
  --sh-sm:         0 2px 8px rgba(56,42,43,0.05);
  --sh-card:       0 6px 20px rgba(56,42,43,0.07);
  --sh-card-hover: 0 14px 34px rgba(56,42,43,0.13);
  --sh-btn:        0 4px 14px rgba(192,67,106,0.22);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-hover:  200ms ease;

  /* Layout */
  --container: 1160px;
  --gutter:    clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; transition: color var(--t-hover); }
a:hover { color: var(--accent-hover); }

ul { list-style: none; }

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

:focus-visible {
  outline: 3px solid rgba(192, 67, 106, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { color: var(--text); }

h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2 {
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

h3 {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
}

p { color: var(--text); }

.lead {
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--text);
}

.muted { color: var(--text-muted); }

strong { font-weight: 700; }

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

/* anchor targets clear the sticky header */
[id] { scroll-margin-top: 92px; }

.section--surface { background: var(--surface); }

.narrow { max-width: 760px; }

.center { text-align: center; margin-inline: auto; }

/* Eyebrow / section label — caramel, weight + letter-spacing (no uppercase) */
.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
}

/* Section heading block with small caramel underline accent */
.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { max-width: 680px; }

.section-head h2 { position: relative; }

.underline-accent::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: var(--gradient);
  margin-top: 0.9rem;
}
.section-head.center .underline-accent::after { margin-inline: auto; }

.section-head p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 60ch;
}
.section-head.center p { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.7rem;
  border-radius: var(--r-pill);
  transition: background var(--t-hover), color var(--t-hover),
              transform var(--t-hover), box-shadow var(--t-hover);
  white-space: nowrap;
}

.btn .icon { width: 1.15em; height: 1.15em; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--sh-btn);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--r-pill);
}
.btn-secondary:hover {
  background: var(--accent-tint);
  color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-lg { padding: 1.1rem 2.2rem; font-size: 1.075rem; }
.btn-block { width: 100%; }

/* On-gradient (light) buttons */
.btn-on-grad {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 6px 18px rgba(40,28,28,0.18);
}
.btn-on-grad:hover { background: #FFF7F1; color: var(--accent-hover); transform: translateY(-2px) scale(1.02); }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.8);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.14); color: #fff; transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   6. Icons
   -------------------------------------------------------------------------- */
.icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--caramel-tint);
  color: var(--accent-2);
  margin-bottom: 1.25rem;
}
.icon-badge .icon { width: 30px; height: 30px; }
.icon-badge--rose { background: var(--accent-tint); color: var(--accent); }

/* --------------------------------------------------------------------------
   7. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 236, 224, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-hover), background var(--t-hover), box-shadow var(--t-hover);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--sh-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 74px;
}

/* Wordmark — sits on the right in RTL (first in DOM) */
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand .brand-name {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand .brand-sub {
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--accent-2);
}
.brand:hover .brand-name { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.2rem);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.nav-links a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  position: relative;
  padding-block: 0.25rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: width var(--t-hover);
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background var(--t-hover);
}
.nav-toggle:hover { background: var(--caramel-tint); }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 80vh, 760px);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #fff;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: -1;
}
.hero-home    { background-image: url('_uploads/ai_20084db68015c184.jpg'); }
.hero-about   { background-image: url('_uploads/ai_5b90a77cf27c1e66.jpg'); }
.hero-contact {
  background-image: url('_uploads/ai_7e5fb8c36f1bfdee.jpg');
  min-height: clamp(360px, 52vh, 480px);
}

.hero-inner { max-width: 720px; padding-block: 3rem; }

.hero .eyebrow { color: #F3C98D; }

.hero h1 { color: #fff; }
.hero .hero-brand {
  display: block;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
}
.hero .hero-tagline {
  display: block;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  letter-spacing: 0;
  margin-top: 0.4rem;
  color: #FBE9DE;
}
.hero p.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  max-width: 56ch;
  text-shadow: 0 1px 12px rgba(40,28,28,0.35);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.1rem;
}

.hero-slim .hero-inner { padding-block: 2rem; }
.hero-slim h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }

/* --------------------------------------------------------------------------
   9. Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.25rem, 2.6vw, 1.9rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: clamp(1.6rem, 2.6vw, 2rem);
  box-shadow: var(--sh-card);
  transition: transform var(--t-hover), box-shadow var(--t-hover), border-color var(--t-hover);
  height: 100%;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-card-hover);
  border-color: #DBC7B2;
}
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--text-muted); font-size: 1rem; }

/* Category card (what I make) */
.cat-card { display: flex; flex-direction: column; }
.cat-card .price {
  display: inline-block;
  margin-top: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.05rem;
}
.cat-card .cat-link {
  margin-top: auto;
  padding-top: 1.1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
}
.cat-card .cat-link .icon { width: 1em; height: 1em; transition: transform var(--t-hover); }
/* arrow points in the RTL reading direction (left) and nudges on hover */
.cat-card .cat-link:hover .icon { transform: translateX(-4px); }

/* Value prop card — airy, centered */
.value-card { text-align: center; }
.value-card .icon-badge { margin-inline: auto; }
.value-card h3 { font-size: 1.3rem; }

/* --------------------------------------------------------------------------
   10. Brand intro band
   -------------------------------------------------------------------------- */
.intro-band { text-align: center; }
.intro-band .intro-text {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 500;
  line-height: 1.6;
  max-width: 40ch;
  margin-inline: auto;
  color: var(--text);
}
.intro-band .intro-text .hl { color: var(--accent); font-weight: 700; }
.intro-band .signature {
  margin-top: 1.6rem;
  font-weight: 700;
  color: var(--accent-2);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   11. How-to-order steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.step { text-align: center; position: relative; }
.step-num {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  background: var(--accent);
  box-shadow: var(--sh-btn);
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); }
/* connector line between steps (RTL aware) */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px;
  inset-inline-end: calc(-50% + 32px);
  width: calc(100% - 64px);
  height: 2px;
  background: repeating-linear-gradient(to left, var(--border) 0 8px, transparent 8px 16px);
  z-index: -1;
}

/* --------------------------------------------------------------------------
   12. Invitation band
   -------------------------------------------------------------------------- */
.invite {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  text-align: center;
  box-shadow: var(--sh-card);
  position: relative;
  overflow: hidden;
}
.invite::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: var(--accent);
}
.invite .eyebrow { color: var(--accent); }
.invite h2 { margin-bottom: 0.9rem; }
.invite p { color: var(--text-muted); max-width: 56ch; margin-inline: auto; font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   13. Gradient CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  border-radius: 28px;
  padding: clamp(2.6rem, 6vw, 4.4rem) clamp(1.5rem, 5vw, 3rem);
  box-shadow: var(--sh-card);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% -20%, rgba(255,255,255,0.18), transparent 55%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; position: relative; text-shadow: 0 1px 10px rgba(40,28,28,0.20); }
.cta-band p {
  color: #fff;
  max-width: 52ch;
  margin: 1rem auto 0;
  font-size: 1.15rem;
  position: relative;
  text-shadow: 0 1px 8px rgba(40,28,28,0.18);
}
.cta-band .hero-cta { justify-content: center; margin-top: 2rem; position: relative; }

/* --------------------------------------------------------------------------
   14. Story (about) — 2 columns + framed accent
   -------------------------------------------------------------------------- */
.story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.story-text p + p { margin-top: 1.1rem; }
.story-text p { color: var(--text); font-size: 1.08rem; }
.story-text .lead { margin-bottom: 1.2rem; }

/* Framed accent panel (design-system, not a photo) */
.accent-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-img);
  padding: clamp(2rem, 4vw, 2.8rem);
  box-shadow: var(--sh-card);
  overflow: hidden;
}
.accent-panel::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: 160px;
  height: 160px;
  background: var(--accent-2);
  opacity: 0.10;
  filter: blur(8px);
  border-radius: 0 0 0 100%;
}
.accent-panel .quote-mark {
  font-size: 4rem;
  line-height: 0.6;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.35;
  display: block;
  height: 2rem;
}
.accent-panel blockquote {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  position: relative;
}
.accent-panel cite {
  display: block;
  margin-top: 1.3rem;
  font-style: normal;
  font-weight: 700;
  color: var(--accent-2);
}
.accent-panel cite span { display: block; font-weight: 500; font-size: 0.9rem; color: var(--text-muted); }

/* Process / how-I-work list */
.process-list { display: grid; gap: 1.1rem; }
.process-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  text-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-hover), box-shadow var(--t-hover);
}
.process-item:hover { transform: translateY(-3px); box-shadow: var(--sh-card); }
.process-item .icon-badge { margin: 0; width: 48px; height: 48px; border-radius: 13px; }
.process-item .icon-badge .icon { width: 24px; height: 24px; }
.process-item h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.process-item p { color: var(--text-muted); font-size: 1rem; }

/* --------------------------------------------------------------------------
   15. Contact page
   -------------------------------------------------------------------------- */
.contact-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.2vw, 1.6rem); }

.contact-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-card .icon-badge { margin-bottom: 1rem; }
.contact-card h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.contact-card .c-value { font-weight: 600; color: var(--accent); word-break: break-word; }
.contact-card .c-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.35rem; }
.contact-card.primary { border-color: var(--accent); box-shadow: var(--sh-btn); }
.contact-card.primary .icon-badge { background: var(--accent); color: #fff; }

/* Contact layout: form + side panel */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}

.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  box-shadow: var(--sh-card);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.field label .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color var(--t-hover), box-shadow var(--t-hover);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: #B9A99C; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #C0436A; box-shadow: 0 0 0 3px rgba(192,67,106,0.12); }
.field .err-msg {
  font-size: 0.82rem;
  color: var(--accent);
  min-height: 1em;
  display: none;
}
.field.invalid .err-msg { display: block; }

.form-actions { margin-top: 1.6rem; }

/* Form feedback (success / error) */
.form-feedback {
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.3rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r-input);
  font-weight: 600;
  font-size: 0.98rem;
}
.form-feedback.show { display: flex; }
.form-feedback .icon { width: 22px; height: 22px; margin-top: 1px; }
.form-feedback.success { background: rgba(96, 150, 90, 0.12); color: #3F6B3A; border: 1px solid rgba(96,150,90,0.3); }
.form-feedback.error   { background: var(--accent-tint); color: var(--accent-hover); border: 1px solid rgba(192,67,106,0.28); }
.form-feedback p { color: inherit; }
.form-feedback strong { display: block; }

/* spinner for submitting state */
.btn .spinner {
  width: 1.1em; height: 1.1em;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Side panel notes */
.side-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--sh-card);
}
.side-panel h3 { font-size: 1.2rem; margin-bottom: 1.2rem; }
.side-note { display: flex; gap: 0.85rem; align-items: flex-start; }
.side-note + .side-note { margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--border); }
.side-note .icon { color: var(--accent-2); width: 24px; height: 24px; margin-top: 2px; }
.side-note .sn-title { font-weight: 700; font-size: 1rem; }
.side-note .sn-body { color: var(--text-muted); font-size: 0.95rem; }

/* FAQ */
.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: 1rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: box-shadow var(--t-hover);
}
.faq-item:hover { box-shadow: var(--sh-card); }
.faq-q {
  width: 100%;
  text-align: start;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text);
}
.faq-q .icon { width: 22px; height: 22px; color: var(--accent); transition: transform var(--t-hover); flex-shrink: 0; }
.faq-item.open .faq-q .icon { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms var(--ease-out);
}
.faq-a-inner { padding: 0 1.5rem 1.35rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #efe2d3;
  border-top: 1px solid var(--border);
  padding-block: clamp(2.6rem, 5vw, 3.6rem) 1.6rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand .brand-name { font-weight: 800; font-size: 1.5rem; }
.footer-brand .brand-sub { color: var(--accent-2); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.06em; }
.footer-brand p { color: var(--text-muted); margin-top: 0.8rem; max-width: 36ch; font-size: 0.98rem; }
.footer-col h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.9rem; color: var(--text); }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { color: var(--text-muted); font-weight: 500; }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all var(--t-hover);
}
.footer-social a:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.footer-social .icon { width: 20px; height: 20px; }

.footer-bottom { padding-top: 1.4rem; text-align: center; }
.footer-bottom .legal { color: var(--text-muted); font-size: 0.85rem; }

/* Mandatory MrRobot signature */
.footer-signature {
  font-size: 0.75rem;
  text-align: center;
  color: rgba(138, 118, 108, 0.6);
  margin-top: 0.5rem;
}
.footer-signature a {
  color: rgba(138, 118, 108, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-signature a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   17. Scroll reveal animations
   -------------------------------------------------------------------------- */
/* Hidden only when JS is active (html.js) — no-JS users see all content */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  will-change: opacity, transform;
}
html.js .reveal.in-view { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-options { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  html { font-size: 16px; }

  /* parallax off on mobile for reliability + perf */
  .hero { background-attachment: scroll; min-height: clamp(460px, 74vh, 580px); }

  /* Mobile nav */
  .nav-toggle { display: inline-flex; }
  .nav-right {
    position: fixed;
    inset-block-start: 74px;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-card);
    padding: 0.5rem var(--gutter) 1.4rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity var(--t-hover), transform var(--t-hover), visibility var(--t-hover);
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .nav-right.open { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-links a { padding: 0.95rem 0.25rem; border-bottom: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .nav-right .btn { margin-top: 1rem; width: 100%; }

  .grid-3, .grid-4, .contact-options { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .step:not(:last-child)::after { display: none; }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   19. Reduced motion — keep opacity fades, drop transforms
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .hero { background-attachment: scroll; }
  html.js .reveal { transform: none; transition: opacity 400ms ease; }
  .btn:hover, .card:hover, .process-item:hover, .footer-social a:hover { transform: none; }
  .cat-card .cat-link:hover .icon { transform: none; }
}
