/* ==========================================================================
   Lunn Renovations — main stylesheet
   Colours and fonts are set once at the top. Change them there and the
   whole site updates.
   ========================================================================== */

/* ---------- Colours ---------- */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f4f1;          /* alternate sections, placeholders */
  --surface: #ffffff;         /* quote form */
  --text: #151514;
  --muted: #64615b;
  --line: #e4e1db;
  --accent: #b08d57;          /* champagne gold, for lines and details */
  --accent-text: #85642f;     /* gold dark enough to read as text */
  --btn-bg: #151514;
  --btn-text: #ffffff;
  --btn-hover: #2c2b29;
  --field-bg: #ffffff;
  --band-bg: #0f0f0e;         /* black areas: header, quote band, footer */
  --band-text: #f3efe8;
  --band-muted: rgba(243, 239, 232, 0.66);
  --band-line: rgba(243, 239, 232, 0.14);
  --band-accent: #c9a96e;
  /* top section of each page */
  --hero-bg: var(--bg);
  --hero-text: var(--text);
  --hero-muted: var(--muted);
  --hero-accent: var(--accent-text);
  --hero-line: var(--line);
  --hero-btn-bg: var(--btn-bg);
  --hero-btn-text: var(--btn-text);
  --hero-outline: rgba(20, 19, 18, 0.3);
}

/* ---------- Fonts ----------
   Loaded from Google Fonts in the <head> of each page. */

:root {
  --heading: "Marcellus", Georgia, serif;
  --heading-weight: 400;
  --heading-scale: 0.92;
  --heading-spacing: 0.01em;
  --body: "Mulish", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: 22px;
  --bar-height: 66px; /* mobile call/quote bar */
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.72;
  padding-bottom: var(--bar-height);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-text); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-spacing);
  line-height: 1.12;
  margin: 0 0 0.5em;
}
h1 { font-size: calc(clamp(2.4rem, 8vw, 4.4rem) * var(--heading-scale)); }
h2 { font-size: calc(clamp(1.9rem, 5.4vw, 2.9rem) * var(--heading-scale)); }
h3 { font-size: calc(1.5rem * var(--heading-scale)); }

p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 700px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--band-accent); color: #000; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */

.site-header {
  background: var(--band-bg);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--band-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 16px;
}
.brand img { width: 86px; height: auto; }

.nav-toggle {
  background: none; border: 0; color: var(--band-text);
  padding: 10px 0; font: 500 0.78rem/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 1px; background: var(--band-text); position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--band-bg);
  border-bottom: 1px solid var(--band-line);
  padding: 4px var(--gutter) 24px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; color: var(--band-text); text-decoration: none;
  padding: 15px 0; border-bottom: 1px solid var(--band-line);
  font-family: var(--heading); font-size: calc(1.45rem * var(--heading-scale));
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--band-accent); }
.header-phone { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 0;
  font: 500 0.8rem/1.2 var(--body); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
/* Main button on black sections */
.btn-gold { background: var(--band-accent); color: #0e0e0d; border-color: var(--band-accent); }
.btn-gold:hover { background: transparent; color: var(--band-accent); }
.hero .btn-gold { background: var(--hero-btn-bg); color: var(--hero-btn-text); border-color: var(--hero-btn-bg); }
.hero .btn-gold:hover { background: transparent; color: var(--hero-text); }
/* Second button on black sections */
.btn-outline { color: var(--band-text); background: transparent; border-color: rgba(241, 235, 223, 0.35); }
.btn-outline:hover { border-color: var(--band-accent); color: var(--band-accent); }
.hero .btn-outline { color: var(--hero-text); border-color: var(--hero-outline); }
.hero .btn-outline:hover { border-color: var(--hero-accent); color: var(--hero-accent); }
/* Main button on the page background */
.btn-dark { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.btn-dark:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn svg { width: 15px; height: 15px; flex: none; }

/* ---------- Mobile action bar (tap to call) ---------- */

.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 9px var(--gutter) calc(9px + env(safe-area-inset-bottom));
  background: var(--band-bg);
  border-top: 1px solid var(--band-line);
}
.action-bar .btn { padding: 13px 8px; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-deep { background: var(--bg-alt); }
.section-dark { background: var(--band-bg); color: var(--band-text); }
.section-dark a:not(.btn) { color: var(--band-accent); }

.eyebrow {
  display: block; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-text);
  margin-bottom: 18px;
}
.section-dark .eyebrow { color: var(--band-accent); }
.hero .eyebrow { color: var(--hero-accent); }

.lead { font-size: 1.14rem; color: var(--muted); font-weight: 400; }
.section-dark .lead { color: var(--band-muted); }
.hero .lead { color: var(--hero-muted); }

/* Gold hairline with the diamond from the logo */
.rule {
  display: flex; align-items: center; gap: 10px; margin: 26px 0; max-width: 110px;
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--accent); }
.rule span { width: 6px; height: 6px; border: 1px solid var(--accent); transform: rotate(45deg); }
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */

.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  border-bottom: 1px solid var(--hero-line);
  padding: 72px 0 80px;
}
.hero h1 { color: var(--hero-text); max-width: 14em; }
.hero h1 em { font-style: italic; color: var(--hero-accent); }
.hero .lead { max-width: 34em; margin-bottom: 34px; }
.hero-note { margin-top: 26px; font-size: 0.9rem; color: var(--hero-muted); }

.page-hero { padding: 56px 0 52px; }
.page-hero h1 { font-size: calc(clamp(2.2rem, 7vw, 3.6rem) * var(--heading-scale)); }

/* ---------- Service list (home) ---------- */

.grid { display: grid; gap: 0 40px; }

.card {
  padding: 30px 0 32px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--muted); }
.card .more {
  margin-top: auto; text-decoration: none; color: var(--text);
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
}
.card .more::after { content: "  →"; color: var(--accent); }
.card .more:hover { color: var(--accent-text); }

/* "Main focus" label */
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
  color: var(--accent-text);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
}
.badge::before { content: ""; width: 22px; height: 1px; background: var(--accent); }

.points { list-style: none; margin: 0; padding: 0; }
.points li { padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points strong {
  display: block; color: var(--text); margin-bottom: 4px;
  font-family: var(--heading); font-weight: var(--heading-weight);
  font-size: calc(1.4rem * var(--heading-scale));
}

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 22px 0 22px 64px;
  border-top: 1px solid var(--line); color: var(--muted);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: "0" counter(step);
  position: absolute; left: 0; top: 20px;
  font-family: var(--heading); font-size: calc(1.6rem * var(--heading-scale)); color: var(--accent);
}
.steps strong { display: block; color: var(--text); font-weight: 500; }

/* ---------- Placeholders (things still to add) ---------- */

.placeholder {
  border: 1px solid var(--line); background: var(--bg-alt);
  color: var(--muted); padding: 28px; text-align: center;
}
.placeholder-photo {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  font-family: var(--heading); font-style: italic; font-size: calc(1.1rem * var(--heading-scale)); padding: 12px;
}

/* ---------- Services page ---------- */

.service { padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service:last-of-type { border-bottom: 0; }
.service-grid { display: grid; gap: 28px; }
.service ul { list-style: none; padding: 0; margin: 0 0 1.4em; }
.service li { padding: 9px 0 9px 26px; position: relative; border-bottom: 1px solid var(--line); }
.service li::before {
  content: ""; position: absolute; left: 2px; top: 1.15em; width: 5px; height: 5px;
  border: 1px solid var(--accent); transform: rotate(45deg);
}
.service-note { border-left: 1px solid var(--accent); padding: 4px 0 4px 18px; font-size: 0.95rem; color: var(--muted); }

.jump-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 28px; }
.jump-links a {
  color: var(--hero-muted); text-decoration: none; font-size: 0.9rem;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.jump-links a:hover { color: var(--hero-text); border-bottom-color: var(--hero-accent); }

/* ---------- Gallery ---------- */

.project { padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.project:last-child { border-bottom: 0; }
.project h2 { font-size: calc(1.8rem * var(--heading-scale)); margin-bottom: 0.2em; }
.project > p { color: var(--muted); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair figure { margin: 0; position: relative; }
.pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; background: var(--bg-alt); }
.pair figcaption {
  position: absolute; bottom: 0; left: 0;
  background: var(--band-bg); color: var(--band-text);
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 10px;
}
.pair .placeholder-photo + figcaption {
  position: static; display: block; margin-top: 8px; background: none; color: var(--muted); padding: 0;
}

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(8, 8, 8, 0.92); }
.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; }
.lightbox button {
  position: fixed; top: 14px; right: 14px; background: none; color: #f1ebdf;
  border: 1px solid rgba(241, 235, 223, 0.4); width: 44px; height: 44px;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}

/* ---------- About ---------- */

.about-grid { display: grid; gap: 36px; align-items: start; }
.about-photo .placeholder-photo { aspect-ratio: 4 / 5; }
.signature {
  font-family: var(--heading); font-style: italic; font-size: calc(1.9rem * var(--heading-scale));
  color: var(--text); margin-top: 1.4em;
}

/* ---------- Contact / form ---------- */

.contact-grid { display: grid; gap: 44px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list span {
  display: block; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
}
.contact-list a { font-size: 1.12rem; text-decoration: none; color: var(--text); }
.contact-list a:hover { color: var(--accent-text); }

.quote-form { background: var(--surface); border: 1px solid var(--line); padding: 26px 22px; }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 500; margin-bottom: 7px; font-size: 0.95rem; }
.field .hint { display: block; font-weight: 400; font-size: 0.86rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; /* 16px+ stops iPhone zooming in */
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 0;
  background: var(--field-bg); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input[type="file"] { padding: 11px; }
.field-row { display: grid; gap: 0 18px; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.86rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 18px; padding: 14px 16px; display: none; border: 1px solid; }
.form-status.is-ok { display: block; color: #3d6b2f; border-color: #9fbf92; }
.form-status.is-error { display: block; color: #a23b26; border-color: #dba395; }
.form-status.is-busy { display: block; color: var(--muted); border-color: var(--line); }
.small { font-size: 0.86rem; color: var(--muted); }

/* ---------- CTA band and footer ---------- */

.cta-band { text-align: center; }
.cta-band .lead { margin-bottom: 30px; }
.cta-band .btn-row { justify-content: center; }

.site-footer {
  background: var(--band-bg); color: var(--band-muted);
  padding: 56px 0 34px; font-size: 0.93rem;
  border-top: 1px solid var(--band-line);
}
.footer-grid { display: grid; gap: 32px; }
.site-footer img { width: 120px; }
.site-footer h2 {
  font-family: var(--body); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--band-accent); margin-bottom: 1em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--band-text); text-decoration: none; }
.site-footer a:hover { color: var(--band-accent); }
.footer-base {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--band-line);
  font-size: 0.82rem; color: var(--band-muted);
}

/* ==========================================================================
   Larger screens
   ========================================================================== */

@media (min-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .pair { gap: 14px; }
  .quote-form { padding: 36px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; }
  body { padding-bottom: 0; }
  .action-bar { display: none; }

  .brand img { width: 104px; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: block; position: static; padding: 0; border: 0; background: none;
  }
  .site-nav ul { display: flex; gap: 34px; }
  .site-nav a {
    padding: 6px 0; border: 0;
    font-family: var(--body); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  }
  .site-nav a[aria-current="page"] { color: var(--band-accent); }
  .header-phone {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--band-text); text-decoration: none; font-size: 0.92rem; letter-spacing: 0.04em;
  }
  .header-phone svg { width: 15px; height: 15px; color: var(--band-accent); }

  .section { padding: 112px 0; }
  .hero { padding: 120px 0 128px; }
  .page-hero { padding: 88px 0 80px; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
  .service-grid { grid-template-columns: 1.3fr 1fr; gap: 64px; }
  .about-grid { grid-template-columns: 1fr 1.3fr; gap: 72px; }
  .contact-grid { grid-template-columns: 1fr 1.5fr; gap: 72px; }
  .quote-form { padding: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
