/* Easy to Find by Will — company chrome (homepage + niche pages).
   Palette from the homepage mockup: navy / bright blue / yellow / white. */

:root {
  --navy: #001f3f;
  --blue: #0056d2;
  --yellow: #ffd000;
  --white: #ffffff;
  --ink: #001f3f;
  --muted: #3d5a80;
  --line: #9ec0f0;
  --paper: #ffffff;

  --sans: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --script: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  --wrap: 68rem;
  --gutter: 1.35rem;
  --tap: 3rem;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: light;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 106.25%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Ensure in-page anchor targets aren’t hidden behind the sticky header (includes iOS safe area) */
  scroll-padding-top: calc(var(--header-h, 0px) + env(safe-area-inset-top));
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }
[hidden] { display: none !important; }

h1, h2, h3 { font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.75rem; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 1.4rem + 3vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.15rem); }
p { margin: 0 0 1rem; max-width: 40rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.skip { position: absolute; left: var(--gutter); top: -3rem; background: var(--navy); color: var(--white); padding: 0.5rem 0.8rem; z-index: 100; }
.skip:focus { top: 0.5rem; }

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-pin { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: block; flex: none; }
.brand-sm .brand-pin { width: 1.75rem; height: 1.75rem; }
.brand-type { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; color: var(--navy); display: inline-flex; align-items: center; gap: 0.28rem; }
.brand-dot { width: 0.42rem; height: 0.42rem; background: var(--yellow); border-radius: 50%; display: inline-block; }
.brand-by { font-family: var(--script); font-size: 1.35rem; font-weight: 600; color: var(--blue); margin-top: 0.05rem; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid #e8eef7; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.15rem 0.35rem; }
.nav a { color: var(--navy); font-weight: 600; font-size: 0.95rem; padding: 0.55rem 0.65rem; text-decoration: none; }
.nav a:hover { color: var(--blue); }
.nav .btn { margin-left: 0.35rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  min-height: var(--tap); padding: 0 1.15rem;
  background: var(--blue); color: var(--white);
  font: inherit; font-weight: 700; font-size: 0.98rem;
  border: 0; border-radius: 4px; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; color: var(--white); }
.btn::after { content: "↗"; font-weight: 700; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { color: var(--navy); }
.btn-lg { min-height: 3.25rem; padding: 0 1.4rem; font-size: 1.05rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Hero */
.hero { padding: 3rem 0 3.5rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 52em) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; } }
.eyebrow { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.85rem; }
.hero .lede { font-size: 1.15rem; color: var(--ink); max-width: 34em; }
.hero-note { font-size: 0.95rem; color: var(--muted); margin: 0.85rem 0 0; }

.portrait { justify-self: center; max-width: 22rem; width: 100%; overflow: hidden; }
.portrait-frame {
  background: var(--yellow);
  padding: 0.7rem 0.7rem 2.6rem;
  transform: rotate(4deg);
  box-shadow: 0 10px 30px rgba(0, 31, 63, 0.12);
}
.portrait-frame img { display: block; width: 100%; height: auto; transform: rotate(-4deg); background: #ddd; }
.portrait figcaption {
  font-weight: 800; color: var(--navy); text-align: center;
  margin-top: -1.7rem; position: relative; transform: rotate(4deg);
  font-size: 0.95rem;
}

/* Divided sections */
.section { padding: 3.25rem 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h, 0px) + env(safe-area-inset-top)); }
.section-head { margin-bottom: 1.75rem; max-width: 36rem; }
.section-head p { color: var(--muted); }

.split { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 48em) {
  .split { grid-template-columns: 1fr 1.15fr; align-items: start; }
  .split > :first-child { padding-right: 1.5rem; border-right: 1px solid var(--line); }
}

/* Niche cards */
.niches { display: grid; gap: 0; }
@media (min-width: 48em) {
  .niches { grid-template-columns: repeat(4, 1fr); }
  .niche + .niche { border-left: 1px solid var(--line); padding-left: 1.4rem; margin-left: 0.2rem; }
}
.niche { padding: 0.4rem 0 1rem; }
.niche a { font-weight: 800; font-size: 1.15rem; color: var(--blue); display: inline-flex; align-items: center; gap: 0.25rem; }
.niche a::after { content: "↗"; }
.niche p { margin-top: 0.4rem; color: var(--muted); font-size: 0.95rem; }

/* Prices */
.price-row { display: grid; gap: 0.35rem 1.5rem; padding: 1.15rem 0; }
.price-row + .price-row { border-top: 1px solid var(--line); }
@media (min-width: 36em) {
  .price-row { grid-template-columns: 1fr auto auto; align-items: baseline; }
}
.price-row h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.price-amt { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem); font-weight: 800; color: var(--blue); }
.price-tag { font-weight: 700; color: var(--navy); }
.price-row p { grid-column: 1 / -1; color: var(--muted); margin: 0.25rem 0 0; }

/* About */
.sign { font-family: var(--script); font-size: 2.4rem; color: var(--blue); margin-top: 1.25rem; line-height: 1; }

/* CTA band */
.cta-band { background: var(--navy); color: var(--white); padding: 3.25rem 0; }
.cta-band h2 { color: var(--white); }
.cta-band-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 48em) { .cta-band-inner { grid-template-columns: 1.3fr 1fr; } }
.cta-band a { color: var(--white); }
.cta-band .btn-yellow { color: var(--navy); }
.cta-band .btn-yellow:hover { color: var(--navy); }
.cta-band-actions p { margin-top: 0.85rem; font-weight: 600; }

/* Lower footer */
.site-footer { background: var(--white); padding: 1.15rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem; }
.footer-inner p { margin: 0; font-size: 0.9rem; color: var(--navy); }
.footer-inner a { color: var(--blue); }

/* Forms (homepage enquiry, navy-safe) */
.form-panel { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.form-panel .row { display: grid; gap: 0.75rem; }
@media (min-width: 40em) { .form-panel .row { grid-template-columns: 1fr 1fr; } }
.form-panel label { display: grid; gap: 0.3rem; font-weight: 700; font-size: 0.88rem; }
.form-panel input, .form-panel textarea {
  width: 100%; min-height: 2.75rem; padding: 0.55rem 0.75rem;
  font: inherit; border: 0; border-radius: 4px; background: var(--white); color: var(--navy);
}
.form-panel textarea { min-height: 5rem; }
.form-panel .help, .form-panel .error { font-size: 0.85rem; margin: 0; }
.form-panel .error { color: #ffb4b4; }
.cta-band .result { background: rgba(255,255,255,0.08); padding: 0.9rem 1rem; border-left: 3px solid var(--yellow); }

/* Niche page extras */
.page-hero { padding: 3rem 0 2rem; }
.page-hero .lede { font-size: 1.15rem; }
.beats { list-style: none; padding: 0; margin: 0; }
.beats li { padding: 0.8rem 0; border-top: 1px solid var(--line); max-width: 40rem; }
.beats li:first-child { border-top: 0; }

@media (max-width: 40em) {
  .nav .btn { width: 100%; }
  .brand-name { font-size: 1.02rem; }
}
