/* ==========================================================
   HANG TIGHT - ARCHITECTURAL DRYWALL INSTALLATION - style.css
   Contents:
   1. Colour + size variables
   2. Base / reset
   3. Reusable pieces (container, buttons, headings)
   4. Header + navigation
   5. Hero
   6. Services
   7. Why Choose Hang Tight
   8. Gallery
   9. Request an Estimate
   10. Footer
   11. Responsive (tablet + desktop)
   ========================================================== */


/* ---------- 1. VARIABLES ----------
   Change a colour here and it updates everywhere on the site. */
:root {
  /* Charcoal family (backgrounds) */
  --charcoal: #191b1d;        /* main brand charcoal */
  --charcoal-deep: #121315;   /* header, footer, estimate band */
  --charcoal-raised: #212427; /* cards / alternate sections */
  --line: #33373b;            /* hairline borders */

  /* Copper family (accent) */
  --copper: #b66a3c;          /* brand copper: rules, borders, large accents */
  --copper-light: #d4935f;    /* copper for SMALL text on dark (passes contrast) */
  --copper-deep: #995530;     /* button background: ivory text on it passes contrast */
  --copper-deeper: #7f4628;   /* button hover */

  /* Stone / ivory family (text) */
  --ivory: #f5f3ee;           /* headings + strong text */
  --stone: #c9c5bc;           /* body text */
  --stone-dim: #9a968e;       /* quiet text */

  /* Logo mark colour: kept exactly as the approved logo */
  --logo-orange: #f26b1d;

  /* Typography (system fonts only, nothing to download) */
  --font-main: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-logo: Impact, "Arial Narrow Bold", "Franklin Gothic Medium", "Arial Black", sans-serif;

  --max-width: 1200px;
  --radius: 2px;
  --header-height: 76px;
}


/* ---------- 2. BASE / RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;   /* width includes padding + border */
}

html {
  scroll-behavior: smooth;                        /* smooth scrolling for menu links */
  scroll-padding-top: var(--header-height);       /* stops the sticky header covering section titles */
}

/* Respect people who turn off motion in their device settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--stone);
  background-color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
}

/* Stops the page scrolling behind the open mobile menu (class added by script.js) */
body.nav-open {
  overflow: hidden;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  color: var(--ivory);
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

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

/* Clear copper outline when using the keyboard */
:focus-visible {
  outline: 2px solid var(--copper-light);
  outline-offset: 4px;
}

/* Hidden until a keyboard user presses Tab */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--ivory);
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

/* Text for screen readers only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* ---------- 3. REUSABLE PIECES ---------- */

/* Keeps content centred with a maximum width */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background-color: var(--charcoal-raised);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 3rem;
}

.section-heading h2,
.cta h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);   /* grows with screen size, between 2rem and 3rem */
  letter-spacing: -0.005em;
}

.section-intro {
  font-size: 1.125rem;
  color: var(--stone);
}

/* Small copper label above headings, with a short rule in front */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  color: var(--copper-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background-color: var(--copper);
}

.accent {
  color: var(--copper-light);
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: var(--copper-deep);
  border-color: var(--copper);
  color: var(--ivory);
}
.btn-primary:hover {
  background-color: var(--copper-deeper);
}

.btn-small {
  padding: 0.65rem 1.15rem;
  font-size: 0.75rem;
}

.btn-large {
  padding: 1.15rem 2.4rem;
  font-size: 0.9375rem;
}


/* ---------- 4. HEADER + NAVIGATION ---------- */
.site-header {
  position: sticky;     /* stays at the top while scrolling */
  top: 0;
  z-index: 100;
  background-color: rgba(18, 19, 21, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ivory);
}

/* Logo mark: styling kept the same as the approved version */
.logo-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background-color: var(--logo-orange);
  color: #141516;
  font-family: var(--font-logo);
  font-size: 1.3rem;
  border-radius: 4px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-descriptor {
  margin-top: 0.2rem;
  color: var(--stone-dim);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-img {
  height: 48px;
  width: auto;
}

/* Hamburger button (mobile only) */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 1.5px;
  background-color: var(--ivory);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Turn the three bars into an X when the menu is open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu: hidden until script.js adds the "is-open" class */
.site-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--charcoal-deep);
  padding: 1.5rem;
  overflow-y: auto;
}

.site-nav.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 1.1rem 0;
  color: var(--ivory);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-bottom: 1px solid var(--line);
}

.nav-list a:hover {
  color: var(--copper-light);
}

/* The estimate button inside the mobile menu */
.nav-list .btn {
  margin-top: 1.75rem;
  padding: 1rem;
  border: 1px solid var(--copper);
  color: var(--ivory);
  font-size: 0.875rem;
}
.nav-list .btn:hover {
  color: var(--ivory);
}


/* ---------- 5. HERO ----------
   PHONE LAYOUT first (everything stacked). Desktop changes are in section 11. */
.hero {
  position: relative;
  padding: 1.75rem 0 3.5rem;
  background-color: var(--charcoal);
  border-bottom: 1px solid var(--copper);
  overflow: hidden;   /* stops the full-bleed image causing sideways scrolling */
}

/* Brand block */
.hero-brand {
  position: relative;
  z-index: 3;   /* keeps the text above the image and its fade */
}

/* HANG TIGHT wordmark: heavy, slightly slanted lettering under a roofline,
   echoing the original logo */
.hero-name {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-top: 0.42em;   /* room for the roofline */
  font-family: "Arial Black", "Segoe UI Black", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 12.5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transform: skewX(-7deg);   /* subtle forward lean, like the original logo */
  transform-origin: left bottom;
  text-shadow: 0 3px 22px rgba(25, 27, 29, 0.6);
}

.hero-name-hang,
.hero-name-tight {
  white-space: nowrap;   /* a word never breaks in half; the two words wrap only if needed */
}

.hero-name-hang {
  color: var(--ivory);
}

.hero-name-tight {
  color: var(--copper-light);
}

/* Roofline above the name */
.hero-roof {
  position: absolute;
  top: 0;
  left: 8%;
  width: 84%;
  height: 0.36em;
  overflow: visible;
}
.hero-roof polyline {
  fill: none;
  stroke: var(--copper);
  stroke-width: 3;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;   /* line stays crisp at any size */
}

.hero-descriptor {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.1rem 0 0;
  color: var(--ivory);
  font-size: clamp(0.6875rem, 2.6vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(25, 27, 29, 0.7);
}
/* Short copper rule in front of the descriptor */
.hero-descriptor::before {
  content: "";
  flex-shrink: 0;
  width: 2.25rem;
  height: 1px;
  background-color: var(--copper);
}

.hero-headline {
  max-width: 24ch;
  margin: 1.25rem 0 0;
  color: var(--stone);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.2rem, 4.4vw, 1.6rem);
  line-height: 1.35;
  text-shadow: 0 2px 14px rgba(25, 27, 29, 0.7);
}

/* Scene area. On phones it runs edge to edge across the screen. */
.hero-visual {
  position: relative;
  margin: 1.75rem -1.5rem 0;   /* cancels the container padding = full width */
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;   /* overrides the height="" in the HTML so the 4:3 shape works */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 45% 20%;   /* keeps the vaulted ceiling in view */
}

/* Soft fades so the image has no hard edges */
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Top and bottom fade into the charcoal */
.hero-visual::before {
  background: linear-gradient(180deg,
    var(--charcoal) 0%,
    rgba(25, 27, 29, 0) 14%,
    rgba(25, 27, 29, 0) 80%,
    var(--charcoal) 100%);
}

/* Phones: no side fade needed (the image already fills the width) */
.hero-visual::after {
  background: none;
}

/* Shaun: in front of the scene, lower right, flipped to face the centre */
.hero-mascot {
  position: absolute;
  z-index: 2;   /* sits in front of the fades */
  right: 2%;
  bottom: 0;
  width: 46%;
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.5));
  /* fades out his cropped waistline so he blends into the charcoal */
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
}

/* Full-width description */
.hero-text {
  margin: 1.5rem 0 0;
  color: var(--ivory);
  opacity: 0.9;
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* The two customer service cards: centred, equal size */
.hero-choices {
  display: grid;
  grid-auto-rows: 1fr;   /* both cards always the same height */
  gap: 1.25rem;
  max-width: 980px;
  margin: 3rem auto 0;
}

.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2.25rem 2rem 1.75rem;
  background-color: var(--charcoal-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--stone);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* Copper rule across the top that extends on hover */
.path-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 3rem;
  height: 2px;
  background-color: var(--copper);
  transition: width 0.3s ease;
}

.path-card:hover {
  border-color: rgba(182, 106, 60, 0.6);
  background-color: #25282b;
}
.path-card:hover::before {
  width: calc(100% + 2px);
}

.path-card-title {
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
}

.path-card-text {
  margin-bottom: 1.75rem;
}

/* "Explore …" button, always at the bottom of the card.
   (It's styled as a button; the whole card is the link.) */
.path-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: auto;
  padding: 0.95rem 1.5rem;
  background-color: #c47b48;
  border-radius: var(--radius);
  color: var(--charcoal);   /* #191B1D */
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.path-card:hover .path-card-action,
.path-card:focus-visible .path-card-action {
  background-color: #d68c58;   /* slightly brighter orange */
}

.path-card-arrow {
  font-size: 1.25rem;
  letter-spacing: 0;
  transition: transform 0.2s ease;
}
.path-card:hover .path-card-arrow {
  transform: translateX(4px);
}


/* ---------- BUILT FOR THE CHALLENGING WORK ---------- */
.statement {
  background-color: var(--charcoal-deep);
  border-bottom: 1px solid var(--line);
}

.statement-inner {
  display: grid;
  gap: 2rem;
}

.statement-title {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.statement-accent {
  display: block;
  color: var(--copper-light);
}

.statement-body {
  padding-left: 1.5rem;
  border-left: 1px solid var(--copper);
  font-size: 1.125rem;
  line-height: 1.8;
}

.statement-body p:last-child {
  margin-bottom: 0;
}

.statement-closing {
  color: var(--ivory);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
}


/* ---------- 6. SERVICES ---------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  position: relative;
  padding: 2.25rem 1.85rem;
  background-color: var(--charcoal-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Thin copper rule across the top of each card */
.service-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 3rem;
  height: 2px;
  background-color: var(--copper);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.4rem;
}

.service-card p {
  margin: 0;
}

.card-number {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--copper-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
}

/* The builder card gets a slightly stronger look */
.service-card-feature {
  border-color: rgba(182, 106, 60, 0.55);
}

.service-note {
  margin: 2.5rem 0 0;
  padding-left: 1rem;
  border-left: 1px solid var(--copper);
  color: var(--stone-dim);
  font-size: 0.9375rem;
}


/* ---------- 7. WHY CHOOSE HANG TIGHT ---------- */
.why-list {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.why-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.why-item h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.4rem;
}

.why-item p {
  margin: 0;
  max-width: 46ch;
}


/* ---------- 8. GALLERY ----------
   All four photos are 4:3, shown at 4:3, so nothing important is cropped. */
.gallery-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--charcoal-raised);
  cursor: zoom-in;
}

.gallery-link img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;   /* every photo in the same shape; the full photo opens in the lightbox */
  object-fit: cover;
  object-position: center;
  transition: opacity 0.2s ease;
}

.gallery-link:hover img {
  opacity: 0.88;
}

/* Featured photo */
.gallery-featured {
  display: grid;
  gap: 1.75rem;
  margin: 0 0 1.25rem;
}

.gallery-featured-text h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

.gallery-featured-text p:last-child {
  margin: 0;
}

/* Supporting photos */
.gallery-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.gallery-card {
  margin: 0;
}

.gallery-card figcaption {
  margin-top: 0.85rem;
  color: var(--stone);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.gallery-note {
  margin: 2.5rem 0 0;
  padding-left: 1rem;
  border-left: 1px solid var(--copper);
  color: var(--stone-dim);
  font-size: 0.9375rem;
}

/* Lightbox (full photo view) */
.lightbox {
  width: min(94vw, 1400px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  background: var(--charcoal-deep);
  border: 1px solid var(--line);
  color: var(--stone);
}

.lightbox::backdrop {
  background: rgba(10, 11, 12, 0.88);
}

.lightbox-figure {
  margin: 0;
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: calc(94vh - 5rem);
  object-fit: contain;   /* shows the complete photo */
  background: #000;
}

.lightbox-caption {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
}

.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 1;
  width: 44px;
  height: 44px;
  background: rgba(18, 19, 21, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ivory);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover {
  border-color: var(--copper);
}

/* Stops the page scrolling behind the open lightbox (class added by script.js) */
body.lightbox-open {
  overflow: hidden;
}


/* ---------- 9. REQUEST AN ESTIMATE ---------- */
.cta {
  padding: 5.5rem 0;
  background-color: var(--charcoal-deep);
  border-top: 1px solid var(--copper);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.cta p:last-child {
  margin-bottom: 0;
  font-size: 1.125rem;
}


/* ---------- 10. FOOTER ---------- */
.site-footer {
  padding-top: 4rem;
  background-color: var(--charcoal-deep);
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.footer-inner {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand {
  margin-bottom: 0.2rem;
  color: var(--ivory);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-descriptor {
  margin-bottom: 1rem;
  color: var(--stone-dim);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-tagline {
  color: var(--copper-light);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
}

.footer-heading {
  margin-bottom: 0.9rem;
  color: var(--ivory);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--copper-light);
}

.footer-muted {
  color: var(--stone-dim);
}

.footer-bottom {
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--stone-dim);
  font-size: 0.8125rem;
}
.footer-bottom p {
  margin: 0;
}


/* ---------- 11. RESPONSIVE ----------
   The styles above are for phones. These add layout for bigger screens. */

/* Very small phones: hide the long descriptor so the header doesn't crowd */
@media (max-width: 359px) {
  .logo-descriptor {
    display: none;
  }
}

/* Tablets (600px and wider) */
@media (min-width: 600px) {
  .hero-choices {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* Desktops (900px and wider) */
@media (min-width: 900px) {
  :root {
    --header-height: 88px;
  }

  .section,
  .cta {
    padding: 7.5rem 0;
  }

  /* Hide the hamburger and show the normal menu */
  .nav-toggle {
    display: none;
  }

  .logo-name {
    font-size: 1.2rem;
  }

  .logo-descriptor {
    font-size: 0.625rem;
    letter-spacing: 0.2em;
  }

  .site-nav {
    display: block;
    position: static;
    padding: 0;
    background: none;
    overflow: visible;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 2.25rem;
  }

  .nav-list a {
    padding: 0.5rem 0;
    border-bottom: none;
    font-size: 0.75rem;
  }

  .nav-list .btn {
    margin-top: 0;
    padding: 0.7rem 1.2rem;
    font-size: 0.75rem;
  }

  /* DESKTOP HERO
     The scene is placed behind the brand block and runs to the right edge of
     the browser window. Its left side fades into the charcoal, so there is no
     dividing line or frame. The height is sized so the name, scene, Shaun and
     description all fit on a typical first screen. */
  .hero {
    padding: 0 0 4.5rem;
  }

  .hero-top {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(430px, calc(100vh - var(--header-height) - 190px), 640px);
  }

  .hero-name {
    font-size: clamp(3.75rem, 6.6vw, 6.25rem);
  }

  .hero-headline {
    max-width: 26ch;
  }

  .hero-visual {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 16%;
    /* runs out to the right edge of the browser window */
    right: calc((100vw - min(100vw, var(--max-width))) / -2 - 1.5rem);
    margin: 0;
  }

  .hero-photo {
    height: 100%;
    aspect-ratio: auto;
    object-position: 62% 32%;
  }

  /* Top and bottom: gentle fades */
  .hero-visual::before {
    background: linear-gradient(180deg,
      var(--charcoal) 0%,
      rgba(25, 27, 29, 0) 12%,
      rgba(25, 27, 29, 0) 82%,
      var(--charcoal) 100%);
  }

  /* Left side fades gradually into the charcoal behind the name */
  .hero-visual::after {
    background: linear-gradient(90deg,
      var(--charcoal) 0%,
      rgba(25, 27, 29, 0.94) 14%,
      rgba(25, 27, 29, 0.78) 26%,
      rgba(25, 27, 29, 0.48) 38%,
      rgba(25, 27, 29, 0.16) 50%,
      rgba(25, 27, 29, 0) 60%);
  }

  .hero-mascot {
    right: 4%;
    width: auto;
    height: 78%;   /* about 3x the previous size; scales with the hero */
    max-width: none;
  }

  .hero-text {
    margin-top: 1rem;
    font-size: 1.1875rem;
  }

  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .statement-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 4rem;
  }

  /* Featured photo large on the left, its text on the right */
  .gallery-featured {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: end;
    gap: 2.5rem;
  }

  .gallery-featured-text {
    padding-bottom: 0.5rem;
  }

  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cta-inner > div {
    max-width: 660px;
  }

  .footer-inner {
    grid-template-columns: 1.3fr 1.5fr 1fr 1fr;
  }
}


/* ==========================================================
   12. INNER PAGES
   Styles used only by the new pages (estimate, residential, builders,
   services, why, gallery). They use new class names, so nothing on the
   homepage changes.
   ========================================================== */

/* Current page in the navigation */
.nav-list a[aria-current="page"] {
  color: var(--copper-light);
}

/* ---------- Page header band ---------- */
.page-hero {
  padding: 4rem 0 3.5rem;
  background-color: var(--charcoal-deep);
  border-bottom: 1px solid var(--copper);
}

.page-hero h1 {
  max-width: 20ch;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.1;
}

.page-hero .lead {
  max-width: 62ch;
  margin: 0;
}

.lead {
  color: var(--ivory);
  opacity: 0.9;
  font-size: 1.125rem;
  line-height: 1.75;
}

/* Small breadcrumb-style back link */
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--stone-dim);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}
.back-link:hover {
  color: var(--copper-light);
}

/* ---------- Text + photo split ---------- */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.split h2,
.prose h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.split-media {
  margin: 0;
}

/* ---------- Feature list (numbered blocks) ---------- */
.feature-grid {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  position: relative;
  padding: 2rem 1.75rem;
  background-color: var(--charcoal-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 3rem;
  height: 2px;
  background-color: var(--copper);
}

.feature h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.35rem;
}

.feature p {
  margin: 0;
}

.section-alt .feature {
  background-color: var(--charcoal);
}

/* ---------- Included / not included ---------- */
.scope {
  display: grid;
  gap: 1.25rem;
}

.scope-box {
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-box h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scope-in {
  border-top: 2px solid var(--copper);
}

.scope-out h3 {
  color: var(--stone);
}

.scope-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-box li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.75rem;
}

.scope-in li::before {
  content: "\2713";            /* check mark */
  position: absolute;
  left: 0;
  color: var(--copper-light);
  font-weight: 700;
}

.scope-out li::before {
  content: "\2715";            /* x mark */
  position: absolute;
  left: 0;
  color: var(--stone-dim);
}

.scope-out li {
  color: var(--stone-dim);
}

/* ---------- Simple photo rows (inner pages) ---------- */
.photo-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.photo-card {
  margin: 0;
}

.photo-card figcaption {
  margin-top: 0.75rem;
  color: var(--stone);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Tall (portrait) photos are shown whole inside the 4:3 frame */
.gallery-link img.is-portrait {
  object-fit: contain;
  background-color: var(--charcoal-raised);
}

/* ---------- Gallery page categories ---------- */
.gallery-category + .gallery-category {
  margin-top: 5rem;
}

.gallery-category-head {
  max-width: 720px;
  margin-bottom: 0.5rem;
}

.gallery-category-head h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
}

.gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.gallery-tags li {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--stone);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-empty-note {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--stone-dim);
}

/* ---------- Estimate selection cards ---------- */
.choice-grid {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 1.25rem;
  max-width: 980px;
  margin: 0 auto;
}

.path-card-label {
  display: block;
  margin-bottom: 1rem;
  color: var(--copper-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Text-link with arrow ---------- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--copper-light);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Homepage gallery: link to the full gallery page */
.gallery-more {
  margin: 2rem 0 0;
}

/* ---------- Estimate forms ---------- */
.form-wrap {
  max-width: 860px;
}

.form-intro {
  margin-bottom: 2.5rem;
}

.form-intro h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
}

.estimate-form fieldset {
  margin: 0 0 2rem;
  padding: 2rem 1.5rem 1.5rem;
  background-color: var(--charcoal-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.estimate-form legend {
  padding: 0 0.6rem;
  color: var(--ivory);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.field-grid {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field > label,
.field-label {
  color: var(--ivory);
  font-size: 0.9375rem;
  font-weight: 600;
}

.req {
  color: var(--copper-light);
}

.optional {
  color: var(--stone-dim);
  font-weight: 400;
  font-size: 0.875rem;
}

.field-hint {
  margin: 0;
  color: var(--stone-dim);
  font-size: 0.875rem;
  line-height: 1.5;
}

.estimate-form input[type="text"],
.estimate-form input[type="email"],
.estimate-form input[type="tel"],
.estimate-form input[type="number"],
.estimate-form input[type="date"],
.estimate-form select,
.estimate-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  background-color: var(--charcoal);
  border: 1px solid #4a4f54;
  border-radius: var(--radius);
  color: var(--ivory);
  font: inherit;
  font-size: 1rem;   /* 16px stops phones zooming in */
  line-height: 1.4;
  color-scheme: dark;   /* dark date pickers and dropdowns */
}

.estimate-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.estimate-form input:focus-visible,
.estimate-form select:focus-visible,
.estimate-form textarea:focus-visible {
  outline: 2px solid var(--copper-light);
  outline-offset: 1px;
  border-color: var(--copper);
}

/* Red-ish outline only after the visitor has tried to submit */
.estimate-form.was-submitted input:invalid,
.estimate-form.was-submitted select:invalid,
.estimate-form.was-submitted textarea:invalid {
  border-color: #d9826b;
}

.estimate-form input[type="file"] {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--charcoal);
  border: 1px dashed #4a4f54;
  border-radius: var(--radius);
  color: var(--stone);
  font: inherit;
  font-size: 0.9375rem;
}

/* Checkbox / radio groups */
.choice-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.estimate-form .choice-group {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}

.estimate-form .choice-group legend {
  padding: 0;
  margin-bottom: 0.6rem;
  color: var(--ivory);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.choice-options {
  display: grid;
  gap: 0.5rem;
}

.choice-option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  background-color: var(--charcoal);
  border: 1px solid #3c4045;
  border-radius: var(--radius);
  color: var(--stone);
  cursor: pointer;
}

.choice-option:hover {
  border-color: var(--copper);
}

.choice-option input {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0;
  accent-color: var(--copper);
}

/* Consent box */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  color: var(--stone);
  font-size: 0.9375rem;
}

.consent input {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--copper);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-submit {
  padding: 1.05rem 2rem;
  background-color: #c47b48;
  border: 0;
  border-radius: var(--radius);
  color: var(--charcoal);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.form-submit:hover {
  background-color: #d68c58;
}
.form-submit[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.form-review-note {
  margin: 0;
  color: var(--stone-dim);
  font-size: 0.9375rem;
}

/* Success / error / notice message after submitting */
.form-status {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left-width: 3px;
}
.form-status:empty {
  display: none;
}
.form-status.is-success {
  border-color: #6f9a6a;
  color: var(--ivory);
}
.form-status.is-error {
  border-color: #d9826b;
  color: var(--ivory);
}

/* Hidden anti-spam field (real visitors never see it) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Inner pages: tablet and up ---------- */
@media (min-width: 600px) {
  .field-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }

  .choice-options.two-col {
    grid-template-columns: 1fr 1fr;
  }

  .feature-grid,
  .scope {
    grid-template-columns: 1fr 1fr;
  }

  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .estimate-form fieldset {
    padding: 2.25rem 2rem 2rem;
  }

  .form-actions {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  .form-submit {
    flex-shrink: 0;
  }
}

/* ---------- Inner pages: desktop ---------- */
@media (min-width: 900px) {
  .page-hero {
    padding: 5.5rem 0 4.5rem;
  }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }

  .split.reverse .split-media {
    order: -1;
  }

  .feature-grid.three-col,
  .photo-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
  }
}
