/* Dominic Caldwell Digital — local service website template. One stylesheet, themed per site with --accent. */
:root {
  --accent: #2457c5;
  --accent-ink: #fff;
  --ink: #14171d;
  --muted: #5d6573;
  --line: rgb(20 23 29 / .1);
  --paper: #f7f7f5;
  --card: #fff;
  --radius: 20px;
  --shadow: 0 1px 2px rgb(20 23 29 / .06), 0 18px 40px -22px rgb(20 23 29 / .35);
  --tint: color-mix(in oklab, var(--accent) 9%, white);
  --deep: color-mix(in oklab, var(--accent) 55%, #0b0d12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 Barlow, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 10px 14px; border-radius: 10px; }

/* Proposal ribbon (only on proposals) */
.ribbon { background: #0d0f14; color: #e8ebf1; font-size: .82rem; }
.ribbon .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 9px 0; }
.ribbon a { color: #fff; font-weight: 600; text-decoration: none; }
.ribbon a:hover { text-decoration: underline; }
.ribbon span { opacity: .75; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in oklab, var(--paper) 82%, transparent); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { max-height: 52px; width: auto; }
.nav { display: none; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: rgb(20 23 29 / .05); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 26px -14px color-mix(in oklab, var(--accent) 85%, transparent); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-light { background: #fff; color: var(--ink); }
.top .btn { min-height: 44px; padding: 0 18px; }
.top .btn .label-long { display: none; }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--deep); font-size: .85rem; font-weight: 600; }
.eyebrow svg { width: 16px; height: 16px; }
.hero h1 { margin-top: 18px; font-size: clamp(2.6rem, 7vw, 4.6rem); }
.lead { margin-top: 18px; max-width: 36rem; font-size: 1.2rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--muted); font-size: .95rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--accent); }
.media { position: relative; overflow: hidden; border-radius: 28px; background: #e9ebef; box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.media.contain img { object-fit: contain; background: #fff; padding: 18px; }
.media figcaption { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 7px 12px; border-radius: 999px; background: rgb(255 255 255 / .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .78rem; color: var(--muted); }
.float-card { position: absolute; right: 16px; top: 16px; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgb(255 255 255 / .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow); font-size: .85rem; font-weight: 600; }
.float-card i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; font-style: normal; }
.float-card i svg { width: 18px; height: 18px; }

/* Brand panel hero (no photo) */
.panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 420px; padding: 32px; border-radius: 28px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, color-mix(in oklab, var(--accent) 80%, white) 0%, transparent 55%), linear-gradient(150deg, var(--accent), var(--deep)); box-shadow: var(--shadow); }
.panel::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .07) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(80% 80% at 80% 10%, #000, transparent); pointer-events: none; }
.panel-logo { position: relative; z-index: 1; align-self: flex-start; padding: 12px 16px; border-radius: 16px; background: #fff; }
.panel-logo img { max-height: 52px; width: auto; }
.panel-name { position: relative; z-index: 1; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.panel-statement { position: relative; z-index: 1; margin-top: 28px; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.panel-list { position: relative; z-index: 1; display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.panel-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .18); text-decoration: none; font-weight: 600; transition: background-color .18s ease; }
.panel-list a:hover { background: rgb(255 255 255 / .2); }
.panel-list svg { width: 18px; height: 18px; flex: none; }

/* Call-first hero */
.callfirst .hero .wrap { grid-template-columns: 1fr; }
.call-card { display: grid; gap: 18px; padding: 28px; border-radius: 28px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.call-card small { color: rgb(255 255 255 / .65); font-size: .9rem; }
.call-card .big { display: block; font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 600; letter-spacing: -0.03em; text-decoration: none; }
.call-card .row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Team / owner */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.team figure { margin: 0; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.team img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.team figcaption { padding: 12px 14px; font-weight: 600; font-size: .95rem; }
.team figcaption span { display: block; color: var(--muted); font-weight: 500; font-size: .85rem; }

/* Trust strip */
.strip { border-block: 1px solid var(--line); background: var(--card); }
.strip .wrap { display: grid; gap: 18px; padding: 22px 0; }
.strip div { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.strip i { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--tint); color: var(--accent); font-style: normal; }
.strip svg { width: 20px; height: 20px; }
.strip small { display: block; color: var(--muted); font-weight: 500; font-size: .85rem; }

/* Sections */
.section { padding: 80px 0; }
.section-head { display: grid; gap: 14px; max-width: 44rem; margin-bottom: 40px; }
.kicker { color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.section h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.cards { display: grid; gap: 16px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgb(20 23 29 / .04); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in oklab, var(--accent) 35%, transparent); }
.card .icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--tint); color: var(--accent); }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.35rem; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; }
.card .more svg { width: 16px; height: 16px; transition: transform .2s ease; }
a.card:hover .more svg { transform: translateX(3px); }

.steps { display: grid; gap: 16px; counter-reset: step; }
.step { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 18px; color: var(--accent); font-weight: 700; }
.step h3 { font-size: 1.25rem; }
.step p { margin-top: 8px; color: var(--muted); }

.story { display: grid; gap: 32px; align-items: center; }
.story p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.story .media img { aspect-ratio: 4 / 4.4; }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 500; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

.cta { padding: 0 0 80px; }
.cta .box { display: grid; gap: 24px; align-items: center; padding: 40px 32px; border-radius: 32px; color: #fff; background: radial-gradient(90% 120% at 100% 0%, color-mix(in oklab, var(--accent) 70%, white) 0%, transparent 50%), linear-gradient(135deg, var(--accent), var(--deep)); box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.cta p { margin-top: 10px; color: rgb(255 255 255 / .82); }

/* Services page */
.page-head { padding: 56px 0 24px; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); max-width: 18ch; }
.service-list { display: grid; gap: 14px; }
.service-row { display: grid; gap: 14px; align-items: center; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.service-row h2 { font-size: 1.6rem; }
.service-row p { color: var(--muted); }

/* Contact page */
.contact { display: grid; gap: 20px; align-items: start; padding-bottom: 80px; }
.info { display: grid; gap: 12px; padding: 28px; border-radius: 24px; background: var(--ink); color: #fff; }
.info a, .info p { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgb(255 255 255 / .07); text-decoration: none; font-weight: 600; }
.info svg { width: 20px; height: 20px; flex: none; color: color-mix(in oklab, var(--accent) 60%, white); }
.info small { color: rgb(255 255 255 / .6); font-weight: 500; }
form.request { display: grid; gap: 16px; padding: 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.request .grid { display: grid; gap: 16px; }
.request label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.request input, .request select, .request textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgb(20 23 29 / .2); background: #fff; font: inherit; color: var(--ink); }
.request textarea { min-height: 120px; resize: vertical; }
.request input:focus, .request select:focus, .request textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 20%, transparent); }
.request .fine { color: var(--muted); font-size: .85rem; }
#form-result:not(:empty) { padding: 14px 16px; border-radius: 12px; background: var(--tint); color: var(--deep); font-weight: 600; }

/* Footer + mobile call bar */
footer { padding: 48px 0 110px; background: #0d0f14; color: #c9ced8; font-size: .95rem; }
footer .wrap { display: grid; gap: 28px; }
footer strong { color: #fff; font-size: 1.15rem; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }
footer .cols { display: grid; gap: 8px; }
footer .note { padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .1); color: #8c93a1; font-size: .82rem; }
footer .note a { text-decoration: underline; }
.callbar { position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 999px; background: rgb(255 255 255 / .72); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); border: 1px solid rgb(255 255 255 / .7); box-shadow: 0 16px 36px -14px rgb(15 20 30 / .4); }
.callbar .btn { min-height: 48px; padding: 0 12px; }

/* Reveal motion (enhancement only) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 719px) {
  .top-call, .hide-sm { display: none; }
  .top .wrap { min-height: 64px; }
  .brand img { max-height: 44px; max-width: 60vw; }
}
@media (min-width: 720px) {
  .strip .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .request .grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 1fr auto; padding: 30px 32px; }
  .cta .box { grid-template-columns: 1fr auto; padding: 52px; }
  footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; }
  .top .btn .label-long { display: inline; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .hero { padding: 72px 0 88px; }
  .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .callfirst .hero .wrap { grid-template-columns: 1.15fr .85fr; }
  .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story { grid-template-columns: .9fr 1.1fr; gap: 64px; }
  .story.flip { grid-template-columns: 1.1fr .9fr; }
  .contact { grid-template-columns: .8fr 1.2fr; }
  .section { padding: 104px 0; }
  .callbar { display: none; }
  footer { padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
