/* =========================================================
   Northvale Studio — main stylesheet
   Brand colours and fonts are set once here, in :root.
   ========================================================= */
:root {
  --pine: #13302C;        /* primary brand green */
  --pine-2: #1C4440;
  --ink: #0E1A19;         /* body text */
  --muted: #5E6B68;       /* secondary text */
  --sand: #F5F1E8;        /* page background */
  --stone: #E4DDCD;       /* borders, panels */
  --paper: #FFFDF8;       /* cards */
  --ember: #E2683C;       /* accent / calls to action */
  --ember-dark: #C4532A;
  --moss: #5E8C6A;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(14,26,25,.06), 0 12px 32px -12px rgba(14,26,25,.18);
  --wrap: 1160px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65;
  color: var(--ink); background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.025em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 1em 1.5em; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: var(--ember-dark); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.btn-light { background: var(--sand); color: var(--pine); }
.btn-light:hover { background: #fff; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,241,232,.86); backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--stone); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 40px; height: 40px; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1; letter-spacing: -.02em; }
.brand-name small { display: block; font: 700 .62rem/1 var(--body); letter-spacing: .32em; color: var(--muted); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .97rem; color: var(--ink); opacity: .8; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ember); }
.nav .btn { opacity: 1; padding: .8em 1.3em; color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sand); padding: 12px 20px 28px; border-bottom: 1px solid var(--stone);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .menu-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--stone); font-size: 1.1rem; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--ember-dark); }
  .nav .btn { margin-top: 18px; border-bottom: 0; padding: 1em; }
}

/* ---------- Sections ---------- */
section { padding: clamp(72px, 10vw, 120px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 .78rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--ember-dark);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 40em; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow::before { display: none; }
.dark { background: var(--pine); color: var(--sand); }
.dark .lead, .dark p { color: #C9D3CF; }
.dark .eyebrow { color: #F09A76; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 9vw, 110px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--ember); font-weight: 500; }
.hero .lead { margin: 22px 0 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.tick { width: 20px; height: 20px; border-radius: 50%; background: var(--moss); color: #fff; display: inline-grid; place-items: center; font-size: 12px; flex: none; }

/* Browser mockup used in hero + portfolio */
.mock { background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--stone); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--stone); background: #FBF8F1; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--stone); }
.mock-bar b { margin-left: 10px; flex: 1; height: 22px; border-radius: 6px; background: var(--sand); font: 600 .72rem/22px var(--body); color: var(--muted); padding-left: 10px; overflow: hidden; white-space: nowrap; }
.mock-body { padding: 22px; }
.hero-visual { position: relative; }
.hero-visual .mock { transform: rotate(1.2deg); }
.hero-phone {
  position: absolute; left: -36px; bottom: -34px; width: 150px; border-radius: 26px; background: var(--ink);
  padding: 8px; box-shadow: var(--shadow); transform: rotate(-4deg);
}
.hero-phone .screen { border-radius: 19px; background: var(--paper); overflow: hidden; padding: 14px 10px; }
.sk { border-radius: 6px; background: var(--stone); height: 10px; margin-bottom: 8px; }
.sk.w40 { width: 40%; } .sk.w60 { width: 60%; } .sk.w80 { width: 80%; } .sk.h { height: 22px; }
.sk.ember { background: var(--ember); } .sk.pine { background: var(--pine); }
.mock-hero { background: var(--pine); border-radius: 12px; padding: 26px 22px; color: var(--sand); margin-bottom: 16px; }
.mock-hero .t { font: 600 1.35rem/1.15 var(--display); margin-bottom: 8px; }
.mock-hero .s { font-size: .8rem; opacity: .75; margin-bottom: 14px; }
.mock-hero .b { display: inline-block; background: var(--ember); color: #fff; font-weight: 700; font-size: .72rem; padding: 7px 12px; border-radius: 99px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-cards div { background: var(--sand); border-radius: 10px; padding: 12px; }
.badge-float {
  position: absolute; right: -14px; top: 36px; background: var(--paper); border: 1px solid var(--stone);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-weight: 700; font-size: .85rem;
  display: flex; gap: 10px; align-items: center;
}
.badge-float .dot { width: 10px; height: 10px; border-radius: 50%; background: #3DAE6B; box-shadow: 0 0 0 4px rgba(61,174,107,.18); }

/* ---------- Trade strip ---------- */
.trades { padding: 26px 0; border-block: 1px solid var(--stone); }
.trades-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 34px; color: var(--muted); font-weight: 700; font-size: .95rem; }
.trades-inner span:first-child { color: var(--ink); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius); padding: 32px; }
.card p { color: var(--muted); margin-bottom: 0; }
.icon { width: 52px; height: 52px; border-radius: 14px; background: var(--sand); display: grid; place-items: center; margin-bottom: 22px; color: var(--pine); }
.icon svg { width: 26px; height: 26px; }
.dark .card { background: var(--pine-2); border-color: rgba(245,241,232,.12); }
.dark .card p { color: #C9D3CF; }
.dark .icon { background: rgba(245,241,232,.08); color: #F09A76; }

/* Problem/solution split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; }
.checklist li .tick { margin-top: 3px; }
.stat-panel { background: var(--pine); color: var(--sand); border-radius: 24px; padding: 40px; }
.stat-panel h3 { color: var(--sand); }
.stat-panel ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; }
.stat-panel li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: #C9D3CF; }
.stat-panel li b { color: var(--sand); display: block; }
.stat-panel .x { width: 26px; height: 26px; border-radius: 50%; background: rgba(226,104,60,.18); color: #F09A76; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 26px; border-top: 2px solid rgba(245,241,232,.18); }
.step::before { counter-increment: step; content: "0" counter(step); font: 600 2.4rem/1 var(--display); color: #F09A76; display: block; margin-bottom: 16px; }
.step h3 { color: var(--sand); font-size: 1.25rem; }

/* ---------- Portfolio ---------- */
.work-card { background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.work-thumb { padding: 26px 26px 0; background: var(--c, var(--pine)); }
.work-thumb .mock { border-radius: 12px 12px 0 0; border-bottom: 0; transform: none; }
.work-thumb .mock-hero { background: var(--c2, var(--pine)); margin: 0 0 12px; padding: 18px; }
.work-thumb .mock-body { padding: 14px; }
.work-info { padding: 24px 26px 28px; }
.work-info h3 { margin-bottom: .3em; }
.work-info p { color: var(--muted); font-size: .97rem; margin: 0 0 14px; }
.tag { display: inline-block; font: 700 .72rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; background: var(--sand); border: 1px solid var(--stone); color: var(--muted); padding: 7px 10px; border-radius: 99px; margin: 0 6px 6px 0; }
.tag.concept { background: #FDEDE5; border-color: #F6C9B4; color: var(--ember-dark); }
.notice { background: var(--paper); border: 1px dashed var(--stone); border-radius: 14px; padding: 16px 20px; color: var(--muted); font-size: .95rem; margin-top: 28px; }

/* ---------- Pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price { background: var(--paper); border: 1px solid var(--stone); border-radius: 22px; padding: 36px 32px; display: flex; flex-direction: column; position: relative; }
.price.featured { background: var(--pine); color: var(--sand); border-color: var(--pine); transform: translateY(-10px); box-shadow: var(--shadow); }
.price.featured p, .price.featured li { color: #C9D3CF; }
.price .pill { position: absolute; top: -13px; left: 32px; background: var(--ember); color: #fff; font: 700 .72rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border-radius: 99px; }
.price h3 { font-size: 1.5rem; margin-bottom: .25em; }
.price .for { color: var(--muted); font-size: .95rem; min-height: 3.2em; }
.amount { font: 600 3rem/1 var(--display); letter-spacing: -.03em; margin: 18px 0 4px; }
.amount small { font: 600 .95rem var(--body); letter-spacing: 0; color: var(--muted); margin-right: 4px; }
.price.featured .amount small { color: #C9D3CF; }
.terms { font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.price ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 11px; flex: 1; }
.price li { display: flex; gap: 10px; font-size: .97rem; }
.price li::before { content: "✓"; color: var(--moss); font-weight: 800; }
.price.featured li::before { color: #F09A76; }
.price .btn { width: 100%; }
.care { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.care .card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.care .card h3 span { font: 700 1.05rem var(--body); color: var(--ember-dark); white-space: nowrap; }
.care .card ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--muted); }
.care .card li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--stone); border-radius: 16px; background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--stone); }
th { font-weight: 700; background: #FBF8F1; }
tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--stone); padding: 6px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font: 600 1.15rem/1.4 var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.6rem var(--body); color: var(--ember); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 14px; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 clamp(72px, 10vw, 120px); }
.cta-box { background: var(--ember); color: #fff; border-radius: 28px; padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-box h2 { color: #fff; margin-bottom: .3em; }
.cta-box p { color: #FFE6DB; margin: 0; font-size: 1.1rem; }
.cta-box .btn-light { color: var(--ember-dark); }
.cta-box::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(255,255,255,.1); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); max-width: 16em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
label .opt { font-weight: 500; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--stone); border-radius: 12px; padding: 14px 16px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 4px rgba(19,48,44,.1); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); font-weight: 500; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--pine); }
.hp { position: absolute; left: -5000px; }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: 12px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: #E5F2EA; color: #1E5E37; }
.form-status.err { display: block; background: #FDEDE5; color: #8A3415; }
.side-card { background: var(--pine); color: var(--sand); border-radius: 22px; padding: 34px; }
.side-card h3 { color: var(--sand); }
.side-card p { color: #C9D3CF; }
.side-card a { color: #fff; font-weight: 700; }
.side-card ol { padding-left: 1.2em; color: #C9D3CF; margin: 0; }
.side-card li { margin-bottom: 10px; }
.side-card hr { border: 0; border-top: 1px solid rgba(245,241,232,.15); margin: 26px 0; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose p, .prose li { color: #33403E; }
.placeholder { background: #FFF2C7; padding: 0 4px; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9C4BF; padding: 72px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand-name { color: var(--sand); }
.site-footer .brand-name small { color: #8A9793; }
.site-footer h4 { font: 700 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--sand); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(245,241,232,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #8A9793; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .work-card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; margin: 0 auto; padding: 0 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 22px; }
  .prices, .care, .grid-3 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .price.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .steps, form .row { grid-template-columns: 1fr; }
  .hero-phone { display: none; }
  .badge-float { right: 6px; top: -18px; }
  .card, .price { padding: 28px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- Founding client offer ---------- */
.offer { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; background: #FDEDE5; border: 1.5px solid #F6C9B4; border-radius: 22px; padding: 28px 32px; margin-bottom: 44px; }
.offer h3 { margin: 10px 0 6px; font-size: 1.5rem; }
.offer p { margin: 0; color: #5a3a2c; }
.offer s { opacity: .6; }
.offer b { color: var(--ember-dark); font-size: 1.1em; }
.offer-tag { display: inline-block; background: var(--ember); color: #fff; font: 700 .72rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 7px 11px; border-radius: 99px; }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; padding: 24px; } .offer .btn { width: 100%; } }
