/* Infinite Scaffolding Solutions — site styles */
:root {
  --dark: #14171a;
  --dark-2: #1e2226;
  --accent: #f81090; /* logo pink, sampled from the logo slash */
  --accent-dark: #d00c78;
  --text: #2b2f33;
  --muted: #6b7178;
  --light: #f5f6f7;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--font); color: var(--text); line-height: 1.6; background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.2; color: var(--dark); font-family: var(--font-heading); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  text-transform: uppercase; letter-spacing: 4px;
  font-size: 1.25rem; font-weight: 700; color: var(--accent); margin-bottom: 12px;
  font-family: "Barlow Condensed", var(--font-heading);
}
.eyebrow::before {
  content: ""; width: 28px; height: 13px; flex-shrink: 0;
  background: linear-gradient(115deg, var(--accent), #ff7ac2);
  transform: skewX(-20deg); /* echoes the slash in the logo */
  transition: width 0.5s ease 0.15s;
}
.eyebrow.reveal:not(.visible)::before { width: 0; }
/* sections need opaque backgrounds so they cover the pinned hero video */
.section { padding: 80px 0; background: var(--white); }
.section.alt { background: var(--light); }
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); }

/* Header — transparent, floats over the hero (matches original site) */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
}
.topbar .container {
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  padding-top: 8px;
  font-size: clamp(11px, 0.4vw + 7px, 13px); font-weight: 300; color: #efefef;
}
/* divider hugs the row of words, not the full content width */
.topbar ul { border-bottom: 1px solid rgba(255, 255, 255, 0.22); padding-bottom: 8px; }
.topbar ul { list-style: none; display: flex; gap: clamp(10px, 1.2vw, 22px); margin: 0; }
.topbar li { display: flex; align-items: center; gap: 7px; }
.topbar li svg { width: 13px; height: 13px; fill: var(--accent); flex-shrink: 0; }
.topbar a { color: #efefef; }
.topbar a:hover { color: var(--accent); }
.site-header .main-bar { display: flex; align-items: flex-start; justify-content: space-between; }
/* logo scales fluidly with the window (185px on wide screens down to ~100px
   near the mobile breakpoint) so the topbar and nav never crowd or cover it */
.site-header .logo img { height: clamp(100px, 8.7vw + 18px, 185px); width: auto; margin-top: -14px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--white); font-weight: 500; font-size: clamp(0.85rem, 0.35vw + 0.62rem, 0.95rem);
  padding: 9px clamp(7px, 0.8vw, 15px);
  transition: color 0.2s; font-family: var(--font-heading);
}
.nav a:hover { color: var(--accent); }
.btn {
  display: inline-block; background: var(--accent); color: var(--white);
  padding: 12px 26px; border-radius: 6px; font-weight: 600; border: none;
  cursor: pointer; font-size: 0.95rem; transition: background 0.2s;
  font-family: var(--font-heading);
}
.btn:hover { background: var(--accent-dark); color: var(--white); }
.btn.ghost { background: transparent; border: 2px solid var(--white); }
.btn.ghost:hover { background: var(--white); color: var(--dark); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

/* Hero — video pinned to the viewport; the page scrolls over it (parallax) */
.hero {
  position: relative; color: var(--white);
  /* show two-thirds of the screen as video before the page starts */
  min-height: 66.67vh; min-height: 66.67svh;
  display: flex; align-items: center;
}
.hero > .container { width: 100%; }
.hero-bg-video {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  object-fit: cover; z-index: -1;
}
@media (max-width: 900px) {
  /* phones handle pinned video poorly — let it scroll with the hero.
     z-index must lift above the hero's own dark background (base rule is -1,
     which paints the video behind it = black screen); overlay (::before, z1)
     and content (container, z2) still sit above */
  .hero { overflow: hidden; background: var(--dark); }
  .hero-bg-video { position: absolute; inset: 0; height: 100%; z-index: 0; }
  .site-header .logo img { height: 96px; margin-top: 4px; }
  .hero .container { padding-top: 150px; }
  .emp-hero { padding-top: 150px; }
  /* review card: overlays the photo with its bottom edge on the photo's bottom
     edge (desktop hangs it past the corner, which covers the heading on phones).
     Double selector outranks the lower-specificity base rule */
  .about-media .about-quote-card {
    position: absolute; left: 12px; right: 12px; bottom: 0;
    width: auto; max-width: none; margin: 0;
  }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10, 12, 14, 0.55) 30%, rgba(10, 12, 14, 0.25));
}
.hero .container { position: relative; z-index: 2; }
.hero .container { position: relative; padding-top: 255px; padding-bottom: 110px; max-width: 1280px; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.3rem); max-width: 720px; margin-bottom: 18px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); }
.hero p.tagline { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }

/* Hero entrance: word-by-word rise, then tagline and buttons fade in */
@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes heroWordUp {
  from { opacity: 0; transform: translateY(0.65em); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
.hero h1, .emp-hero h1, .cta-band h2 { font-weight: 800; letter-spacing: -0.5px; }
/* split words hold invisible until their section gains .in-view, and replay each time */
.hero h1 .w, .emp-hero h1 .w, .cta-band h2 .w { display: inline-block; opacity: 0; }
.hero.in-view h1 .w, .emp-hero.in-view h1 .w, .cta-band.in-view h2 .w {
  animation: heroWordUp 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero h1 .w.accent, .emp-hero h1 .w.accent, .cta-band h2 .w.accent {
  background: linear-gradient(115deg, var(--accent), #ff7ac2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
}
/* taglines/buttons: hidden only when the fx engine is running (html.fx) */
html.fx .hero p.tagline, html.fx .emp-hero p.tagline,
html.fx .hero .actions, html.fx .emp-hero .actions { opacity: 0; }
.hero.in-view p.tagline, .emp-hero.in-view p.tagline { animation: heroFadeIn 1s ease 1.7s both; }
.hero.in-view .actions, .emp-hero.in-view .actions { animation: heroFadeIn 1s ease 2.2s both; }
.hero p.tagline, .emp-hero p.tagline { max-width: 600px; font-size: 1.1rem; color: #d7dadd; margin-bottom: 30px; }
.hero .actions, .emp-hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .rating { margin-top: 34px; color: #ffb400; font-weight: 700; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  margin-top: 26px;
  border: 1px solid rgba(20, 23, 26, 0.10);
  /* layered grey shadow: wide soft ambient + tighter contact = hovering */
  box-shadow:
    0 24px 48px rgba(20, 23, 26, 0.20),
    0 10px 22px rgba(20, 23, 26, 0.12),
    0 2px 6px rgba(20, 23, 26, 0.08);
}
/* no bevel on video (it fights the letterbox bars) — clean hovering panel instead */
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* the Who We Are counters sit a touch lower beneath the video */
#about .video-frame { margin-top: 56px; }
#about .stats.plain { margin-top: 76px; }

/* stats recoloured for the dark parallax band */
.band-stats { max-width: 760px; margin: 44px auto 0; }
.band-stats .stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.25); }
.band-stats .stat p { color: #d7dadd; }
.hero .rating span { color: #d7dadd; font-weight: 400; display: block; max-width: 480px; font-size: 0.9rem; }

/* About section — blueprint sketch bottom-right, photo with overlapping review card */
#about { position: relative; }
#about::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/img/about-blueprint.png") bottom right / 42% auto no-repeat;
  opacity: 0.15; pointer-events: none;
}
#about .container { position: relative; }
#about h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.about-media { position: relative; height: 100%; }
.about-photo {
  position: relative;
  height: 100%;
  border: 1px solid rgba(20, 23, 26, 0.10);
  border-radius: 12px;
  overflow: hidden;
  /* same layered grey shadow family as .video-frame */
  box-shadow:
    0 24px 48px rgba(20, 23, 26, 0.20),
    0 10px 22px rgba(20, 23, 26, 0.12),
    0 2px 6px rgba(20, 23, 26, 0.08);
  animation: photo-hover 6s ease-in-out infinite;
}
/* frosted-glass ring: blurs the photo's own edge pixels (backdrop-filter),
   fading smoothly inward — one image, no seams to misalign */
.about-photo::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.16);
  -webkit-mask-image:
    linear-gradient(to right, #000, transparent 34px, transparent calc(100% - 34px), #000),
    linear-gradient(to bottom, #000, transparent 34px, transparent calc(100% - 34px), #000);
  mask-image:
    linear-gradient(to right, #000, transparent 34px, transparent calc(100% - 34px), #000),
    linear-gradient(to bottom, #000, transparent 34px, transparent calc(100% - 34px), #000);
}
@keyframes photo-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
  .about-photo { animation: none; }
}
.about-photo > img {
  display: block;
  width: 100%; height: 100%; min-height: 420px; object-fit: cover;
}
.about-quote-card {
  position: absolute; right: -36px; bottom: -44px; width: 400px; max-width: 85%;
  background: rgba(255, 255, 255, 0.6); border-radius: var(--radius); padding: 26px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
/* slow glide with a soft bounce at the end, after a 2s hold */
.about-quote-card.reveal { transition: opacity 1.6s ease 2s, transform 1.6s cubic-bezier(0.34, 1.4, 0.5, 1) 2s; }
/* exit resets instantly (no reverse animation); only the entrance glides */
.about-quote-card.reveal:not(.visible) { transform: translateX(-100vw); transition: none; }
.about-quote-card .stars { font-size: 1.5rem; }
.about-quote-card img { height: 62px; width: auto; margin-bottom: 10px; }
.about-quote-card .stars { color: #ffb400; letter-spacing: 3px; margin-bottom: 10px; }
.about-quote-card p { color: var(--muted); font-size: 0.95rem; }

/* Plain stats row (original style): pink numbers, dividers, no boxes */
.stats.plain { margin: 36px 0 30px; }
.stats.plain .stat {
  text-align: center; padding: 14px 12px;
  background: none; border: none; box-shadow: none; backdrop-filter: none;
}
.stats.plain .stat + .stat { border-left: 3px solid #e2e5e9; }
.stats.plain .stat h3 {
  font-size: 2.7rem; font-weight: 700;
  background: none; color: var(--accent); -webkit-text-fill-color: currentColor;
}
.stats.plain .stat p { font-size: 0.95rem; color: var(--text); }

/* Wide video frame in Projects section */
.video-frame.wide { max-width: 900px; margin: 52px auto 0; }

/* Stats — glass cards with count-up numbers */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 36px; position: relative;
}
.stat.glass {
  position: relative; z-index: 1; text-align: center;
  padding: 22px 12px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(248, 16, 144, 0.22);
  border-radius: 14px;
  box-shadow: 0 0 12px rgba(248, 16, 144, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.stat h3 {
  font-size: 2.2rem;
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
  /* 3D extrusion: two crisp dark-pink edges building depth, then a darker 45° sun shadow */
  filter:
    drop-shadow(1px 1px 0.6px #b30a68)
    drop-shadow(1px 1.5px 1px #8f0853)
    drop-shadow(3px 4px 3px rgba(20, 23, 26, 0.30));
}
.stat p {
  color: var(--muted); font-size: 0.88rem;
  /* soft hover shadow beneath the labels */
  text-shadow: 0 3px 4px rgba(20, 23, 26, 0.20);
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat h3 { font-size: 1.45rem; }
  .stat p { font-size: 0.7rem; }
  .stats.plain .stat { padding: 4px 4px; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
/* About photos slide in from opposite sides, like the old site */
.two-col .images img.reveal:first-child:not(.visible) { transform: translateX(-50px); }
.two-col .images img.reveal:last-child:not(.visible) { transform: translateX(50px); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Two-column */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.two-col .images { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; min-height: 100%; }
.two-col .images img {
  width: 100%; height: 100%; min-height: 220px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* Cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border-top: 3px solid transparent;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.card:hover {
  border-top-color: var(--accent); transform: translateY(-4px);
  /* original site: grey fading to pink glow wash */
  background-image: linear-gradient(180deg, rgba(156, 163, 181, 0.24) 60%, rgba(236, 118, 171, 0.41) 100%);
}
.card img.icon { height: 46px; width: 46px; object-fit: contain; margin-bottom: 14px; transition: transform 0.4s; }
.card:hover img.icon { transform: scale(1.1); }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.93rem; }

.svc-card {
  position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(20, 23, 26, 0.14);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12), 0 3px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.4s, transform 0.4s;
}
.svc-card::after, .project-card::after {
  /* glass rim all the way around: bright inner line inside a dark hairline,
     with a lit top edge and shaded bottom edge for the 3D bevel */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 1px 0 0 rgba(255, 255, 255, 0.30),
    inset -1px 0 0 rgba(255, 255, 255, 0.30),
    inset 0 -2px 0 rgba(0, 0, 0, 0.10);
  pointer-events: none; z-index: 2;
}
.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14), 0 8px 20px rgba(248, 16, 144, 0.14);
}
.svc-card img { height: 190px; width: 100%; object-fit: cover; transition: transform 0.8s ease; }
.svc-card:hover img { transform: scale(1.05); }
.svc-card .body { padding: 22px; }
.svc-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.svc-card p { color: var(--muted); font-size: 0.92rem; }

/* Brand strip */
.brands { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: center; justify-content: center; opacity: 0.8; }
/* logos are pre-processed: transparent, grayscale ink, uniform trimmed height */
.brands img { height: 48px; width: auto; }

/* Projects */
.project-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.project-card {
  border: 1px solid rgba(20, 23, 26, 0.14);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14), 0 3px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.4s, transform 0.4s;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16), 0 8px 20px rgba(248, 16, 144, 0.14);
}
.project-card img { height: 300px; width: 100%; object-fit: cover; transition: transform 0.8s ease; }
.project-card:hover img { transform: scale(1.05); }
.project-card .label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px;
  background: linear-gradient(transparent, rgba(10, 12, 14, 0.9)); color: var(--white); font-weight: 700;
}

/* CTA band — fixed background, page scrolls over it (matches original) */
.cta-band {
  position: relative; color: var(--white); text-align: center;
  background: url("../assets/img/band-architecture.jpg") center center / cover no-repeat fixed;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(10, 12, 14, 0.55);
}
.cta-band .container { position: relative; padding: 110px 20px; }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.cta-band p { max-width: 640px; margin: 0 auto 28px; color: #d7dadd; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn.light { background: var(--white); color: var(--dark); }
.btn.light:hover { background: #e8eaee; color: var(--dark); }
@media (max-width: 900px) {
  .cta-band { background-attachment: scroll; }
}

/* Testimonials */
/* Testimonials carousel: track slides one card at a time with a springy
   overshoot (the "bounce" when it stops), auto-advancing on a timer */
.t-carousel { overflow: hidden; }
.t-track {
  display: flex; gap: 22px; align-items: stretch;
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}
.t-track .testimonial { flex: 0 0 calc((100% - 44px) / 3); display: flex; flex-direction: column; }
.t-track .testimonial p:first-of-type { flex: 1; }
@media (max-width: 900px) { .t-track .testimonial { flex: 0 0 100%; } }
.t-dots { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }
.t-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
  background: #d4d8dc; cursor: pointer;
  transition: background 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.t-dots button.active { background: var(--accent); transform: scale(1.3); }

.testimonial { position: relative; background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.testimonial .g-mark { position: absolute; top: 26px; right: 26px; width: 22px; height: 22px; }
.testimonial .stars { color: #ffb400; margin-bottom: 12px; letter-spacing: 3px; font-size: 22px; line-height: 1; }
.testimonial p { font-style: italic; color: var(--text); font-size: 0.95rem; }

/* Contact strip */
.contact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-strip .card { text-align: center; }
.contact-strip .card strong { display: block; color: var(--dark); margin-bottom: 4px; }

/* CTA + contact form section (matches original: worker photo, diagonal white overlay) */
.cta-contact {
  position: relative; padding: 80px 0 120px;
  background: url("../assets/img/cta-worker.jpg") 0 20% / cover no-repeat fixed;
}
@media (max-width: 900px) {
  .cta-contact { background-attachment: scroll; }
}
.cta-contact::before {
  content: ""; position: absolute; inset: 0; opacity: 0.7;
  background: linear-gradient(110deg, var(--white) 50%, rgba(242, 41, 91, 0) 50%);
}
.cta-contact .container { position: relative; z-index: 1; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta-text h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.cta-text p { color: var(--text); margin-bottom: 26px; }
.contact-form-card {
  background: rgba(255, 255, 255, 0.55); border-radius: 4px; padding: 40px 34px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.contact-form-card input, .contact-form-card textarea { background: rgba(255, 255, 255, 0.75); }
@media (max-width: 900px) {
  .cta-grid { grid-template-columns: 1fr; }
  .cta-contact::before { background: rgba(255, 255, 255, 0.8); }
}

/* Footer — navy with blueprint pattern, floating white contact card (matches original) */
.site-footer {
  background-color: #0d1427;
  color: #b7bcc1; position: relative; padding: 130px 0 0;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  /* pinned to the viewport so the footer content scrolls over it (parallax) */
  background: url("../assets/img/footer-blueprint.png") right bottom / 42% auto no-repeat fixed;
  opacity: 0.2; pointer-events: none;
}
@media (max-width: 900px) {
  .site-footer::before { background-attachment: scroll; background-position: top right; background-size: 62% auto; }
}
.site-footer .container { position: relative; z-index: 1; }
.site-footer .contact-card {
  position: absolute; top: 0; left: 0; right: 0; transform: translateY(-50%);
  max-width: 1280px; margin: 0 auto; padding: 0 20px; z-index: 2;
}
.contact-card .cc-inner {
  background: var(--white); border-radius: 4px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  display: grid; grid-template-columns: repeat(3, 1fr); padding: 22px 18px;
}
.cc-item { display: flex; align-items: center; gap: 14px; padding: 4px 24px; }
.cc-item + .cc-item { border-left: 1px solid #e2e5e9; }
.cc-item svg { width: 24px; height: 24px; fill: var(--accent); flex-shrink: 0; }
.cc-item span { display: block; font-size: 0.85rem; color: var(--muted); }
.cc-item a, .cc-item strong { font-size: 1.02rem; font-weight: 600; color: var(--dark); white-space: nowrap; }
.cc-item a:hover { color: var(--accent); }
.cc-item a[href^="mailto"] { font-size: 0.93rem; }
.site-footer h2, .site-footer h3 { color: var(--accent); font-size: 1.35rem; margin-bottom: 20px; font-weight: 700; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-grid .logo img { height: 110px; width: auto; margin-bottom: 20px; }
.footer-grid p { font-size: 0.95rem; max-width: 420px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 12px; font-size: 0.98rem; }
.footer-grid a { color: #e8eaee; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0 48px;
  font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  position: relative;
}
.footer-legal { display: flex; flex-direction: column; gap: 3px; }
.footer-legal .powered {
  font-size: 0.76rem; color: #8a9099;
  position: absolute; left: 0; right: 0; bottom: 16px; text-align: center;
}
.footer-legal .powered a { color: #b7bcc1; font-weight: 600; transition: color 0.2s; }
.footer-legal .powered a:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; }
.socials a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 6px; background: rgba(255, 255, 255, 0.10);
  transition: background 0.2s;
}
.socials a svg { width: 15px; height: 15px; fill: var(--white); }
.socials a:hover { background: var(--accent); }
@media (max-width: 900px) {
  .site-footer .contact-card { position: static; transform: none; margin: -56px auto 30px; }
  /* long contact details wrap instead of clipping; tighter card padding */
  .cc-item a, .cc-item strong { white-space: normal; overflow-wrap: anywhere; }
  .cc-item a[href^="mailto"] { font-size: 0.78rem; letter-spacing: -0.01em; }
  .contact-card .cc-inner { padding: 20px 14px; }
  .cc-item { padding: 4px 10px; }
  .contact-card .cc-inner { grid-template-columns: 1fr; gap: 18px; }
  .cc-item + .cc-item { border-left: none; border-top: 1px solid #e2e5e9; padding-top: 18px; }
  .site-footer { padding-top: 56px; }
}

/* Employment banner — construction photo pinned behind the page (parallax) */
.emp-hero {
  position: relative; color: var(--white); padding: 255px 0 90px;
  background: url("../assets/img/jobs/emp-hero.jpg") center 30% / cover no-repeat fixed;
  /* two-thirds of the screen, like the homepage hero */
  min-height: 66.67vh; min-height: 66.67svh;
  display: flex; align-items: center;
}
.emp-hero > .container { width: 100%; }
.emp-hero::before {
  content: ""; position: absolute; inset: 0;
  /* original: dark navy fading to clear, top to bottom */
  background: linear-gradient(180deg, rgba(32, 40, 51, 0.95) 0%, rgba(32, 40, 51, 0.15) 100%);
}
.emp-hero .container { position: relative; z-index: 1; }
.emp-hero h1 {
  color: var(--white); font-size: clamp(2rem, 5vw, 3.3rem); max-width: 860px;
  margin-bottom: 18px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.emp-hero p.tagline { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }
@media (max-width: 900px) {
  .emp-hero { background-attachment: scroll; }
}

/* Quote page banner: same treatment, its own scaffold photo */
.quote-hero { background-image: url("../assets/img/quote-hero.jpg"); }

/* Flat form layout (employment page, matches original) */
.flat-form .form-section { background: transparent; box-shadow: none; border-radius: 0; padding: 0 0 10px; }
.flat-form .form-section > h3 { border-bottom: 1px solid #e2e5e9; padding-bottom: 10px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .form-grid.three { grid-template-columns: 1fr; } }

/* Page hero (inner pages) */
.page-hero { background: var(--dark); color: var(--white); padding: 150px 0 64px; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: #b7bcc1; max-width: 640px; }

/* Forms */
.form-wrap { max-width: 880px; margin: 0 auto; }
.form-section { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; margin-bottom: 24px; }
.form-section > h3 { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--light); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #d4d8dc; border-radius: 6px;
  font-family: var(--font); font-size: 0.95rem; background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(248, 16, 144, 0.15);
}
.field .hint { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
/* map preview shown under the address field once a place is picked */
#addressMap {
  height: 240px; margin-top: 10px;
  border: 1px solid #d4d8dc; border-radius: 10px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(20, 23, 26, 0.12);
}
.slider-row { display: flex; gap: 16px; align-items: center; }
.slider-row input[type="number"] { width: 96px; flex-shrink: 0; text-align: center; font-weight: 600; }
.slider-row input[type="range"] {
  flex: 1; height: 6px; appearance: none; -webkit-appearance: none;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--fill, 0%), #e2e5e9 var(--fill, 0%));
  border-radius: 3px; outline: none; cursor: pointer;
}
.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--white);
  box-shadow: 0 1px 6px rgba(248, 16, 144, 0.45); cursor: grab;
}
.slider-row input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--white);
  box-shadow: 0 1px 6px rgba(248, 16, 144, 0.45); cursor: grab;
}
.slider-row input[type="range"]:focus-visible { box-shadow: 0 0 0 3px rgba(248, 16, 144, 0.25); }
.check-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.check-row label { font-weight: 500; margin: 0; }

/* Quote totals */
.quote-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.totals { position: sticky; top: 92px; }
/* on wide screens, float the panel halfway between the form column and the screen's right edge */
@media (min-width: 1281px) {
  .totals { transform: translateX(calc((100vw - 1280px) / 4)); }
}
.totals .form-section { min-height: 720px; display: flex; flex-direction: column; }
/* floating glass panel with a faded 45° logo watermark behind the figures */
.totals .form-section {
  position: relative; overflow: hidden;
  background: rgba(255, 255, 255, 0.68); color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.20), 0 4px 14px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.totals .form-section::after {
  /* 45-degree watermark, fully contained, hugging the left border */
  content: ""; position: absolute; left: 43%; top: 50%; width: 88%; aspect-ratio: 500 / 312;
  background: url("../assets/img/logo-black.png") center / contain no-repeat;
  transform: translate(-50%, -50%) rotate(-45deg); opacity: 0.03; pointer-events: none;
}
.totals .form-section > * { position: relative; z-index: 1; }
.totals h3 { color: var(--dark); border-bottom-color: rgba(0, 0, 0, 0.12); }
.totals table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.totals td { padding: 7px 0; border-bottom: 1px dashed rgba(0, 0, 0, 0.14); }
.totals td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.totals tr.grand td { border-bottom: none; padding-top: 14px; font-size: 1.15rem; font-weight: 800; color: var(--accent); }
.totals .note { font-size: 0.78rem; color: var(--muted); margin-top: auto; padding-top: 18px; }
.totals tr[hidden] { display: none; }

.form-msg { display: none; padding: 14px 16px; border-radius: 6px; margin-top: 16px; font-weight: 600; }
.form-msg.ok { display: block; background: #e7f6ec; color: #1d7a3d; }
.form-msg.err { display: block; background: #fdecea; color: #b3261e; }

/* Responsive */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .quote-layout { grid-template-columns: 1fr; }
  .totals { position: static; }
  .totals .form-section { min-height: 0; display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-strip { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--dark); flex-direction: column; padding: 20px; gap: 6px;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; margin-top: 12px; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* Print button on the quote panel (child selector outranks the panel's generic child rule) */
.totals .form-section > .print-btn {
  position: absolute; top: 14px; right: 22px; z-index: 2;
  width: 38px; height: 38px; border: none; border-radius: 8px; cursor: pointer;
  background: rgba(20, 23, 26, 0.06); display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.print-btn svg { width: 18px; height: 18px; fill: var(--muted); transition: fill 0.2s; }
.print-btn:hover { background: var(--accent); }
.print-btn:hover svg { fill: var(--white); }
/* ---- Printable quote document (quote page) ----
   Hidden on screen; in print it replaces the whole page. Layout mirrors the
   company tax invoice: logo top-left, three header columns (client / quote
   meta / business), scope of works, ruled items table, totals right, terms. */
#quoteDoc { display: none; }

@media print {
  @page { size: A4; margin: 12mm 14mm; }
  body > *:not(#quoteDoc) { display: none !important; }
  body { background: #fff !important; }

  /* ---- Quote document: matched to the SuiteMate print layout ---- */
  #quoteDoc {
    display: block; color: #18181b; background: #fff;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 10pt; line-height: 1.5;
  }

  #quoteDoc .qd-top {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 7mm;
  }
  #quoteDoc .qd-logo { width: 52mm; height: auto; }
  #quoteDoc h1 {
    margin: 2mm 0 0; font-size: 26pt; font-weight: 800;
    letter-spacing: 0.02em; color: #18181b;
  }

  #quoteDoc .qd-head {
    display: grid; grid-template-columns: 1.1fr 1fr 1.25fr; gap: 8mm;
    margin-bottom: 9mm;
  }
  #quoteDoc .qd-head p { margin: 0 0 3mm; }
  #quoteDoc .qd-head strong { font-weight: 700; }
  #quoteDoc .qd-name { font-weight: 700; }
  #quoteDoc .qd-meta strong { display: block; margin-bottom: 0.5mm; }

  #quoteDoc h2 {
    margin: 0 0 2.5mm; padding-bottom: 1.5mm;
    font-size: 10.5pt; font-weight: 700; color: #18181b;
    border-bottom: 0.5mm solid #18181b;
  }
  #quoteDoc .qd-scope { margin-bottom: 9mm; }
  #quoteDoc .qd-scope p { margin: 2.5mm 0 0; }

  #quoteDoc .qd-items { width: 100%; border-collapse: collapse; }
  #quoteDoc .qd-items th {
    padding: 2.5mm 2mm; font-weight: 700; text-align: left;
    border-top: 0.5mm solid #18181b; border-bottom: 0.5mm solid #18181b;
  }
  #quoteDoc .qd-items td {
    padding: 2.8mm 2mm; border-bottom: 0.2mm solid #d4d4d8;
  }
  #quoteDoc .qd-items .num { text-align: right; }

  #quoteDoc .qd-totals { display: flex; justify-content: flex-end; margin-top: 1mm; }
  #quoteDoc .qd-totals table { width: 78mm; border-collapse: collapse; }
  #quoteDoc .qd-totals td { padding: 1.8mm 2mm; }
  #quoteDoc .qd-totals td:last-child { text-align: right; }
  #quoteDoc .qd-totals tr.grand td {
    font-weight: 800; font-size: 11.5pt;
    border-top: 0.5mm solid #18181b; border-bottom: 1mm double #18181b;
  }

  #quoteDoc .qd-terms { margin-top: 9mm; page-break-inside: avoid; }
  #quoteDoc .qd-terms ul { margin: 2.5mm 0 0; padding-left: 5mm; }
  #quoteDoc .qd-terms li { margin: 0 0 1.6mm; font-size: 9pt; color: #333; }

  #quoteDoc .qd-footnote {
    margin-top: 7mm; padding-top: 3mm; border-top: 0.3mm solid #e4e4e7;
    font-size: 8.5pt; color: #6b7178; text-align: center;
  }
}

/* Google review byline */
.testimonial .reviewer { font-style: normal; font-size: 0.82rem; color: var(--muted); margin-top: 12px; }

/* Mobile: live total pinned to the bottom of the screen on the quote page */
.mobile-total-bar {
  display: none;
}
@media (max-width: 900px) {
  .mobile-total-bar {
    display: flex; align-items: center; justify-content: space-between;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: rgba(20, 23, 26, 0.94); color: var(--white);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    font-family: var(--font-heading); font-weight: 600;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25);
  }
  .mobile-total-bar .amt { color: var(--accent); font-size: 1.25rem; font-weight: 800; }
  body.has-total-bar { padding-bottom: 74px; }
}
