/* ============================================================
   Prime Electric & Lighting Systems Inc — San Diego, CA
   Built by Terraform Studios
   ============================================================
   1. Reset & base
   2. Custom properties
   3. Typography base
   4. Layout utilities
   5. Header & navigation
   6. Hero
   7. Trust ticker
   8. About
   9. Services
   10. Process
   11. Stats
   12. Testimonials
   13. Service area
   14. CTA banner
   15. Contact / forms
   16. Page hero (inner pages)
   17. Service detail (services.html)
   18. FAQ
   19. Contact page
   20. 404
   21. Footer
   22. Utility widgets (progress, back-to-top)
   23. Animations
   24. Media queries
   ============================================================ */

/* ---------- 1. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: none; cursor: pointer; }

::selection { background: var(--accent); color: var(--dark); }

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

/* ---------- 2. Custom properties ---------- */
:root {
  /* color — dark base matches the logo artwork background (#0b0b0b) */
  --dark: #0b0b0b;
  --dark-2: #131315;
  --dark-3: #1b1b1f;
  --dark-border: #26262b;
  --accent: #ffd400;
  --accent-deep: #f0b100;
  --accent-glow: rgba(255, 212, 0, 0.35);
  --blue: #2f8bff;
  --blue-deep: #1257c4;
  --blue-glow: rgba(47, 139, 255, 0.35);
  --silver: #c9cdd4;
  --white: #ffffff;
  --paper: #f4f3ef;
  --line: #e6e5e0;
  --text: #1c1d21;
  --text-light: #5c5f66;
  --text-on-dark: #a8abb2;
  --success: #1f9d55;
  --error: #d64545;

  /* type */
  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "Manrope", sans-serif;

  /* layout */
  --container: 1200px;
  --radius: 10px;
  --radius-lg: 18px;
  --header-h: 84px;
  --header-h-shrunk: 64px;

  --shadow-sm: 0 2px 10px rgba(11, 11, 11, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 11, 11, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 11, 11, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 3. Typography base ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
}

h1 { font-size: clamp(3rem, 9vw, 5.75rem); }
h2 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 700; }

p { max-width: 62ch; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.1rem;
}

.section-tag::before {
  content: "";
  width: 26px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--blue) 100%);
}

.section-sub {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-top: 1.1rem;
}

.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark p, .on-dark .section-sub { color: var(--text-on-dark); }
.on-dark .section-tag { color: var(--accent); }

.accent-text { color: var(--accent); }

/* ---------- 4. Layout utilities ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }

/* buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s var(--ease), transform 0.25s var(--ease), box-shadow 0.3s var(--ease);
}

.btn svg { width: 17px; height: 17px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: var(--dark); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-primary::before { background: var(--dark); }
.btn-primary:hover { color: var(--accent); }

.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark::before { background: var(--accent); }
.btn-dark:hover { color: var(--dark); }

.btn-outline { border: 2px solid var(--dark-border); color: var(--white); }
.btn-outline::before { background: var(--white); }
.btn-outline:hover { color: var(--dark); border-color: var(--white); }

.btn-outline-dark { border: 2px solid rgba(11, 11, 11, 0.35); color: var(--dark); }
.btn-outline-dark::before { background: var(--dark); }
.btn-outline-dark:hover { color: var(--accent); border-color: var(--dark); }

/* ---------- 5. Header & navigation ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 11, 11, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: height 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.header.scrolled {
  height: var(--header-h-shrunk);
  background: rgba(11, 11, 11, 0.96);
  border-bottom-color: var(--dark-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* logo lockup (text + bolt, matches brand mark) */
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1;
}

.logo-bolt {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--accent-glow));
  transition: transform 0.3s var(--ease);
}

.logo:hover .logo-bolt { transform: rotate(-8deg) scale(1.08); }

/* header logo: transparent horizontal lockup */
.logo-full {
  height: 66px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s var(--ease), transform 0.3s var(--ease);
}

.header.scrolled .logo-full { height: 52px; }

.logo:hover .logo-full { transform: scale(1.04); }

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.logo-text strong {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--silver);
}

.logo-text span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}

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

.nav-list { display: flex; gap: 1.9rem; }

.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
  padding: 0.4rem 0;
  transition: color 0.25s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--blue) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.3rem;
  border: 2px solid var(--accent);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s;
}

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

.nav-cta:hover {
  background: var(--accent);
  color: var(--dark);
  box-shadow: 0 6px 22px var(--accent-glow);
}

/* burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  z-index: 110;
}

.burger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  background: rgba(11, 11, 11, 0.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.mobile-overlay.open { opacity: 1; visibility: visible; }

.mobile-overlay a:not(.btn) {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.25s;
}

.mobile-overlay a:not(.btn):hover, .mobile-overlay a.active { color: var(--accent); }

.mobile-overlay .btn {
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.mobile-overlay.open a { opacity: 1; transform: none; }
.mobile-overlay.open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-overlay.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-overlay.open a:nth-child(3) { transition-delay: 0.22s; }
.mobile-overlay.open a:nth-child(4) { transition-delay: 0.29s; }

body.nav-locked { overflow: hidden; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  background: var(--dark);
  padding: calc(var(--header-h) + clamp(3.5rem, 8vw, 6.5rem)) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}

/* circuit-line backdrop */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 30% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 30% 20%, #000 30%, transparent 75%);
}

.hero::after {
  content: "";
  position: absolute;
  top: -25%;
  right: -12%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.09) 0%, transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--dark-border);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.6rem;
}

.hero-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

.hero h1 { color: var(--white); margin-bottom: 1.4rem; }

/* staggered word reveal */
.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero h1 .word span {
  display: inline-block;
  transform: translateY(110%);
  animation: word-up 0.7s var(--ease) forwards;
}

.hero h1 .word:nth-child(2) span { animation-delay: 0.08s; }
.hero h1 .word:nth-child(3) span { animation-delay: 0.16s; }
.hero h1 .word:nth-child(4) span { animation-delay: 0.24s; }
.hero h1 .word:nth-child(5) span { animation-delay: 0.32s; }

.hero-sub {
  color: var(--text-on-dark);
  font-size: 1.12rem;
  max-width: 50ch;
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 0.4s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.2rem;
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 0.55s forwards;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 2.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--dark-border);
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 0.7s forwards;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--silver);
}

.hero-trust-item svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 12%;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.13) 0%, transparent 65%);
  filter: blur(10px);
}

/* brand lockup (SVG mark + wordmark) */
.brand-lockup {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
}

.hero-visual .brand-lockup { animation: hero-float 7s ease-in-out infinite; }

.brand-lockup img {
  width: min(56vw, 270px);
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 34px rgba(255, 212, 0, 0.18));
}

.brand-lockup-name {
  display: grid;
  gap: 0.5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
}

.brand-lockup-name strong {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--silver);
}

.brand-lockup-name span {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--accent);
}

.brand-lockup-name em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-on-dark);
}

/* hero photo frame */
.hero-photo {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--dark-border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 60px rgba(255, 212, 0, 0.08);
  animation: hero-float 7s ease-in-out infinite;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% center; /* keep the electrician in frame in the tall crop */
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 11, 0.82) 0%, rgba(11, 11, 11, 0.12) 42%, transparent 65%);
}

.hero-photo-badge {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  background: rgba(19, 19, 21, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
}

.hero-photo-badge img {
  width: 48px;
  height: 48px;
  flex: none;
  object-fit: contain;
}

.hero-photo-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}

.hero-photo-badge span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

/* accent corner bracket behind the photo */
.hero-visual .hero-photo-wrap { position: relative; }

.hero-visual .hero-photo-wrap::before {
  content: "";
  position: absolute;
  top: -16px;
  right: -16px;
  width: 45%;
  height: 45%;
  border-top: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  border-radius: 0 var(--radius-lg) 0 0;
}

.hero-visual .hero-photo-wrap::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 45%;
  height: 45%;
  border-bottom: 3px solid var(--blue);
  border-left: 3px solid var(--blue);
  border-radius: 0 0 0 var(--radius-lg);
  opacity: 0.75;
}

/* ---------- 7. Trust ticker ---------- */
.ticker {
  background: var(--accent);
  overflow: hidden;
  padding: 0.95rem 0;
  border-block: 3px solid var(--dark);
}

.ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-item {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  white-space: nowrap;
}

.ticker-item svg { width: 15px; height: 15px; flex: none; }

/* ---------- 8. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.about-visual {
  position: relative;
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 80%);
}

.about-visual .brand-lockup { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(4rem, 7vw, 5.5rem); }
.about-visual .brand-lockup img { width: min(48%, 210px); }

/* photo collage (about) */
.about-photos { position: relative; padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.about-photos .photo-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}

.about-photos .photo-main img,
.about-photos .photo-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.about-photos:hover .photo-main img { transform: scale(1.04); }

.about-photos .photo-sub {
  position: absolute;
  right: clamp(-0.5rem, -1vw, -1.5rem);
  bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-md);
}

.about-photos .about-badge {
  right: auto;
  left: clamp(-0.4rem, -1vw, -1.2rem);
  bottom: clamp(2rem, 4vw, 3rem);
  z-index: 2;
}

.about-badge {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  background: var(--accent);
  color: var(--dark);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transform: rotate(-2deg);
}

.about-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.about-badge span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-content h2 { margin-bottom: 1.3rem; }

.about-content p + p { margin-top: 1rem; }

.about-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 2rem;
  margin-top: 2.2rem;
}

.about-feature { display: flex; gap: 0.9rem; align-items: flex-start; }

.about-feature svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--accent-deep);
  margin-top: 2px;
}

.about-feature:nth-child(even) svg { color: var(--blue); }

.about-feature strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.about-feature span { font-size: 0.88rem; color: var(--text-light); }

/* ---------- 9. Services ---------- */
.services { background: var(--paper); }

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem 1.7rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

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

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

.service-card.featured {
  grid-row: span 2;
  background: var(--dark);
  border-color: var(--dark);
  justify-content: flex-start;
}

.service-card.featured h3 { color: var(--white); font-size: clamp(1.6rem, 2.5vw, 2rem); }
.service-card.featured p { color: var(--text-on-dark); flex: none; }
.service-card.featured .service-icon { background: var(--accent); color: var(--dark); }

.featured-list {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--dark-border);
  display: grid;
  gap: 0.7rem;
}

.featured-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--silver);
}

.featured-list svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

.service-card.wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 1.6rem;
  padding: 1.7rem 1.8rem;
}

.service-card.wide .service-icon { margin-bottom: 0; }
.service-card.wide h3 { margin-bottom: 0.3rem; }
.service-card.wide .service-link { margin-top: 0; margin-left: auto; flex: none; }
.service-card.wide .wide-body { flex: 1; }

.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: rgba(255, 212, 0, 0.14);
  border-radius: var(--radius);
  color: var(--accent-deep);
  margin-bottom: 1.3rem;
  transition: transform 0.35s var(--ease);
}

.service-icon svg { width: 27px; height: 27px; }

.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.08); }

/* alternate cards pick up the logo's blue */
.service-card:nth-child(3) .service-icon,
.service-card:nth-child(5) .service-icon {
  background: rgba(47, 139, 255, 0.13);
  color: var(--blue);
}

.service-card:nth-child(3)::before,
.service-card:nth-child(5)::before { background: var(--blue); }

.service-card h3 { margin-bottom: 0.6rem; }

.service-card p { font-size: 0.94rem; color: var(--text-light); flex: 1; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.3rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.25s;
}

.service-card.featured .service-link { color: var(--accent); margin-top: auto; padding-top: 1.3rem; }

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

.service-link:hover { color: var(--accent-deep); }
.service-link:hover svg { transform: translateX(4px); }

/* ---------- 10. Process ---------- */
.process { background: var(--dark); position: relative; overflow: hidden; }

.process::before {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -40%;
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.07) 0%, transparent 60%);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  counter-reset: step;
}

.process-step {
  position: relative;
  background: var(--dark-2);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}

.process-step:hover { transform: translateY(-6px); border-color: rgba(255, 212, 0, 0.4); }

.process-step:nth-child(2)::before { -webkit-text-stroke-color: var(--blue); }
.process-step:nth-child(2):hover { border-color: rgba(47, 139, 255, 0.45); }

.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  margin-bottom: 1.1rem;
}

.process-step h3 { color: var(--white); margin-bottom: 0.5rem; }

.process-step p { font-size: 0.93rem; color: var(--text-on-dark); }

/* ---------- 11. Stats ---------- */
.stats {
  background: var(--accent);
  border-block: 3px solid var(--dark);
  padding: clamp(2.8rem, 6vw, 4rem) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--dark);
}

.stat-label {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11, 11, 11, 0.72);
}

/* ---------- 11b. Work gallery ---------- */
.work-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.work-card:hover img { transform: scale(1.06); }

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 11, 0.85) 0%, rgba(11, 11, 11, 0.1) 45%, transparent 62%);
  transition: opacity 0.4s;
}

.work-card-label {
  position: absolute;
  left: 1.3rem;
  right: 1.3rem;
  bottom: 1.2rem;
  z-index: 1;
}

.work-card-label strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.05;
}

.work-card-label span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-card-label span::before {
  content: "";
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--blue) 100%);
}

.work-card.tall { grid-row: span 1; }

/* ---------- 12. Testimonials ---------- */
.testimonials-header { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.testimonials-header .section-tag { justify-content: center; }
.testimonials-header .section-tag::before { display: none; }

.testimonial-carousel {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.testimonial {
  position: absolute;
  inset: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  opacity: 0;
  transform: translateX(28px);
  visibility: hidden;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
  box-shadow: var(--shadow-sm);
}

.testimonial.active {
  position: relative;
  opacity: 1;
  transform: none;
  visibility: visible;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  color: var(--accent-deep);
  margin-bottom: 1.3rem;
}

.testimonial-stars svg { width: 20px; height: 20px; }

.testimonial-text {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  max-width: 54ch;
  margin: 0 auto;
}

.testimonial-author {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.testimonial-author span { color: var(--text-light); font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; text-transform: none; letter-spacing: 0; }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 1.8rem;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
}

.carousel-arrow svg { width: 18px; height: 18px; }

.carousel-arrow:hover { background: var(--dark); color: var(--accent); border-color: var(--dark); }
.carousel-arrow:active { transform: scale(0.92); }

.carousel-dots { display: flex; gap: 0.55rem; }

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 100px;
  background: var(--line);
  transition: background 0.3s, width 0.3s var(--ease);
}

.carousel-dot.active { background: var(--accent-deep); width: 26px; }

/* ---------- 13. Service area ---------- */
.area { background: var(--dark); position: relative; overflow: hidden; }

.area::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 90% at 80% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 50%, #000 20%, transparent 75%);
}

.area-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.2rem;
  background: var(--dark-2);
  border: 1px solid var(--dark-border);
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--silver);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}

.area-chip svg { width: 15px; height: 15px; color: var(--blue); flex: none; }

.area-chip:hover { border-color: var(--blue); color: var(--white); transform: translateY(-3px); box-shadow: 0 6px 18px var(--blue-glow); }

/* ---------- 14. CTA banner ---------- */
.cta-banner {
  position: relative;
  background: var(--accent);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  clip-path: polygon(0 clamp(12px, 2.5vw, 34px), 100% 0, 100% calc(100% - clamp(12px, 2.5vw, 34px)), 0 100%);
  margin-block: -1px;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.cta-banner h2 { color: var(--dark); }

.cta-banner p {
  margin-top: 0.8rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(11, 11, 11, 0.75);
}

.cta-banner-buttons { display: flex; flex-wrap: wrap; gap: 1rem; flex: none; }

/* ---------- 15. Contact / forms ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }

.contact-list { display: grid; gap: 1.5rem; margin-top: 2.2rem; }

.contact-list li { display: flex; gap: 1.1rem; align-items: flex-start; }

.contact-icon {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(255, 212, 0, 0.14);
  border-radius: var(--radius);
  color: var(--accent-deep);
}

.contact-icon svg { width: 22px; height: 22px; }

.contact-list strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.contact-list a, .contact-list li > div > span { font-size: 1.02rem; font-weight: 700; color: var(--text); }
.contact-list a { transition: color 0.25s; }
.contact-list a:hover { color: var(--accent-deep); }

/* form card */
.form-card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--blue) 100%);
}

.form-card h3 { color: var(--white); margin-bottom: 0.4rem; }

.form-card > p { font-size: 0.92rem; color: var(--text-on-dark); margin-bottom: 1.8rem; }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }

.form-field { position: relative; margin-bottom: 1.1rem; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 1.15rem 1rem 0.55rem;
  background: var(--dark-2);
  border: 1.5px solid var(--dark-border);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: none;
  -webkit-appearance: none;
}

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

.form-field select { cursor: pointer; }

.form-field select option { background: var(--dark-2); color: var(--white); }

.form-field-select::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 1.3rem;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--silver);
  border-bottom: 2px solid var(--silver);
  transform: rotate(45deg);
  pointer-events: none;
}

.form-field label {
  position: absolute;
  left: 1rem;
  top: 0.95rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-on-dark);
  pointer-events: none;
  transition: transform 0.22s var(--ease), color 0.22s;
  transform-origin: left top;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.15);
}

.form-field input:focus ~ label,
.form-field input:not(:placeholder-shown) ~ label,
.form-field textarea:focus ~ label,
.form-field textarea:not(:placeholder-shown) ~ label,
.form-field select:focus ~ label,
.form-field select.has-value ~ label {
  transform: translateY(-0.55rem) scale(0.74);
  color: var(--accent);
}

.form-field.error input,
.form-field.error select,
.form-field.error textarea { border-color: var(--error); }

.form-field.valid input,
.form-field.valid select,
.form-field.valid textarea { border-color: var(--success); }

.form-field-msg {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--error);
  margin-top: 0.3rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s, transform 0.25s;
}

.form-field.error .form-field-msg { opacity: 1; transform: none; }

.form-submit { width: 100%; margin-top: 0.4rem; }

.form-submit.loading { pointer-events: none; opacity: 0.75; }

.form-submit.loading svg { display: none; }

.form-submit.loading::after {
  content: "";
  width: 17px;
  height: 17px;
  border: 2.5px solid rgba(11, 11, 11, 0.3);
  border-top-color: var(--dark);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-on-dark);
}

.form-success svg { width: 54px; height: 54px; color: var(--accent); margin: 0 auto 1.2rem; }

.form-success strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.form-card.sent form, .form-card.sent > p { display: none; }
.form-card.sent .form-success { display: block; animation: fade-up 0.5s var(--ease); }

/* ---------- 16. Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background: var(--dark);
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(2.8rem, 6vw, 4.5rem);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 20%, transparent 80%);
}

.page-hero .container { position: relative; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: 1.2rem;
}

.breadcrumb a { color: var(--accent); transition: color 0.25s; }
.breadcrumb a:hover { color: var(--white); }

.breadcrumb svg { width: 12px; height: 12px; }

.page-hero h1 { color: var(--white); font-size: clamp(2.6rem, 7vw, 4.5rem); }

.page-hero p { margin-top: 1.2rem; color: var(--text-on-dark); font-size: 1.08rem; max-width: 58ch; }

/* ---------- 17. Service detail (services.html) ---------- */
.service-nav {
  position: sticky;
  top: var(--header-h-shrunk);
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.service-nav::-webkit-scrollbar { display: none; }

.service-nav-track {
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem 0;
  width: max-content;
  min-width: 100%;
}

.service-nav-link {
  padding: 0.5rem 1.05rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}

.service-nav-link:hover { color: var(--text); background: var(--paper); }
.service-nav-link.active { background: var(--dark); color: var(--accent); }

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  scroll-margin-top: 140px;
}

.service-detail + .service-detail { border-top: 1px solid var(--line); }

.service-detail.flip .service-detail-visual { order: 2; }

.service-detail-visual {
  position: relative;
  background: var(--dark);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.service-detail-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 75%);
}

.service-detail-visual svg {
  position: relative;
  width: clamp(80px, 12vw, 120px);
  height: clamp(80px, 12vw, 120px);
  color: var(--accent);
  filter: drop-shadow(0 0 30px var(--accent-glow));
}

/* photo variant */
.service-detail-visual.has-photo::before { display: none; }

.service-detail-visual.has-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.service-detail-visual.has-photo:hover img { transform: scale(1.05); }

.service-detail-visual.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 11, 0.55) 0%, transparent 45%);
}

.service-detail-visual.has-photo .visual-num {
  z-index: 1;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.service-detail-visual .visual-num {
  position: absolute;
  top: 1.2rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.35);
}

.service-detail h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin-bottom: 1rem; }

.service-detail-list { display: grid; gap: 0.75rem; margin-top: 1.6rem; }

.service-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
}

.service-detail-list svg { width: 18px; height: 18px; color: var(--accent-deep); flex: none; margin-top: 3px; }

.service-detail .btn { margin-top: 1.8rem; }

/* ---------- 18. FAQ ---------- */
.faq { background: var(--paper); }

.faq-list { max-width: 780px; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; display: grid; gap: 0.8rem; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item.open { border-color: var(--accent); box-shadow: var(--shadow-sm); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
}

.faq-q-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
}

.faq-q-icon::before, .faq-q-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--accent-deep);
  transition: transform 0.35s var(--ease);
}

.faq-q-icon::before { width: 14px; height: 2.5px; }
.faq-q-icon::after { width: 2.5px; height: 14px; }

.faq-item.open .faq-q-icon::after { transform: rotate(90deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq-a > div { overflow: hidden; }

.faq-item.open .faq-a { grid-template-rows: 1fr; }

.faq-a p {
  padding: 0 1.4rem 1.3rem;
  font-size: 0.94rem;
  color: var(--text-light);
  max-width: none;
}

/* ---------- 19. Contact page ---------- */
.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.hours-card {
  margin-top: 2.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}

.hours-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }

.hours-table { width: 100%; border-collapse: collapse; }

.hours-table td {
  padding: 0.55rem 0;
  font-size: 0.94rem;
  border-bottom: 1px solid var(--line);
}

.hours-table tr:last-child td { border-bottom: 0; }

.hours-table td:first-child { font-weight: 800; }
.hours-table td:last-child { text-align: right; color: var(--text-light); font-weight: 600; }

.map-wrap {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  filter: grayscale(0.85) contrast(1.05);
  transition: filter 0.4s;
}

.map-wrap:hover { filter: none; }

.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- 20. 404 ---------- */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--dark);
  padding: 6rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.error-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 50%, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 15%, transparent 75%);
}

.error-inner { position: relative; }

.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 12rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}

.error-page h1 { color: var(--white); font-size: clamp(1.8rem, 5vw, 2.8rem); margin-top: 0.5rem; }

.error-page p { color: var(--text-on-dark); margin: 1rem auto 2rem; }

/* ---------- 21. Footer ---------- */
.footer { background: var(--dark); color: var(--text-on-dark); padding: clamp(3.5rem, 7vw, 5.5rem) 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--dark-border);
}

.footer-brand .logo { margin-bottom: 1.2rem; }

.footer-logo-full {
  display: block;
  width: min(100%, 250px);
  height: auto;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.footer-brand p { font-size: 0.92rem; max-width: 34ch; }

.footer h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.footer-list { display: grid; gap: 0.65rem; }

.footer-list a {
  font-size: 0.93rem;
  transition: color 0.25s, padding-left 0.25s var(--ease);
}

.footer-list a:hover { color: var(--accent); padding-left: 6px; }

/* social icons */
.social-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--dark-border);
  border-radius: 50%;
  color: var(--silver);
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s, transform 0.25s var(--ease), box-shadow 0.3s;
}

.social-link svg { width: 19px; height: 19px; }

.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

.social-link:nth-child(even):hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 20px var(--blue-glow);
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.93rem;
  margin-bottom: 0.9rem;
}

.footer-contact-item svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 4px; }

.footer-contact-item a { transition: color 0.25s; }
.footer-contact-item a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.4rem 0;
  font-size: 0.82rem;
}

.footer-license {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--silver);
}

.footer-license svg { width: 14px; height: 14px; color: var(--accent); }

.footer-bottom a { color: var(--silver); font-weight: 700; transition: color 0.25s; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- 22. Utility widgets ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 200;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--blue) 100%);
  box-shadow: 0 0 12px var(--accent-glow);
}

.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--dark);
  border: 1.5px solid var(--dark-border);
  border-radius: 50%;
  color: var(--accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, background 0.25s;
}

.back-to-top svg { width: 20px; height: 20px; }

.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }

.back-to-top:hover { background: var(--accent); color: var(--dark); border-color: var(--accent); }

/* mobile sticky call bar */
.mobile-call-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 95;
  display: none;
  background: var(--accent);
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.22);
}

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

/* ---------- 23. Animations ---------- */
.reveal, .reveal-stagger > * {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in, .reveal-stagger.in > * { opacity: 1; transform: none; }

.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.36s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.48s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.6s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.72s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.84s; }

@keyframes word-up { to { transform: translateY(0); } }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

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

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

/* ---------- 24. Media queries ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card.featured { grid-row: auto; grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .service-card.wide { flex-direction: column; align-items: flex-start; }
  .service-card.wide .service-link { margin-left: 0; margin-top: 1rem; }

  .nav { display: none; }
  .burger { display: flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .hero-photo { width: 100%; aspect-ratio: 16 / 11; }
  .brand-lockup img { width: min(40vw, 190px); }

  .work-gallery { grid-template-columns: 1fr; }
  .work-card { aspect-ratio: 16 / 10; }

  .about-photos .photo-sub { right: 0; }

  .about-grid, .area-grid, .contact-grid, .contact-page-grid { grid-template-columns: 1fr; }

  .service-detail { grid-template-columns: 1fr; gap: 1.8rem; }
  .service-detail.flip .service-detail-visual { order: 0; }
  .service-detail-visual { aspect-ratio: 16 / 9; }
  .service-detail { scroll-margin-top: 120px; }

  .services-header { flex-direction: column; align-items: flex-start; }

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

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

  .cta-banner-inner { flex-direction: column; align-items: flex-start; }

  .mobile-call-bar { display: flex; }
  body { padding-bottom: 56px; }
  .back-to-top { bottom: 4.6rem; }
}

@media (max-width: 480px) {
  :root { --header-h: 72px; --header-h-shrunk: 60px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: auto; }

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

  .about-features { grid-template-columns: 1fr; }

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

  .footer-bottom { justify-content: center; text-align: center; }

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