/* ============================================================
   RED ARC ENVIRONMENTAL — GLOBAL STYLESHEET
   Variables, reset, typography, nav, footer, buttons, animations.
   Link this file FIRST on every page, then page-specific CSS.
   ============================================================ */

/* ─── DESIGN TOKENS ─── */
/* To change a brand color: edit the values here; it cascades everywhere. */
:root {
  --red: #C1272D;
  --red-dark: #8B1A1F;
  --red-muted: #7a1a1e;
  --charcoal: #1a1a1a;
  --near-black: #111111;
  --mid: #2d2d2d;
  --steel: #3d3d3d;
  --smoke: #888888;
  --light-smoke: #b0b0b0;
  --cream: #f0ece4;
  --off-white: #f8f6f2;

  --nav-height: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--near-black);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

ul { list-style: none; }

/* ─── NOISE TEXTURE OVERLAY ─── */
/* To soften or remove the grain: adjust opacity below (0 = off). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ─── NAVIGATION (identical on every page) ─── */
/* To edit nav links or CTA: change the markup in each page's <nav> block. */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: var(--nav-height);
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(193,39,45,0.25);
  transition: border-bottom-color 0.25s ease;
}

nav.site-nav.scrolled {
  border-bottom-color: rgba(193,39,45,0.55);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-smoke);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--cream); }

.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream) !important;
  background: var(--red);
  padding: 9px 20px;
  border: none;
  text-decoration: none;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--red-dark) !important; color: var(--cream) !important; }

/* Mobile hamburger — hidden on desktop, shown below 768px */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  padding: 0;
}

.nav-toggle span {
  display: block;
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.25s, opacity 0.25s, top 0.25s;
}

.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 21px; }

.nav-toggle.open span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

/* ─── BUTTONS ─── */
.btn-primary {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--red);
  padding: 16px 36px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-smoke);
  text-decoration: none;
  border-bottom: 1px solid rgba(176,176,176,0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
}

.btn-ghost:hover {
  color: var(--cream);
  border-color: var(--cream);
}

.btn-white {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  background: white;
  padding: 18px 40px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
}

.btn-white:hover {
  background: var(--cream);
  transform: translateY(-1px);
}

/* ─── SECTION COMMONS ─── */
/* To change section spacing globally: change the padding on `section`. */
section {
  padding: 100px 48px;
  position: relative;
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--red);
}

.section-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 0.04em;
  line-height: 1.0;
  color: var(--cream);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--light-smoke);
  max-width: 600px;
}

/* ─── INTERIOR PAGE HERO (shared) ─── */
/* Used on service, industry, and interior pages. */
.page-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 80px) 48px 80px;
  overflow: hidden;
  background: var(--near-black);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.55) 0%, rgba(17,17,17,0.75) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.page-hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--red);
}

.page-hero-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--cream);
  margin-bottom: 24px;
}

.page-hero-sub {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--light-smoke);
  max-width: 620px;
  margin-bottom: 36px;
}

.page-hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ─── ZOHO FORM CONTAINER ─── */
/* Paste your Zoho iframe/embed inside .zoho-form-container on any page.
   This styling makes the area look intentional even before the embed loads. */
.zoho-form-section {
  background: var(--charcoal);
  padding: 100px 48px;
  position: relative;
}

.zoho-form-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(193,39,45,0.5) 50%, transparent);
}

.zoho-form-wrap {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.zoho-form-wrap .section-label { justify-content: center; }
.zoho-form-wrap .section-heading { text-align: center; }
.zoho-form-wrap .section-sub { margin: 0 auto 40px; }

.zoho-form-container {
  background: var(--mid);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 3px solid var(--red);
  padding: 48px 40px;
  min-height: 220px;
  text-align: left;
  color: var(--light-smoke);
}

.zoho-form-container:empty::before,
.zoho-form-container > .zoho-placeholder-text {
  content: 'Your Zoho form will appear here once embedded.';
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
  text-align: center;
  padding: 60px 0;
}

/* ─── STICKY MOBILE CTA BAR (service + ad landing pages) ─── */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--near-black);
  border-top: 2px solid var(--red);
  padding: 10px 12px;
  gap: 8px;
  justify-content: stretch;
}

.mobile-sticky-cta a {
  flex: 1;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 8px;
}

.mobile-sticky-cta .msc-call {
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.2);
}

.mobile-sticky-cta .msc-quote {
  color: var(--cream);
  background: var(--red);
}

/* ─── CTA BAND (shared) ─── */
.cta-band {
  background: var(--red);
  padding: 72px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  gap: 40px;
}

.cta-band::before {
  content: 'RED ARC';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 200px;
  color: rgba(0,0,0,0.1);
  letter-spacing: 0.05em;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}

.cta-band .cta-text { position: relative; z-index: 1; }

.cta-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: 0.04em;
  color: white;
  line-height: 1.05;
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
}

.cta-band .btn-white { position: relative; z-index: 1; }

/* ─── FOOTER ─── */
footer.site-footer {
  background: var(--near-black);
  padding: 72px 48px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  text-decoration: none;
}

.footer-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.footer-tagline {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--smoke);
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--light-smoke);
  margin-bottom: 8px;
}

.footer-contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover { color: var(--red); }

.footer-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 300;
  color: var(--smoke);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: var(--steel);
}

.footer-certs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.cert-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.06);
}


/* ─── SCROLL REVEAL ANIMATIONS ─── */
/* Add class `fade-up` (and optional `d1`..`d6` for stagger) to any element.
   animations.js flips on `.visible` when it enters the viewport. */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.d1 { transition-delay: 0.1s; }
.fade-up.d2 { transition-delay: 0.2s; }
.fade-up.d3 { transition-delay: 0.3s; }
.fade-up.d4 { transition-delay: 0.4s; }
.fade-up.d5 { transition-delay: 0.5s; }
.fade-up.d6 { transition-delay: 0.6s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  section { padding: 72px 32px; }
  nav.site-nav { padding: 0 24px; }
  .page-hero { padding: calc(var(--nav-height) + 48px) 32px 56px; min-height: 48vh; }
  .cta-band { padding: 56px 32px; flex-direction: column; align-items: flex-start; text-align: left; }
  .zoho-form-section { padding: 72px 32px; }
  footer.site-footer { padding: 56px 32px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(17,17,17,0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    border-bottom: 1px solid rgba(193,39,45,0.25);
  }

  .nav-links.open { display: flex; }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 14px;
  }

  .nav-cta {
    background: none;
    color: var(--light-smoke) !important;
    padding: 14px 0;
    letter-spacing: 0.14em;
    font-size: 14px;
  }

  .nav-cta:hover {
    background: none !important;
    color: var(--cream) !important;
  }
}

  /* ─── MOBILE STICKY CTA BAR ─── */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: 72px;
  background: var(--charcoal);
  border-top: 2px solid var(--red);
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 12px;
}

.mobile-sticky-cta.show {
  display: flex;
}

.mobile-sticky-cta .sticky-call {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-smoke);
  text-decoration: none;
}

.mobile-sticky-cta .sticky-quote {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--red);
  padding: 10px 20px;
  text-decoration: none;
  white-space: nowrap;
}

  body.has-sticky-cta { padding-bottom: 72px; }

  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  section { padding: 56px 20px; }
  nav.site-nav { padding: 0 20px; }
  .page-hero { padding: calc(var(--nav-height) + 40px) 20px 44px; }
  .cta-band { padding: 44px 20px; }
  .zoho-form-section { padding: 56px 20px; }
  .zoho-form-container { padding: 32px 20px; }
  footer.site-footer { padding: 48px 20px 28px; }
}
