/* ══════════════════════════════════════════════════════════
   FRED' ELEC — Design System & Custom Stylesheet
   Direction: Premium Tech-Artisan Editorial
   Display: Outfit | Body: Plus Jakarta Sans | Mono: DM Mono
   Colors: White (#ffffff) | Electric Blue (#00A8FF) | Yellow (#FFC93C)
   ══════════════════════════════════════════════════════════ */

:root {
  --bg:          #ffffff; /* Pure White Background */
  --surface:     #f8fafc; /* Light Surface Card */
  --surface-alt: #f1f5f9; /* Alternating Surface */
  --accent-blue: #0090e0; /* Electric Blue (slightly deeper for light bg) */
  --accent-yel:  #e6a800; /* Electric Yellow (deeper for contrast) */
  --white:       #1e293b; /* Main text — dark slate */
  --gray:        #64748b; /* Muted text */
  --dark:        #0f172a; /* Slate 900 */
  --border:      rgba(0,0,0,0.08);
  --border-glow: rgba(0, 144, 224, 0.28);
  
  --display:     'Outfit', sans-serif;
  --body:        'Plus Jakarta Sans', sans-serif;
  --mono:        'DM Mono', monospace;

  --r: 6px;
  --r-lg: 12px;
  --r-xl: 18px;
  --max: 1200px;
  --transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, opacity 0.3s ease, filter 0.25s ease;
}

/* ── Reset & Core ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  color-scheme: light;
}

/* Base link states */
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { font-family: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ── Layout & Wrapper ───────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.section { padding: 5.5rem 0; position: relative; overflow: hidden; }
.section-inner { padding: 8rem 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.rule { border: none; height: 1px; background: var(--border); margin: 0; }

/* Subtle Glow Accents */
.glow-blur {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(160px); opacity: 0.09; z-index: 0;
}
.glow-blue { width: 320px; height: 320px; background: var(--accent-blue); }
.glow-yellow { width: 280px; height: 280px; background: var(--accent-yel); }

/* Grid overlay background */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(to bottom, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,.007) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,.007) 80px);
}

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

.text-yellow { color: var(--accent-yel) !important; }
.text-blue { color: var(--accent-blue) !important; }
.italic { font-style: italic; }
.font-normal { font-weight: 400; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent-blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ''; width: 16px; height: 1px; background: var(--accent-blue);
}
.h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 1rem;
}
.lead-p {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  color: var(--gray);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Buttons ────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--accent-yel); color: var(--bg);
  padding: 0.875rem 1.75rem; border-radius: var(--r);
  font-family: var(--display); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: none; cursor: pointer;
  box-shadow: 0 2px 12px rgba(255, 201, 60, 0.12);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 201, 60, 0.22);
  filter: brightness(1.04);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--accent-blue); color: #fff;
  padding: 0.875rem 1.75rem; border-radius: var(--r);
  font-family: var(--display); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: none; cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 168, 255, 0.15);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 255, 0.28);
  filter: brightness(1.04);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: transparent; color: var(--white);
  padding: 0.875rem 1.75rem; border-radius: var(--r);
  font-family: var(--display); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--border); cursor: pointer;
}
.btn-outline:hover {
  border-color: rgba(0, 168, 255, 0.45);
  color: var(--accent-blue);
  background: rgba(0, 168, 255, 0.04);
  transform: translateY(-1px);
}

/* ── Top Contacts Bar ───────────────────────────────── */
.top-info-bar {
  background: linear-gradient(90deg, #0074c8 0%, #0090e0 60%, #00a8f0 100%);
  border-bottom: none;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.92);
  padding: 0.55rem 0;
  z-index: 101;
  position: relative;
}
.top-info-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.top-contacts { display: flex; align-items: center; gap: 1.5rem; }
.top-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
}
.top-link:hover { color: #fff; }
.top-link .icon { width: 14px; height: 14px; color: rgba(255,255,255,0.75); }
.top-contacts .sep { color: rgba(255,255,255,0.3); }
.top-hours { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.88); }
.top-hours .icon { width: 14px; height: 14px; color: #ffe066; }

/* ── Sticky Navigation Header ───────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.25rem 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header.scrolled {
  padding: 0.9rem 0;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo img { display: block; transition: var(--transition); }
.nav-logo:hover img { filter: brightness(1.15); }

.nav-desktop .nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(203,213,225,0.75);
  padding: 0.4rem 0;
  position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), #00c6ff);
  border-radius: 2px;
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a.active::after { width: 100%; }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1.25rem; }
.btn-nav-cta {
  background: var(--accent-blue);
  border: none;
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: var(--r);
  font-family: var(--display); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 144, 224, 0.25);
}
.btn-nav-cta:hover {
  filter: brightness(1.1);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 144, 224, 0.35);
  transform: translateY(-2px);
}

.nav-ham {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-ham span {
  display: block; width: 22px; height: 2px;
  background: rgba(203,213,225,0.9); border-radius: 2px; transition: var(--transition);
}

/* ── Mobile Navigation Drawer ──────────────────────── */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-inner {
  display: flex; flex-direction: column; height: 100%;
  padding: 2.5rem 2rem;
}
.drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 3.5rem;
}
.drawer-close {
  background: none; border: none; color: #1e293b; cursor: pointer;
}
.drawer-links { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: auto; }
.drawer-links a {
  font-family: var(--display); font-size: 1.45rem; font-weight: 700;
  color: var(--gray); text-transform: uppercase; letter-spacing: -0.01em;
}
.drawer-links a:hover,
.drawer-links a.active { color: #0f172a; }
.drawer-footer { border-top: 1px solid var(--border); padding-top: 2rem; }
.btn-drawer-phone {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--accent-blue); color: white;
  width: 100%; justify-content: center;
  padding: 0.9rem 0; border-radius: var(--r);
  font-family: var(--display); font-weight: 700; font-size: 1rem;
}
.drawer-meta { text-align: center; font-size: 0.75rem; color: var(--gray); margin-top: 0.8rem; }

/* ── Home Hero Section ──────────────────────────────── */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding-top: 8.5rem;
  padding-bottom: 4rem;
  background: #0f172a;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 0.8s ease;
}
.hero-overlay-v {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.3) 50%, rgba(15, 23, 42, 0.7) 100%);
}
.hero-overlay-h {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0) 100%);
}
.hero-eyebrow {
  color: var(--accent-blue) !important;
}
.hero-eyebrow::before {
  background: var(--accent-blue) !important;
}
.hero-h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 1.5rem 0;
}
.hero-italic {
  font-family: Georgia, serif;
  font-weight: 400;
  font-style: italic;
  color: var(--accent-yel);
  text-transform: none;
}
.hero-sub {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2.5rem;
}
.hero-sub em {
  color: #ffffff;
  font-style: normal;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.btn-primary-light {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--accent-yel); color: #0f172a;
  padding: 0.9rem 1.8rem; border-radius: var(--r);
  font-family: var(--display); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 201, 60, 0.25);
}
.btn-primary-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 201, 60, 0.35);
  filter: brightness(1.08);
}
.btn-outline-light {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: transparent; color: #ffffff;
  padding: 0.9rem 1.8rem; border-radius: var(--r);
  font-family: var(--display); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25); cursor: pointer;
}
.btn-outline-light:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.hero-credentials {
  margin-top: 4.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.cred-sep {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}


/* ── Service Ticker Marquee ────────────────────────── */
.marquee-container {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  background: #f1f5f9;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: inline-flex; gap: 3rem;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  font-family: var(--mono);
  font-size: 0.68rem; font-weight: 500; color: rgba(100, 116, 139, 0.85);
  letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 1rem;
}
.marquee-track .m-dot { color: var(--accent-yel); font-size: 0.8rem; opacity: 0.7; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Premium Layout & Cards ─────────────────────────── */
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2.5rem; margin-bottom: 3.25rem; flex-wrap: wrap;
  position: relative; z-index: 1;
}

/* Premium Card System */
.card-premium {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  display: flex; flex-direction: column;
  height: 100%;
}
.card-premium:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 144, 224, 0.12);
}
.card-img-wrap {
  position: relative; aspect-ratio: 16 / 10;
  overflow: hidden; background: #e2e8f0;
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-premium:hover .card-img-wrap img { transform: scale(1.04); }

.card-num {
  position: absolute; top: 1.25rem; left: 1.25rem;
  font-family: var(--mono); font-size: 0.65rem; font-weight: 600;
  background: rgba(15, 23, 42, 0.75); color: #ffffff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem; border-radius: 99px; border: 1px solid rgba(255,255,255,0.08);
  z-index: 2;
  letter-spacing: 0.05em;
}
.card-arrow {
  position: absolute; bottom: 1.25rem; right: 1.25rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.95); color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 2;
}
.card-premium:hover .card-arrow {
  background: var(--accent-blue); color: #fff;
  transform: rotate(45deg) scale(1.05);
}

.card-body { padding: 1.65rem 1.65rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-body h3 {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem;
  transition: color 0.25s ease; color: #0f172a;
}
.card-premium:hover .card-body h3 { color: var(--accent-blue); }
.card-body p { font-size: 0.86rem; color: var(--gray); line-height: 1.65; margin-bottom: 1.25rem; }

.card-bullets {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem; margin-top: auto;
  display: grid; grid-template-columns: 1fr; gap: 0.55rem;
}
.bullet-item {
  display: flex; align-items: start; gap: 0.5rem;
  font-size: 0.78rem; color: #334155;
}
.bullet-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-yel); margin-top: 0.5rem; flex-shrink: 0; }

/* Grid systems */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Stats Band ─────────────────────────────────────── */
.stats-band {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-cell {
  padding: 3.5rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}
.stat-cell:first-child {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}
.stat-cell:last-child {
  border-right: none;
}
.stat-val {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.stat-val .u {
  font-size: 0.48em;
  color: var(--dark);
  font-weight: 500;
}
.stat-lbl {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* ── About Grid Section ─────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 4.5rem;
  align-items: center;
}
.about-visual { position: relative; }
.about-bg-char {
  position: absolute;
  top: -2.5rem;
  left: -2.5rem;
  font-family: var(--display);
  font-size: clamp(10rem, 15vw, 15rem);
  color: rgba(0, 144, 224, 0.05);
  line-height: 1;
  font-weight: 800;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.about-img-frame {
  border-radius: 2rem; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  aspect-ratio: 4 / 5;
  position: relative;
  z-index: 1;
}
.about-img-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-badge-card {
  position: absolute; bottom: -2rem; right: -2rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.5rem;
  padding: 1.25rem 1.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  display: flex; align-items: center; gap: 1rem;
  transform: rotate(-3deg);
  z-index: 2;
  transition: transform 0.4s ease;
}
.about-visual:hover .about-badge-card {
  transform: rotate(0deg) scale(1.03);
}
.about-badge-card .num {
  font-family: var(--display); font-size: 2.8rem; font-weight: 800;
  color: var(--accent-yel); line-height: 1;
}
.about-badge-card .lbl {
  font-family: var(--mono); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.1em; color: #334155; text-transform: uppercase;
  line-height: 1.45;
}

.about-text-content h2 { margin-bottom: 1.25rem; }
.about-desc { font-size: 0.98rem; color: var(--gray); margin-bottom: 1.75rem; line-height: 1.7; }
.about-bullets-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem;
  margin-bottom: 2.25rem;
}
.about-bullet-li { display: flex; align-items: start; gap: 0.75rem; font-size: 0.88rem; color: #334155; }
.about-bullet-li .bullet-icon {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0, 168, 255, 0.1); color: var(--accent-blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 0.1rem; font-size: 0.62rem;
}
.about-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.portfolio-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.portfolio-card {
  position: relative; overflow: hidden;
  border-radius: 1.5rem; background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.portfolio-card.aspect-3-4 {
  aspect-ratio: 3 / 4;
}
.portfolio-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-card:hover img { transform: scale(1.08); }
.portfolio-card-wrap {
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  opacity: 0.85; transition: opacity 0.4s ease;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
  z-index: 1;
}
.portfolio-card:hover .portfolio-overlay { opacity: 0.95; }
.portfolio-cat {
  font-family: var(--mono); font-size: 0.6rem; font-weight: 600;
  color: var(--accent-yel); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 0.4rem; opacity: 0.85;
}
.portfolio-title {
  font-family: var(--display);
  font-size: 1.15rem; font-weight: 700; color: #ffffff;
  line-height: 1.2;
}
/* Staggered offsets for desktop grid on home */
@media (min-width: 1024px) {
  .portfolio-grid.cols-4 > div:nth-child(2),
  .portfolio-grid.cols-4 > div:nth-child(3) {
    margin-top: 2.5rem;
  }
}

/* ── Testimonials ───────────────────────────────────── */
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 4rem 3rem;
  max-width: 860px; margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}
.testi-quote-icon {
  font-size: 5rem; line-height: 1; color: var(--accent-blue);
  opacity: 0.08; position: absolute; top: 1.5rem; left: 50%;
  transform: translateX(-50%); font-family: Georgia, serif;
}
.testi-stars {
  color: var(--accent-yel); font-size: 1rem; letter-spacing: 0.25rem;
  margin-bottom: 2rem;
}
.testi-quote {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 500; color: var(--dark);
  line-height: 1.5; margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.testi-author {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--gray);
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ── Cities Grid ────────────────────────────────────── */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.city-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.city-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.city-card-header svg.icon-pin {
  color: var(--accent-blue);
  width: 18px;
  height: 18px;
}
.city-card-header svg.icon-arrow {
  color: var(--gray);
  width: 14px;
  height: 14px;
  transition: transform 0.4s ease, color 0.3s ease;
}
.city-card:hover {
  border-color: var(--accent-blue);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 144, 224, 0.05);
  transform: translateY(-3px);
}
.city-card:hover svg.icon-arrow {
  transform: rotate(45deg) scale(1.1);
  color: var(--accent-blue);
}
.city-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.3rem;
}
.city-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--gray);
}
.city-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
}

/* ── Urgence CTA Section ────────────────────────────── */
.urg-cta-section {
  position: relative;
  background: #0f172a;
  color: #ffffff;
  padding: 6.5rem 0;
  text-align: center;
  overflow: hidden;
}
.urg-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 0;
}
.urg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(0, 144, 224, 0.2) 100%);
  z-index: 1;
}
.urg-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}
.urg-h2 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  font-weight: 800;
  color: #ffffff;
  margin: 1.5rem 0 1rem;
  line-height: 1.15;
}
.urg-p {
  font-size: clamp(0.98rem, 1.7vw, 1.12rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.urg-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ── FAQ Section (Accordion) ────────────────────────── */
.faq-wrap { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r);
  margin-bottom: 0.75rem; overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item:hover { border-color: rgba(255, 255, 255, 0.14); }
.faq-item.open { border-color: rgba(0, 168, 255, 0.25); }

.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; padding: 1.4rem 1.75rem;
  color: #0f172a; font-family: var(--display); font-size: 1.05rem; font-weight: 600;
  text-align: left; cursor: pointer; gap: 1rem;
}
.faq-q .icon-chevron {
  width: 16px; height: 16px; color: var(--gray); flex-shrink: 0;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
}
.faq-item.open .faq-q .icon-chevron {
  transform: rotate(180deg); color: var(--accent-blue);
}
.faq-a {
  padding: 0 1.75rem;
  color: var(--gray); font-size: 0.9rem; line-height: 1.72;
}
.faq-a-inner { padding-bottom: 1.5rem; }

/* ── Contact Section & Form ─────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem;
}
.contact-details h2 { margin-bottom: 1.25rem; }
.contact-intro { color: var(--gray); margin-bottom: 2.25rem; font-size: 0.96rem; line-height: 1.7; }
.contact-info-list { display: flex; flex-direction: column; gap: 2rem; }
.contact-item-box { display: flex; align-items: start; gap: 1.25rem; }
.contact-icon-wrap {
  width: 44px; height: 44px; border-radius: var(--r);
  background: rgba(0, 168, 255, 0.07); border: 1px solid rgba(0, 168, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-blue); flex-shrink: 0;
}
.contact-icon-wrap svg { width: 18px; height: 18px; }
.contact-item-content h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.contact-item-content p { color: var(--gray); font-size: 0.9rem; line-height: 1.6; }
.contact-item-content a:hover { color: var(--accent-blue); }

.contact-card-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.75rem 2.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.form-group.no-margin { margin-bottom: 0; }
.form-group label {
  font-family: var(--display); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray);
}
.form-control {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--r);
  color: #1e293b;
  padding: 1rem 1.2rem;
  font-family: var(--body); font-size: 0.95rem;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: rgba(0, 144, 224, 0.6);
  background: rgba(0, 144, 224, 0.015);
  box-shadow: 0 0 0 3px rgba(0, 144, 224, 0.08);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
  padding-right: 2.75rem;
  cursor: pointer;
}
select.form-control option { background: #ffffff; color: #1e293b; }

/* ── Service Detail Pages ───────────────────────────── */
.services-header-section {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}
.services-grid-list {
  display: flex; flex-direction: column; gap: 4.5rem;
}
.service-detail-row {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem;
  align-items: center;
}
.service-detail-row:nth-child(even) {
  grid-template-columns: 1.1fr 1fr;
}
.service-detail-row:nth-child(even) .service-detail-text {
  order: 2;
}
.service-detail-row:nth-child(even) .service-detail-visual {
  order: 1;
}
.service-visual-frame {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  aspect-ratio: 16 / 11;
  border: 1px solid var(--border);
}
.service-visual-frame img { width: 100%; height: 100%; object-fit: cover; }
.service-detail-text h3 { font-size: 1.7rem; font-weight: 800; margin-bottom: 1rem; color: #0f172a; }
.service-detail-text p { color: var(--gray); font-size: 0.98rem; margin-bottom: 2rem; line-height: 1.7; }

.service-sublist {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem;
}
.service-sublist-item {
  display: flex; align-items: start; gap: 0.55rem;
  font-size: 0.86rem; color: #334155;
}
.service-sublist-item svg {
  width: 14px; height: 14px; color: var(--accent-blue);
  flex-shrink: 0; margin-top: 0.3rem;
}

/* ── Legal Page (CGV) ────────────────────────────────── */
.legal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 4rem 3.5rem;
  max-width: 860px; margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.legal-card h1 { font-size: 2.1rem; font-weight: 800; margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; color: #0f172a; }
.legal-card p { color: var(--gray); margin-bottom: 1.75rem; font-size: 0.96rem; line-height: 1.75; }
.legal-card h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.8rem; margin-top: 2.25rem; color: #0f172a; }
.legal-card a { color: var(--accent-blue); text-decoration: underline; }
.legal-card a:hover { color: var(--accent-yel); }

/* ── Footer Elements ────────────────────────────────── */
.site-footer {
  background: #f1f5f9;
  border-top: 1px solid var(--border);
  padding: 5rem 0 3rem;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3.5rem; margin-bottom: 4rem;
}
.footer-logo { margin-bottom: 1.5rem; }
.footer-tagline { color: var(--gray); font-size: 0.82rem; line-height: 1.72; margin-bottom: 1.5rem; }
.footer-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer-badge-tag {
  font-family: var(--mono); font-size: 0.58rem; font-weight: 500;
  color: rgba(0, 168, 255, 0.75); border: 1px solid rgba(0, 168, 255, 0.18);
  border-radius: 3px; padding: 0.28rem 0.55rem; text-transform: uppercase; letter-spacing: 0.06em;
}

.footer-col h4 {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #475569; margin-bottom: 1.5rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul li a { color: var(--gray); font-size: 0.86rem; }
.footer-col ul li a:hover { color: #0f172a; }
.footer-col ul li span { color: var(--gray); font-size: 0.86rem; }

.footer-contact-list .contact-item { display: flex; align-items: start; gap: 0.85rem; }
.footer-contact-list .contact-item span { line-height: 1.4; }
.footer-icon { width: 16px; height: 16px; color: var(--accent-blue); flex-shrink: 0; margin-top: 0.15rem; }
.hover-glow:hover { color: var(--accent-blue) !important; }

.footer-bottom {
  padding-top: 2.25rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-meta { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-copy { color: rgba(0,0,0,0.35); font-size: 0.75rem; }
.footer-siret { color: rgba(0,0,0,0.25); font-size: 0.7rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(0,0,0,0.3); font-size: 0.75rem; }
.footer-legal a:hover { color: #0f172a; }

/* ── Mobile Sticky Call Button ─────────────────────── */
.ring-cta {
  display: none;
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 105;
  background: var(--accent-yel); color: var(--bg);
  width: 52px; height: 52px; border-radius: 50%;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 201, 60, 0.35);
  animation: ringBeat 3s ease infinite;
}
@keyframes ringBeat {
  0%    { box-shadow: 0 4px 20px rgba(255, 201, 60, 0.35), 0 0 0 0 rgba(255, 201, 60, 0.3); }
  60%   { box-shadow: 0 4px 20px rgba(255, 201, 60, 0.35), 0 0 0 12px rgba(255, 201, 60, 0); }
  100%  { box-shadow: 0 4px 20px rgba(255, 201, 60, 0.35), 0 0 0 0 rgba(255, 201, 60, 0); }
}

/* ── Scroll Reveal System ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.stagger.in > *:nth-child(1) { opacity:1;transform:none;transition-delay:0s; }
.stagger.in > *:nth-child(2) { opacity:1;transform:none;transition-delay:.08s; }
.stagger.in > *:nth-child(3) { opacity:1;transform:none;transition-delay:.16s; }
.stagger.in > *:nth-child(4) { opacity:1;transform:none;transition-delay:.24s; }
.stagger.in > *:nth-child(5) { opacity:1;transform:none;transition-delay:.32s; }
.stagger.in > *:nth-child(6) { opacity:1;transform:none;transition-delay:.40s; }
.stagger.in > *:nth-child(7) { opacity:1;transform:none;transition-delay:.48s; }

/* ── Interventions Map Zone Layout ──────────────────── */
.map-visual-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  height: 100%; min-height: 320px; position: relative;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; align-items: center; padding: 2rem;
  background-image: radial-gradient(circle at center, #dbeafe 0%, #f0f7ff 100%);
  text-align: center;
}
.map-radar {
  width: 140px; height: 140px; border-radius: 50%;
  border: 1.5px solid rgba(0, 168, 255, 0.15);
  position: relative; display: flex; align-items: center; justify-content: center;
  margin-bottom: 2rem;
}
.map-radar-circle {
  position: absolute; border: 1.5px solid rgba(0, 144, 224, 0.3);
  border-radius: 50%; width: 100%; height: 100%;
  animation: radar-grow 3s linear infinite;
}
.map-radar-circle:nth-child(2) { animation-delay: 1s; width: 66%; height: 66%; }
.map-radar-circle:nth-child(3) { animation-delay: 2s; width: 33%; height: 33%; }
.map-pin {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-yel); box-shadow: 0 0 8px rgba(230, 168, 0, 0.6);
  z-index: 2;
}
@keyframes radar-grow {
  0% { transform: scale(0.3); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.3; }
  100% { transform: scale(1.3); opacity: 0; }
}
.map-meta-title { font-family: var(--display); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; color: #0f172a; }
.map-meta-subtitle { color: var(--gray); font-size: 0.82rem; }

/* ── Responsive Styling ─────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
  .about-badge-card { right: 1rem; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cities-grid { grid-template-columns: repeat(3, 1fr); }
  .service-detail-row, .service-detail-row:nth-child(even) { grid-template-columns: 1fr; gap: 2.5rem; }
  /* Image always first on tablet/mobile, regardless of even/odd alternation */
  .service-detail-row:nth-child(even) .service-detail-visual { order: 1; }
  .service-detail-row:nth-child(even) .service-detail-text { order: 2; }
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .footer-grid .brand-col { grid-column: span 2; }
  .urg-cta-box { flex-direction: column; align-items: start; padding: 3rem 2.5rem; }
  .urg-link-card { width: 100%; min-width: unset; }
}

@media (max-width: 768px) {
  .top-info-bar { display: none; }
  .nav-desktop { display: none; }
  .nav-ham { display: flex; }
  .site-header { padding: 0.9rem 0; }
  .section { padding: 3.75rem 0; }
  .section-inner { padding: 7rem 0 0; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { padding: 2.25rem 1.25rem; border-right: none; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--border); }
  .stat-cell:nth-child(odd) { border-right: 1px solid var(--border); }
  .cities-grid { grid-template-columns: repeat(2, 1fr); }
  .ring-cta { display: flex; }
  .legal-card { padding: 2.5rem 1.5rem; }
  .hero-h1 { letter-spacing: -0.025em; }
  .hero-credentials { display: none; }
}

@media (max-width: 580px) {
  .service-sublist { grid-template-columns: 1fr; gap: 0.65rem; }
  .service-visual-frame { aspect-ratio: 4 / 3; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-cell { border-bottom: 1px solid var(--border); }
  .stat-cell:nth-child(3), .stat-cell:nth-child(4) { border-bottom: none; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-grid.cols-4 { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .about-badge-card { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-card-form { padding: 2rem 1.5rem; }
  .testi-card { padding: 2.5rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid .brand-col { grid-column: span 1; }
  .footer-bottom { flex-direction: column; align-items: start; }
  .wrap { padding: 0 1.25rem; }
  .urg-cta-box { padding: 2.5rem 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
