/* ==========================================================================
   CW Smart Alloys — main stylesheet
   Brand: electric blue / black / brushed silver (from logo)
   ========================================================================== */

:root {
  --blue: #1759e8;
  --blue-bright: #2f7bff;
  --blue-deep: #0a36a8;
  --black: #06070a;
  --black-soft: #0b0d12;
  --panel: #11141b;
  --panel-2: #161a23;
  --line: rgba(255, 255, 255, 0.08);
  --silver: #c9cdd6;
  --text: #eef0f4;
  --muted: #9aa1ae;
  --metal: linear-gradient(165deg, #f4f6f9 0%, #b9bfc9 38%, #7d8494 55%, #e6e9ee 78%, #9aa1ae 100%);
  --radius: 18px;
  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* land anchor jumps below the floating navbar (nav height + its 14px offset + breathing room) */
  scroll-padding-top: calc(var(--nav-h) + 26px);
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* page fade transitions — body starts hidden only when JS is active (html.js,
   set by the inline head script). main.js positions at any #anchor while the
   page is invisible, then adds .page-ready. The delayed animation is a safety
   net: the page always becomes visible even if main.js fails to load. */
html.js body {
  opacity: 0;
  transition: opacity 0.35s ease;
  animation: pageForceIn 0s linear 1.4s forwards;
}
html.js body.page-ready,
html.js body.page-leaving { animation: none; }
html.js body.page-ready { opacity: 1; }
html.js body.page-leaving { opacity: 0; }
@keyframes pageForceIn { to { opacity: 1; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.container-narrow { width: min(820px, 92%); margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; font-weight: 700; }

.accent { color: var(--blue-bright); }
.pt-0 { padding-top: 0 !important; }
.break-word { word-break: break-word; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.78rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue) 55%, var(--blue-bright));
  color: #fff;
  box-shadow: 0 8px 24px rgba(23, 89, 232, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(47, 123, 255, 0.5);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
  transform: translateY(-2px);
}
.btn-ghost:hover svg { transform: translateX(4px); }
.btn-ghost svg { transition: transform 0.25s ease; }

.btn-lg { padding: 1rem 2.1rem; font-size: 1.02rem; }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   Navbar — floating pill, Ridge style
   ========================================================================== */
.nav-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: padding 0.3s ease;
}

.nav {
  width: min(1220px, 94%);
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.4rem 0 1.6rem;
  border-radius: 999px;
  background: rgba(8, 9, 13, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav-wrap.scrolled .nav {
  background: rgba(8, 9, 13, 0.88);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

/* Logo — images/logo.png in both navbar and footer */
.logo { display: flex; align-items: center; line-height: 1; }
.logo-img {
  height: 46px;
  width: auto;
  display: block;
}
.footer-brand .logo-img { height: 60px; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a:not(.btn) {
  font-size: clamp(1.05rem, 0.9rem + 0.3vw, 1.3rem);
  font-weight: 500;
  color: var(--silver);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.25s ease;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue-bright);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: #fff; }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta-mobile { display: none; }

.nav-right { display: flex; align-items: center; gap: 1.1rem; }
.nav-phone {
  display: flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-head);
  font-weight: 600; font-size: clamp(0.95rem, 0.85rem + 0.25vw, 1.15rem);
  color: var(--silver);
  transition: color 0.25s ease;
}
.nav-phone svg { width: 17px; height: 17px; color: var(--blue-bright); }
.nav-phone:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;  /* fallback for browsers without svh support */
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 0 110px;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }

.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(23, 89, 232, 0.06), transparent 50%),
    linear-gradient(180deg, rgba(6, 7, 10, 0.45) 0%, rgba(6, 7, 10, 0.26) 45%, rgba(6, 7, 10, 0.85) 100%);
}

/* keep text readable over the lighter overlay */
.hero-title, .hero-eyebrow, .hero-sub {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 2px 26px rgba(0, 0, 0, 0.6);
}
.hero .hero-sub { color: #d6dae2; }

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1.4rem;
  text-decoration: underline;
  text-underline-offset: 0.5em;
  text-decoration-thickness: 1px;
}
.hero .hero-eyebrow { color: #fff; }

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 2.4rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* rotating circular badge */
.hero-badge {
  position: absolute;
  right: 7%;
  bottom: 12%;
  width: 130px; height: 130px;
  display: grid;
  place-items: center;
}
.badge-spin {
  position: absolute; inset: 0;
  animation: spin 16s linear infinite;
}
.badge-spin text {
  font-family: var(--font-head);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 2.4px;
  fill: var(--silver);
}
.badge-icon {
  width: 46px; height: 46px;
  color: var(--blue-bright);
  background: rgba(23, 89, 232, 0.12);
  border: 1px solid rgba(47, 123, 255, 0.35);
  border-radius: 50%;
  padding: 9px;
  animation: spin 28s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-scroll {
  position: absolute;
  bottom: 86px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
}
.hero-scroll span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--blue-bright);
  border-radius: 2px;
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
}

/* ==========================================================================
   Marquee strip
   ========================================================================== */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--black-soft);
  padding: 1.05rem 0;
}
/* pinned inside the hero so it's part of the landing view;
   js/main.js fades it out once the hero is scrolled past */
.hero .marquee {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(6, 7, 10, 0.55);
  border-bottom: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.4s ease;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  white-space: nowrap;
}
.marquee-track i { color: var(--blue); font-size: 0.7rem; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 110px 0; }
/* anchor targets land with their heading near the navbar, not their padding */
#services, #process, #work, #reviews { scroll-margin-top: -58px; }
.section-dark {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(23, 89, 232, 0.10), transparent 50%),
    var(--black-soft);
  border-block: 1px solid var(--line);
}

.section-head { text-align: center; margin-bottom: 4rem; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 0.9rem; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.section-head.row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  flex-wrap: wrap;
}
.section-head.row p { margin: 0; }

/* ==========================================================================
   Services grid — Ridge style: icon, title, copy, arrow
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.service-card {
  position: relative;
  padding: 0.5rem 2rem 3.2rem 0;
  border-left: 1px solid var(--line);
  padding-left: 2rem;
  transition: transform 0.3s ease;
}
.service-card:first-child { border-left: 0; padding-left: 0; }
.service-card:hover { transform: translateY(-6px); }

.service-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  color: var(--blue-bright);
  background: rgba(23, 89, 232, 0.10);
  border: 1px solid rgba(47, 123, 255, 0.25);
  border-radius: 14px;
  margin-bottom: 1.6rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon {
  background: rgba(23, 89, 232, 0.22);
  box-shadow: 0 0 30px rgba(47, 123, 255, 0.25);
}

.service-card h3 { font-size: 1.18rem; margin-bottom: 0.8rem; }
.service-card p { color: var(--muted); font-size: 0.94rem; margin-bottom: 1.6rem; }

.service-link {
  position: absolute;
  bottom: 0; left: 2rem;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--silver);
  transition: all 0.3s ease;
}
.service-card:first-child .service-link { left: 0; }
.service-link svg { width: 17px; height: 17px; }
.service-link:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateX(5px);
}

/* ==========================================================================
   Split / stats
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.split-text h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 1.1rem; }
.split-text > p { color: var(--muted); margin-bottom: 1.6rem; }

.check-list { margin-bottom: 2.2rem; display: grid; gap: 0.7rem; }
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--silver);
  font-size: 0.97rem;
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 0;
  color: var(--blue-bright);
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.stat:hover { border-color: rgba(47, 123, 255, 0.4); transform: translateY(-4px); }
.stat-num, .stat-plus {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff, var(--blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat p { color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }

/* ==========================================================================
   Process
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}
.process-step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.process-step:hover { transform: translateY(-6px); border-color: rgba(47, 123, 255, 0.4); }
.process-step::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.process-step:hover::after { transform: scaleX(1); }

.step-num {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(47, 123, 255, 0.55);
  display: block;
  margin-bottom: 1rem;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 0.7rem; }
.process-step p { color: var(--muted); font-size: 0.92rem; }

/* ==========================================================================
   Work grid (homepage gallery preview)
   ========================================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.work-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
}
.work-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}
.work-item:hover img { transform: scale(1.07); filter: brightness(1.08); }
.work-tag {
  position: absolute;
  left: 0.9rem; bottom: 0.9rem; right: 0.9rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(6, 7, 10, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  text-align: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.work-item:hover .work-tag { background: rgba(23, 89, 232, 0.85); border-color: transparent; }

/* ==========================================================================
   Mobile unit / van band
   ========================================================================== */
.van-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.van-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: transform 0.6s ease;
}
.van-photo:hover img { transform: scale(1.04); }

/* ==========================================================================
   Areas covered
   ========================================================================== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.area-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.area-card:hover { transform: translateY(-5px); border-color: rgba(47, 123, 255, 0.4); }
.area-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.area-card h3 svg { width: 20px; height: 20px; color: var(--blue-bright); flex-shrink: 0; }
.area-towns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.area-towns li {
  font-size: 0.82rem;
  color: var(--silver);
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.area-card:hover .area-towns li { border-color: rgba(47, 123, 255, 0.3); }
.areas-note {
  text-align: center;
  margin-top: 2.6rem;
  color: var(--muted);
}
.areas-note a { color: var(--blue-bright); }
.areas-note a:hover { text-decoration: underline; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  min-height: 240px;
}
.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.testimonial.active { opacity: 1; transform: none; pointer-events: auto; }
.stars { color: var(--blue-bright); letter-spacing: 0.3em; font-size: 1.1rem; margin-bottom: 1.3rem; }
.testimonial blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.testimonial cite { color: var(--muted); font-style: normal; font-size: 0.95rem; }

.testimonial-dots {
  position: absolute;
  bottom: -2.6rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 0.6rem;
}
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.dot.active { background: var(--blue-bright); transform: scale(1.3); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  padding: 110px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(23, 89, 232, 0.35), transparent 60%),
    var(--black-soft);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.cta-inner h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 0.9rem; }
.cta-inner p { color: var(--muted); margin-bottom: 2.2rem; }

/* ==========================================================================
   Page hero (gallery / contact)
   ========================================================================== */
.page-hero {
  padding: calc(var(--nav-h) + 70px) 0 70px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(23, 89, 232, 0.22), transparent 55%),
    var(--black);
}
.page-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

/* ==========================================================================
   Gallery page
   ========================================================================== */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-btn {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--silver);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover { border-color: rgba(47, 123, 255, 0.5); color: #fff; }
.filter-btn.active {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue-bright));
  border-color: transparent;
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.gallery-item.hide { display: none; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.1rem 1rem;
  font-size: 0.88rem;
  color: var(--text);
  background: linear-gradient(180deg, transparent, rgba(6, 7, 10, 0.92));
  transform: translateY(30%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.gallery-item:hover figcaption { transform: none; opacity: 1; }
.badge-cat {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
  margin-right: 0.5rem;
}
.gallery-note { text-align: center; margin-top: 2.6rem; color: var(--muted); }
.gallery-note a { color: var(--blue-bright); }
.gallery-note a:hover { text-decoration: underline; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(4, 5, 8, 0.92);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 4vh 4vw;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90vw;
  max-height: 78vh;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.lightbox p { margin-top: 1rem; color: var(--silver); text-align: center; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  font-size: 2.2rem;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.contact-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.contact-card:hover { transform: translateY(-5px); border-color: rgba(47, 123, 255, 0.45); }
.contact-card h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.contact-card p { color: var(--text); font-size: 0.92rem; font-weight: 500; }
.contact-hint { display: block; margin-top: 0.5rem; color: var(--muted); font-size: 0.82rem; }
.contact-card .service-icon { margin-bottom: 1.2rem; }

.form-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.form-intro h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.form-intro > p { color: var(--muted); margin-bottom: 1.6rem; }

.hours-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
}
.hours-box h4 { margin-bottom: 0.6rem; font-size: 1rem; color: var(--blue-bright); }
.hours-box p { color: var(--silver); font-size: 0.93rem; }

.quote-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 2.4rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--silver);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.18);
}
.form-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.4rem; }
.form-note a { color: var(--blue-bright); }
.form-success {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: rgba(23, 200, 120, 0.1);
  border: 1px solid rgba(23, 200, 120, 0.35);
  color: #7be3b3;
  font-size: 0.92rem;
}
.form-success a { color: #aef0d0; text-decoration: underline; }
.form-error {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: rgba(232, 70, 70, 0.1);
  border: 1px solid rgba(232, 70, 70, 0.4);
  color: #f2a7a7;
  font-size: 0.92rem;
}
.form-error a { color: #ffd0d0; text-decoration: underline; }
.quote-form button[disabled] { opacity: 0.65; cursor: progress; }
/* spam honeypot — kept out of view and out of the tab order */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; overflow: hidden;
}

/* Legal pages (privacy policy) */
.legal-content h2 {
  font-size: 1.25rem;
  margin: 2.4rem 0 0.8rem;
  color: var(--text);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--muted); margin-bottom: 1rem; }
.legal-content a { color: var(--blue-bright); }
.legal-content a:hover { text-decoration: underline; }

.footer-bottom p a {
  color: var(--blue-bright);
  font-weight: 600;
}
.footer-bottom p a:hover { text-decoration: underline; }

/* FAQ */
.faq { display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item[open] { border-color: rgba(47, 123, 255, 0.4); }
.faq-item summary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 1.25rem 1.6rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--blue-bright);
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 1.6rem 1.4rem; color: var(--muted); font-size: 0.95rem; }

/* ==========================================================================
   Footer — with giant watermark like Ridge
   ========================================================================== */
.footer {
  position: relative;
  background: var(--black);
  border-top: 1px solid var(--line);
  padding: 90px 0 30px;
  overflow: hidden;
}
.footer-watermark {
  position: absolute;
  bottom: -0.32em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(14rem, 38vw, 30rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}
.footer-brand .logo { margin-bottom: 1.1rem; }
.footer-tagline {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blue-bright);
  margin-bottom: 0.5rem;
}
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 280px; }

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a, .footer-contact li {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.25s ease;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.footer-col a:hover { color: var(--blue-bright); }

.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.back-top { color: var(--silver); transition: color 0.25s ease; }
.back-top:hover { color: var(--blue-bright); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  html.js body { opacity: 1 !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 0; }
  .service-card:nth-child(odd) { border-left: 0; padding-left: 0; }
  .service-card:nth-child(odd) .service-link { left: 0; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .nav-phone span { display: none; }
}

@media (max-width: 880px) {
  .section { padding: 80px 0; }

  /* mobile nav */
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    top: calc(var(--nav-h) + 24px);
    left: 3%;
    right: 3%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8, 9, 13, 0.97);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 0.8rem;
    backdrop-filter: blur(18px);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links li a:not(.btn) { display: block; padding: 0.9rem 1.1rem; font-size: 1.02rem; border-radius: 12px; }
  .nav-links li a:not(.btn):hover { background: rgba(255, 255, 255, 0.05); }
  .nav-links a::after { display: none; }
  .nav-cta-mobile { display: block; margin-top: 0.6rem; }
  .nav-cta-mobile .btn { width: 100%; justify-content: center; }

  /* What We Do: boxed single-column cards on mobile */
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card,
  .service-card:nth-child(odd),
  .service-card:first-child {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem 1.5rem 4.4rem;
  }
  .service-card p { margin-bottom: 0; }
  .service-card .service-link,
  .service-card:first-child .service-link { left: 1.5rem; bottom: 1.4rem; }

  .split { grid-template-columns: 1fr; gap: 3rem; }
  .form-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero-badge { display: none; }
  .hero-scroll { display: none; } /* decorative; avoids overlapping the hero CTAs on phones */
  .section-head.row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .stat { padding: 1.5rem 1.2rem; }
  .stat-num, .stat-plus { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .quote-form { padding: 1.6rem; }
  .btn-lg { padding: 0.9rem 1.6rem; font-size: 0.95rem; }
  .hero { padding-bottom: 90px; }
  .hero-sub { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .testimonials { min-height: 320px; }
}
