/* ==========================================================================
   Proseal Plus Inc. — Shared Stylesheet
   Used by index.html, gallery.html, about.html
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */
:root {
  --color-black: #0a0a0a;
  --color-near-black: #141414;
  --color-charcoal: #1f1f1f;
  --color-gray-700: #4a4a4a;
  --color-gray-500: #767676;
  --color-gray-300: #d8d8d5;
  --color-gray-100: #f4f4f2;
  --color-white: #ffffff;
  --color-red: #d93a2f;
  --color-red-dark: #b32a21;
  --color-red-light: #f0574a;

  --font-display: 'Archivo Black', 'Poppins', sans-serif;
  --font-heading: 'Poppins', 'Montserrat', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Industrial hazard-stripe accent used on section edges */
  --hazard-stripe: repeating-linear-gradient(
    -45deg,
    var(--color-red) 0 14px,
    var(--color-black) 14px 28px
  );

  --container-width: 1240px;
  --header-height: 84px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.2);
  --shadow-red: 0 14px 30px rgba(217, 58, 47, 0.28);

  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-near-black);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

::selection {
  background: var(--color-red);
  color: var(--color-white);
}

:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 3px;
  border-radius: 2px;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link for keyboard/screen-reader users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-red);
  color: var(--color-white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* Visually hidden but accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 3px;
  background: var(--color-red);
  flex-shrink: 0;
}

/* In centered contexts the kicker gets a matching dash on both sides */
.section-head.center .eyebrow::after,
.hero-content .eyebrow::after,
.page-banner .eyebrow::after,
.closing-cta .eyebrow::after {
  content: '';
  width: 28px;
  height: 3px;
  background: var(--color-red);
  flex-shrink: 0;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  line-height: 1.12;
  max-width: 720px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-sub {
  color: var(--color-gray-700);
  font-size: 1.05rem;
  max-width: 620px;
}

.section-sub.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head {
  margin-bottom: 48px;
}

.section-head.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

section {
  padding: 100px 0;
}

.section-dark {
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.014) 0 2px, transparent 2px 16px),
    var(--color-black);
  color: var(--color-white);
}

.section-dark .section-sub {
  color: rgba(255, 255, 255, 0.68);
}

.section-tint {
  background: var(--color-gray-100);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  background: var(--color-red-dark);
  box-shadow: 0 18px 38px rgba(217, 58, 47, 0.38);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-dark {
  background: var(--color-black);
  color: var(--color-white);
}
.btn-dark:hover {
  background: var(--color-near-black);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   5. Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.0);
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(217, 58, 47, 0.35);
  height: 72px;
}

/* Pages other than the video-hero home page need an opaque header from the start */
.site-header.header-solid {
  background: var(--color-black);
}

.header-inner {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: var(--color-white);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border-bottom: 3px solid var(--color-red);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.logo-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.logo-mark {
  height: 42px;
  width: auto;
}

.main-nav {
  display: flex;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 2px;
  position: relative;
  transition: color var(--transition);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--color-red);
  transition: right var(--transition);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-white);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  right: 0;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-cta .btn {
  padding: 12px 22px;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Hero — real jobsite photo with scroll-driven zoom + timed callouts
   Wrapper height is set inline by script.js (320vh desktop / 220vh touch)
   so the scroll distance can adapt to pointer type; see initHeroScrub().
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 320vh;
  background: #111111;
}

.hero-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #16171a;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111111;
  transform: scale(1.05);
  transform-origin: 50% 50%;
  will-change: transform;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.25) 35%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 0 24px;
  max-width: 900px;
}

.hero-content .eyebrow {
  color: var(--color-red-light);
}

.hero-headline {
  font-family: 'Archivo Black', var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.hero-subheadline {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 0 auto 34px;
}

.hero-ctas {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sequential scroll-timed callouts (e.g. "Licensed & Insured") — opacity and
   translateY are driven per-frame from scroll progress in script.js. */
.hero-callouts {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.hero-callout {
  position: absolute;
  opacity: 0;
  font-family: 'Archivo Black', var(--font-heading);
  font-size: clamp(1.75rem, 3.4vw, 3.25rem);
  color: var(--color-white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
  animation: bob 2.2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator { animation: none; }
}

/* --------------------------------------------------------------------------
   7. Trust bar / stats strip
   -------------------------------------------------------------------------- */
.trust-bar {
  background: var(--color-black);
  color: var(--color-white);
  padding: 0;
  position: relative;
}

/* Hazard-stripe top edge — industrial signature detail */
.trust-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--hazard-stripe);
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  text-align: center;
  padding: 52px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--color-red-light);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.about-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* --------------------------------------------------------------------------
   8. Services grid
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.service-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* Red top bar sweeps in on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 100%;
  height: 4px;
  background: var(--color-red);
  transition: right 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  right: 0;
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition), transform var(--transition);
}

.service-card:hover .service-icon {
  background: var(--color-red);
  transform: scale(1.06) rotate(-3deg);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-red-light);
  transition: stroke var(--transition);
}

.service-card:hover .service-icon svg {
  stroke: var(--color-white);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--color-gray-700);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   8b. Video carousel — jobsite clips, horizontal scroll
   -------------------------------------------------------------------------- */
.video-carousel {
  position: relative;
  max-width: 1400px;
  margin: 44px auto 0;
  padding: 0 60px;
}

.video-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 6px 4px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-red) rgba(255, 255, 255, 0.12);
}

.video-track::-webkit-scrollbar {
  height: 8px;
}
.video-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}
.video-track::-webkit-scrollbar-thumb {
  background: var(--color-red);
  border-radius: 999px;
}

.video-slide {
  flex: 0 0 300px;
  margin: 0;
  scroll-snap-align: center;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-slide video {
  width: 100%;
  height: 420px;
  object-fit: cover;
  background: #000;
  display: block;
}

.video-slide figcaption {
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-white);
  background: var(--color-near-black);
}

.carousel-btn {
  position: absolute;
  top: calc(50% - 30px);
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-red);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
}

.carousel-btn:hover {
  background: var(--color-red-dark);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-btn svg {
  width: 22px;
  height: 22px;
}

.carousel-prev { left: 6px; }
.carousel-next { right: 6px; }

.video-carousel-cta {
  text-align: center;
  margin-top: 34px;
}

/* --------------------------------------------------------------------------
   9. Quote Estimator
   -------------------------------------------------------------------------- */
.estimator-panel {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--color-red);
  padding: 46px;
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.estimator-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
}

.estimator-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-red);
}

.estimator-form .form-group {
  margin-bottom: 20px;
}

.estimator-form label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.estimator-form input[type="number"],
.estimator-form select,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-white);
  transition: border-color var(--transition);
}

.estimator-form input:focus,
.estimator-form select:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 4px rgba(217, 58, 47, 0.12);
}

.field-error {
  color: var(--color-red-dark);
  font-size: 0.82rem;
  margin-top: 6px;
  min-height: 1em;
}

.estimator-result {
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* faint diagonal texture inside the result panel */
.estimator-result::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 14px);
  pointer-events: none;
}

.estimator-result > * {
  position: relative;
}

.estimator-result-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red-light);
}

.estimator-result-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  color: var(--color-white);
  margin: 10px 0 8px;
  line-height: 1.2;
}

.estimator-result-note {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 16px;
  min-height: 1em;
}

.estimator-contact-note {
  font-size: 0.9rem;
  color: var(--color-gray-700);
  background: var(--color-gray-100);
  border-left: 3px solid var(--color-red);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 0;
}

.estimator-disclaimer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.estimator-result .btn-dark {
  background: var(--color-red);
}

.estimator-result .btn-dark:hover {
  background: var(--color-red-dark);
}

/* --------------------------------------------------------------------------
   10. Service area map
   -------------------------------------------------------------------------- */
.map-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 46px;
  align-items: start;
}

.map-frame-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}

.map-coverage-label {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(217, 58, 47, 0.6);
  box-shadow: var(--shadow-md);
  pointer-events: none;
  z-index: 2;
}

.map-coverage-label::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 0 0 rgba(217, 58, 47, 0.6);
  animation: mapPulse 2.4s ease-out infinite;
}

@keyframes mapPulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 58, 47, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(217, 58, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 58, 47, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .map-coverage-label::before { animation: none; }
}

.area-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 30px;
}

.area-chip {
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-300);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-near-black);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.area-chip:hover {
  border-color: var(--color-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   11. Why choose us
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 34px;
}

.why-item {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
}

.why-item::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--color-red);
}

.why-item .why-number {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  color: var(--color-red);
  margin-bottom: 10px;
}

.why-item h3 {
  font-size: 1.1rem;
}

.why-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   12. Testimonials
   -------------------------------------------------------------------------- */
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 36px 32px 32px;
  border: 1px solid var(--color-gray-300);
  margin: 0;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* oversized decorative quotation mark */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 6px;
  right: 24px;
  font-family: Georgia, serif;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(217, 58, 47, 0.14);
  pointer-events: none;
}

.testimonial-stars {
  color: var(--color-red);
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--color-near-black);
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-author-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.testimonial-author-loc {
  font-size: 0.82rem;
  color: var(--color-gray-700);
}

/* --------------------------------------------------------------------------
   13. Contact section
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}

.contact-info-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-red-light);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-info-item address {
  font-style: normal;
}

.contact-info-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.contact-form {
  background: var(--color-white);
  color: var(--color-near-black);
  border-radius: var(--radius-lg);
  border-top: 6px solid var(--color-red);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

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

.form-success {
  display: none;
  background: rgba(217, 58, 47, 0.08);
  border: 1.5px solid var(--color-red);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}

.form-success.is-visible {
  display: block;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 30px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--hazard-stripe);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .logo-link {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.92rem;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}

.footer-social a:hover {
  border-color: var(--color-red);
  background: var(--color-red);
}

.footer-social svg {
  width: 17px;
  height: 17px;
  stroke: var(--color-white);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  background: var(--color-red);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.92rem;
  display: inline-block;
  transition: color var(--transition), transform var(--transition);
}

.footer-col a:hover {
  color: var(--color-red-light);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 0.82rem;
}

.footer-bottom a {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   15. Scroll-reveal animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   16. Page banner (gallery / about)
   -------------------------------------------------------------------------- */
.page-banner {
  background:
    radial-gradient(ellipse at 50% -20%, rgba(217, 58, 47, 0.16), transparent 60%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.014) 0 2px, transparent 2px 16px),
    var(--color-black);
  color: var(--color-white);
  padding: calc(var(--header-height) + 80px) 0 90px;
  text-align: center;
  position: relative;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--hazard-stripe);
}

.page-banner .eyebrow {
  color: var(--color-red-light);
}

.page-banner h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.page-banner p {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   17. Gallery page
   -------------------------------------------------------------------------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-btn {
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-300);
  border-radius: 999px;
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-near-black);
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--color-red);
  transform: translateY(-2px);
}

.filter-btn.is-active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
  box-shadow: var(--shadow-red);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-black);
  aspect-ratio: 4 / 3;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
  pointer-events: none;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  border-color: var(--color-red);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 18px 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
  color: var(--color-white);
  font-size: 0.88rem;
  font-weight: 600;
  transform: translateY(6px);
  opacity: 0.92;
  transition: transform var(--transition), opacity var(--transition);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

.gallery-cta {
  text-align: center;
  margin-top: 70px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-figure {
  max-width: 88vw;
  max-height: 82vh;
  text-align: center;
}

.lightbox-figure img {
  max-width: 88vw;
  max-height: 74vh;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

.lightbox-figure figcaption {
  color: var(--color-white);
  margin-top: 14px;
  font-size: 0.95rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--color-red);
  border-color: var(--color-red);
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* --------------------------------------------------------------------------
   18. About page
   -------------------------------------------------------------------------- */
.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border-bottom: 6px solid var(--color-red);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}

.value-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  border: 1px solid var(--color-gray-300);
  border-top: 4px solid var(--color-red);
  transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.value-card h3 {
  font-size: 1.1rem;
}

.value-card p {
  color: var(--color-gray-700);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.team-card {
  text-align: center;
}

.team-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover .team-photo {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-card h3 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.team-role {
  color: var(--color-red);
  font-weight: 600;
  font-size: 0.88rem;
}

.closing-cta {
  text-align: center;
}

.closing-cta .btn {
  margin-top: 26px;
}

/* --------------------------------------------------------------------------
   19. Chatbot widget
   -------------------------------------------------------------------------- */
.chat-widget {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 900;
  font-family: var(--font-body);
}

.chat-bubble {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: var(--shadow-red);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  transition: transform var(--transition);
}

.chat-bubble:hover {
  transform: scale(1.06);
}

.chat-bubble img {
  width: 34px;
  height: 34px;
  filter: brightness(0) invert(1);
}

.chat-bubble .chat-close-icon {
  display: none;
  width: 22px;
  height: 22px;
  stroke: var(--color-white);
}

.chat-widget.is-open .chat-bubble img {
  display: none;
}

.chat-widget.is-open .chat-bubble .chat-close-icon {
  display: block;
}

.chat-panel {
  position: absolute;
  bottom: 78px;
  right: 0;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.chat-widget.is-open .chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  background: var(--color-black);
  color: var(--color-white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.chat-header strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
}

.chat-header span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.chat-body {
  padding: 16px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  background: var(--color-gray-100);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  max-width: 88%;
}

.chat-msg.bot {
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--color-red);
  color: var(--color-white);
  border-bottom-right-radius: 2px;
}

.chat-quick-replies {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px;
}

.chat-quick-replies button {
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  transition: border-color var(--transition), background var(--transition);
}

.chat-quick-replies button:hover {
  border-color: var(--color-red);
  background: var(--color-gray-100);
}

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .estimator-panel,
  .map-layout,
  .contact-layout,
  .story-layout {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-track {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) {
  .main-nav,
  .header-cta .btn-outline-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav.is-open {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-black);
    padding: 20px 24px 30px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  }

  .main-nav.is-open ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .main-nav.is-open a {
    display: block;
    padding: 12px 0;
    width: 100%;
  }

  .trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2n) {
    border-right: none;
  }

  .stat {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  section {
    padding: 70px 0;
  }

  .video-carousel {
    padding: 0 46px;
  }

  .video-slide {
    flex: 0 0 260px;
  }

  .video-slide video {
    height: 360px;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .estimator-panel {
    padding: 30px 22px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .chat-panel {
    width: calc(100vw - 40px);
  }

  .video-carousel {
    padding: 0 16px;
  }

  .carousel-btn {
    display: none;
  }

  .video-slide {
    flex: 0 0 82%;
  }

  .video-slide video {
    height: 320px;
  }

  .hero-callout {
    font-size: 1.5rem;
  }
}
