/* Prospera: main site styles */
:root {
  --ink: #0f1f1a;
  --ink-2: #3b4a44;
  --muted: #66756f;
  --paper: #f8f5ef;
  --card: #ffffff;
  --line: #e4ded2;
  --green: #123b2e;
  --green-2: #1d5c47;
  --mint: #dcebe3;
  --amber: #f2a93b;
  --amber-ink: #8a5300;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 31, 26, .06), 0 12px 32px -12px rgba(15, 31, 26, .18);
  --max: 1160px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--green-2); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--alt { background: #fff; border-block: 1px solid var(--line); }
.section--dark { background: var(--green); color: #eef3ef; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--amber); }
.section--dark p { color: #cfdcd5; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-2);
  margin-bottom: 14px;
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 46ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--amber); color: #2a1a00; }
.btn--primary:hover { background: #f7b951; color: #2a1a00; }
.btn--dark { background: var(--green); color: #fff; }
.btn--dark:hover { background: var(--green-2); color: #fff; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 239, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.2rem var(--serif); }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(18, 59, 46, .07); }
.nav-links .btn { margin-left: 8px; color: #2a1a00; padding: 10px 18px; min-height: 42px; }
.has-menu { position: relative; }
.has-menu > button {
  display: flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; border-radius: 10px;
  background: none; font: 500 .95rem var(--sans); color: var(--ink-2); cursor: pointer;
}
.has-menu > button:hover { background: rgba(18, 59, 46, .07); color: var(--ink); }
.has-menu > button::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px;
  list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  display: none;
}
.has-menu.open .menu { display: block; }
.menu a { padding: 10px 12px; }
.menu small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line);
    display: none; max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .has-menu > button { padding: 14px 8px; font-size: 1.05rem; width: 100%; text-align: left; }
  .menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; background: transparent; }
  .nav-links .btn { margin: 12px 0 0; }
}

/* Hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(242, 169, 59, .22), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; }
h1 em { font-style: normal; color: var(--green-2); }

/* Photo hero (home): James St N, Hamilton */
.hero--photo {
  color: #fff;
  background:
    linear-gradient(100deg, rgba(8, 20, 16, .92) 0%, rgba(8, 20, 16, .78) 45%, rgba(8, 20, 16, .35) 100%),
    url("/assets/hamilton-james-st-n.jpg") center 40% / cover no-repeat;
  padding: clamp(72px, 10vw, 136px) 0 clamp(72px, 9vw, 120px);
}
@media (max-width: 760px) {
  .hero--photo {
    background:
      linear-gradient(180deg, rgba(8, 20, 16, .88), rgba(8, 20, 16, .8)),
      url("/assets/hamilton-james-st-n-sm.jpg") 30% center / cover no-repeat;
  }
}
.hero--photo::before { display: none; }
.hero--photo h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero--photo h1 em { color: var(--amber); }
.hero--photo .eyebrow { color: var(--amber); }
.hero--photo .lead, .hero--photo .hero-points { color: #e3ebe6; }
.hero--photo .btn--ghost { color: #fff; }
.hero--photo .preview { box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); border-color: rgba(255, 255, 255, .15); }
.photo-credit { position: absolute; right: 16px; bottom: 10px; font-size: .72rem; color: rgba(255, 255, 255, .7); }
.photo-credit a { color: inherit; }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding: 0; list-style: none; color: var(--ink-2); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23123b2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Browser-frame preview (live iframes of demo sites) */
.preview {
  border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f1ede5; border-bottom: 1px solid var(--line); }
.preview-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d9d2c4; }
.preview-bar em { margin-left: 8px; font-style: normal; font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #f4f1ea; }
.preview-screen iframe {
  position: absolute; top: 0; left: 0; border: 0;
  width: 1280px; max-width: none; height: 800px; transform-origin: 0 0;
  pointer-events: none;
}
.hero-stack { position: relative; }
.hero-stack .preview + .preview { position: absolute; width: 58%; right: -6%; bottom: -14%; }
@media (max-width: 920px) { .hero-stack .preview + .preview { display: none; } }

/* Cards & grids */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 1px 2px rgba(15, 31, 26, .04);
  display: flex; flex-direction: column;
}
.card p { color: var(--ink-2); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .more::after { content: " →"; }
a.card { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mint); color: var(--green); margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; }
.section--dark .card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.section--dark .card p { color: #cfdcd5; }

.niche-card { padding: 0; overflow: hidden; }
.niche-card .preview { border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); }
.niche-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--mint); color: var(--green); margin-bottom: 12px; align-self: flex-start; }

/* Checklists */
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23123b2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}
.section--dark .checks li::before { background-color: rgba(242, 169, 59, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23f2a93b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 600 1.6rem var(--serif); color: var(--amber-ink); margin-bottom: 10px; }
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--ink-2); margin: 0; font-size: .96rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.price-card { position: relative; }
.price-card.featured { border: 2px solid var(--green); box-shadow: var(--shadow); }
.price-card .badge { position: absolute; top: -13px; left: 24px; background: var(--green); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .04em; }
.price { font: 600 2.4rem/1 var(--serif); margin: 8px 0 4px; }
.price small { font: 500 .95rem var(--sans); color: var(--muted); }
.price-note { font-size: .88rem; color: var(--muted); }
.price-card .btn { margin-top: auto; }

/* Work / portfolio */
.work-card { padding: 0; overflow: hidden; }
.work-thumb {
  aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 24px; text-align: center;
  color: #fff; font: 600 1.5rem var(--serif);
}
.work-thumb small { display: block; font: 500 .85rem var(--sans); opacity: .85; margin-top: 6px; }
.work-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; padding: 0; list-style: none; }
.chips li { font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: #f1ede5; color: var(--ink-2); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat strong { display: block; font: 600 clamp(2rem, 4vw, 2.8rem)/1 var(--serif); color: var(--green); margin-bottom: 6px; }
.stat span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; font-weight: 400; color: var(--green-2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 12px; margin: 0; }

/* CTA band */
.cta-band { background: var(--green); color: #fff; border-radius: 28px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 169, 59, .35), transparent); }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #cfdcd5; margin: 0; max-width: 52ch; }
.cta-band .btn { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: 400 1rem var(--sans); color: var(--ink); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(29, 92, 71, .14); }
.form textarea { min-height: 140px; resize: vertical; }
.form .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { margin: 0; font-weight: 500; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: .92rem; }
.pills input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.pills input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.hidden-field { position: absolute; left: -9999px; }

/* Breadcrumb-ish page hero */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); }
.page-hero .lead { max-width: 60ch; }

/* Footer */
.site-footer { background: #0b1713; color: #b9c7c0; padding: 64px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font: 600 .82rem var(--sans); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #b9c7c0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

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