/* ═══════════════════════════════════════════════════════════
   PECK GENERAL CONSTRUCTION — MASTER DESIGN SYSTEM (v1)
   Triple-Gateway: Commercial · Luxury · Home Services
   ═══════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul,
ol {
  list-style: none;
}

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

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

/* ─── DESIGN TOKENS ───────────────────────────────────────── */
:root {
  /* Brand Palette */
  --navy: #0a1628;
  --navy-light: #131f36;
  --navy-mid: #1a2a4a;
  --steel: #2c3e5a;
  --slate: #4a5568;

  /* Tier Colors */
  --tier1-accent: #3b82f6;
  /* B2B Blue */
  --tier1-glow: #60a5fa;
  --tier2-accent: #c8956c;
  /* Luxury Gold/Warm */
  --tier2-glow: #daa06d;
  --tier2-deep: #8b6b47;
  --tier3-accent: #10b981;
  /* B2C Green (Fresh) */
  --tier3-glow: #34d399;

  /* Patriotic */
  --flag-red: #b91c1c;
  --flag-blue: #1e40af;
  --flag-white: #ffffff;

  /* Neutral */
  --bg: #ffffff;
  --bg-off: #f8fafc;
  --bg-warm: #faf7f4;
  --bg-dark: var(--navy);
  --surface: #ffffff;
  --surface-dark: #111827;
  --border: #e2e8f0;
  --border-dark: #1e293b;

  /* Text */
  --text: #1a202c;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-light: #ffffff;
  --text-on-dark: #e2e8f0;

  /* Typography */
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  /* Spacing (8px grid) */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.35s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);
  --transition-spring: 0.5s var(--ease-spring);
}

/* ─── TYPOGRAPHY ──────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--slate);
}

/* ─── LAYOUT ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--space-3xl) 0;
}

.section-dark {
  background: var(--navy);
  color: var(--text-light);
}

.section-dark h2,
.section-dark h3 {
  color: var(--text-light);
}

.section-dark p {
  color: var(--text-on-dark);
}

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

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

/* ─── SECTION LABELS ──────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--tier1-accent);
  margin-bottom: var(--space-md);
  position: relative;
  padding-left: 2rem;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.2rem;
  height: 2px;
  background: var(--tier1-accent);
  transform: translateY(-50%);
}

.section-tag.luxury {
  color: var(--tier2-accent);
}

.section-tag.luxury::before {
  background: var(--tier2-accent);
}

.section-tag.residential {
  color: var(--tier3-accent);
}

.section-tag.residential::before {
  background: var(--tier3-accent);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  max-width: 700px;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/* ─── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all var(--transition-base);
  background: var(--navy);
}

.navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1380px;
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  transition: all var(--transition-base);
}

.navbar.scrolled .nav-container {
  padding: 0.8rem 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.logo-badge {
  width: 38px;
  height: 38px;
  margin-right: 0.5rem;
  border-radius: 8px;
  object-fit: contain;
  filter: invert(1);
  mix-blend-mode: screen;
}

.logo-peck {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.logo-general {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--tier1-glow);
  letter-spacing: 1px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links li a {
  display: block;
  padding: 0.5rem 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--tier1-accent);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-links li a:hover::after {
  width: 60%;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: block;
  padding: 0.5rem 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  cursor: pointer;
}

.nav-dropdown-trigger:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: rgba(10, 22, 40, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-dropdown-menu a:hover {
  background: rgba(59, 130, 246, 0.12);
  color: var(--tier1-glow);
  padding-left: 1.3rem;
}

.nav-dropdown-menu a::after {
  display: none;
}

/* Nav CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.3rem;
  background: var(--tier1-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--tier1-glow);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.nav-cta svg {
  width: 15px;
  height: 15px;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  position: relative;
  z-index: 1002;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all var(--transition-base);
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── TRUST BANNER ────────────────────────────────────────── */
.trust-banner {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.6rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  letter-spacing: 0.5px;
}

.trust-banner strong {
  color: #fff;
}

.trust-banner .flag {
  margin-right: 0.3rem;
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  padding: var(--space-lg) 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.trust-badge:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.trust-badge svg {
  width: 24px;
  height: 24px;
  color: var(--tier1-accent);
}

.trust-badge .count {
  color: var(--tier1-accent);
  font-weight: 700;
  font-size: 1rem;
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

/* B2B / Primary */
.btn-primary {
  background: var(--tier1-accent);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--tier1-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

/* Luxury */
.btn-luxury {
  background: linear-gradient(135deg, var(--tier2-accent), var(--tier2-deep));
  color: #fff;
  border: none;
}

.btn-luxury:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 149, 108, 0.35);
}

/* B2C */
.btn-b2c {
  background: var(--tier3-accent);
  color: #fff;
  border: none;
}

.btn-b2c:hover {
  background: var(--tier3-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Large */
.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* ─── TRIPLE-GATEWAY HERO ─────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero-top {
  text-align: center;
  padding: 10rem 1.5rem 2rem;
  background: var(--navy);
  position: relative;
  z-index: 2;
}

.hero-top h1 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--tier1-glow);
  transition: all var(--transition-base);
}

.hero-phone:hover {
  color: #fff;
  transform: scale(1.03);
}

.hero-phone svg {
  width: 18px;
  height: 18px;
}

/* Three Panels */
.hero-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex: 1;
  min-height: 50vh;
}

.hero-panel {
  position: relative;
  padding: var(--space-2xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s var(--ease-out);
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  transition: opacity 0.6s var(--ease-out);
  z-index: 1;
}

.hero-panel-content {
  position: relative;
  z-index: 2;
  transform: translateY(10px);
  opacity: 0;
  animation: panelReveal 0.8s var(--ease-out) forwards;
}

@keyframes panelReveal {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Panel: Commercial (Left - Dark) */
.hero-panel--commercial {
  background-image: linear-gradient(180deg, rgba(13, 27, 42, 0.5) 0%, rgba(27, 45, 74, 0.97) 100%), url('assets/hero_design_build.webp');
  background-size: cover;
  background-position: center;
}

.hero-panel--commercial::before {
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='0.5'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-panel--commercial:hover {
  background-image: linear-gradient(180deg, rgba(15, 32, 53, 0.3) 0%, rgba(30, 58, 95, 0.93) 100%), url('assets/hero_design_build.webp');
  background-size: cover;
  background-position: center;
}

.hero-panel--commercial h2 {
  color: var(--tier1-glow);
}

/* Panel: Luxury (Center - Warm) */
.hero-panel--luxury {
  background-image: linear-gradient(180deg, rgba(42, 31, 20, 0.5) 0%, rgba(61, 46, 31, 0.97) 100%), url('assets/hero_luxury_hub.webp');
  background-size: cover;
  background-position: center;
}

.hero-panel--luxury::before {
  background: radial-gradient(ellipse at center, rgba(200, 149, 108, 0.08) 0%, transparent 70%);
  opacity: 1;
}

.hero-panel--luxury:hover {
  background-image: linear-gradient(180deg, rgba(51, 37, 23, 0.3) 0%, rgba(74, 55, 36, 0.93) 100%), url('assets/hero_luxury_hub.webp');
  background-size: cover;
  background-position: center;
}

.hero-panel--luxury h2 {
  color: var(--tier2-accent);
}

/* Panel: Residential (Right - Bright) */
.hero-panel--residential {
  background-image: linear-gradient(180deg, rgba(13, 40, 24, 0.5) 0%, rgba(22, 58, 37, 0.97) 100%), url('assets/hero_residential_hub.webp');
  background-size: cover;
  background-position: center;
}

.hero-panel--residential::before {
  background: radial-gradient(ellipse at bottom right, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  opacity: 1;
}

.hero-panel--residential:hover {
  background-image: linear-gradient(180deg, rgba(15, 51, 32, 0.3) 0%, rgba(26, 74, 48, 0.93) 100%), url('assets/hero_residential_hub.webp');
  background-size: cover;
  background-position: center;
}

.hero-panel--residential h2 {
  color: var(--tier3-glow);
}

/* Panel Content */
.hero-panel h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-panel .panel-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-panel .btn {
  align-self: flex-start;
}

/* Panel hover expansion */
.hero-panels:hover .hero-panel {
  filter: brightness(0.7);
}

.hero-panels .hero-panel:hover {
  filter: brightness(1);
  flex-grow: 1.15;
}

/* ─── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tier1-accent), var(--tier2-accent), var(--tier3-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

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

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  background: rgba(59, 130, 246, 0.08);
  color: var(--tier1-accent);
  transition: all var(--transition-base);
}

.card:hover .card-icon {
  background: var(--tier1-accent);
  color: #fff;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.92rem;
}

/* Competency Grid */
.competencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

/* ─── FORMS ───────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-off);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--tier1-accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: #fff;
}

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

.form-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* Service Type Selector (3-tier) */
.service-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.service-selector-option {
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--bg-off);
}

.service-selector-option:hover {
  border-color: var(--tier1-accent);
  background: rgba(59, 130, 246, 0.04);
}

.service-selector-option.active {
  border-color: var(--tier1-accent);
  background: rgba(59, 130, 246, 0.06);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.service-selector-option h4 {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.service-selector-option p {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin: 0;
}

/* ─── FAQ ACCORDION ───────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--tier1-accent);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  color: var(--tier1-accent);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
  padding: 0 1.3rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.3rem 1.2rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: var(--text-on-dark);
  padding: var(--space-3xl) 0 0;
}

.footer-certs {
  background: #fff;
  padding: 2rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-certs .footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.footer-certs .footer-badges img {
  height: 50px;
  width: auto;
}

.footer-certs .footer-credentials {
  text-align: center;
  padding: 0.75rem 1rem;
  margin: 0 auto;
  max-width: 1100px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
}

.footer-certs .footer-credentials strong {
  color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .footer-certs {
    padding: 1.5rem 0 1rem;
  }

  .footer-certs .footer-badges {
    gap: 0.75rem;
    padding: 0 0.75rem;
  }

  .footer-certs .footer-badges img {
    height: 38px;
  }

  .footer-certs .footer-credentials {
    font-size: 0.7rem;
    padding: 0.6rem 0.75rem;
    line-height: 1.8;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.footer h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
}

.footer ul li a:hover {
  color: var(--tier1-glow);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-cities {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
}

.footer-cities h4 {
  margin-bottom: 0.6rem;
}

.footer-cities p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
}

/* ─── STICKY MOBILE CTA ──────────────────────────────────── */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--navy);
  padding: 0.5rem 1rem;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
  gap: 0.5rem;
}

.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  flex: 1;
}

.mobile-cta .btn-phone {
  background: var(--tier1-accent);
}

.mobile-cta .btn-whatsapp {
  background: #25D366;
  /* WhatsApp Brand Color */
}

.mobile-cta svg {
  width: 18px;
  height: 18px;
}

/* ─── SCROLL REVEAL ANIMATIONS ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for grid children */
.stagger>*:nth-child(1) {
  transition-delay: 0.05s;
}

.stagger>*:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger>*:nth-child(3) {
  transition-delay: 0.15s;
}

.stagger>*:nth-child(4) {
  transition-delay: 0.2s;
}

.stagger>*:nth-child(5) {
  transition-delay: 0.25s;
}

.stagger>*:nth-child(6) {
  transition-delay: 0.3s;
}

.stagger>*:nth-child(7) {
  transition-delay: 0.35s;
}

.stagger>*:nth-child(8) {
  transition-delay: 0.4s;
}

.stagger>*:nth-child(9) {
  transition-delay: 0.45s;
}

.stagger>*:nth-child(10) {
  transition-delay: 0.5s;
}

/* ─── ANIMATED COUNTER ────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.stat {
  padding: var(--space-lg) 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--tier1-accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.section-dark .stat-number {
  color: var(--tier1-glow);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.section-dark .stat-label {
  color: rgba(255, 255, 255, 0.5);
}

/* ─── MAP ─────────────────────────────────────────────────── */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1150px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 6rem 2rem 4rem;
    gap: 0.5rem;
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: menuSlide 0.4s var(--ease-out);
  }

  @keyframes menuSlide {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links.active li a {
    font-size: 1.2rem;
    padding: 0.8rem 0;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-dropdown.active .nav-dropdown-menu {
    max-height: 500px;
  }

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

  .hero-panels {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel {
    padding: var(--space-xl) var(--space-lg);
    min-height: 200px;
  }

  .hero-panels:hover .hero-panel {
    filter: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .trust-badges {
    gap: var(--space-md);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .mobile-cta {
    display: flex;
  }

  body {
    padding-bottom: 56px;
  }

  .service-selector {
    grid-template-columns: 1fr;
  }

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

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

  /* Override inline grid-template-columns on competencies grids */
  .competencies-grid[style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Override inline 3-col grids (contact cards, etc.) */
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* Hero image: reduce fixed 400px height on tablets */
  .hero-image[style*="height:400px"],
  .hero-image[style*="height: 400px"] {
    height: 250px !important;
  }

  /* Symptom cards: disable hover lift on touch devices */
  .symptom-card:hover {
    transform: none;
  }

  /* Mobile CTA bar: ensure touch-friendly buttons */
  .mobile-cta .btn {
    min-height: 48px;
  }

  /* Long-form content padding for readability */
  [style*="line-height:1.9"] {
    padding: 1.5rem !important;
  }

  /* Nav CTA spacing from hamburger */
  .nav-cta {
    margin-right: 0.75rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
  }

  .nav-cta svg {
    width: 13px;
    height: 13px;
  }

  /* Buttons: better touch targets */
  .btn {
    padding: 0.85rem 1.8rem;
    font-size: 0.93rem;
    min-height: 48px;
  }

  .btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  /* Inline CTA groups stack vertically */
  .section-dark [style*="display:flex"][style*="gap"] {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 580px) {
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  /* Buttons: full width on small mobile */
  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .btn-lg {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-top {
    padding: 8rem 1rem 1.5rem;
  }

  /* Competencies/service cards: single column */
  .competencies-grid {
    grid-template-columns: 1fr !important;
  }

  /* Symptom grid: single column */
  .symptom-grid {
    grid-template-columns: 1fr;
  }

  /* Stat grid: single column */
  .stat-grid {
    grid-template-columns: 1fr;
  }

  /* Hero panels: tighter padding */
  .hero-panel {
    padding: var(--space-lg) var(--space-md);
    min-height: 160px;
  }

  .hero-panel .btn {
    align-self: stretch;
    justify-content: center;
    text-align: center;
  }

  /* FAQ: tighter padding */
  .faq-question {
    padding: 0.9rem 1rem;
    font-size: 0.92rem;
  }

  .faq-answer {
    padding: 0 1rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 1rem 1rem;
  }

  /* Trust banner: smaller on mobile */
  .trust-banner {
    font-size: 0.65rem;
    padding: 0.4rem 0.5rem;
    line-height: 1.4;
  }

  /* Nav CTA: compact phone-only */
  .nav-cta {
    padding: 0.4rem 0.7rem;
    font-size: 0;
    gap: 0;
  }

  .nav-cta svg {
    width: 18px;
    height: 18px;
  }

  /* Process timeline: tighter */
  .process-timeline {
    gap: var(--space-lg);
    margin: var(--space-xl) auto;
  }

  /* Section tag: smaller */
  .section-tag {
    font-size: 0.65rem;
    letter-spacing: 2px;
  }

  /* Lead text: smaller */
  .lead {
    font-size: 1.05rem;
  }

  /* Override inline grid-template-columns on competencies grids */
  .competencies-grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Hero image: reduce fixed 400px height on phones */
  .hero-image[style*="height:400px"],
  .hero-image[style*="height: 400px"] {
    height: 200px !important;
  }

  /* Map iframe: reduce height on phones */
  .map-container iframe {
    height: 280px;
  }

  /* Inline flex CTA groups: wrap and full-width buttons */
  [style*="display:flex"][style*="gap"] {
    flex-wrap: wrap !important;
  }

  /* Inline 2-column grids: stack on phones */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Footer badges: prevent horizontal overflow */
  .footer-badges {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Long-form content: tighter padding on phones */
  [style*="line-height:1.9"] {
    padding: 1rem !important;
  }

  /* Logo: slightly smaller on phones */
  .logo-badge {
    width: 36px;
    height: 36px;
  }
}

/* ─── EXTRA-SMALL SCREENS ────────────────────────────────── */
@media (max-width: 380px) {
  .trust-banner {
    font-size: 0.55rem;
    padding: 0.3rem 0.4rem;
  }
}

/* ─── ACCESSIBILITY ───────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--tier1-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

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

/* ─── PROCESS TIMELINE ──────────────────────────────────────── */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: relative;
  max-width: 800px;
  margin: var(--space-2xl) auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--tier1-accent) 0%, rgba(255, 107, 0, 0) 100%);
  z-index: 0;
}

.process-step {
  display: flex;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.step-number {
  min-width: 42px;
  height: 42px;
  background: var(--bg-dark);
  border: 2px solid var(--tier1-accent);
  color: var(--tier1-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
}

.step-content h4 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.step-content p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── SYMPTOM GRID ────────────────────────────────────────── */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.symptom-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.symptom-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--tier1-accent);
  transform: translateY(-5px);
}

.symptom-icon {
  width: 40px;
  height: 40px;
  color: var(--tier1-accent);
}

.symptom-card h4 {
  color: #fff;
  font-size: 1.1rem;
}

.symptom-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── TECHNICAL HIGHLIGHTS ────────────────────────────────── */
.highlight-ribbon {
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.1) 0%, rgba(10, 22, 40, 0) 100%);
  border-left: 4px solid var(--tier1-accent);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.highlight-ribbon strong {
  color: #fff;
  display: block;
  margin-bottom: 0.2rem;
}

.highlight-ribbon span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (min-width: 769px) {
  .process-timeline {
    flex-direction: row;
    align-items: flex-start;
    max-width: 1100px;
  }

  .process-timeline::before {
    left: 0;
    right: 0;
    top: 20px;
    bottom: auto;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--tier1-accent) 0%, rgba(255, 107, 0, 0) 100%);
  }

  .process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
  }
}

/* ─── UTILITY ─────────────────────────────────────────────── */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}