/* Harbour & Co. Studio
   Colours live here, so they're easy to change in one place. */
:root {
  --navy: #0F2C44;
  --navy-deep: #0A1F31;
  --ink: #1B2A36;
  --muted: #4A5D6E;
  --off-white: #F8F6F1;
  --sand: #EFE7D8;
  --white: #FFFFFF;
  --buoy: #B5441A;        /* warm accent: buttons and highlights */
  --buoy-dark: #933612;
  --line: #DDD6C8;
  --error: #A3261B;
  --focus: #E4572E;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--off-white);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); font-weight: 750; max-width: 16ch; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--buoy); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ----- Buttons ----- */
.button {
  display: inline-block;
  background: var(--buoy);
  color: var(--white);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--buoy-dark); color: var(--white); }
.button[disabled] { opacity: 0.7; cursor: progress; }
.button-small { padding: 9px 18px; font-size: 0.95rem; }
.button-full { width: 100%; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(248, 246, 241, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.wordmark {
  font-size: 1.3rem; font-weight: 750; letter-spacing: -0.02em;
  color: var(--navy); text-decoration: none; white-space: nowrap;
}
.wordmark .amp { color: var(--buoy); font-weight: 600; }
.wordmark:hover { color: var(--navy); }

/* ----- Hero ----- */
.hero { padding: 72px 0 80px; }
.eyebrow {
  font-size: 0.85rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--buoy); margin-bottom: 1.2em;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40ch; margin-bottom: 1.8em; }

/* ----- Sections ----- */
.section { padding: 72px 0; }
.section-tint { background: var(--sand); }
.section-navy { background: var(--navy); color: #E6ECF1; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy a { color: var(--white); }
.section-navy a:hover { color: #F6C9B4; }

/* ----- Service cards ----- */
.cards { display: grid; gap: 20px; margin-top: 12px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);

  border-radius: var(--radius);
  padding: 26px 24px 10px;
}
.card::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--buoy); margin-bottom: 18px; }
.card p { color: var(--muted); }

/* ----- Recent work ----- */
.work-list { display: grid; gap: 24px; margin-top: 12px; }
.work-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: grid;
}
.work-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--off-white); border-bottom: 1px solid var(--line); }
.work-body { padding: 24px; }
.work-tag { font-size: 0.9rem; font-weight: 600; color: var(--buoy); margin-top: -0.4em; }
.work-body p:not(.work-tag) { color: var(--muted); }
.text-link { font-weight: 650; }

/* ----- How it works ----- */
.steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 60px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--white); font-weight: 700;
}
.steps p { color: var(--muted); }

/* ----- Contact / form ----- */
.contact-grid { display: grid; gap: 32px; }
.contact-intro p { max-width: 42ch; }

.enquiry-form, .form-success {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 28px 22px;
}
.enquiry-form a, .form-success a { color: var(--navy); }
.form-success h3 { color: var(--navy); }

.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.req, .opt { font-weight: 400; color: var(--muted); font-size: 0.9rem; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #8A97A3;
  border-radius: 10px;
  padding: 11px 13px;
}
textarea { resize: vertical; min-height: 130px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; border-color: var(--navy); }
[aria-invalid="true"] { border-color: var(--error) !important; }

.field-check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); }
.field-check label { font-weight: 400; color: var(--ink); margin: 0; }
.field-check .field-error { grid-column: 1 / -1; }

.field-error { color: var(--error); font-size: 0.92rem; font-weight: 600; margin: 6px 0 0; }

.form-status { border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; font-weight: 500; }
.form-status.is-error { background: #FBEAE7; color: var(--error); border: 1px solid #EBC1BA; }
.form-status.is-error a { color: var(--error); }

.cf-turnstile { margin-bottom: 14px; }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----- Footer ----- */
.site-footer { background: var(--navy-deep); color: #C9D3DC; padding: 32px 0; font-size: 0.95rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #F6C9B4; }
.footer-inner p { margin: 0 0 6px; }
.site-footer strong { color: var(--white); }

/* ----- Simple pages (thanks, privacy, 404) ----- */
.page { padding: 64px 0 80px; }
.page .container { max-width: 760px; }
.page h2 { font-size: 1.35rem; margin-top: 1.6em; }
.page li { margin-bottom: 0.4em; }

/* ----- Larger screens ----- */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .enquiry-form, .form-success { padding: 34px 32px; }
}
@media (min-width: 860px) {
  .hero { padding: 110px 0 120px; }
  .section { padding: 96px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps li { padding-left: 0; padding-top: 60px; }
  .work-card { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .work-card img { height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
  .work-body { padding: 36px; }
  .contact-grid { grid-template-columns: 1fr 1.4fr; align-items: start; gap: 56px; }
  .footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
}
