/* JWDC shared design system, loaded first on every page. Page-specific rules follow inline in each page.
   Typography: Outfit for headings, Inter for everything else. */

:root {
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --paper: #f6f5f2;
  --paper-pure: #ffffff;
  --line: #e2e0da;
  --muted: #6b6b66;
  --body: 'Inter', system-ui, sans-serif;
  --heading: 'Outfit', system-ui, sans-serif;
}

/* Headings use Outfit (including card titles that are not heading tags); all other text inherits Inter from body */
h1, h2, h3, h4, h5, h6,
.work-name, .price-card-name, .callout-line { font-family: var(--heading); }

/* ---- Shared layout and components ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--paper); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 10px; margin-left: 4px; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--paper); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; background: rgba(10,10,10,0.98); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(246,245,242,0.12); overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.mobile-menu a { font-size: 16px; font-weight: 500; color: rgba(246,245,242,0.8); text-decoration: none; padding: 15px 28px; border-top: 1px solid rgba(246,245,242,0.08); transition: color .2s ease, background .2s ease; }
.mobile-menu a:hover, .mobile-menu a:active { color: var(--paper); background: rgba(246,245,242,0.05); }
.mobile-menu a.mobile-cta { color: var(--ink); background: var(--paper); margin: 12px 28px 20px; border-radius: 100px; text-align: center; border-top: none; font-weight: 600; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav-links { display: flex; gap: 26px; align-items: center; margin-left: auto; margin-right: 8px; }
.nav-links a { font-size: 13.5px; font-weight: 500; text-decoration: none; color: rgba(246,245,242,0.65); transition: color .2s ease; white-space: nowrap; }
.nav-links a:hover { color: var(--paper); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img, .brand .logo-mark { height: 40px; width: auto; display: block; color: var(--paper); }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; line-height: 1.1; color: var(--paper); }
.brand-name span { display: block; font-weight: 400; color: rgba(246,245,242,0.55); font-size: 12.5px; letter-spacing: 0.02em; }
.nav-cta { font-weight: 500; font-size: 14px; text-decoration: none; color: var(--ink); background: var(--paper); padding: 10px 20px; border-radius: 100px; transition: transform .2s ease, background .2s ease; }
.nav-cta:hover { transform: translateY(-1px); background: var(--paper-pure); }
.hero > .wrap { position: relative; z-index: 1; max-width: none; margin: 0; padding-left: clamp(28px, 6vw, 88px); }
.scroll-cue { color: rgba(246,245,242,0.75); display: inline-flex; margin-top: 22px; padding: 6px; transition: color .2s ease; animation: scroll-bounce 2.2s ease-in-out infinite; }
.scroll-cue:hover { color: var(--paper); }
.dfy-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }
.dfy-item { display: flex; gap: 14px; align-items: flex-start; }
.dfy-item .tick { flex-shrink: 0; margin-top: 3px; }
.dfy-item h4 { font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.dfy-item p { color: var(--muted); font-size: 0.95rem; }
.step:hover { background: var(--paper-pure); }
.faq { padding: 80px 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 0.7fr 1fr; gap: 56px; align-items: start; }
.faq-head { font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.025em; line-height: 1.08; }
.faq-list { display: grid; }
summary .plus { flex-shrink: 0; width: 20px; height: 20px; position: relative; transition: transform .25s ease; }
summary .plus::before, summary .plus::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; }
summary .plus::before { left: 0; right: 0; top: 9px; height: 2px; }
summary .plus::after { top: 0; bottom: 0; left: 9px; width: 2px; transition: transform .25s ease; }
.faq-answer { padding: 0 0 24px; color: var(--ink-soft); font-size: 1rem; max-width: 60ch; }
.form-embed { min-height: 320px; }
.foot-nav { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid rgba(246,245,242,0.1); }
.foot-nav a { color: rgba(246,245,242,0.6); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: color .2s ease; }
.foot-nav a:hover { color: var(--paper); }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot p { color: rgba(246,245,242,0.5); font-size: 13.5px; }
.foot p a { color: rgba(246,245,242,0.5); transition: color .2s ease; }
.foot p a:hover { color: var(--paper); }
.cookie-settings-link { font-family: var(--body); font-size: 13.5px; color: rgba(246,245,242,0.5); background: none; border: none; padding: 0; cursor: pointer; text-decoration: underline; transition: color .2s ease; }
.cookie-settings-link:hover { color: var(--paper); }
.socials { display: flex; gap: 20px; }
.socials a { color: rgba(246,245,242,0.6); text-decoration: none; font-size: 13.5px; transition: color .2s ease; }
.socials a:hover { color: var(--paper); }
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
}
@media (max-width: 860px) {
  .dfy-list { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
}
#cookie-banner { position: fixed; right: 20px; bottom: 20px; left: auto; z-index: 1000; width: min(92vw, 360px); background: var(--ink); border: 1px solid rgba(246,245,242,0.14); border-radius: 18px; padding: 22px; box-shadow: 0 20px 50px rgba(10,10,10,0.35), 0 4px 14px rgba(10,10,10,0.2); transform: translateY(16px) scale(0.97); opacity: 0; transition: transform .35s cubic-bezier(.2,.7,.3,1), opacity .25s ease; }
#cookie-banner.show { transform: translateY(0) scale(1); opacity: 1; }
.cookie-inner { display: flex; flex-direction: column; gap: 16px; }
.cookie-text { font-family: var(--body); font-size: 13.5px; line-height: 1.5; color: rgba(246,245,242,0.75); margin: 0; }
.cookie-text a { color: var(--paper); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-btn { font-family: var(--body); font-weight: 600; font-size: 13.5px; padding: 10px 20px; border-radius: 100px; border: none; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.cookie-accept { background: var(--paper); color: var(--ink); }
.cookie-accept:hover { transform: translateY(-1px); background: var(--paper-pure); }
.cookie-decline { background: transparent; color: rgba(246,245,242,0.75); border: 1px solid rgba(246,245,242,0.3); }
.cookie-decline:hover { color: var(--paper); border-color: rgba(246,245,242,0.6); }
@media (max-width: 560px) {
  #cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: 420px; margin: 0 auto; padding: 18px; }
  /* stacked call-to-action buttons share one width */
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; max-width: 340px; justify-content: center; text-align: center; }
}
/* comfortable tap targets for footer links on touch screens */
@media (max-width: 860px) {
  .foot-nav { gap: 0 22px; margin-bottom: 15px; padding-bottom: 11px; }
  .foot-nav a, .socials a { display: inline-block; padding: 11px 0; }
  .socials { flex-wrap: wrap; gap: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  #cookie-banner { transition: none; }
}

/* Animations */
@keyframes hero-zoom-out { from { transform: scale(1.15); } to { transform: scale(1); } }
@keyframes scroll-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---- More shared components ---- */
.hero::after { content: ""; position: absolute; inset: 0; background-image: url('/assets/hero-background.png'); background-size: cover; background-position: center; z-index: -1; transform: scale(1.15); animation: hero-zoom-out 20s ease-out forwards; }
.btn-primary svg { transition: transform .2s ease; }
.btn-primary:hover svg { transform: translate(3px, -3px); }
