:root {
  --brand-red: #e8232a;
  --brand-navy: #0b1f3a;
  --ink: #1a2233;
  --muted: #5b6472;
  --line: #e6e8ec;
  --bg-alt: #f6f7f9;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(11, 31, 58, 0.08);
  font-size: 16px;
}

* { box-sizing: border-box; }

html {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  /* max-width:100vw (not just overflow-x:hidden) matters here: overflow-x:hidden alone hides the
     resulting scrollbar but doesn't cap body's own width, so a descendant's oversizing anywhere on
     the page still inflates the width every other element calculates "available space" against —
     e.g. a flex row with flex-wrap:wrap will happily not wrap if it thinks it has 500px to work
     with, even though only 430px is actually visible. Hard-capping here forces every descendant to
     size against the true viewport width regardless of any other overflow bug in the tree. */
}

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

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

a { color: inherit; text-decoration: none; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-red);
  margin: 0 0 8px;
}
.eyebrow.center { text-align: center; }
.center { text-align: center; }

h1, h2, h3 { color: var(--brand-navy); line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; margin-bottom: 8px; }

p { color: var(--muted); margin: 0 0 16px; }
.lead { font-size: 1.1rem; }
.lead-narrow { max-width: 620px; margin: 0 auto 32px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-primary { background: var(--brand-red); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(232,35,42,0.3); }
.btn-outline { border-color: var(--brand-navy); color: var(--brand-navy); background: #fff; }
.btn-outline:hover { background: var(--brand-navy); color: #fff; }
.btn-ghost { color: var(--brand-navy); font-weight: 600; }
.btn-ghost:hover { color: var(--brand-red); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--brand-navy); font-size: 1.05rem; }
.brand-text small { color: var(--muted); font-size: 0.72rem; }

.main-nav { display: flex; gap: 28px; }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.main-nav a:hover { color: var(--brand-red); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--brand-navy); border-radius: 2px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #142c52 100%);
  color: #fff;
  padding: 72px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.hero .eyebrow { color: #ffb3b3; }
.hero h1 { color: #fff; }
.hero .lead { color: #d7dce6; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 32px; }
.hero-stats { list-style: none; display: flex; gap: 32px; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.4rem; color: #fff; }
.hero-stats span { font-size: 0.8rem; color: #aab4c6; }

.hero-visual { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
.hero-photo { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.value-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.value-icon { font-size: 1.6rem; margin-bottom: 8px; }
.value-card h3 { font-size: 1.05rem; }
.value-card p { margin: 0; font-size: 0.9rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 40px; }
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.service-card ul { margin: 0 0 24px; padding-left: 20px; color: var(--muted); }
.service-card li { margin-bottom: 6px; }

/* Hexham Bricks */
.bricks-section { background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.bricks-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.price-card {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  background: var(--brand-navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 24px;
  margin: 4px 0 24px;
}
.price-amount { font-size: 2rem; font-weight: 800; color: #fff; }
.price-unit { font-size: 0.9rem; color: #aab4c6; }
.bricks-tagline {
  color: var(--brand-red);
  font-weight: 700;
  font-size: 1.1rem;
  margin: -8px 0 16px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--brand-red);
  display: inline-block;
}
.bricks-contact { list-style: none; padding: 20px; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); }
.bricks-contact li { display: flex; flex-direction: column; gap: 2px; }
.bricks-contact a { font-weight: 600; color: var(--brand-navy); }
.bricks-contact a:hover { color: var(--brand-red); }
.bricks-visual { display: flex; }
.bricks-flyer {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Fleet */
.fleet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fleet-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.fleet-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.fleet-photo:hover img { transform: scale(1.05); }

/* Team photo (About section) */
.team-photo {
  margin: 24px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 360px;
}
.team-photo img { width: 100%; height: auto; display: block; }
.team-photo figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg-alt);
}

/* Video section */
.video-grid {
  display: grid;
  /* minmax(0, 1fr), not plain 1fr — a <video>'s intrinsic width (848px, the source file's actual
     resolution) otherwise forces its grid track to stay that wide regardless of width:100%, the
     classic CSS Grid "blowout" quirk (grid tracks default to a content-based min-width, not 0). That
     caused page-wide horizontal overflow on mobile, shifting everything below it left. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: start;
}
.video-item {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.testimonial-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.testimonial-card.placeholder { border-style: dashed; background: var(--bg-alt); }
.testimonial-card p { color: var(--ink); font-style: italic; }
.testimonial-card cite { font-style: normal; font-size: 0.85rem; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.contact-list a { font-weight: 600; color: var(--brand-navy); }
.contact-list a:hover { color: var(--brand-red); }

.quote-form {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-navy);
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  font: inherit;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 2px solid var(--brand-red);
  outline-offset: 1px;
}
.hp-field { position: absolute; left: -9999px; }
.form-status { font-size: 0.85rem; color: var(--muted); margin: 0; min-height: 1.2em; }
.form-status.success { color: #1a7a3a; font-weight: 600; }
.form-status.error { color: var(--brand-red); font-weight: 600; }

/* Footer */
.site-footer { background: var(--brand-navy); color: #cbd3e1; padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { color: #fff; display: block; }
.footer-brand p { margin: 0; font-size: 0.8rem; color: #aab4c6; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.85rem; color: #cbd3e1; }
.footer-links a:hover { color: #fff; }
.footer-copy { width: 100%; text-align: center; font-size: 0.78rem; color: #7d879c; margin: 8px 0 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .bricks-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .testimonial-grid { grid-template-columns: minmax(0, 1fr); }
  .fleet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .main-nav, .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .value-grid { grid-template-columns: minmax(0, 1fr); }
  .fleet-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { gap: 20px; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    gap: 16px;
  }
}
