/* ==========================================================================
   Haizain Construction shared stylesheet
   Variables first: change the accent colour in one place below.
   ========================================================================== */

:root {
  /* Colours */
  --charcoal: #111111;
  --charcoal-soft: #1a1a1a;
  --white: #ffffff;
  --off-white: #f5f5f4;
  --grey-100: #e7e5e4;
  --grey-400: #a8a29e;
  --grey-600: #57534e;
  --accent: #e8a13b;
  --accent-dark: #c98527;
  --error: #c0392b;
  --success: #2e7d32;

  /* Typography */
  --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --container: 1200px;
  --header-height: 76px;
}

/* Reset ------------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

ul {
  list-style: none;
}

/* Typography --------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p {
  max-width: 65ch;
}

/* Focus states ------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Layout helpers ------------------------------------------------------------ */

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

.section {
  padding: var(--space-6) 0;
}

.section--dark {
  background: var(--charcoal);
  color: var(--white);
}

.section--dark .section-kicker { color: var(--accent); }

.section--light {
  background: var(--white);
}

.section--grey {
  background: var(--off-white);
}

.section-kicker {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--accent-dark);
  display: block;
  margin-bottom: var(--space-1);
}

.section-heading {
  margin-bottom: var(--space-2);
}

.section-intro {
  color: var(--grey-600);
  margin-bottom: var(--space-4);
}

.section--dark .section-intro {
  color: var(--grey-400);
}

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

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--accent {
  background: var(--accent);
  color: var(--charcoal);
  border-color: var(--accent);
}

.btn--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline-light:hover {
  background: var(--white);
  color: var(--charcoal);
}

.btn--dark {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

.btn--dark:hover {
  background: var(--charcoal-soft);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-menu a:not(.btn) {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  color: var(--grey-100);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-menu a:not(.btn):hover {
  color: var(--white);
  border-bottom-color: var(--accent);
}

.nav-menu a.active {
  color: var(--white);
  border-bottom-color: var(--accent);
}

.nav-menu .btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

/* Header contact items: phone number and Instagram */
.nav-menu .nav-phone a,
.nav-menu .nav-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--grey-100);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease;
}

.nav-menu .nav-phone a {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.nav-menu .nav-phone a:hover,
.nav-menu .nav-social a:hover {
  color: var(--accent);
  border-bottom-color: transparent;
}

.nav-menu .nav-phone svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-menu .nav-social svg {
  width: 21px;
  height: 21px;
}

/* Thin divider before the contact items on desktop */
.nav-menu .nav-phone {
  margin-left: 0.25rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--white);
  color: var(--white);
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 9px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--charcoal);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /* Darker on the left where the text sits, lighter on the right so the
     project photo stays visible while headline contrast is kept. */
  background: linear-gradient(
    100deg,
    rgba(17, 17, 17, 0.86) 0%,
    rgba(17, 17, 17, 0.72) 45%,
    rgba(17, 17, 17, 0.45) 100%
  );
}

@media (max-width: 768px) {
  .hero__overlay {
    background: rgba(17, 17, 17, 0.72);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.hero__content h1 {
  max-width: 18ch;
  margin-bottom: var(--space-2);
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--grey-100);
  max-width: 52ch;
  margin-bottom: var(--space-4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero__tagline {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-size: 0.9rem;
  display: block;
  margin-bottom: var(--space-2);
}

/* Page hero (inner pages) ------------------------------------------------------ */

.page-hero {
  position: relative;
  background: var(--charcoal);
  color: var(--white);
  padding: var(--space-6) 0;
  overflow: hidden;
}

.page-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: var(--grey-100);
  margin-top: var(--space-2);
  font-size: 1.05rem;
}

/* Service cards ------------------------------------------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  padding: var(--space-4) var(--space-3);
  text-decoration: none;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.12);
  border-color: var(--accent);
}

.service-card svg {
  width: 44px;
  height: 44px;
  stroke: var(--accent-dark);
  margin-bottom: var(--space-2);
}

.service-card h3 {
  margin-bottom: var(--space-1);
}

.service-card p {
  color: var(--grey-600);
  font-size: 0.95rem;
}

.service-card__link {
  display: inline-block;
  margin-top: var(--space-2);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--accent-dark);
}

/* Featured work / portfolio grid ---------------------------------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.work-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--charcoal-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.3);
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.work-card:hover img {
  transform: scale(1.04);
}

.work-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-2);
  background: linear-gradient(transparent, rgba(17, 17, 17, 0.85));
  color: var(--white);
}

.work-card__caption h3 {
  font-size: 1.05rem;
}

.work-card__caption span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-family: var(--font-heading);
}

.section-footer-link {
  margin-top: var(--space-4);
  text-align: center;
}

/* Portfolio filters -------------------------------------------------------------------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.filter-btn {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  background: transparent;
  border: 2px solid var(--grey-100);
  color: var(--charcoal);
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--charcoal);
}

.filter-btn.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

.work-card.is-hidden {
  display: none;
}

.portfolio-loading,
.portfolio-empty {
  grid-column: 1 / -1;
  color: var(--grey-600);
  font-size: 1.05rem;
  padding: var(--space-3) 0;
}

/* Hidden gallery members: part of a project's lightbox gallery, not a grid card */
.gallery-extra {
  display: none;
}

/* Lightbox thumbnail strip: jump straight to a photo without the arrows */
.glb-thumbs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, rgba(17, 17, 17, 0.85));
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.glb-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  background-color: var(--charcoal-soft);
  cursor: pointer;
  opacity: 0.55;
  overflow: hidden;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.glb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glb-thumb:hover {
  opacity: 0.85;
}

.glb-thumb.is-active {
  opacity: 1;
  border-color: var(--accent);
}

/* Blurred backdrop: fills the empty space around portrait images with a soft
   blurred copy of the photo, so every slide looks full instead of black bars. */
.glb-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  filter: blur(30px) brightness(0.45);
  transform: scale(1.15);
}

.glightbox-container .gslides {
  position: relative;
  z-index: 2;
}

/* Lightbox caption: a consistent dark overlay at the top of every slide, so
   images fill the frame the same way (no stacking white box that squished
   portrait photos), and it never covers the video controls or thumbnail strip. */
.glightbox-container .gslide-inner-content {
  position: relative;
}

.glightbox-container .gslide-description {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: auto;
  background: linear-gradient(rgba(17, 17, 17, 0.92), transparent);
  color: var(--white);
  padding: 1.1rem 1.25rem 3rem;
  z-index: 5;
}

/* Keep the media clear of the thumbnail strip when one is present */
.glightbox-container.has-thumbs .gslide-media img,
.glightbox-container.has-thumbs .gslide-media video {
  max-height: calc(100vh - 110px) !important;
}

.glightbox-container .gslide-title {
  color: var(--white);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
}

.glightbox-container .gslide-desc {
  color: var(--grey-100);
}

.glightbox-container .gslide-title::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 0.6rem;
}

/* Play icon overlay on video thumbnails */
.glb-thumb--video::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--white);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.glb-thumb {
  position: relative;
}

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

@media (max-width: 560px) {
  .glb-thumb {
    width: 52px;
    height: 40px;
  }
}

/* Photo count badge on multi-image project cards */
.work-card__count {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--grey-100);
}

.work-card__count::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 12px;
  margin-right: 0.4rem;
  vertical-align: -1px;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  background:
    linear-gradient(var(--accent), var(--accent)) no-repeat 2px 5px / 4px 4px;
}

/* Why choose us -------------------------------------------------------------------------- */

.points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.point h3 {
  margin-bottom: var(--space-1);
}

.point h3::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: var(--accent);
  margin-bottom: var(--space-2);
}

.point p {
  color: var(--grey-400);
}

/* CTA band --------------------------------------------------------------------------------- */

.cta-band {
  background: var(--charcoal);
  color: var(--white);
  padding: var(--space-5) 0;
  text-align: center;
}

.cta-band--accent {
  background: var(--accent);
  color: var(--charcoal);
}

.cta-band h2 {
  margin-bottom: var(--space-3);
}

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

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}

.two-col p + p {
  margin-top: var(--space-2);
}

.two-col img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Services page alternating rows ------------------------------------------------------------- */

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--grey-100);
}

.service-row:last-of-type {
  border-bottom: none;
}

.service-row--flip .service-row__media {
  order: 2;
}

.service-row img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.service-row h2 {
  margin-bottom: var(--space-2);
}

.service-row p + p {
  margin-top: var(--space-2);
}

.text-link {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.text-link:hover {
  color: var(--charcoal);
}

/* Contact page ----------------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  min-height: 70vh;
}

.contact-info {
  background: var(--charcoal);
  color: var(--white);
  padding: var(--space-6) var(--space-4);
}

.contact-info h1 {
  margin-bottom: var(--space-4);
}

.contact-info address {
  font-style: normal;
  line-height: 1.9;
  margin-bottom: var(--space-3);
  color: var(--grey-100);
}

.contact-info a {
  color: var(--grey-100);
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--accent);
}

.contact-phones {
  margin-bottom: var(--space-3);
}

.contact-phones a,
.contact-email a {
  display: block;
  line-height: 1.9;
}

.social-links {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--grey-600);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.social-links a:hover {
  border-color: var(--accent);
  background: rgba(232, 161, 59, 0.12);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.contact-info .contact-logo {
  height: 90px;
  width: auto;
  margin-top: var(--space-5);
}

.contact-form-wrap {
  background: var(--off-white);
  padding: var(--space-6) var(--space-4);
}

/* Forms --------------------------------------------------------------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--grey-400);
  background: var(--white);
  color: var(--charcoal);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--charcoal);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  min-height: 1.1em;
}

.form-submit {
  grid-column: 1 / -1;
}

.form-submit .btn {
  width: 100%;
}

.form-status {
  grid-column: 1 / -1;
  padding: var(--space-2);
  font-weight: 500;
  display: none;
}

.form-status.is-success {
  display: block;
  background: #e6f4e7;
  color: var(--success);
  border: 1px solid var(--success);
}

.form-status.is-error {
  display: block;
  background: #fbeae8;
  color: var(--error);
  border: 1px solid var(--error);
}

/* Honeypot: hide from humans, keep in DOM for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Quote page ------------------------------------------------------------------------------------------- */

.quote-hero {
  position: relative;
  background: var(--charcoal);
  color: var(--white);
  padding: var(--space-6) 0;
  overflow: hidden;
}

.quote-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.82);
}

.quote-hero .container {
  position: relative;
  z-index: 1;
}

.quote-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}

.location-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--charcoal);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  padding: 0.45rem 1rem;
  margin-bottom: var(--space-3);
}

.quote-intro h1 {
  margin-bottom: var(--space-2);
}

.quote-intro > p {
  color: var(--grey-100);
  font-size: 1.05rem;
  margin-bottom: var(--space-3);
}

.quote-points {
  margin-bottom: var(--space-4);
}

.quote-points li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--space-2);
  color: var(--grey-100);
}

.quote-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

.quote-direct {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-3);
}

.quote-direct p {
  color: var(--grey-400);
  font-size: 0.92rem;
  margin-bottom: var(--space-2);
}

.quote-direct__number {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: inline-block;
}

.quote-direct__number:hover {
  color: var(--accent);
}

/* White form panel */
.quote-panel {
  background: var(--white);
  color: var(--charcoal);
  border-top: 5px solid var(--accent);
}

.quote-panel__head {
  padding: var(--space-3) var(--space-3) 0;
}

.quote-panel__head h2 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.quote-panel__head p {
  color: var(--grey-600);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quote-panel form {
  padding: var(--space-3);
}

/* Selects, used on the quote form */
.form-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--grey-400);
  background-color: var(--white);
  color: var(--charcoal);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 18px;
  padding-right: 2.4rem;
}

.form-field select:focus {
  border-color: var(--charcoal);
}

.form-field.has-error select {
  border-color: var(--error);
}

.field-optional {
  font-weight: 400;
  color: var(--grey-600);
}

/* What happens next */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.step__number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-2);
}

.step h3 {
  margin-bottom: var(--space-1);
}

.step p {
  color: var(--grey-600);
}

/* Footer ------------------------------------------------------------------------------------------------ */

.site-footer {
  background: var(--charcoal);
  color: var(--grey-400);
  padding: var(--space-5) 0 var(--space-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid img {
  height: 72px;
  width: auto;
  margin-bottom: var(--space-2);
}

.footer-grid h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

.footer-grid a {
  color: var(--grey-400);
  text-decoration: none;
  line-height: 2;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-grid address {
  font-style: normal;
  line-height: 2;
}

.footer-tagline {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  color: var(--accent);
}

.footer-bottom {
  padding-top: var(--space-3);
  font-size: 0.85rem;
  text-align: center;
}

/* Legal pages (privacy policy) ------------------------------------------------------------------------- */

.legal {
  max-width: 780px;
}

.legal h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p {
  margin-bottom: var(--space-2);
  color: var(--grey-600);
}

.legal a {
  color: var(--accent-dark);
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--grey-400);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--grey-100);
  margin-bottom: var(--space-4);
}

.legal-list {
  list-style: none;
  margin: 0 0 var(--space-2);
  padding: 0;
  max-width: 65ch;
}

.legal-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--grey-600);
}

.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

.site-footer .footer-bottom a {
  color: var(--grey-400);
  text-decoration: underline;
}

.site-footer .footer-bottom a:hover {
  color: var(--accent);
}

/* Developer credit: deliberately quiet so the client's own line leads */
.footer-credit {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--grey-600);
}

.site-footer .footer-credit a {
  color: var(--grey-600);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer .footer-credit a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 404 ------------------------------------------------------------------------------------------------------ */

.not-found {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  text-align: center;
  background: var(--charcoal);
  color: var(--white);
}

.not-found .container > * + * {
  margin-top: var(--space-3);
}

.not-found p {
  margin-left: auto;
  margin-right: auto;
  color: var(--grey-400);
}

/* Scroll reveal ----------------------------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive ----------------------------------------------------------------------------------------------------- */

@media (max-width: 1023px) {
  .card-grid,
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr 1.4fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-6: 4rem;
    --space-5: 3rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--charcoal);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-3) 1.25rem var(--space-4);
    gap: var(--space-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu .nav-phone {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 0.25rem;
  }

  .nav-menu .nav-phone a,
  .nav-menu .nav-social a {
    color: var(--white);
  }

  .points-grid,
  .two-col,
  .service-row,
  .contact-layout,
  .quote-layout,
  .steps-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-row--flip .service-row__media {
    order: 0;
  }

  .contact-info,
  .contact-form-wrap {
    padding: var(--space-5) 1.25rem;
  }

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

@media (max-width: 560px) {
  .card-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .logo-link img {
    height: 44px;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }
}
