/* Parcel & Perspective — site styles
   Brand tokens live in :root. Change a color or font here and it updates everywhere. */
:root {
  --forest: #1f3b2d;
  --forest-deep: #142a1f;
  --ivory: #f7f3ea;
  --ivory-2: #efe8d9;
  --gold: #b4975a;
  --gold-soft: #d9c9a3;
  --charcoal: #2b2b2b;
  --muted: #5e6259;
  --line: #ddd4c2;
  --white: #fffdf8;

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 4px;
  --max: 1180px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --shadow: 0 18px 40px -24px rgba(20, 42, 31, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--ivory); color: var(--charcoal); font-family: var(--font-body); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
[id] { scroll-margin-top: 88px; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--forest-deep); line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.eyebrow { font-family: var(--font-body); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: .9rem; display: block; }
.lede { font-size: 1.15rem; color: var(--muted); }

.skip { position: absolute; left: -999px; top: 0; background: var(--forest); color: var(--ivory); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--alt { background: var(--ivory-2); }
.section--dark { background: var(--forest); color: var(--ivory); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--ivory); }
.section--dark .lede, .section--dark p { color: #d9ddd2; }
.section-head { max-width: 760px; margin-bottom: 48px; }

/* Placeholders the owner must fill in before launch */
.ph { background: #fff3c9; color: #6a5300; border: 1px dashed #c9a73b; padding: 0 .35em; border-radius: 3px; font-weight: 600; }
.section--dark .ph { background: rgba(255, 243, 201, .15); color: #ffe7a1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 26px; border-radius: var(--radius); font-weight: 700; font-size: .95rem; letter-spacing: .02em; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; font-family: var(--font-body); }
.btn--gold { background: var(--gold); color: var(--forest-deep); }
.btn--gold:hover { background: #c4a86b; color: var(--forest-deep); }
.btn--forest { background: var(--forest); color: var(--ivory); }
.btn--forest:hover { background: var(--forest-deep); color: var(--ivory); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 243, 234, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest-deep); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--charcoal); font-weight: 600; font-size: .93rem; }
.nav-links a[aria-current="page"] { color: var(--forest); box-shadow: inset 0 -2px 0 var(--gold); }
.nav-links a.btn, .nav-links a.btn:hover { color: var(--ivory); box-shadow: none; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--forest); color: var(--forest); border-radius: var(--radius); min-height: 44px; padding: 0 14px; font: 700 .9rem var(--font-body); cursor: pointer; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; width: 100%; }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 760px); display: grid; align-items: end; color: var(--ivory); isolation: isolate; }
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,42,31,.15) 0%, rgba(20,42,31,.35) 45%, rgba(20,42,31,.88) 100%); }
.hero .container { padding-block: 120px 72px; width: 100%; }
.hero h1 { color: var(--ivory); max-width: 15ch; }
.hero p { color: #eef0e8; font-size: 1.2rem; max-width: 56ch; }
.hero .credit { position: absolute; right: 12px; bottom: 8px; font-size: .72rem; color: rgba(247,243,234,.75); }
.hero .credit a { color: inherit; }
.page-hero { background: var(--forest); color: var(--ivory); padding-block: 84px 64px; }
.page-hero h1 { color: var(--ivory); font-size: clamp(2.4rem, 5vw, 3.8rem); }
.page-hero p { color: #d9ddd2; font-size: 1.15rem; }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card .num { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); font-weight: 600; }
.card ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--charcoal); }
.card ul li { margin-bottom: 4px; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card--feature { border-top: 3px solid var(--gold); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split--reverse > :first-child { order: 0; } }

.check { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.check li { position: relative; padding-left: 30px; }
.check li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 14px; border: 1.5px solid var(--gold); transform: rotate(45deg); }

figure { margin: 0; }
figcaption, .caption { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.tag-demo { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--charcoal); color: var(--ivory); padding: 3px 8px; border-radius: 2px; }

/* Parcel overlay demo */
.overlay-figure { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #ccc; }
.overlay-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.overlay-figure svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.overlay-figure .tag-demo { position: absolute; top: 12px; left: 12px; }
.overlay-toggle { margin-top: 14px; }

/* Before / after slider */
.ba { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 2; background: #ccc; user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba .ba-before img { filter: brightness(.72) contrast(.82) saturate(.62) sepia(.12); }
.ba .ba-before, .ba .ba-after { position: absolute; inset: 0; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--ivory); transform: translateX(-1px); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: var(--pos, 50%); width: 46px; height: 46px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--gold); transform: translate(-50%, -50%); display: grid; place-items: center; pointer-events: none; color: var(--forest); font-weight: 800; font-size: .8rem; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-label { position: absolute; bottom: 12px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: rgba(20,42,31,.8); color: var(--ivory); padding: 4px 9px; border-radius: 2px; pointer-events: none; }
.ba-label--l { left: 12px; } .ba-label--r { right: 12px; }
.ba .tag-demo { position: absolute; top: 12px; left: 12px; z-index: 2; }

/* Packages */
.pkg { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; gap: 14px; }
.pkg--featured { border: 2px solid var(--gold); position: relative; }
.pkg--featured::before { content: "Most complete"; position: absolute; top: -13px; left: 28px; background: var(--gold); color: var(--forest-deep); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; }
.pkg h3 { margin: 0; }
.pkg .price { font-family: var(--font-display); font-size: 1.3rem; color: var(--muted); }
.pkg .btn { margin-top: auto; }

/* Portfolio cards */
.port { display: flex; flex-direction: column; gap: 14px; }
.port .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Areas */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.area { border-left: 2px solid var(--gold); padding: 4px 0 4px 18px; }
.area h3 { font-size: 1.35rem; margin-bottom: .3em; }
.area p { font-size: .95rem; color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { background: var(--forest-deep); color: var(--ivory); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 56px; }
.cta-band h2 { color: var(--ivory); margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.6rem); max-width: 22ch; }

/* Notice / disclaimer */
.notice { border: 1px solid var(--gold-soft); background: #fbf6ea; border-radius: var(--radius); padding: 18px 20px; font-size: .92rem; }
.notice strong { color: var(--forest-deep); }

/* Forms */
.form { display: grid; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: .92rem; color: var(--forest-deep); }
.field .hint { font-size: .8rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--ivory); color: var(--charcoal); min-height: 48px; width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); outline: none; box-shadow: 0 0 0 3px rgba(31,59,45,.15); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; margin-top: 6px; }
.checks label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .95rem; color: var(--charcoal); background: var(--ivory); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px; cursor: pointer; }
.checks input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; accent-color: var(--forest); }
.form-status { font-weight: 600; padding: 12px 14px; border-radius: var(--radius); display: none; }
.form-status.ok { display: block; background: #e6f0e8; color: #1c4a2c; }
.form-status.err { display: block; background: #fbe8e3; color: #7a2a14; }
.hp { position: absolute; left: -9999px; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list .k { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 800; }

/* Legal pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.3em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }

/* Footer */
.site-footer { background: var(--forest-deep); color: #cfd4c8; font-size: .92rem; padding-block: 64px 32px; }
.site-footer a { color: #e9e4d6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--ivory); font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: var(--ivory); margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .82rem; }

/* Mobile sticky call bar */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--forest-deep); padding: 10px max(12px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)); gap: 10px; box-shadow: 0 -8px 24px rgba(0,0,0,.18); }
  .mobile-bar .btn { min-height: 46px; padding: 10px; }
  body { padding-bottom: 74px; }
}

/* Gentle reveal */
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.js .reveal.pending { opacity: 0; transform: translateY(14px); }
