/* ============================================
   Coastal Asphalt Paving
   Pacific Northwest sunset theme
   Deep navy + vivid orange + warm yellow + ocean blue
   Oswald + DM Sans | Vanilla CSS
   ============================================ */

/* --- 1. CSS Reset + Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scrollbar-width: thin;
  scrollbar-color: #df5817 #0a1224;
  overflow-x: clip;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a1224; }
::-webkit-scrollbar-thumb { background: #df5817; border-radius: 4px; border: 2px solid #0a1224; }
::-webkit-scrollbar-thumb:hover { background: #ff7438; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

::selection {
  background: rgba(223, 88, 23, 0.3);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


/* --- 2. Custom Properties --- */
:root {
  /* Primary accent: vivid sunset orange */
  --accent: #df5817;
  --accent-bright: #ff7438;
  --accent-deep: #b54309;
  --accent-soft: rgba(223, 88, 23, 0.15);
  --accent-glow: rgba(255, 116, 56, 0.35);
  --accent-undertone: rgba(223, 88, 23, 0.08);

  /* Secondary accent: warm sun yellow */
  --yellow: #f1c53d;
  --yellow-bright: #ffd864;
  --yellow-deep: #c69d22;
  --yellow-soft: rgba(241, 197, 61, 0.15);

  /* Tertiary accent: deep ocean blue */
  --blue: #1b60ad;
  --blue-bright: #2c7ed1;
  --blue-deep: #0d3a6b;
  --blue-soft: rgba(27, 96, 173, 0.18);
  --blue-glow: rgba(44, 126, 209, 0.3);

  /* Sunset gradient — orange-to-yellow */
  --sunset: linear-gradient(135deg, #f1c53d 0%, #ff7438 45%, #df5817 75%, #b54309 100%);
  --sunset-soft: linear-gradient(135deg, rgba(241, 197, 61, 0.15) 0%, rgba(223, 88, 23, 0.15) 100%);

  /* Coastal gradient — sunset over ocean */
  --coastal: linear-gradient(180deg, #df5817 0%, #f1c53d 25%, #2c7ed1 65%, #0d3a6b 100%);

  /* Backgrounds — deep oceanic navy */
  --bg-page: #0a1224;
  --bg-elevated: #0f1a30;
  --bg-card: #142139;
  --bg-muted: #1a2740;

  --border: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(223, 88, 23, 0.3);
  --border-blue: rgba(44, 126, 209, 0.25);

  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.85);
  --text-subtle: #b8c2d4;
  --text-faint: #6b7790;

  --radius: 8px;
  --radius-lg: 12px;
  --max-w: 1200px;

  --shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snappy: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);

  --font-display: 'Oswald', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}


/* --- 3. Typography System --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.1;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-title--accent span {
  color: var(--accent);
}

.section-intro {
  font-family: var(--font-body);
  color: var(--text-subtle);
  max-width: 65ch;
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.text-accent {
  background: var(--sunset);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 116, 56, 0.35));
}


/* --- 4. Layout Utilities --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  position: relative;
}

.section--dark {
  background: var(--bg-page);
}

.section--elevated {
  background: var(--bg-elevated);
  position: relative;
}

/* Subtle blue-to-navy gradient overlay on elevated sections */
.section--elevated::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(27, 96, 173, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.section--elevated > * {
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 2.5rem;
}


/* --- 5. Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--sunset);
  color: #0a1224;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 0.5rem;
}

.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;
}


/* --- 6. Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--accent), var(--yellow));
  box-shadow: 0 0 12px var(--accent-glow), 0 0 24px rgba(241, 197, 61, 0.18);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}


/* --- 7. Grain Overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  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)'/%3E%3C/svg%3E");
}


/* --- 8. Header + Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.header--scrolled {
  background: rgba(10, 18, 36, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid var(--accent-soft);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height 0.3s var(--ease);
}

.header--scrolled .header-inner {
  height: 66px;
}

.header--scrolled .header-cta {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.header-logo {
  max-height: 64px;
  width: auto;
  transition: max-height 0.3s var(--ease), transform 0.3s var(--ease), filter 0.3s ease;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
}

.header--scrolled .header-logo {
  max-height: 50px;
}

.header-logo:hover {
  transform: scale(1.04) translateY(-1px);
  filter: drop-shadow(0 0 16px rgba(255, 116, 56, 0.5));
}

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

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sunset);
  transform-origin: bottom right;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.nav-links a:hover {
  color: var(--accent-bright);
  text-decoration: none;
}

.nav-links a:hover::after {
  transform-origin: bottom left;
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 52;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.nav-toggle--open .nav-toggle-bar:nth-child(1),
.nav-toggle--active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle--open .nav-toggle-bar:nth-child(2),
.nav-toggle--active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle--open .nav-toggle-bar:nth-child(3),
.nav-toggle--active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 90vw);
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg, #1a2740 0%, #0a1224 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 51;
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 2px solid var(--accent);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0.35s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu--open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--accent-bright);
}

.mobile-menu-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--accent);
  color: #0a1224;
  font-size: 1.5rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
}

.mobile-menu-close:hover {
  background: var(--accent-bright);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(0, 0, 0, 0.6);
  display: none;
}

.nav-backdrop:not([hidden]) {
  display: block;
}


/* --- 9. Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-page);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-shell {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 4rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-subtle);
  opacity: 0.5;
  animation: float 2.5s ease-in-out infinite;
  z-index: 10;
}

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

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  z-index: 0;
  filter: saturate(1.05) contrast(1.05);
}

/* Sunset-over-ocean gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 25%, rgba(255, 116, 56, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 25% 80%, rgba(27, 96, 173, 0.45) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10, 18, 36, 0.85) 0%, rgba(10, 18, 36, 0.55) 45%, rgba(10, 18, 36, 0.92) 100%);
  z-index: 1;
}

/* Vertical accent lines on hero edges */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  width: 2px;
  height: 60%;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.35;
  z-index: 2;
  pointer-events: none;
}

.hero::before {
  left: clamp(1rem, 3vw, 2.5rem);
}

.hero::after {
  right: clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, transparent, var(--blue-bright), transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  width: 100%;
  text-align: left;
}

/* Hero badge */
.hero-badge {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  animation: badgePulse 3s ease-in-out infinite, fadeUp 0.8s var(--ease) 0.2s both;
}

/* Hero title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-title-line {
  display: block;
  overflow: hidden;
}

.hero-title-line span {
  display: inline-block;
  animation: titleReveal 0.9s var(--ease) both;
}

.hero-title-line:nth-child(1) span {
  animation-delay: 0.4s;
}

.hero-title-line:nth-child(2) span {
  animation-delay: 0.65s;
}

.hero-title-line:nth-child(3) span {
  animation-delay: 0.9s;
}

.hero-title-line--accent span {
  background: var(--sunset);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgba(255, 116, 56, 0.55));
}

/* Hero subtitle */
.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.7;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s var(--ease) 1.1s both;
}

/* Hero actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  animation: fadeUp 0.8s var(--ease) 1.3s both;
}

/* Hero trust bar */
.hero-trust {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 26, 48, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--accent-soft);
  z-index: 10;
  padding: 1rem 0;
}

.hero-trust-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.hero-trust-item svg {
  color: var(--accent);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Coastal wave silhouette at bottom of hero */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 90px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.5;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Dust particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.dust-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 200, 130, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 116, 56, 0.5);
  animation: dustFloat linear infinite;
}


/* --- 10. Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--sunset);
  color: #0a1224;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.95rem 1.85rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease), background 0.3s ease;
}

/* Shimmer sweep on hover */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(255, 116, 56, 0.45), 0 0 0 1px rgba(241, 197, 61, 0.25);
  text-decoration: none;
  color: #0a1224;
}

.btn-primary:active {
  transform: scale(0.98) translateY(0);
}

.btn-primary:visited {
  color: #0a1224;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  border: 2px solid var(--blue-bright);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: rgba(223, 88, 23, 0.06);
  transform: translateY(-3px);
  text-decoration: none;
}

.btn-ghost:active {
  transform: scale(0.98) translateY(0);
}

.btn-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--sunset);
  color: #0a1224;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.95rem 1.85rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease);
}

.btn-phone::before {
  content: '';
  width: 1.1em;
  height: 1.1em;
  background-color: #0a1224;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V21c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V21c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  flex-shrink: 0;
}

.btn-phone:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(255, 116, 56, 0.45);
  color: #0a1224;
  text-decoration: none;
}

.btn-phone:active {
  transform: scale(0.98) translateY(0);
}

.btn-phone:visited {
  color: #0a1224;
}


/* --- 11. Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.4s ease, transform 0.45s var(--ease-spring), box-shadow 0.4s var(--ease);
  display: block;
  text-decoration: none;
}

/* Sunset accent line on top */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sunset);
  z-index: 20;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.service-card-media img,
.service-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-card-media img,
.service-card:hover .service-card-media video {
  transform: scale(1.07);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 36, 0.4) 0%, rgba(10, 18, 36, 0.65) 45%, rgba(10, 18, 36, 0.95) 100%);
  z-index: 1;
}

.service-card-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  height: 100%;
}

.service-card-badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 1rem;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
}

.service-card-desc {
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.service-card-link {
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  transition: gap 0.3s var(--ease);
}

.service-card:hover .service-card-link {
  gap: 0.8rem;
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.service-card:hover .service-card-link svg {
  transform: translateX(4px);
}

/* 3D tilt hover */
.service-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(223, 88, 23, 0.18);
  transform: perspective(1000px) rotateX(1deg) rotateY(-1deg) translateY(-6px);
}

/* Primary service card (emphasized) */
.service-card--primary {
  min-height: 460px;
}


/* --- 12. About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 3rem;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-video-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-accent);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  position: relative;
}

/* Sunset glow corner */
.about-video-wrapper::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 116, 56, 0.4), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.about-video {
  width: 100%;
  display: block;
  position: relative;
  z-index: 0;
}

.about-stats-badge {
  position: absolute;
  bottom: -1rem;
  right: 1rem;
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  text-align: center;
  z-index: 5;
}

.about-stats-value {
  background: var(--sunset);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
}

.about-stats-label {
  color: var(--text-subtle);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-divider {
  width: 60px;
  height: 3px;
  background: var(--sunset);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

.about-check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
}

.about-check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-color: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}


/* --- 13. Process Section --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

/* Connecting line between steps */
.process-line {
  position: absolute;
  top: 40px;
  left: 12%;
  width: 76%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), var(--accent), var(--yellow), var(--accent-soft), transparent);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step-circle {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-spring);
}

.process-step:hover .process-step-circle {
  border-color: var(--accent);
  box-shadow: 0 0 28px var(--accent-glow);
  transform: scale(1.05);
}

.process-step-icon {
  color: var(--accent-bright);
  width: 32px;
  height: 32px;
}

.process-step-icon svg {
  width: 32px;
  height: 32px;
}

.process-step-number {
  position: absolute;
  top: -8px;
  right: calc(50% - 50px);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sunset);
  color: #0a1224;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(255, 116, 56, 0.45);
}

.process-step-title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-top: 1.5rem;
  color: var(--text);
}

.process-step-desc {
  color: var(--text-subtle);
  font-size: 0.88rem;
  margin-top: 0.5rem;
  max-width: 220px;
  margin-inline: auto;
  line-height: 1.55;
}


/* --- 14. Areas Section --- */
.areas-badge {
  display: inline-block;
  padding: 0.35rem 1.1rem;
  background: var(--blue-soft);
  border: 1px solid var(--border-blue);
  color: var(--blue-bright);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  margin-bottom: 2rem;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.area-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.area-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 50%, var(--accent-undertone) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.area-tile:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.area-tile:hover::before {
  opacity: 1;
}

.area-tile-icon {
  color: var(--accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.area-tile-icon svg {
  width: 18px;
  height: 18px;
}

.area-tile-name {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}


/* --- 15. Testimonials --- */
.testimonials-slider {
  position: relative;
}

.testimonials-viewport {
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s var(--ease);
}

.testimonial-card {
  min-width: calc(33.33% - 1rem);
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 0.8rem;
  right: 1.2rem;
  font-family: 'Georgia', serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.18;
  pointer-events: none;
}

.testimonial-card:hover {
  border-color: rgba(223, 88, 23, 0.25);
  transform: translateY(-3px);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 6px rgba(241, 197, 61, 0.4));
}

.testimonial-text {
  color: var(--text-muted);
  line-height: 1.7;
  flex-grow: 1;
  font-style: italic;
  font-size: 0.95rem;
}

.testimonial-author {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sunset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #0a1224;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 116, 56, 0.3);
}

.testimonial-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.testimonial-role {
  color: var(--text-subtle);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s var(--ease), border-radius 0.3s ease;
}

.testimonial-dot--active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}


/* --- 16. Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 2rem;
}

.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Top accent gradient line */
.contact-form-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sunset);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-label {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input,
.form-textarea {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px; /* CRITICAL: iOS zoom prevention */
  line-height: 1.5;
  transition: border-color 0.25s ease;
  width: 100%;
}

/* CRITICAL: border-color only on focus, NO box-shadow spread */
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-faint);
}

.form-error {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-submit {
  width: 100%;
  margin-top: 1rem;
  position: relative;
}

/* Honeypot (spam trap) */
.form-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

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

.form-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.form-success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-success-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 116, 56, 0.18), transparent 70%);
  pointer-events: none;
}

.offer-badge {
  display: inline-block;
  background: var(--sunset);
  color: #0a1224;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  box-shadow: 0 6px 18px rgba(255, 116, 56, 0.35);
}

.contact-phone-btn {
  width: 100%;
  margin-top: 1rem;
}

.contact-reasons {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-top: 1.25rem;
}

.contact-reasons li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-reasons li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-color: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.contact-security {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-faint);
  font-size: 0.8rem;
  padding: 0.75rem 0;
}

.contact-security svg {
  flex-shrink: 0;
  color: var(--text-faint);
}

/* Form validation states */
.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: #ef4444;
}

.field-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Submit button loading state */
.form-submit.is-loading .submit-text {
  visibility: hidden;
}

.form-submit.is-loading .submit-spinner {
  display: block;
}

.submit-spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(10, 18, 36, 0.3);
  border-top-color: #0a1224;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* --- 17. Footer --- */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--yellow), var(--accent), transparent);
  opacity: 0.6;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-company-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-bottom {
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.footer-bottom p {
  color: var(--text-faint);
  font-size: 0.8rem;
}

.footer-logo {
  max-height: 56px;
  width: auto;
  opacity: 0.95;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-subtle);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-bright);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--text-subtle);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
}

.footer-social a:hover {
  color: var(--accent-bright);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 22px;
  height: 22px;
}


/* --- 18. Floating CTA Bar (Mobile) --- */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: rgba(10, 18, 36, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-accent);
  z-index: 50;
  display: none; /* shown via media query */
}

.floating-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--sunset);
  color: #0a1224;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.9rem;
  border-radius: 6px;
  border: none;
  text-decoration: none;
  gap: 0.5rem;
}

.floating-cta--hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.floating-cta,
.floating-cta--hidden {
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}


/* --- 19. Offer Popup --- */
.offer-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.offer-popup-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.offer-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 440px;
  width: 90%;
  z-index: 61;
  transition: transform 0.3s var(--ease-spring), opacity 0.3s ease;
  opacity: 0;
  text-align: center;
  overflow: hidden;
}

.offer-popup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sunset);
}

.offer-popup-overlay--visible .offer-popup {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.offer-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--text-subtle);
  font-size: 1.5rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.offer-popup-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.offer-popup-badge {
  display: inline-block;
  background: var(--sunset);
  color: #0a1224;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(255, 116, 56, 0.35);
}

.offer-popup-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  line-height: 1.15;
}

.offer-popup-text {
  color: var(--text-muted);
  margin: 1rem 0 0.25rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.offer-popup-cta {
  width: 100%;
  margin-top: 1.25rem;
}


/* --- 20. Keyframe Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes titleReveal {
  from { transform: translateY(110%) skewY(4deg); opacity: 0; }
  to { transform: translateY(0) skewY(0deg); opacity: 1; }
}

@keyframes dustFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.25; }
  100% { transform: translateY(-100vh) translateX(40px); opacity: 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); }
  50% { box-shadow: 0 0 0 10px transparent; }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes waveDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}


/* --- 21. Scroll Animation Classes --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.animate-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.fade-left {
  transform: translateX(-20px);
}

.animate-on-scroll.fade-left.revealed {
  transform: translateX(0);
}

.animate-on-scroll.fade-right {
  transform: translateX(20px);
}

.animate-on-scroll.fade-right.revealed {
  transform: translateX(0);
}

[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }


/* --- 22. Responsive Media Queries --- */

/* Tablet and below */
@media (max-width: 768px) {

  .nav-links { display: none; }
  .header-inner > .header-cta { display: none; }
  .mobile-menu .header-cta { display: inline-flex; margin-top: 1rem; }
  .nav-toggle { display: flex; }
  .header-inner { height: 64px; }
  .header--scrolled .header-inner { height: 58px; }
  .header-logo { max-height: 52px; }
  .header--scrolled .header-logo { max-height: 44px; }

  /* Hero */
  .hero::before, .hero::after { display: none; }
  .hero-trust-inner { flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; }
  .hero-trust-item { font-size: 0.7rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; justify-content: center; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card--primary { grid-column: span 1; }
  .service-card { min-height: 340px; }
  .service-card:hover { transform: translateY(-4px); }

  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .about-stats-badge { bottom: -0.5rem; right: 0.5rem; padding: 0.75rem 1rem; }
  .about-stats-value { font-size: 1.5rem; }
  .about-check-list { grid-template-columns: 1fr; }

  /* Process */
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-line { display: none; }

  /* Areas */
  .areas-grid { grid-template-columns: repeat(2, 1fr); }

  /* Testimonials */
  .testimonial-card { min-width: 100%; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-panel { padding: 1.5rem; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; gap: 1rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }

  /* Floating CTA */
  .floating-cta { display: block; }

  /* Section spacing */
  .section { padding: clamp(3rem, 6vw, 4rem) 0; }
}

/* Small mobile */
@media (max-width: 480px) {

  .hero-title { font-size: clamp(1.95rem, 8.5vw, 2.6rem); }
  .hero-subtitle { font-size: 0.95rem; }
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .contact-form-panel { padding: 1.25rem; }
  .service-card-content { padding: 1.5rem; }
  .process-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop and above */
@media (min-width: 769px) {

  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .floating-cta { display: none !important; }

  /* Areas grid: 3 columns on tablet-landscape, 4 on full desktop */
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .areas-grid { grid-template-columns: repeat(4, 1fr); }
}


/* --- prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .animate-on-scroll { opacity: 1 !important; transform: none !important; }
  .hero-title-line span { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-badge, .hero-subtitle, .hero-actions { animation: none !important; opacity: 1 !important; transform: none !important; }
  .dust-particle { display: none; }
  .service-card:hover { transform: none; }
}


/* --- 23. Print Styles --- */
@media print {
  body { background: #fff; color: #000; }
  body::after { display: none; }
  .scroll-progress, .header, .floating-cta, .offer-popup-overlay,
  .offer-popup, .hero-particles, .hero-wave, .nav-backdrop, .mobile-menu { display: none !important; }
  .hero { min-height: auto; padding: 2rem 0; }
  .hero-video, .hero-overlay { display: none; }
  .hero-title-line span { animation: none; opacity: 1; transform: none; }
  .section { padding: 1.5rem 0; }
  a { color: #000; }
  .btn-primary, .btn-ghost, .btn-phone { border: 1px solid #000; background: none; color: #000; }
}
