/* Harbor & Hue — demo stylesheet. No framework.
   Gallery-card grid and process-timeline layout patterns adapted from
   Start Bootstrap Agency (MIT, (c) 2013-2023 Start Bootstrap LLC). See THIRD-PARTY-NOTICES.txt. */

/* Client-specific values: change these first for a new client. */
:root {
  --green: #1f4d3a;
  --green-dark: #143426;
  --green-soft: #e3ece5;
  --paper: #f7f3ec;
  --paper-2: #efe8dc;
  --ink: #1c2420;
  --muted: #55605a;
  --line: #ddd4c4;
  --warm: #c9823a;
  --error: #a3261b;
  --radius: 14px;
  --max: 1120px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.6;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); padding-bottom: 76px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; color: var(--green-dark); }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -100px; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
section { padding: 64px 0; }
.alt { background: var(--paper-2); }

/* Section heading pattern (centred title, short subtitle, paint-stroke rule) */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2::after {
  content: ""; display: block; width: 72px; height: 6px; margin: 14px auto 0;
  background: var(--green); border-radius: 6px 2px 6px 2px;
}
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Demo labels: remove for a real client */
.demo-banner { background: var(--ink); color: #f1ede4; text-align: center; font-size: .85rem; padding: 8px 16px; }
.demo-banner strong { color: #f0c27f; }
.demo-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: #fbe9cf; color: #6b4106; padding: 3px 9px; border-radius: 6px;
}

/* Header */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(247, 243, 236, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 64px; }
.logo { font-weight: 900; font-size: 1.2rem; color: var(--green-dark); text-decoration: none; white-space: nowrap; letter-spacing: -.02em; }
.logo span { color: var(--warm); }
nav.main { display: flex; gap: 2px; }
nav.main a {
  text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 600;
  min-height: 44px; display: inline-flex; align-items: center;
}
nav.main a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
nav.main a:hover { background: var(--green-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 26px; border-radius: 999px; border: 2px solid var(--green);
  background: var(--green); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--green-soft); }
.btn.light { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn.light.ghost { background: transparent; color: #fff; }
.btn.light.ghost:hover { background: rgba(255,255,255,.12); }
header.site .btn { min-height: 44px; padding: 8px 18px; }

/* Hero: split layout. Copy first in the DOM so phones get headline and button above the photo. */
.hero-split { background: var(--paper-2); padding: 40px 0 48px; }
.hero-split .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) {
  .hero-split { padding: 72px 0; }
  .hero-split .wrap { grid-template-columns: 1fr 1fr; gap: 56px; }
}
.hero-split h1 { max-width: 13ch; }
.hero-split .lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 38ch; }
.hero-split .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.btn-lg { min-height: 56px; padding: 14px 32px; font-size: 1.1rem; box-shadow: 0 6px 18px rgba(31,77,58,.25); }
.area-line { color: var(--ink); font-weight: 600; margin: 0; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px rgba(28,36,32,.18); }
.hero-photo figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }

.page-head { padding: 48px 0 32px; }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 56ch; }

/* Two-up service summary / comparison cards */
.two { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .two { grid-template-columns: 1fr 1fr; } }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.svc img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.svc .body { padding: 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.svc .body .btn { margin-top: auto; align-self: flex-start; }
.svc h3, .svc h2 { margin-bottom: .3em; }
.svc dl { margin: 0 0 20px; display: grid; gap: 14px; }
.svc dt { font-weight: 800; color: var(--green-dark); }
.svc dd { margin: 0; }
.svc dd ul { margin: 4px 0 0; }
.kicker { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a4f12; } /* darker warm tone for 4.5:1 text contrast */

/* Project gallery: captioned cards */
.gallery { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .gallery-4 { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.gallery figcaption { padding: 14px 18px 16px; }
.gallery figcaption strong { display: block; color: var(--green-dark); font-size: 1.05rem; }
.gallery figcaption span { color: var(--muted); font-size: .9rem; }

/* Estimate process: vertical timeline, alternating on wide screens */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 860px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 27px; width: 3px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 32px 84px; min-height: 64px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .num {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.3rem;
  border: 5px solid var(--paper);
}
.alt .timeline .num { border-color: var(--paper-2); }
.timeline h3 { margin: 12px 0 4px; }
@media (min-width: 820px) {
  .timeline::before { left: 50%; margin-left: -1.5px; }
  .timeline li { width: 50%; padding: 0 64px 40px 0; text-align: right; }
  .timeline li .num { left: auto; right: -28px; }
  .timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 40px 64px; text-align: left; }
  .timeline li:nth-child(even) .num { right: auto; left: -28px; }
}

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.compare th, .compare td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--green); color: #fff; }
.compare tbody th { color: var(--green-dark); width: 28%; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }

.areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; list-style: none; margin: 0 0 1em; }
.areas li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; }

.cta-band { background: var(--green); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dfe9e2; }
.center { text-align: center; }

/* Contact layout: form first in the DOM (so it is near the top on phones), photo + next steps beside it on desktop */
.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.aside img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; margin-bottom: 8px; }
.aside .credit { font-size: .8rem; color: var(--muted); margin-bottom: 20px; }
.next-steps { padding-left: 1.3em; }
.next-steps li { margin-bottom: 8px; }

/* Form */
form.quote { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field .hint { color: var(--muted); font-size: .9rem; }
.field input, .field textarea {
  font: inherit; padding: 12px 14px; border: 2px solid #c9bfae; border-radius: 10px; width: 100%;
  min-height: 50px; background: #fffdf9; color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--green); outline: 3px solid rgba(31,77,58,.25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error); background: #fff6f5; }
.field .error { color: var(--error); font-weight: 600; font-size: .92rem; }
.field .error:empty { display: none; }
.form-error { border-left: 4px solid var(--error); background: #fff1ef; padding: 12px 16px; border-radius: 8px; }
.notice { border-left: 4px solid var(--warm); background: #fdf3e3; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; }
.success { border-left: 4px solid var(--green); background: var(--green-soft); padding: 20px; border-radius: 10px; }
.success h2 { font-size: 1.4rem; }

/* Footer */
footer.site { background: var(--green-dark); color: #cfdcd3; padding: 40px 0; font-size: .92rem; }
footer.site a { color: #fff; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 12px; }
footer.site nav a { min-height: 44px; display: inline-flex; align-items: center; }

/* Credits page */
.credits li { margin-bottom: 14px; }

/* Sticky quote bar on phones */
.quote-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 10px; }
.quote-bar .btn { flex: 1; min-height: 48px; padding: 10px 12px; }
@media (min-width: 760px) { .quote-bar { display: none; } body { padding-bottom: 0; } }
@media (max-width: 759px) {
  header.site .btn { display: none; }
  .logo { font-size: 1.05rem; }
  nav.main a { padding: 8px 9px; font-size: .95rem; }
}
