/* ============================================================
   Monochrome Website Template — site.css
   Base styles, nav states, hero components, responsive pass.
   Section-level layout lives inline in index.html (house style);
   this file owns everything stateful and responsive.
   ============================================================ */

:root { color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  /* Subtle two-stop gradient instead of a single flat dark fill — never flat. */
  background: linear-gradient(180deg, #0c0c0e 0%, #0a0a0b 100%);
  color: #eaeaec;
  font-family: 'Archivo', sans-serif;
  overflow-x: clip; /* never let anything cause sideways scroll */
}
a { color: inherit; text-decoration: none; }
button { font-family: 'Archivo', sans-serif; }
img { max-width: 100%; }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }
input::placeholder, textarea::placeholder { color: #5f5f6a; }
details[open] > summary .faq-plus { transform: rotate(45deg); }
.faq-plus { display: inline-block; transition: transform .18s ease; }

/* --- Gold accent -----------------------------------------------------------
   Light gold lifts the monochrome: headline key words, primary CTAs,
   small link accents. Use sparingly — silver/black stays the base. --- */
.gold { color: #F5C13C; }
.btn-gold {
  background: #F5C13C;
  color: #0b0b0c;
  transition: background .18s ease;
}
.btn-gold:hover { background: #FFD24E; }

/* --- Section rhythm ---------------------------------------------------------
   Contained sections with real air between them; alternating raised bands
   make it obvious where each section starts and ends. --- */
.container { max-width: 1460px; margin: 0 auto; padding: 0 48px; }
.sec-block { padding: 110px 0; }
.sec-band {
  background: #0e0d10;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 12px 'IBM Plex Mono', monospace;
  letter-spacing: 0.2em;
  color: #F5C13C;
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: #F5C13C; }

/* Service cards — separated, elevated, gold on hover */
.svc-card {
  background: #101013;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.svc-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 193, 60, 0.55);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}
.svc-card img { height: 210px; width: 100%; object-fit: cover; display: block; }

/* Work tiles — gapped, zoom on hover */
.work-tile { overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); }
.work-tile img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform .45s ease;
}
.work-tile:hover img { transform: scale(1.05); }

/* About photo — framed with an offset gold outline */
.about-frame { position: relative; }
.about-frame::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(245, 193, 60, 0.4);
  pointer-events: none;
}
.about-frame img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* --- Anti-banding noise overlay -------------------------------------------
   Large flat dark areas can trigger a faint diagonal dither hairline on some
   Windows display pipelines. A subtle full-page fractal-noise layer blended
   over everything breaks up the flat color so the pattern can't latch on. --- */
.noise-overlay {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: overlay;
}

/* ============================================================
   NAV — fixed; fully transparent at the top of the page,
   solid dark + hairline border + shadow once scrolled.
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.nav.is-scrolled {
  background: rgba(11, 11, 12, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
.nav-inner {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #c9c9ce;
  text-transform: uppercase;
  transition: color .18s ease;
}
.nav-links a:hover { color: #ffffff; }
.nav-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.nav-cta {
  background: #F5C13C;
  color: #0b0b0c;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 20px;
  transition: background .18s ease;
}
.nav-cta:hover { background: #FFD24E; }

.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}
.nav-mobile-panel {
  display: none;
  flex-direction: column;
  background: #0b0b0c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 24px 18px;
}
.nav-mobile-panel.is-open { display: flex; }
.nav-mobile-panel a {
  color: #c9c9ce;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-mobile-panel a:last-child { border-bottom: none; }
.nav-mobile-panel .nav-mobile-phone { color: #ffffff; font-family: 'IBM Plex Mono', monospace; text-transform: none; }
.nav-mobile-panel .nav-mobile-cta {
  margin-top: 10px;
  background: #F5C13C;
  color: #0b0b0c;
  font-weight: 700;
  text-align: center;
  border-bottom: none;
}

/* ============================================================
   HERO — fills the fold on every device.
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.hero-grid {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  padding: 108px 48px 56px; /* clears the 72px fixed nav */
  display: grid;
  grid-template-columns: 1.06fr 0.94fr; /* near-even split like Simple Cut — big form panel */
  gap: 56px;
  align-items: center;
}
.hero h1 {
  margin: 0 0 20px;
  font: 400 clamp(2.2rem, 3.4vw + 1.2rem, 4.1rem)/1.06 'Archivo Black', sans-serif;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* Key selling points in the hero — riveted gauge-porthole badges
   (assets/icons/badge-*.svg) with a mono serial under each label */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  max-width: 640px;
}
.hero-badges li { display: inline-flex; align-items: center; gap: 12px; }
.hero-badges img {
  height: 50px;
  width: 50px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}
.hb-lbl {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(243, 243, 246, 0.95);
  white-space: nowrap;
}

/* Google review card — solid white so it pops off the dark hero */
.google-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  padding: 14px 20px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.google-card .g-divider { height: 42px; width: 1px; background: rgba(11, 11, 12, 0.12); flex-shrink: 0; }
.google-card .g-rating { font-size: 19px; font-weight: 800; color: #DFA100; }
.google-card .g-sub { font-size: 13.5px; font-weight: 600; color: #5c5c64; }

/* Quote card — sits directly on the hero background, no wrapper panel.
   Sizing matches the Simple Cut / Tri State forms (p-8 card, py-3 inputs). */
.quote-card {
  background: #0e0e10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 36px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
/* Short laptop screens: compact the form so the hero still fits the fold */
@media (min-width: 901px) and (max-height: 840px) {
  .quote-card { padding: 26px 28px; }
  .quote-card h3 { font-size: 21px !important; }
  .quote-card input, .quote-card select, .quote-card textarea {
    padding: 11px 14px !important;
    font-size: 15px !important;
  }
  .quote-card form { gap: 12px !important; }
  .quote-card button[type="submit"] { padding: 14px !important; font-size: 15.5px !important; }
}

/* ============================================================
   FOOTER BRAND MARK — giant outlined "APEX" behind the footer.
   Dim at rest; a gold spotlight sweeps the letters wherever the
   cursor moves while hovering the footer (Alpine pattern).
   ============================================================ */
.brand-mark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  display: none; /* desktop-only decoration */
}
@media (min-width: 1024px) { .brand-mark { display: block; } }
.brand-mark svg { user-select: none; display: block; }
.brand-mark text {
  font-family: 'Archivo Black', sans-serif;
  fill: transparent;
}
.brand-mark .bm-base { opacity: 0.07; transition: opacity 0.5s ease; }
.brand-mark.is-hover .bm-base { opacity: 0.16; }
.brand-mark .bm-spot { opacity: 0; transition: opacity 0.3s ease; }
.brand-mark.is-hover .bm-spot { opacity: 1; }

/* ============================================================
   MOBILE STICKY CTA BAR — call + quote pills, phones only,
   revealed after the hero scrolls out of view.
   ============================================================ */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 0 14px calc(env(safe-area-inset-bottom, 0px) + 14px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.sticky-cta.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.sticky-cta-inner { display: flex; gap: 12px; max-width: 460px; margin: 0 auto; }
.sticky-cta-btn {
  flex: 1;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sticky-cta-btn svg { height: 18px; width: 18px; flex-shrink: 0; }
.sticky-cta-btn:active { transform: scale(0.97); }
.sticky-cta-call {
  background: #0b0b0c;
  color: #eaeaec;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}
.sticky-cta-quote {
  background: #F5C13C;
  color: #0b0b0c;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}
@media (min-width: 1024px) {
  .sticky-cta { display: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { gap: 40px; padding-left: 32px; padding-right: 32px; }
  .pad { padding-left: 32px !important; padding-right: 32px !important; }
  .container { padding: 0 32px; }
  .about-grid { gap: 48px !important; }
}

@media (max-width: 900px) {
  .nav-links, .nav-phone { display: none !important; }
  .hamburger-btn { display: flex !important; }
  .nav-inner { padding: 0 20px; height: 64px; }

  /* Hero stacks; the left column alone fills the first viewport so the
     headline, badges, CTAs and Google card all land above the fold —
     the quote form sits immediately below it. */
  .hero { min-height: 0; display: block; }
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 44px;
    padding: 0 20px 56px;
  }
  .hero-left {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 76px; /* clears the fixed nav */
  }
  .hero-left > p { font-size: 16px !important; }

  .svc-grid { grid-template-columns: 1fr 1fr !important; gap: 18px !important; }
  .work-grid { grid-template-columns: 1fr 1fr !important; gap: 14px !important; }
  .about-grid, .foot-grid, .faq-grid { grid-template-columns: 1fr !important; }
  .about-grid { gap: 40px !important; }
  .about-frame::before { display: none; } /* offset gold frame would overflow small screens */
  .faq-grid { gap: 36px !important; }
  .pad { padding-left: 20px !important; padding-right: 20px !important; }
  .container { padding: 0 20px; }
  .sec-block { padding: 72px 0; }
  .work-tile img { height: 220px; }

  /* Aurora: on phones the stacked footer makes the wrapper tall, which
     drops the ribbon band (canvas vertical center) into the footer AND
     stretches the ribbons into a broad wash (their thickness scales with
     canvas height). Fix both: a fixed desktop-like canvas height keeps
     the ribbons thin and silky, positioned so the band sits behind the
     CTA headline/buttons; the shader's own edge falloff fades it to the
     page black before the footer. Brightness/veil untouched. */
  .aurora-wrap { overflow: hidden; }
  .aurora-wrap silk-aurora { height: 900px !important; top: -140px !important; }

  /* Section headings scale with the viewport instead of fixed 40-46px */
  .sec-h2 { font-size: clamp(1.7rem, 5.6vw, 2.5rem) !important; }
}

@media (max-width: 600px) {
  /* Drop the nav CTA — it's in the hamburger menu; keeps the bar uncluttered */
  .nav-actions .nav-cta { display: none !important; }

  .svc-grid, .work-grid { grid-template-columns: 1fr !important; }

  .hero-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .hero-badges img { height: 42px; width: 42px; }
  .hero-badges li { gap: 9px; }
  .hb-lbl { white-space: normal; font-size: 12px; line-height: 1.3; }

  .hero-ctas a { flex: 1 1 100%; text-align: center; }

  /* Full-width card; let the subtitle wrap instead of forcing the layout
     wider than the viewport (flex items need min-width:0 to shrink). */
  .google-card { display: flex; width: 100%; gap: 12px; padding: 12px 16px; }
  .google-card > span:last-child { min-width: 0; flex: 1; }
  .google-card .g-logo { height: 32px !important; width: 32px !important; }
  .google-card .g-stars { height: 16px !important; width: 88px !important; }

  .quote-card { padding: 24px 20px; }
  .cta-buttons a { flex: 1 1 100%; text-align: center; }
}

@media (max-width: 400px) {
  .nav-inner { padding: 0 14px; }
  .pad, .hero-grid { padding-left: 14px !important; padding-right: 14px !important; }
}
