/* =========================================================
   J.CHEN PLASTERING — SHARED STYLESHEET
   ---------------------------------------------------------
   This single file styles every page (index, services,
   projects, contact). Edit values here once and they update
   across the whole site.

   HOW THIS FILE IS ORGANISED:
   1.  Design tokens (colours, fonts, spacing) - EDIT THESE FIRST
   2.  Base / reset
   3.  Layout helpers (container, sections, grid)
   4.  Buttons
   5.  Header / navigation
   6.  Hero
   7.  Cards & content blocks
   8.  Footer
   9.  Forms (contact page)
   10. Responsive / mobile rules
   ========================================================= */


/* =========================================================
   1. DESIGN TOKENS  ——  change the brand look from here
   ========================================================= */
:root {
  /* --- Brand colours --- */
  --accent:        #E0701B;   /* main brand colour (warm "trade" orange) */
  --accent-dark:   #B9560E;   /* darker orange for hover states */
  --ink:           #16191F;   /* near-black text */
  --ink-soft:      #424852;   /* softer grey body text */
  --line:          #E2E5EA;   /* light borders / dividers */
  --bg:            #FFFFFF;   /* page background */
  --bg-grey:       #F4F5F7;   /* alternating section background */
  --bg-dark:       #14181F;   /* dark sections + footer */
  --white:         #FFFFFF;

  /* --- Typography --- */
  --font-head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* --- Spacing & shape --- */
  --radius:   10px;          /* rounded corners */
  --shadow:   0 6px 24px rgba(20, 24, 31, 0.08);
  --shadow-lg:0 16px 40px rgba(20, 24, 31, 0.14);
  --max:      1180px;        /* max content width */
  --gap:      28px;
}


/* =========================================================
   2. BASE / RESET
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; } /* anchors never hide under the sticky header */

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.85rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Text selection picks up the brand colour — small premium touch */
::selection { background: var(--accent); color: #fff; }

/* Inline SVG icons: sized to the surrounding text, colour inherits */
.icn { width: 1.1em; height: 1.1em; flex: none; }
.icn-lg { width: 22px; height: 22px; }

/* Visible keyboard focus for accessibility (mouse clicks stay clean) */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(224, 112, 27, .55);
  outline-offset: 2px;
  border-radius: 4px;
}


/* =========================================================
   3. LAYOUT HELPERS
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

/* Standard vertical spacing for every section */
.section { padding: 76px 0; }
.section--grey { background: var(--bg-grey); }
.section--dark { background: var(--bg-dark); color: #C9CDD6; }
.section--dark h2, .section--dark h3 { color: #fff; }

/* Small heading "eyebrow" above section titles */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* Reusable responsive grid */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }


/* =========================================================
   4. BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }   /* subtle press feedback */

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f1f1f1; color: var(--ink); }

.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }


/* =========================================================
   5. HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo — the business's own artwork (images/logo.png).
   To swap it later, replace that file and keep the same name. */
.logo { display: flex; align-items: center; }
.logo img {
  height: 46px;          /* change this to resize the logo */
  width: auto;
  display: block;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 6px 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

/* Small social icon buttons in the header */
.nav-social { display: flex; gap: 8px; }
.nav-social a {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--bg-grey);
  color: var(--ink);
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.95rem;
}
.nav-social a:hover { background: var(--accent); color: #fff; }
.nav-phone { display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 700; color: var(--ink); white-space: nowrap; }
.nav-phone .icn { color: var(--accent); }
.nav-phone:hover { color: var(--accent); }

/* Hamburger button (hidden on desktop, shown on mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: .2s;
}


/* =========================================================
   6. HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--bg-dark); /* fallback colour if hero.jpg is missing */
}
/* The photo sits on its own layer so it can slowly zoom (Ken Burns effect) */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: url("images/hero.jpg") center/cover no-repeat;
  animation: heroZoom 20s ease-out infinite alternate;
}
/* Dark gradient OVER the photo so white text is always readable */
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(16,19,25,.55) 0%, rgba(16,19,25,.82) 100%);
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.09); } }

/* On phones, the wide side-by-side hero photo would be cropped to a sliver,
   so swap in the stacked (portrait) version. Desktop is untouched. */
@media (max-width: 640px) {
  .hero::before { background-image: url("images/hero-mobile.jpg"); }
}

/* z-index:2 keeps the text above both layers.
   Use padding-top/bottom only so the .container's left/right gutter is kept. */
.hero-inner { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 104px; max-width: 760px; }
/* Shorter hero for the sub-pages (services / projects / contact) */
.hero-inner--sub { padding-top: 70px; padding-bottom: 70px; }
/* Hero text gently fades up on load */
.hero-inner > * { animation: heroFade .7s ease both; }
.hero-inner > *:nth-child(2) { animation-delay: .08s; }
.hero-inner > *:nth-child(3) { animation-delay: .16s; }
.hero-inner > *:nth-child(4) { animation-delay: .24s; }
@keyframes heroFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { color: #DDE1E8; font-size: 1.18rem; margin-bottom: 28px; max-width: 600px; }
.hero .badge-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.hero .badge { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; font-size: 0.95rem; }
.hero .badge::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* --- Main homepage hero extras: tag pill, call button, trust strip --- */
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-weight: 600; font-size: 0.85rem;
  padding: 7px 15px; border-radius: 50px; margin-bottom: 20px;
}
.hero-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Outlined "call" button that reads well on the dark hero */
.btn.hero-call { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn.hero-call:hover { background: #fff; border-color: #fff; color: var(--ink); }

.hero-trust { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 32px; }
.hero-trust span { color: #D3D8E0; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 7px; }
.hero-trust b { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.hero-trust .star { color: var(--accent); }


/* =========================================================
   7. CARDS & CONTENT BLOCKS
   ========================================================= */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Image area. Grey background acts as a clean placeholder until you
   add the real photo into the /images folder.
   The two layers below make the WHOLE photo visible (no cropping):
   a blurred copy fills the box, the sharp full photo sits on top. */
.card-img {
  aspect-ratio: 3 / 2;
  background: #DCE0E6 center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.card-img::before,
.card-img::after {
  content: "";
  position: absolute; inset: 0;
  background: inherit;              /* reuses the same photo automatically */
}
.card-img::before {                  /* blurred fill layer */
  background-size: cover;
  filter: blur(18px) brightness(.8);
  transform: scale(1.15);
}
.card-img::after {                   /* sharp, complete photo */
  background-color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: 0.97rem; margin-bottom: 16px; }
.card-link {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
}
.card-link:hover { color: var(--accent-dark); }

/* Project filter buttons (projects page) */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 9px 18px;
  border-radius: 50px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: .15s;
}
.filters button:hover { border-color: var(--accent); color: var(--accent); }
.filters button.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Tag/category chip on project cards */
.tag {
  position: absolute;
  z-index: 2;               /* stays above the photo layers */
  top: 12px; left: 12px;
  background: rgba(20,24,31,.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 6px;
}

/* "Why choose us" feature blocks */
.feature { padding: 4px 0; }
.feature .ico {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(224,112,27,.12);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 800;
  margin-bottom: 14px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { font-size: 0.97rem; }

/* Two-column "media + text" row */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
/* Same whole-photo treatment as the cards: blurred fill + sharp full photo */
.split-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: #DCE0E6 center/cover no-repeat;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.split-img::before,
.split-img::after {
  content: "";
  position: absolute; inset: 0;
  background: inherit;
}
.split-img::before {
  background-size: cover;
  filter: blur(20px) brightness(.8);
  transform: scale(1.15);
}
.split-img::after {
  background-color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Bullet list with ticks */
.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}
/* Lighten the tick text when it sits on a dark section */
.section--dark .ticks li { color: #C9CDD6; }

/* Areas-covered chips */
.areas { display: flex; flex-wrap: wrap; gap: 12px; }
.areas span {
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 600;
  color: var(--ink);
}
/* When a chip is a link (services quick-jump), keep it ink-coloured
   and highlight on hover instead of the default orange link colour */
.areas a { color: var(--ink); }
.areas a:hover span { border-color: var(--accent); color: var(--accent); }
.areas a span { display: inline-block; transition: border-color .15s, color .15s; }

/* Services quick-jump row: centred on desktop, one swipeable row on phones
   (instead of a huge block of wrapped buttons) */
.areas--jump { justify-content: center; }
@media (max-width: 640px) {
  .areas--jump {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 2px 2px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* hide scrollbar (Firefox) */
  }
  .areas--jump::-webkit-scrollbar { display: none; }  /* hide scrollbar (Chrome/Safari) */
  .areas--jump a { flex: none; }
}

/* Tighter, more consistent service blocks on phones */
@media (max-width: 640px) {
  .service-block .split { gap: 20px; }
  .split-img { aspect-ratio: 16 / 10; }   /* shallower photos = faster flow */
  .service-block .btn { width: 100%; justify-content: center; }
}

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats .num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--accent); }
.stats .lbl { font-size: 0.92rem; }

/* Testimonials */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.quote .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; }
.quote p { font-size: 1.02rem; color: var(--ink); font-style: italic; }
.quote .who { font-weight: 700; color: var(--ink); font-style: normal; margin-top: 8px; }

/* Big call-to-action band */
.cta-band { background: var(--accent); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #FFE9D8; font-size: 1.1rem; max-width: 600px; margin: 0 auto 26px; }
.cta-band .btn-row { justify-content: center; }

/* Detailed service block (services page) */
.service-block {
  scroll-margin-top: 90px; /* so anchor links don't hide under sticky header */
  border-top: 1px solid var(--line);
  padding: 56px 0;
}
.service-block:first-of-type { border-top: 0; }
.service-block .who {
  display: inline-block;
  background: var(--bg-grey);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}
/* Shorter blocks on phones so the 12 services don't feel endless
   (kept here, after the base rule above, so it takes effect) */
@media (max-width: 640px) {
  .service-block { padding: 40px 0; }
}


/* =========================================================
   8. FOOTER
   ========================================================= */
.site-footer { background: var(--bg-dark); color: #9AA1AD; padding: 60px 0 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr 1.2fr;   /* brand | services | pages | contact */
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer a { color: #C2C8D2; }
.site-footer a:hover { color: var(--accent); }
.footer-links li { margin-bottom: 9px; display: flex; align-items: flex-start; gap: 9px; }
.footer-links .icn { color: var(--accent); margin-top: 4px; }
/* Footer logo: light version of the artwork, for the dark background */
.footer-logo { display: block; margin-bottom: 16px; }
.footer-logo img { height: 46px; width: auto; display: block; }

/* Social media buttons (footer) */
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.socials a {
  display: inline-flex; align-items: center; gap: 7px;
  background: #262B34; color: #fff;
  padding: 9px 15px; border-radius: 8px;
  font-weight: 600; font-size: 0.88rem;
}
.socials a:hover { background: var(--accent); color: #fff; }
.footer-bottom {
  border-top: 1px solid #262B34;
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.86rem;
}


/* =========================================================
   9. FORMS (contact page)
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224,112,27,.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.85rem; margin-top: 6px; }

/* Success / error message shown after submit */
.form-msg { display: none; padding: 14px 16px; border-radius: 8px; font-weight: 600; margin-bottom: 18px; }
.form-msg.show { display: block; }
.form-msg.ok  { background: #E7F6EC; color: #1B7A3D; border: 1px solid #B7E3C5; }
.form-msg.err { background: #FCEBEA; color: #B42318; border: 1px solid #F4C7C2; }

/* Contact detail rows */
.contact-info .row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info .ico {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(224,112,27,.12);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.contact-info .row strong { display: block; color: var(--ink); font-size: 1.02rem; }

/* Click-to-call + WhatsApp buttons */
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 26px; }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1da851; color: #fff; }

/* Map placeholder */
.map-embed {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #DCE0E6;
  display: grid; place-items: center;
  text-align: center;
  color: var(--ink-soft);
  border: 1px dashed #B9BFC9;
  font-weight: 600;
  padding: 20px;
}

/* "What happens next" numbered steps (contact page) */
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 27px; height: 27px; border-radius: 50%;
  background: rgba(224, 112, 27, .14); color: var(--accent);
  font-family: var(--font-head); font-weight: 800; font-size: .85rem;
  display: grid; place-items: center;
}



/* =========================================================
   10. RESPONSIVE / MOBILE
   ========================================================= */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  /* When a text+image row stacks, ALWAYS show the text first and the
     photo underneath — consistent rhythm on every section */
  .split > .split-img { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }

  /* --- Mobile navigation --- */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 22px 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform .25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-phone { display: none; } /* phone shown inside menu instead on small screens */
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .container { padding-left: 24px; padding-right: 24px; }  /* a bit more side breathing room on phones */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .nav-social { display: none; } /* keep small-phone header tidy; socials still in footer + menu */

  /* --- Mobile sizing: stop text/spacing looking oversized on phones --- */
  h1 { font-size: 1.8rem; line-height: 1.18; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.12rem; }
  .hero p { font-size: 1rem; }
  .hero-tag { font-size: 0.78rem; margin-bottom: 12px; }
  .hero-trust { gap: 8px 16px; margin-top: 14px; }
  .hero-trust span, .hero-trust b { font-size: 0.88rem; }
  .section-head { margin-bottom: 32px; }
  .btn--lg { padding: 12px 18px; font-size: 0.96rem; }
  .stats .num { font-size: 2rem; }

  /* --- Header: keep it to just logo + menu on small phones --- */
  .nav { height: 62px; }
  .logo img { height: 34px; }
  .footer-logo img { height: 42px; }
  .nav-cta .btn { display: none; }    /* "Get a Quote" is in the menu + hero on mobile */

  /* --- Smaller hero on phones so it doesn't fill the whole screen --- */
  h1 { font-size: 1.6rem; }
  .home-hero h1 { margin-bottom: 10px; }
  .home-hero p { margin-bottom: 16px; }
  .hero-inner { padding-top: 34px; padding-bottom: 38px; }
  .hero-text { padding-top: 50px; }

  /* Home hero buttons: Quote + View side-by-side, phone on its own row.
     Stops three big stacked buttons making the hero too tall. */
  .home-hero .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-hero .btn-row .btn { width: auto; }
  .home-hero .btn-row .hero-call { grid-column: 1 / -1; }  /* phone number gets a full row */
}


/* =========================================================
   11. INTERACTIONS & ANIMATION
   ========================================================= */

/* --- Scroll reveal: elements fade/slide up as they enter view --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- Header condenses + gains a shadow once you scroll --- */
.nav { transition: height .25s ease; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(20, 24, 31, .10); }
.site-header.scrolled .nav { height: 60px; }

/* --- Card image zooms gently on hover --- */
.card-img { transition: transform .5s ease; }
.card:hover .card-img { transform: scale(1.05); }

/* --- Hamburger animates into an X when open --- */
.nav-toggle span { transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Primary buttons get a soft glow on hover --- */
.btn--primary:hover { box-shadow: 0 8px 22px rgba(224, 112, 27, .35); }

/* --- Back-to-top button (created by script.js) --- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 1.3rem; cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .15s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-dark); }

/* --- Lightbox: click a project to view it larger (script.js) --- */
.card[data-category] { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12, 14, 18, .9);
  display: none; place-items: center; padding: 30px;
  animation: lbFade .25s ease;
}
.lightbox.open { display: grid; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  width: min(900px, 92vw); aspect-ratio: 3 / 2;
  background: #2a2f37 center/contain no-repeat;  /* whole photo, never cropped */
  border-radius: 10px; box-shadow: var(--shadow-lg);
}
.lightbox-cap { color: #fff; font-family: var(--font-head); font-weight: 700; margin-top: 16px; text-align: center; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.6rem; cursor: pointer;
}
.lightbox-close:hover { background: var(--accent); }

/* --- Cursor glow: soft brand-coloured light that follows the mouse.
       Created by script.js on desktop only (never on touch screens). --- */
.cursor-glow {
  position: fixed;
  left: 0; top: 0;
  z-index: 9997;              /* above content, below the film grain */
  pointer-events: none;        /* never blocks clicks */
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(224, 112, 27, .04) 0%,
    rgba(224, 112, 27, .015) 40%,
    transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity .3s ease;
}

/* --- Respect users who prefer reduced motion (accessibility) --- */
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .hero-inner > * { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover .card-img { transform: none; }
  html { scroll-behavior: auto; }
  .cursor-glow { display: none; }
}


/* =========================================================
   12. SCROLL-TRANSFORMATION HERO  (homepage only)
   ---------------------------------------------------------
   A tall "scroll track" holds a sticky viewport. JS crossfades
   the stacked images as you scroll. To make the story longer or
   shorter, change the height of .hero-scroll.scrolly below.
   ========================================================= */

/* The scroll track. Default 100vh; JS adds .scrolly to make it tall. */
.hero-scroll { position: relative; height: 100vh; background: var(--bg-dark); }
.hero-scroll.scrolly { height: 220vh; }   /* <- bigger = more scrolling; smaller = less */

/* The bit that stays fixed on screen while you scroll the track */
.hero-sticky {
  position: sticky; top: 0;
  height: 100vh; overflow: hidden;
  display: flex; align-items: center;
  color: #fff;
}

/* Stacked, full-bleed images */
.hero-stages { position: absolute; inset: 0; }
.hero-stage {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .15s linear;   /* light smoothing on the crossfade */
  will-change: opacity;
}
.hero-stage:first-child { opacity: 1; }  /* something shows before JS runs */

/* The sharp, WHOLE photo (never cropped) sits on top */
.hero-stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
  color: transparent;       /* hides alt text visually until images load */
}
/* A blurred, zoomed copy of the SAME photo fills the empty sides so the
   hero looks full instead of having flat bars. Created by script.js. */
.hero-stage-blur {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(.55);
  transform: scale(1.2);    /* scaled up so the blurred edges stay off-screen */
  z-index: 0;
}

/* Readability overlay */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,19,25,.45) 0%, rgba(16,19,25,.74) 100%);
}

/* Text block */
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-text { max-width: 760px; padding-top: 60px; }
.hero-text h1 { color: #fff; margin-bottom: 16px; }
.hero-text p { color: #DDE1E8; font-size: 1.18rem; margin-bottom: 26px; max-width: 600px; }
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
  color: var(--accent); margin-bottom: 14px;
}

/* Progress indicator (bars + labels) */
.hero-progress { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 34px; }
.hero-step { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600;
  color: rgba(255,255,255,.55); transition: color .25s ease; }
.hero-step i { width: 26px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.25);
  transition: background .25s ease, width .25s ease; }
.hero-step.done i { background: rgba(224,112,27,.6); }
.hero-step.active { color: #fff; }
.hero-step.active i { background: var(--accent); width: 36px; }

/* Scroll hint */
.hero-scrollcue {
  position: absolute; bottom: 22px; left: 0; right: 0; z-index: 2;
  text-align: center; font-size: 0.82rem; letter-spacing: 0.04em; color: rgba(255,255,255,.7);
  animation: cueBob 2s ease-in-out infinite;
}
@keyframes cueBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* Mobile: shorter track so the hero isn't endlessly tall */
@media (max-width: 768px) {
  .hero-scroll.scrolly { height: 190vh; }
}
@media (max-width: 560px) {
  .hero-scroll.scrolly { height: 170vh; }
  .hero-text p { font-size: 1.02rem; }
  .hero-progress { gap: 8px 12px; }
  .hero-step b { display: none; }   /* show just the bars on small phones */
  .hero-step i { width: 20px; }
  .hero-step.active i { width: 26px; }
  .hero-scrollcue { display: none; }
}

/* Reduced motion: no scroll story — show the finished image, normal height */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll, .hero-scroll.scrolly { height: 100vh; }
  .hero-stage { transition: none; }
  .hero-scrollcue { display: none; animation: none; }
}


/* =========================================================
   13. PREMIUM BACKGROUND DEPTH & MOVEMENT
   ---------------------------------------------------------
   Subtle texture and slow motion so sections feel richer than
   flat colour. All very low-contrast and lightweight.
   ========================================================= */

/* Keep section content above the decorative layers */
.section--grey,
.section--dark,
.cta-band,
.site-footer { position: relative; }
.section--grey > .container,
.section--dark > .container,
.cta-band > .container,
.site-footer > .container { position: relative; z-index: 1; }

/* --- Light-grey sections: fine dot texture + soft top/bottom fade --- */
.section--grey::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(20, 24, 31, .08) 1px, transparent 1.4px);
  background-size: 22px 22px;
  /* fade the dots out at the top and bottom so edges stay clean */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

/* --- Dark sections: slow drifting warm glow --- */
.section--dark { overflow: hidden; }
.section--dark::before {
  content: "";
  position: absolute; inset: -40%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 48% at 22% 28%, rgba(224, 112, 27, .26), transparent 60%),
    radial-gradient(40% 50% at 80% 72%, rgba(224, 112, 27, .16), transparent 62%);
  animation: bgDrift 20s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  from { transform: translate3d(-2%, -2%, 0) scale(1); }
  to   { transform: translate3d(2%, 3%, 0) scale(1.05); }
}

/* --- Call-to-action band: soft sheen so the orange isn't flat --- */
.cta-band { overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 120% at 50% -25%, rgba(255, 255, 255, .28), transparent 60%),
    radial-gradient(50% 80% at 100% 120%, rgba(0, 0, 0, .14), transparent 60%);
}

/* --- Footer: faint warm glow for depth --- */
.site-footer { overflow: hidden; }
.site-footer::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 70% at 85% 0%, rgba(224, 112, 27, .16), transparent 60%);
}

/* --- Whole-page film grain: a barely-there premium texture --- */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Cards: a soft resting shadow for more depth --- */
.card { box-shadow: 0 1px 2px rgba(20, 24, 31, .04), 0 10px 26px rgba(20, 24, 31, .05); }

/* Respect reduced-motion: keep the depth, drop the movement */
@media (prefers-reduced-motion: reduce) {
  .section--dark::before { animation: none; }
}
