/* ============================================================
   CSS VARIABLES & RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

:root {
  --primary: #202221;
  --primary-dark: #111312;
  --primary-accent: #3a4a3e;
  --primary-rgb: 32, 34, 33;
  --white: #FFFFFF;
  --dark: #212222;
  --dark-surface: #262727;
  --dark-card: #2c2d2d;
  --dark-border: #3a3b3b;
  --dark-footer: #1a1b1b;
  --text-muted: #999999;
  --text-subtle: #aaaaaa;
  --accent-red: #D60D1F;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-impact: 'Anton', sans-serif;
}

body {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 { font-size: clamp(2rem, 5vw, 3.75rem);   font-weight: 800; line-height: 1.1;  letter-spacing: -0.02em; font-family: var(--font-heading); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 400; line-height: 1.05; letter-spacing: 0.005em; text-transform: uppercase; font-family: var(--font-impact); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem);  font-weight: 700; line-height: 1.25; font-family: var(--font-heading); }
p  { font-size: clamp(1rem, 1.5vw, 1.1rem);   line-height: 1.6; }

.eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   UTILITIES & SHARED BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--accent-red);
  color: var(--white);
  border-radius: 6px;
  font-size: clamp(1rem, 1.5vw, 1.05rem);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-family: var(--font-body);
}
.btn-primary:hover { background: #AB0A19; transform: translateY(-2px); }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 6px;
  font-size: clamp(1rem, 1.5vw, 1.05rem);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-body);
}
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
.btn-outline-white svg { stroke: var(--white); transition: stroke 0.2s; }
.btn-outline-white:hover svg { stroke: var(--primary); }

.btn-white-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--white);
  color: var(--primary);
  border-radius: 6px;
  font-size: clamp(1rem, 1.5vw, 1.05rem);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-family: var(--font-body);
}
.btn-white-primary:hover { background: #f0f0f0; transform: translateY(-2px); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-header { margin-bottom: 3rem; }
.section-header .eyebrow { color: var(--accent-red); margin-bottom: 0.75rem; display: block; }
.section-cta { margin-top: 3rem; text-align: center; }

/* ============================================================
   NAVIGATION
   ============================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 11, 11, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease;
}
header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-red) 50%, transparent 100%);
  opacity: 0.7;
  pointer-events: none;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.nav-logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.nav-logo:hover img { transform: scale(1.06); }

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

.nav-links a {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  font-size: 1rem;
  font-weight: 600;
  color: #ccc;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent-red); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--accent-red);
  color: var(--white);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
  font-family: var(--font-body);
  animation: nav-cta-pulse 2.5s ease-in-out infinite;
}
.nav-cta svg { flex-shrink: 0; }
.nav-cta:hover { background: #AB0A19; color: var(--white); transform: translateY(-1px); animation-play-state: paused; }

@keyframes nav-cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214, 13, 31, 0.55); }
  50%      { box-shadow: 0 0 0 7px rgba(214, 13, 31, 0); }
}

.nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--dark);
  color: var(--accent-red);
  border: 1.5px solid var(--accent-red);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.nav-social:hover { background: var(--accent-red); color: var(--white); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.mobile-menu {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 11, 11, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-18px);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu a {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: #FFFFFF;
  font-family: var(--font-heading);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent-red); }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: opacity 0.15s ease, visibility 0.15s; transform: none; }
}

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-social { display: none; }
}

/* ============================================================
   PARALLAX BACKGROUNDS
   ============================================================ */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .parallax-section {
    background-attachment: fixed;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background-image: url('../images/red-metal-roof-crew-chimney.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(18, 0, 2, 0.873) 0%,
    rgba(18, 0, 2, 0.43) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text .eyebrow {
  display: inline-block;
  color: white;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgb(170, 0, 14);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-text h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-family: var(--font-impact);
  font-weight: 400;
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}

.hero-text h1 .text-accent {
  color: var(--accent-red);
  text-shadow: 0 2px 18px rgba(214, 13, 31, 0.55);
}

.hero-text h1 .text-glow-white {
  color: var(--white);
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.55);
}
.hero-text p { color: rgba(255,255,255,0.88); max-width: 480px; margin-bottom: 2rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
}
.hero-badge svg { color: var(--accent-red); flex-shrink: 0; }

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero entrance animations */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero elements hidden until splash exits */
.hero-text .eyebrow,
.hero-text h1,
.hero-text > p,
.hero-trust,
.hero-buttons,
.hero-form-card { opacity: 0; }

/* Animations fire once .hero-ready is added after splash */
.hero-ready .hero-text .eyebrow { animation: hero-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s  both; }
.hero-ready .hero-text h1        { animation: hero-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both; }
.hero-ready .hero-text > p       { animation: hero-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.4s  both; }
.hero-ready .hero-trust          { animation: hero-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both; }
.hero-ready .hero-buttons        { animation: hero-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.7s  both; }
.hero-ready .hero-form-card      { animation: hero-fade-up 0.9s  cubic-bezier(0.22, 1, 0.36, 1) 0.4s  both; }

/* Hero Form Card */
.hero-form-card {
  position: relative;
  background: linear-gradient(165deg, rgba(24, 24, 24, 0.85) 0%, rgba(13, 13, 13, 0.85) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(214, 13, 31, 0.08);
  padding: 2rem;
  overflow: hidden;
  scroll-margin-top: 80px;
}
.hero-form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-red) 0%, #ff6b6b 50%, var(--accent-red) 100%);
}
#hero-form { scroll-margin-top: 80px; }

.hero-form-card h3 { color: var(--white); margin-bottom: 0.4rem; }
.hero-form-card .form-sub { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: #1a1a1a;
  border: 1.5px solid #333;
  color: white;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D60D1F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 18px;
  padding-right: 2.5rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-red);
  background: #222;
  box-shadow: 0 0 0 4px rgba(214, 13, 31, 0.18);
}
.form-group select option { background: #1a1a1a; }
.form-group textarea { resize: vertical; min-height: 90px; }

.form-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem;
  background: var(--accent-red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-top: 0.5rem;
  box-shadow: 0 8px 24px rgba(214, 13, 31, 0.35);
}
.form-submit::after {
  content: '';
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='22' y1='2' x2='11' y2='13'/%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='22' y1='2' x2='11' y2='13'/%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s;
}
.form-submit:hover { background: #AB0A19; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(214, 13, 31, 0.45); }
.form-submit:hover::after { transform: translate(2px, -2px); }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.form-success h4 { color: var(--accent-red); font-size: 1.35rem; margin-bottom: 0.5rem; }
.form-success p { color: var(--text-subtle); font-size: 1rem; }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 7rem 1.5rem 4rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons a, .hero-buttons button { width: 100%; justify-content: center; }

  .hero { background-image: url('../images/aerial-shingle-roof-crew-wide.webp'); background-position: 41% center; }
  .hero::before {
    background: linear-gradient(
      to top,
      rgba(18, 0, 2, 0.92) 0%,
      rgba(18, 0, 2, 0.55) 45%,
      rgba(18, 0, 2, 0.68) 100%
    );
  }
  .hero-text .eyebrow { font-size: 0.7rem; padding: 0.3rem 0.75rem; white-space: nowrap; }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  overflow: hidden;
  padding: 1.5rem 0;
  background: var(--accent-red);
}
.trust-track {
  display: flex;
  width: max-content;
  animation: trust-scroll 20s linear infinite;
  will-change: transform;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 2.5rem;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  flex-shrink: 0;
}
.trust-item svg { color: var(--white); flex-shrink: 0; }
.trust-item-text strong { display: block; font-size: clamp(1rem, 1.5vw, 1.1rem); font-weight: 800; line-height: 1.2; color: var(--white); }
.trust-item-text span  { font-size: 1rem; opacity: 0.75; color: var(--white); }
@keyframes trust-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (max-width: 768px) {
  .trust-track { animation-duration: 40s; }
}
@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; gap: 1rem; padding: 0 1rem; }
  .nav-cta { animation: none; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: #161717;
  padding: 5rem 2rem;
}
.services .section-header { text-align: center; }
.services .section-header h2 { color: var(--white); }
.services .section-header p { color: var(--text-muted); max-width: 580px; margin: 0.75rem auto 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
  counter-reset: service-num;
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  counter-increment: service-num;
  display: flex;
  flex-direction: column;
  background: var(--dark-card);
  border-top: 4px solid var(--accent-red);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.8s ease, background 0.8s ease;
}
.service-card:hover {
  transform: translateY(-5px) scale(1.007);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
  border-color: #ff4552;
  background: var(--dark-surface);
}

/* Large watermark number */
.service-card::after {
  content: counter(service-num, decimal-leading-zero);
  position: absolute;
  top: -0.6rem;
  right: 0.25rem;
  font-family: var(--font-impact);
  font-size: 5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  z-index: 0;
  pointer-events: none;
  transition: color 0.5s ease;
}
.service-card:hover::after { color: rgba(214, 13, 31, 0.14); }

/* Diagonal shine sweep */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.07) 50%, transparent 100%);
  transform: skewX(-20deg);
  z-index: 0;
  pointer-events: none;
  transition: left 0.75s ease;
}
.service-card:hover::before { left: 130%; }

.service-card > * { position: relative; z-index: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(214,13,31,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s ease, transform 0.3s ease;
}
.service-icon svg { color: var(--accent-red); transition: color 0.3s ease; }
.service-card:hover .service-icon { background: var(--accent-red); transform: scale(1.08) rotate(-4deg); }
.service-card:hover .service-icon svg { color: var(--white); }

.service-card h3 { color: var(--white); margin-bottom: 0.6rem; }
.service-card p { color: #999; margin-bottom: 0; }

.service-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.1rem;
  color: var(--accent-red);
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.service-more svg { transition: transform 0.3s ease; }
.service-card:hover .service-more { opacity: 1; transform: translateX(0); }
.service-card:hover .service-more svg { transform: translateX(3px); }

.services-cta { max-width: 1200px; margin: 32px auto 0; }

/* Tap equivalent of the desktop hover animation for touch devices (tablet + mobile) */
@media (hover: none) {
  .service-card:active {
    transform: translateY(-5px) scale(1.007);
    box-shadow: 0 10px 24px rgba(0,0,0,0.45);
    border-color: #ff4552;
    background: var(--dark-surface);
  }
  .service-card:active::after { color: rgba(214, 13, 31, 0.14); }
  .service-card:active::before { left: 130%; }
  .service-card:active .service-icon { background: var(--accent-red); transform: scale(1.08) rotate(-4deg); }
  .service-card:active .service-icon svg { color: var(--white); }
  .service-card:active .service-more { opacity: 1; transform: translateX(0); }
  .service-card:active .service-more svg { transform: translateX(3px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem;
  background-image: url('../images/mountain-cabin-metal-roof.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Flat tint for text legibility -- no fade, the top/bottom transitions are handled by .about-cut */
  background: rgba(12, 12, 12, 0.55);
}

/* Diagonal, hard-edged cutoff into the sections above/below, with a red seam line.
   True SVG line (not a CSS gradient angle) so it stays perfectly straight edge-to-edge
   at any section width. Both edges rise left -> right (a sheared/parallelogram look). */
.about-cut {
  position: absolute;
  left: 0;
  width: 100%;
  height: 110px;
  z-index: 2;
  pointer-events: none;
  display: block;
}
.about-cut-top { top: 0; }
.about-cut-bottom { bottom: 0; }

.about-inner {
  position: relative;
  z-index: 3;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-inner .eyebrow { color: var(--accent-red); margin-bottom: 0.75rem; display: block; }
.about-inner h2 { color: var(--white); margin-bottom: 1.25rem; }
.about-inner > p { color: rgba(255,255,255,0.88); margin-bottom: 2rem; }

@media (max-width: 768px) {
  .about {
    background-image: url('../images/ridge-cap-shingle-install.webp');
    background-position: center;
    /* Clear the 110px diagonal cut bands (plus a buffer) so text never overlaps them */
    padding-top: 9.5rem;
    padding-bottom: 9.5rem;
  }
  .about-inner .eyebrow { display: none; }

  .about-check { align-items: flex-start; }
  .about-check svg { width: 26px; height: 26px; margin-top: 0.15rem; }
}

.about-checks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}
.about-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}
.about-check svg { color: var(--accent-red); flex-shrink: 0; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  background: var(--dark);
  padding: 5rem 2rem;
}
.gallery-inner { max-width: 1200px; margin: 0 auto; }
.gallery .section-header { text-align: center; }
.gallery .section-header h2 { color: var(--white); }
.gallery .section-header p { color: var(--text-muted); max-width: 540px; margin: 0.75rem auto 0; }

.gallery-carousel {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
}
.gallery-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: gallery-scroll 55s linear infinite;
  will-change: transform;
}
.gallery-carousel:hover .gallery-track { animation-play-state: paused; }
@keyframes gallery-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  width: 340px;
  height: 260px;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.75rem 1rem 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  pointer-events: none;
}

@media (max-width: 768px) {
  .gallery-track { animation-duration: 90s; }
  .gallery-item { width: 260px; height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .gallery-carousel { mask-image: none; -webkit-mask-image: none; overflow-x: auto; }
  .gallery-track > [aria-hidden="true"] { display: none !important; }
}

/* ============================================================
   BOTTOM CONTACT FORM
   ============================================================ */
.contact {
  background: var(--dark);
  padding: 5rem 2rem;
}
#bottom-form { scroll-margin-top: 80px; }

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info .eyebrow { color: var(--accent-red); margin-bottom: 0.75rem; display: block; }
.contact-info h2 { color: var(--white); margin-bottom: 1rem; }
.contact-info > p { color: var(--text-muted); margin-bottom: 2rem; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.contact-row svg { color: var(--accent-red); flex-shrink: 0; width: 20px; height: 20px; }
.contact-row a { color: var(--white); font-size: clamp(1rem, 1.5vw, 1.1rem); font-weight: 600; transition: color 0.2s; }
.contact-row a:hover { color: var(--accent-red); }
.contact-row span { color: var(--white); font-size: clamp(1rem, 1.5vw, 1.1rem); font-weight: 600; }

.contact-form-card {
  position: relative;
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(214, 13, 31, 0.08);
  padding: 2rem;
  overflow: hidden;
}
.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-red) 0%, #ff6b6b 50%, var(--accent-red) 100%);
}
.contact-form-card h3 { color: var(--white); margin-bottom: 1.5rem; }

@media (max-width: 768px) {
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark-footer);
  border-top: 1px solid var(--dark-border);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: #888; font-size: 1rem; max-width: 280px; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: #888; font-size: 1rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent-red); }

.footer-col address { font-style: normal; }
.footer-col address a { color: #888; font-size: 1rem; display: block; margin-bottom: 0.6rem; transition: color 0.2s; }
.footer-col address a:hover { color: var(--accent-red); }
.footer-col address span { color: #888; font-size: 1rem; display: block; margin-bottom: 0.6rem; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #222;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p { color: #888; font-size: 1rem; }
.footer-bottom a { color: #888; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent-red); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   MOBILE FLOATING CALL BUTTON
   ============================================================ */
.mobile-call-btn {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-red);
  color: white;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.mobile-call-btn:hover { transform: scale(1.08); box-shadow: 0 8px 30px rgba(0,0,0,0.5); }
.mobile-call-btn svg {
  transform-origin: center;
  animation: call-btn-jiggle 7s ease-in-out infinite;
}
@keyframes call-btn-jiggle {
  0%, 92% { transform: rotate(0deg); }
  93% { transform: rotate(-14deg); }
  94% { transform: rotate(12deg); }
  95% { transform: rotate(-10deg); }
  96% { transform: rotate(8deg); }
  97% { transform: rotate(-5deg); }
  98%, 100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-call-btn svg { animation: none; }
}
@media (max-width: 768px) { .mobile-call-btn { display: flex; } }

/* ============================================================
   ANIMATIONS & FADE-IN
   ============================================================ */
/* Applied via JS */

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 1;
  transition: opacity 0.55s ease;
  pointer-events: all;
}
#splash.splash-out {
  opacity: 0;
  pointer-events: none;
}
#splash-logo {
  width: 320px;
  height: 320px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.88);
  animation: splash-logo-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
@keyframes splash-logo-in {
  to { opacity: 1; transform: scale(1); }
}
#splash-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  min-height: 2em;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  #splash-words { padding: 0 2.25rem; gap: 0.5rem 1rem; }
}
.splash-word {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.splash-word.visible { opacity: 1; }

/* ============================================================
   ENTRANCE ANIMATIONS
   ============================================================ */
@keyframes anim-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes anim-fade-left {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes anim-fade-right {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes anim-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
[data-anim] {
  opacity: 0;
  will-change: opacity, transform;
}
[data-anim].anim-in {
  animation-duration: 0.65s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
[data-anim="up"].anim-in    { animation-name: anim-fade-up; }
[data-anim="left"].anim-in  { animation-name: anim-fade-left; }
[data-anim="right"].anim-in { animation-name: anim-fade-right; }
[data-anim="fade"].anim-in  { animation-name: anim-fade-in; }
@media (prefers-reduced-motion: reduce) {
  [data-anim]         { opacity: 1 !important; will-change: auto; }
  [data-anim].anim-in { animation: none !important; }
  .fade-in            { transition: none !important; }
}
