/* Patch v4:
   - Remove Quick Text card in hero
   - Make hero content span full width and carousel wider
   NOTE: This file is intended to overwrite your existing assets/css/site.css
*/

:root{
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;

  --blue: #0093FE;
  --orange: #FE8600;

  --radius: 16px;
  --shadow: 0 10px 28px rgba(2, 6, 23, .10);
  --shadowBtn: 0 10px 18px rgba(2, 6, 23, .12);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  /* Safety net: prevent any accidental horizontal scrolling on mobile */
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
.container{ width:min(1100px, 92vw); margin:0 auto; }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  gap: 16px;
  padding: 12px 0;
}

.brand{ display:flex; align-items:center; }
.brand-logo{
  height: 56px;
  width:auto;
  display:block;
}

.nav{
  margin-left:auto;
  display:flex;
  gap: 14px;
}

.nav a{
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
}
.nav a:hover{
  background: var(--surface-2);
  color: var(--text);
}

.header-cta{ margin-left: 6px; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  transition: transform .10s ease, filter .15s ease, box-shadow .15s ease;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }
.btn:hover{ filter: brightness(1.10); }

.btn-primary{
  background: var(--blue);
  border-color: rgba(0,147,254,.35);
  color: #ffffff;
}
.btn-accent{
  background: var(--orange);
  border-color: rgba(254,134,0,.40);
  color: #ffffff;
}
.btn-secondary{
  background: transparent;
  border-color: #cbd5e1;
  color: var(--text);
}
.btn-block{ width: 100%; }

/* Hero */
.hero{ padding: 40px 0 34px; }

.hero-inner{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  align-items:start;
}

/* Single hero image card (replaces carousel) */
.hero-feature{
  margin: 14px 0 12px;
  border-radius: var(--radius);
  /* Single container edge: rely on shadow only to avoid
     corner anti-alias artifacts on some screens/browsers. */
  border: none;
  box-shadow: 0 14px 34px rgba(2, 6, 23, .14);
  overflow-y: hidden;
  /* Placeholder "image" (swap later for a real background image) */
  background:
    radial-gradient(1200px 240px at 20% 15%, rgba(0,147,254,.35), transparent 60%),
    radial-gradient(900px 220px at 85% 20%, rgba(254,134,0,.30), transparent 55%),
    linear-gradient(180deg, #eaf3ff 0%, #ffffff 65%);
  min-height: 190px;
  position: relative;
}

.hero-feature--wide{ width: 100%; }

.hero-feature-overlay{
  position:absolute;
  inset: 0;
  display:flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.92) 100%);
}

.hero-feature-kicker{
  font-weight: 700;
  color: #0b2a4b;
  opacity: .92;
  letter-spacing: .2px;
  font-size: 14px;
}

.hero-feature-title{
  font-weight: 850;
  font-size: clamp(20px, 3.2vw, 28px);
  margin-top: 6px;
}

.hero-feature-sub{
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
}

/* Hero photo wrap (positions mobile dots) */
.hero-photo-wrap{
  position: relative;
}

/* Photo strip (hero) — one container (card), swipe on mobile, 3-up on desktop */
.hero-photo-strip{
  margin: 14px 0 12px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pinch-zoom;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */

  /* This is the “one card” wrapper */
  border-radius: var(--radius);
  /* Single container edge: rely on shadow only to avoid
     corner anti-alias artifacts on some screens/browsers. */
  border: none;
  box-shadow: 0 14px 34px rgba(2, 6, 23, .14);
  /* keep vertical clipped without killing horizontal scroll */
  overflow-y: hidden;
  background: #0b0f14; /* fallback behind images */
}

.hero-photo-strip::-webkit-scrollbar{
  display: none;
}

.hero-photo{
  flex: 0 0 100%;
  /* ~50% taller (was 230px) */
  min-height: 345px;
  position: relative;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  scroll-snap-align: start;

  /* remove per-photo card styling */
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Mobile dots (swipe hint) */
.hero-photo-dots{
  /* Below the strip (not over the photos) */
  position: static;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  padding: 6px 0;
  min-height: 18px; /* ensures row is visible even before JS fills it */
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  user-select: none;
}

.hero-photo-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, .45);
  padding: 0;
  background: rgba(17, 24, 39, .08);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hero-photo-dot.is-active{
  background: #111827; /* near-black, matches body text vibe */
}

@media (min-width: 920px){
  .hero-photo-dots{ display: none; }
}

/* subtle divider between images (works in swipe + desktop) */
.hero-photo + .hero-photo{
  border-left: 1px solid rgba(255,255,255,.08);
}

/* Mobile overlay text */
.hero-photo-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%);
}

.hero-photo-title{
  font-weight: 850;
  font-size: 20px;
  letter-spacing: .2px;
}

.hero-photo-sub{
  margin-top: 4px;
  font-weight: 650;
  opacity: .95;
}

/* Desktop: show all three side-by-side, hide overlay text */
@media (min-width: 920px){
  .hero-photo-strip{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
  }

  .hero-photo{
    /* ~50% taller (was 240px) */
    min-height: 360px;
  }

  .hero-photo-overlay{
    display: none;
  }
}


/* New: single-column hero variant */
.hero-inner--single{
  grid-template-columns: 1fr;
}

.hero-copy--wide{
  max-width: none;
  width: 100%;
}

.hero h1{
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  margin: 0 0 12px;
}

.lead{
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 16px;
}

.tiny{ color: var(--muted); font-size: .9rem; }

/* Sections / cards */
.section{ padding: 48px 0; }
.section.alt{
  background: linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.75), rgba(255,255,255,.0));
  border-top: 1px solid rgba(226,232,240,.9);
  border-bottom: 1px solid rgba(226,232,240,.9);
}
.section h2{ margin: 0 0 10px; font-size: 1.9rem; }
.section-subtitle{ margin: 0 0 18px; color: var(--muted); }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.card h3{ margin: 0 0 10px; font-size: 1.1rem; }
.card p{ margin: 0; }
.card ul{ margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.card li{ margin: 6px 0; }

.muted{ color: var(--muted); }

.contact-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

/* Carousel */
.hero-carousel{ margin: 14px 0 12px; }

/* New: wider carousel variant */
.hero-carousel--wide .carousel{
  width: 100%;
}

.carousel{
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.carousel-track{
  display:flex;
  transition: transform .35s ease;
  will-change: transform;
}

.carousel-slide{
  min-width: 100%;
  padding: 18px;
}

.carousel-placeholder{
  border-radius: 14px;
  padding: 22px;
  background:
    radial-gradient(800px 220px at 20% 30%, rgba(0,147,254,.18), transparent 55%),
    radial-gradient(700px 220px at 80% 55%, rgba(254,134,0,.14), transparent 55%),
    var(--surface-2);
  border: 1px dashed rgba(148,163,184,.55);
  min-height: 170px;
}

.carousel-kicker{
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--muted);
  margin-bottom: 6px;
}

.carousel-title{
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.carousel-sub{
  color: var(--muted);
  font-size: .95rem;
}

.carousel-btn{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 22px;
  line-height: 1;
}
.carousel-btn.prev{ left: 10px; }
.carousel-btn.next{ right: 10px; }

.carousel-dots{
  display:flex;
  gap: 8px;
  justify-content:center;
  padding: 10px 0 12px;
  background: rgba(255,255,255,.86);
  border-top: 1px solid var(--border);
}

.carousel-dot{
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: rgba(15,23,42,.20);
  border: 1px solid rgba(15,23,42,.10);
  cursor: pointer;
}
.carousel-dot.is-active{
  background: var(--blue);
  border-color: rgba(0,147,254,.35);
}

/* Center/Peek carousel */
:root{
  --carousel-gap: 16px;
  --carousel-slide-w: 78%;
}

@media (max-width: 900px){
  :root{ --carousel-slide-w: 92%; }
}

.carousel-track{
  gap: var(--carousel-gap);
  padding: 0 12px; /* allows peeking without touching edges */
}

.carousel-slide{
  min-width: var(--carousel-slide-w);
  padding: 18px;
  transition: transform .25s ease, opacity .25s ease;
  opacity: .78;
  transform: scale(.94);
}

.carousel-slide.is-active{
  opacity: 1;
  transform: scale(1);
}

.carousel{
  overflow: hidden;
}

.carousel-btn{
  /* keep buttons above slides */
  z-index: 5;
}

.carousel-dots{
  /* keep as-is but ensure always full width */
  width: 100%;
}


/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: var(--muted);
  background: rgba(255,255,255,.8);
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

/* Mobile nav (unchanged) */
.nav-toggle{
  display:none;
  margin-left:auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor:pointer;
  transition: filter .15s ease, box-shadow .15s ease;
}
.nav-toggle:hover{ filter: brightness(0.98); box-shadow: var(--shadowBtn); }

.nav-toggle-bars{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(15,23,42,.85);
  position: relative;
  margin: 0 auto;
  border-radius: 99px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: rgba(15,23,42,.85);
  border-radius: 99px;
}
.nav-toggle-bars::before{ top: -6px; }
.nav-toggle-bars::after{ top: 6px; }

.mobile-nav-wrap{ padding: 0 0 12px; }
.mobile-nav{
  display:flex;
  flex-direction:column;
  gap: 6px;
  padding: 10px 0 0;
}
.mobile-nav a{
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}


/* Mobile menu overlay (does NOT push page content) */
@media (max-width: 820px){
  /* make the wrapper full-screen overlay under the sticky header */
  .mobile-nav-wrap{
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-offset);
    bottom: 0;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 12px;
    background: rgba(15,23,42,.18);
    backdrop-filter: blur(2px);
    z-index: 40;
  }

  /* panel */
  .mobile-nav{
    margin-left: auto;
    width: min(320px, 92vw);
    background: rgba(255,255,255,.96);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  /* lock background scroll when open */
  body.menu-open{
    overflow: hidden;
    touch-action: none;
  }
}
.mobile-nav a:hover{ filter: brightness(0.98); box-shadow: var(--shadowBtn); }

@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .two-col{ grid-template-columns: 1fr; }

  .nav{ display:none; }
  .nav-toggle{ display:block; }
  .header-cta{ margin-left: 0; }
}


/* Anchor scroll offset (sticky header) */





/* Reviews: ensure spacing between text and button */
#reviews .card .review-intro{
  margin: 0 0 14px !important;
}
#reviews .card p:first-of-type{
  margin: 0 0 14px !important;
}
#reviews .review-cta{
  margin-top: 14px !important;
  margin-bottom: 10px;
}

/* Reviews: featured quotes (carousel track) */
#reviews .featured-reviews{
  display: flex;
  gap: 14px;
  margin: 0;
  will-change: scroll-position;
}

/* Reviews carousel wrapper (arrows live on the card background) */
#reviews .reviews-carousel{
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

#reviews .reviews-arrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: transform .12s ease, color .12s ease, opacity .12s ease;
}

#reviews .reviews-arrow:hover{
  transform: translateY(-1px);
  color: var(--text);
}

#reviews .reviews-arrow:disabled{
  opacity: .45;
  cursor: default;
  transform: none;
}

#reviews .reviews-arrow i{
  font-size: 20px;
}

/* Viewport is scrollable so mobile can swipe. */
#reviews .reviews-viewport{
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  margin-top: 10px;
}

#reviews .reviews-viewport::-webkit-scrollbar{ display:none; }

/* One card at a time on mobile */
#reviews .reviews-carousel .review-quote{
  flex: 0 0 100%;
  scroll-snap-align: start;
}

@media (min-width: 900px){
  #reviews .reviews-carousel{
    gap: 14px;
  }

  #reviews .reviews-viewport{
    margin-top: 10px;
  }

  /* Each tile becomes half the viewport width (two-up) */
  #reviews .reviews-carousel .review-quote{
    flex: 0 0 calc((100% - 14px) / 2);
  }
}

#reviews .review-quote{
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}

#reviews .review-quote p{
  margin: 0;
  color: var(--text);
}

#reviews .review-name{
  margin-top: 10px;
  font-weight: 700;
  color: var(--muted);
}

#reviews .review-stars{
  display: inline-flex;
  gap: 3px;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 0.95em;
}


/* Tighten space between Hero carousel and Services */
#hero{
  padding-bottom: 24px !important;
  margin-bottom: 0 !important;
}
#services{
  padding-top: 32px !important;
}


/* Make carousel placeholder cards fill the taller carousel */
.carousel-track{
  align-items: stretch;
}
.carousel-slide{
  display: flex;
  align-items: stretch;
}
.carousel-placeholder{
  flex: 1;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 900px){
  .carousel-placeholder{ min-height: 200px; }
}

/* Mobile header fixes (no horizontal scroll) */
@media (max-width: 820px){
  .header-cta{ display:none !important; }
  .brand-logo{ height: 34px; width: auto; }
  .header-inner{ gap: 10px; }
}

/* Hamburger: remove border/outline box look */
.nav-toggle{
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Prevent accidental horizontal scroll */
html, body{
  overflow-x: hidden;
}

/* Anchor offset notes:
   We use a fixed header + body padding-top to keep content below the header.
   That means we should NOT also apply global scroll-padding/scroll-margin offsets,
   or anchor jumps will land too low (extra blank space above the section).
*/
:root{
  --header-offset: 60px; /* fallback, JS will update */
}

/* Default (mobile-first) */
section[id]{
  scroll-margin-top: 40px;
}

/* Desktop / larger screens */
@media (min-width: 900px){
  section[id]{
    scroll-margin-top: 60px; /* bump up until it feels perfect */
  }
}



/* Mobile-only bottom call section (desktop uses header CTA) */
.section-call-mobile{ display: none; }
@media (max-width: 820px){
  .section-call-mobile{ display: block; }
}
.call-card h2{ margin: 0 0 8px; }
.call-cta{ margin-top: 12px; }

/* About: single card layout */
#about .grid{
  grid-template-columns: 1fr !important;
}
#about .licenses{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e6ebf2;
}
#about h4{
  margin: 0 0 6px;
  font-size: 16px;
}

/* About section: single card + licenses block */
#about .two-col{
  grid-template-columns: 1fr;
}
#about .licenses{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e6ebf2;
}
#about h4{
  margin: 0 0 8px;
  font-size: 16px;
}


/* Nav icons (Font Awesome) */
.site-nav a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-nav a i{
  font-size: 0.95em;
  opacity: 0.9;
}


/* Global font (match NorCal Takedown) */
html, body{
  font-family: 'Figtree', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji','Segoe UI Emoji';
}


/* Nav icons: ensure spacing between icon and label */
.site-nav a{
  display: inline-flex;
  align-items: center;
}
.site-nav a i{
  margin-right: 6px;
  line-height: 1;
}
.site-nav a span{
  line-height: 1;
}




/* Mobile call card placement (after hero) */
@media (max-width: 820px){
  .section-call-mobile{ padding-top: 10px; }
}

/* Mobile carousel fit: prevent slide padding from causing horizontal overflow */
.carousel,
.carousel *{
  box-sizing: border-box;
}

.carousel-slide{
  width: 100%;
  min-width: 100%;
}

@media (max-width: 820px){
  .carousel-slide{ padding: 12px; }
  .carousel-placeholder{ padding: 16px; }
}


/* ---- FINAL MOBILE CAROUSEL FIX ---- */

.carousel {
  position: relative;
  overflow: hidden;          /* Critical: prevents side clipping */
  width: 100%;
  max-width: 100%;
}

.carousel-track {
  display: flex;
  width: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 820px) {

  .carousel {
    margin-left: 0;
    margin-right: 0;
  }

  .carousel-slide {
    padding: 12px;           /* Keep padding but prevent overflow */
  }

  .carousel-placeholder {
    width: 100%;
    max-width: 100%;
  }

}


/* ===== Patch: Sticky header + mobile menu overlay polish ===== */

/* Use fixed header for reliable stickiness across browsers */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1100;
}

/* Offset page content when fixed header is enabled */
body.has-sticky-header{
  padding-top: var(--header-offset);
}

/* Ensure anchor jumps feel natural with fixed header.
   Body padding-top already handles header overlap. */

/* Mobile menu overlay (no layout push) */
@media (max-width: 820px){
  /* Full-screen backdrop under header */
  .mobile-nav-wrap{
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-offset);
    bottom: 0;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 12px;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
  }

  /* Right-aligned menu panel (narrower) */
  .mobile-nav{
    margin-left: auto;
    width: min(240px, 76vw);
    background: rgba(255,255,255,.98);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  /* Links: no individual borders, cleaner rows */
  .mobile-nav a{
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-decoration: none;
  }
  .mobile-nav a:hover{
    background: var(--surface-2);
  }

  /* Lock background scroll when open */
  body.menu-open{
    overflow: hidden;
    touch-action: none;
  }
}

/* Keep desktop nav unchanged */
@media (min-width: 821px){
  .mobile-nav-wrap{ display:none !important; }
}
