/* Hampshire Party Walls — site styles */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #10263a;
  --ink-soft: #3c5161;
  --muted: #5d6f7c;
  --teal: #12808a;
  --teal-dark: #0c5e66;
  --teal-tint: #e3f1f1;
  --brick: #b3502a;
  --brick-dark: #8f3d1e;
  --stone: #f5f2ec;
  --stone-2: #ebe5da;
  --line: #e0d9cc;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,38,58,.06), 0 8px 24px rgba(16,38,58,.08);
  --wrap: 1160px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: .18em; }
a:hover { color: var(--brick); }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p, ul, ol { margin: 0 0 1.1em; }
li + li { margin-top: .35em; }
strong { font-weight: 650; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: .9em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; line-height: 1.2; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--stone); color: var(--ink); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 48px; height: 48px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 650; font-size: 1.2rem; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-top: 3px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav li + li { margin-top: 0; }
.nav a { display: block; padding: .5em .75em; text-decoration: none; color: var(--ink); font-weight: 550; font-size: .97rem; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-dark); background: var(--teal-tint); }
.nav .has-sub { position: relative; }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none; flex-direction: column; align-items: stretch; }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: flex; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.header-phone { font-weight: 650; text-decoration: none; color: var(--ink); white-space: nowrap; display: inline-flex; gap: .4em; align-items: center; }
.header-phone svg { width: 18px; height: 18px; color: var(--teal); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1080px) {
  .header-phone span { display: none; }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .header-cta .btn { display: none; }
  .header-phone span { display: inline; }
  .nav { position: fixed; inset: 74px 0 0 0; background: #fff; overflow-y: auto; padding: 16px 16px 40px; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: .85em .75em; font-size: 1.1rem; border-bottom: 1px solid var(--stone-2); border-radius: 0; }
  .nav .sub { position: static; display: flex; border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
  .nav .sub a { font-size: 1rem; font-weight: 500; }
  .nav .mobile-cta { display: block; margin-top: 20px; }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 961px) { .nav .mobile-cta { display: none; } }
@media (max-width: 420px) { .header-phone span { display: none; } .brand-name { font-size: 1.05rem; } }

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero picture, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,28,43,.94) 0%, rgba(10,28,43,.82) 45%, rgba(10,28,43,.35) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); }
.hero h1 { max-width: 15ch; color: #fff; }
.hero .lead { color: rgba(255,255,255,.9); max-width: 46ch; }
.hero .eyebrow { color: #8fd6d6; }
.hero .btn-row { margin-top: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 36px 0 0; padding: 0; list-style: none; font-size: .95rem; color: rgba(255,255,255,.92); }
.trust li { display: flex; align-items: center; gap: 8px; margin: 0; }
.trust svg { width: 20px; height: 20px; color: #8fd6d6; flex: none; }

/* Page header (inner pages) */
.page-head { background: var(--stone); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }
.page-head h1 { max-width: 22ch; }
.page-head .lead { max-width: 62ch; margin-bottom: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-stone { background: var(--stone); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .lead, .section-ink p { color: rgba(255,255,255,.86); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; }

.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)); }
.split { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } .split.reverse > :first-child { order: 2; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: 12px; font-weight: 600; text-decoration: none; }
.card .more::after { content: " →"; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
a.card:hover .more { color: var(--brick); }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--teal-tint); color: var(--teal-dark); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; }
.price-tag { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--brick); margin-bottom: .6em; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { counter-increment: step; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 1.15rem; margin-bottom: .35em; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.section-ink .steps li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.section-ink .steps p { color: rgba(255,255,255,.8); }

/* Pricing */
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--teal); box-shadow: var(--shadow); }
.price-card .badge { align-self: flex-start; background: var(--teal-tint); color: var(--teal-dark); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 650; line-height: 1; margin: 6px 0 4px; }
.price small { font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.price-card li { padding-left: 28px; position: relative; }
.price-card li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c5e66' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 8'/%3E%3C/svg%3E") center/12px no-repeat; }
.price-card .btn { margin-top: auto; }

/* Checklists */
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c5e66' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 8'/%3E%3C/svg%3E") center/13px no-repeat; }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.callout { background: var(--teal-tint); border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin: 28px 0; }
.callout p:last-child { margin-bottom: 0; }
.with-aside { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .with-aside { grid-template-columns: minmax(0, 1fr) 340px; } }
.aside-box { align-self: start; background: var(--stone); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 100px; }
.aside-box h2 { font-size: 1.35rem; }
.aside-box .btn { width: 100%; margin-top: 8px; }
.aside-stack { display: grid; gap: 20px; align-content: start; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .98rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--stone); font-weight: 650; }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-size: 1.6rem; font-weight: 400; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 18px; color: var(--ink-soft); max-width: 72ch; }

/* Flow diagram */
.flow { display: grid; gap: 14px; margin: 28px 0; }
.flow-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.flow-step .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--teal); color: #fff; }
.flow-step.q .n { background: var(--ink); }
.flow-step.end .n { background: var(--brick); }
.flow-step p { margin: 0; }
.flow-step strong { display: block; margin-bottom: 2px; }
.flow-branch { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* Areas */
.areas { columns: 3 180px; column-gap: 32px; list-style: none; padding: 0; }
.areas li { break-inside: avoid; padding: 6px 0; border-bottom: 1px dashed var(--line); margin: 0; }

/* About */
.creds { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.creds .badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.creds .badges img { height: 64px; width: auto; }
@media (max-width: 420px) { .creds .badges { gap: 12px; } .creds .badges img { height: 50px; } }
.creds p { margin: 0; font-size: .95rem; color: var(--ink-soft); flex: 1 1 220px; }

/* Portrait */
.portrait { margin: 0 auto; max-width: 340px; }
.portrait img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.portrait figcaption { margin-top: 14px; text-align: center; font-size: .95rem; color: var(--muted); }
.portrait figcaption strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.15rem; }
.full-logo { width: 200px; border-radius: var(--radius); border: 1px solid var(--line); margin-top: 28px; }

/* CTA band */
.cta-band { background: var(--teal-dark); color: #fff; padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url("/assets/img/stone-wall-700.webp") center/cover; opacity: .09; }
.cta-band .wrap { position: relative; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); max-width: 56ch; }

/* Contact */
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-list .icon { width: 44px; height: 44px; margin: 0; }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list a { font-weight: 600; font-size: 1.08rem; overflow-wrap: anywhere; }
@media (max-width: 420px) { .contact-list a[href^="mailto"] { font-size: .95rem; } }
form.form { background: var(--stone); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .97rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #c9c0b0; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(18,128,138,.35); border-color: var(--teal); }
.field-row { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.hp { position: absolute; left: -5000px; }
.consent { font-size: .9rem; color: var(--muted); }
.form-note { font-size: .9rem; color: var(--muted); margin-top: 14px; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; background: #fdecea; color: #8a1f11; border: 1px solid #f5c2bb; }

/* Footer */
.site-footer { background: #0b1c2a; color: rgba(255,255,255,.8); padding: 64px 0 28px; font-size: .97rem; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #8fd6d6; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand img { background: #fff; border-radius: 50%; padding: 2px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials a:hover { background: var(--teal); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .88rem; color: rgba(255,255,255,.6); }

/* Feedback badge */
.site-footer .feedback { margin-top: 26px; }
.site-footer .feedback img { width: 220px; height: auto; border-radius: 10px; }
.site-footer .feedback p { font-size: .85rem; color: rgba(255,255,255,.6); margin: 10px 0 0; max-width: 260px; }
.feedback-box { margin-top: 48px; padding: 28px; background: var(--stone); border: 1px solid var(--line); border-radius: var(--radius); }
.feedback-box h2 { font-size: 1.5rem; }
.feedback-box img { margin: 6px auto 14px; max-width: 100%; height: auto; }
.feedback-box .muted { font-size: .88rem; margin: 0; }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 700px) {
  .call-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(16,38,58,.08); }
  .call-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; font-weight: 650; text-decoration: none; color: var(--ink); }
  .call-bar a + a { background: var(--brick); color: #fff; }
  .call-bar svg { width: 18px; height: 18px; }
  body { padding-bottom: 56px; }
}

/* Cookie banner */
.cookie { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 520px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(16,38,58,.2); padding: 20px; font-size: .95rem; }
.cookie p { margin: 0 0 14px; }
.cookie .btn { padding: .6em 1.1em; font-size: .95rem; }
@media (max-width: 700px) { .cookie { bottom: 72px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .call-bar, .cookie, .cta-band { display: none !important; } }
