/* =========================================================================
   Handyman Norfolk — Stylesheet
   Font: Atkinson Hyperlegible
   Palette: Norfolk navy #1a3a5c · Brass #c89b3c · Cream #faf6ee · Flint #4a5568
   ========================================================================= */

:root {
  --navy: #1a3a5c;
  --navy-dark: #0f2540;
  --navy-light: #2c5482;
  --brass: #c89b3c;
  --brass-dark: #a07d28;
  --cream: #faf6ee;
  --cream-dark: #f0e9d6;
  --flint: #4a5568;
  --flint-light: #718096;
  --white: #ffffff;
  --black: #1a202c;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(26, 58, 92, 0.08);
  --shadow-lg: 0 10px 40px rgba(26, 58, 92, 0.15);
  --radius: 6px;
  --radius-lg: 12px;
  --maxw: 1180px;
  --readw: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--brass-dark); }

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; color: var(--navy); margin-bottom: 0.5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-top: 2em; }
h3 { font-size: 1.35rem; margin-top: 1.5em; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; }
ul, ol { margin: 0 0 1em 1.5em; }
li { margin-bottom: 0.4em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.read { max-width: var(--readw); margin: 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; width: auto; height: auto; padding: .5rem 1rem; background: var(--navy); color: white; z-index: 9999; }

/* =================== HEADER =================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.25rem; gap: 1.5rem; }
.logo-link { text-decoration: none; flex-shrink: 0; }
.logo { height: 44px; width: auto; }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px;
}
.menu-toggle .bar { width: 26px; height: 2.5px; background: var(--navy); transition: all .2s; }

.primary-nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; align-items: center; }
.primary-nav li { margin: 0; }
.primary-nav a {
  display: block; padding: .55rem 1rem; font-size: 0.95rem; font-weight: 700;
  color: var(--navy); text-decoration: none; border-radius: var(--radius);
  letter-spacing: 0.01em;
}
.primary-nav a:hover, .primary-nav a.active { color: var(--brass-dark); background: var(--cream); }
.primary-nav .btn-nav {
  background: var(--brass); color: var(--white) !important;
  padding: .65rem 1.2rem; margin-left: .5rem;
}
.primary-nav .btn-nav:hover { background: var(--brass-dark); }

/* =================== BUTTONS =================== */
.btn, .btn-primary, .btn-secondary {
  display: inline-block; padding: .85rem 1.75rem; font-size: 1rem; font-weight: 700;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: all .2s; line-height: 1.2;
}
.btn, .btn-primary { background: var(--brass); color: var(--white); }
.btn:hover, .btn-primary:hover { background: var(--brass-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-large { padding: 1.1rem 2.2rem; font-size: 1.1rem; }

/* =================== HERO =================== */
.hero {
  background:
    linear-gradient(180deg, rgba(15,37,64,0.78) 0%, rgba(26,58,92,0.65) 100%),
    url('/assets/images/hero-norfolk.jpg') center/cover no-repeat;
  color: var(--white); padding: 5rem 0 5.5rem; text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero .lead { font-size: 1.2rem; max-width: 720px; margin: 0 auto 2rem; opacity: 0.95; }
.hero .eyebrow {
  display: inline-block; background: var(--brass); color: var(--white);
  padding: .35rem 1rem; font-size: .85rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; border-radius: 999px; margin-bottom: 1.25rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

.page-hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  padding: 3.5rem 0 2.5rem;
}
.page-hero h1 { margin-bottom: .75rem; }
.page-hero .lead { font-size: 1.18rem; max-width: 800px; color: var(--flint); }
.page-hero .eyebrow {
  display: inline-block; color: var(--brass-dark);
  font-size: .85rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: .75rem;
}

/* =================== SECTIONS =================== */
section { padding: 3rem 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy a { color: var(--brass); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--flint); font-size: 1.1rem; }

/* =================== CARD GRID =================== */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all .25s; box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brass); }
.card a { display: block; text-decoration: none; color: inherit; }
.card-img img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.25rem 1.5rem 1.5rem; }
.card-body h3 { margin-top: 0; margin-bottom: .5rem; font-size: 1.15rem; color: var(--navy); }
.card-body p { color: var(--flint); margin-bottom: .75rem; font-size: 0.95rem; }
.card-link { color: var(--brass-dark); font-weight: 700; font-size: 0.9rem; }

/* =================== BREADCRUMBS =================== */
.breadcrumbs { background: var(--cream); padding: .75rem 0; font-size: 0.9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; gap: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs a { color: var(--flint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 .5rem; color: var(--flint-light); }
.breadcrumbs li[aria-current] span { color: var(--navy); font-weight: 700; }

/* =================== PROSE BODY =================== */
.prose { max-width: var(--readw); margin: 0 auto; padding: 0 1.25rem; }
.prose h2 { margin-top: 2.25em; }
.prose img { border-radius: var(--radius-lg); margin: 1.5em 0; box-shadow: var(--shadow); }
.prose ul li { margin-bottom: .5em; }

.feature-list { list-style: none; margin-left: 0; }
.feature-list li {
  padding-left: 1.75em; position: relative; margin-bottom: .65em;
}
.feature-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--brass); font-weight: 700; font-size: 1.1em;
}

/* =================== GALLERY =================== */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 2rem 0; }
.gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* =================== CTA BAND =================== */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white); padding: 3.5rem 0; text-align: center;
}
.cta-band h2 { color: var(--white); margin-top: 0; }
.cta-band p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 1.5rem; opacity: .95; }

/* =================== FORM =================== */
.quote-form {
  background: var(--cream); padding: 2rem; border-radius: var(--radius-lg);
  max-width: 600px; margin: 2rem auto;
}
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--navy); font-size: 0.95rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .75rem .9rem; font-size: 1rem; font-family: inherit;
  border: 2px solid var(--border); border-radius: var(--radius); background: var(--white);
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brass);
}
.field textarea { min-height: 140px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Consent tickbox — sits at the bottom of the form before the submit button */
.field.consent {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-top: 0.5rem;
}
.field.consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.field.consent input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin: 0.15rem 0 0 0;
  padding: 0;
  accent-color: var(--brass);
  cursor: pointer;
}

/* =================== FOOTER =================== */
.site-footer {
  background: var(--navy); color: var(--cream); padding: 3rem 0 1.5rem; margin-top: 4rem;
  font-size: 0.95rem;
}
.site-footer h3 { color: var(--brass); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .85rem; margin-top: 0; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--brass); text-decoration: underline; }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  margin-bottom: 2rem;
}
.footer-brand p { margin-bottom: .8rem; opacity: .85; line-height: 1.55; }
.footer-logo { height: 42px; margin-bottom: 1rem; filter: brightness(1.05); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .4em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.25rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  font-size: 0.88rem; opacity: .85;
}

/* =================== TABLES =================== */
table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--cream); color: var(--navy); font-weight: 700; }

/* =================== FAQ =================== */
.faq-item {
  border-bottom: 1px solid var(--border); padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; color: var(--navy); margin-bottom: .5rem; font-size: 1.1rem; }
.faq-a { color: var(--flint); }
.faq-a p { margin-bottom: .75em; }

/* =================== MAP =================== */
.map-embed {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  margin: 2rem 0; aspect-ratio: 16/9;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =================== TRUST STRIP =================== */
.trust-strip {
  background: var(--cream); padding: 1.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.trust-strip li { color: var(--navy); font-weight: 700; padding-left: 1.75em; position: relative; margin: 0; }
.trust-strip li::before {
  content: "\2713"; position: absolute; left: 0; color: var(--brass); font-weight: 900;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 880px) {
  .menu-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); padding: 1rem;
    transform: translateY(-110%); opacity: 0; pointer-events: none;
    transition: all .25s;
  }
  .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .primary-nav a { padding: .85rem 1rem; }
  .primary-nav .btn-nav { margin-left: 0; text-align: center; margin-top: .5rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero { padding: 3.5rem 0; }
  section { padding: 2.5rem 0; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .trust-strip ul { gap: 1rem; }
}
