:root {
  --accent:#0ea5e9; --bg:#0b1220; --card:#111827; --muted:#9ca3af;
  --ok:#22c55e; --warn:#f59e0b; --danger:#ef4444;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:#0b1220;color:#e5e7eb}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px;margin:0 auto;padding:24px}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;position:sticky;top:0;backdrop-filter:blur(8px);background:rgba(11,18,32,.7);z-index:50;border-bottom:1px solid rgba(255,255,255,.06)}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;letter-spacing:.2px}
.brand-logo{width:40px;height:40px;border-radius:12px;object-fit:cover;background:linear-gradient(135deg,#38bdf8,#0ea5e9);display:block}
.cta{display:inline-flex;align-items:center;gap:10px;background:var(--accent);color:#0b1220;padding:10px 16px;border-radius:12px;font-weight:700;border:0;cursor:pointer;box-shadow:0 10px 20px rgba(14,165,233,.2)}
.cta:hover{transform:translateY(-1px)}
.hero{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:center;padding:48px 0 24px}
.hero h1{font-size:clamp(28px,4vw,48px);line-height:1.05;margin:0 0 12px}
.hero p{color:var(--muted);margin:0 0 16px}
.pill{display:inline-flex;gap:8px;align-items:center;background:rgba(56,189,248,.12);color:#a5f3fc;border:1px solid rgba(56,189,248,.35);padding:6px 10px;border-radius:999px;font-size:12px;font-weight:600}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.card{background:var(--card);border:1px solid rgba(255,255,255,.06);border-radius:16px;padding:18px;box-shadow:0 10px 20px rgba(0,0,0,.25)}
.card h3{margin:0 0 6px;font-size:18px}
.badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:700;opacity:.9}
.badge.ok{background:rgba(34,197,94,.15);color:#86efac;border:1px solid rgba(34,197,94,.35)}
.badge.warn{background:rgba(245,158,11,.15);color:#fcd34d;border:1px solid rgba(245,158,11,.35)}
.ul{margin:10px 0 0 0;padding:0 0 0 16px;color:#d1d5db}
.section{padding:36px 0}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.list{margin:0;padding-left:18px;color:#cbd5e1}
.kpi{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.kpi .item{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);padding:16px;border-radius:14px;text-align:center}
.kpi .num{font-size:22px;font-weight:800}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.gallery div{background:#0f172a;aspect-ratio:4/3;border-radius:12px;border:1px dashed rgba(255,255,255,.1);display:grid;place-items:center;color:#94a3b8;font-size:14px}
.contact{background:linear-gradient(180deg,rgba(14,165,233,.12),rgba(14,165,233,0));border:1px solid rgba(14,165,233,.3);border-radius:16px;padding:18px}
.footer{color:#94a3b8;font-size:13px;padding:24px 0 40px}
input,textarea{width:100%;padding:12px 14px;background:#0b1220;color:#e5e7eb;border:1px solid rgba(255,255,255,.1);border-radius:10px}
label{font-size:14px;color:#cbd5e1}
.row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Right rail behavior */
#right-rail{max-width:560px;margin-left:auto;justify-self:end}
.togglebar{display:flex;justify-content:flex-end;gap:8px;margin-bottom:10px}
.panel[hidden]{display:none !important}

/* Responsive */
@media (max-width:980px){
  .hero{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr 1fr}
  .kpi{grid-template-columns:1fr 1fr}
  .gallery{grid-template-columns:1fr 1fr}
  .grid-2,.row{grid-template-columns:1fr}
  #right-rail{width:100%;justify-self:stretch}
}
@media (max-width:560px){
  .cards,.gallery{grid-template-columns:1fr}
}


.gallery{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap:12px;
}

.gallery picture,
.gallery img{
  display:block;
  width:100%;
  height:220px !important;   /* <= control the tile height */
  object-fit:cover;          /* crop to fit */
  object-position:center;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.06);
  background:#0f172a;
}

/* smaller height on phones */
@media (max-width:560px){
  .gallery picture,
  .gallery img{ height:180px !important; }
}


/* Deck container grid */
.decks{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap:16px;
}

/* One deck = overlapping “cards” */
.deck{
  --w: 260px;           /* card width */
  --h: 180px;           /* card height */
  --overlap: 28px;      /* horizontal fan spacing */
  position:relative;
  width:var(--w);
  height:calc(var(--h) + 20px);
  margin: 6px auto;     /* center the deck column cell */
}

.deck .card{
  position:absolute; top:0; left:0;
  width:var(--w); height:var(--h);
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  object-fit: cover; object-position:center;
  transform: translateX(calc(var(--i) * var(--overlap))) rotate(calc((var(--i) - 1) * 0.5deg));
  z-index: calc(10 + var(--i));
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  cursor: zoom-in;
  background:#0f172a;
}

/* Hover a card = lift it slightly above the stack */
.deck .card:hover{
  transform: translateX(calc(var(--i) * var(--overlap))) translateY(-6px) scale(1.02);
  box-shadow: 0 14px 36px rgba(0,0,0,.5);
  z-index: 999;
}

/* Small screens: smaller cards */
@media (max-width:560px){
  .deck{ --w: 210px; --h: 140px; --overlap: 22px; }
}

/* Allow clicks only on cards, not on the deck's invisible box */
.deck { pointer-events: none; }
.deck .card { pointer-events: auto; }

/* Make sure decks/cards can paint outside their grid cell */
.decks, .deck { overflow: visible; }

/* Lightbox */
.lb-backdrop{
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  display: none; align-items: center; justify-content: center;
  padding: 16px; z-index: 9999;
}
.lb-backdrop.open{ display: flex; }
.lb-card{
  background: #0b1220; border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; max-width: 90vw; max-height: 85vh; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lb-card img{ display:block; max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lb-close{
  position:absolute; top:10px; right:10px;
  background:#111827; color:#e5e7eb; border:1px solid rgba(255,255,255,.16);
  border-radius:10px; padding:6px 10px; cursor:pointer; font-weight:700;
}

/* force next items to start on a new grid row */
.decks .break { grid-column: 1 / -1; height: 0; }


/* ===== MOBILE CAROUSEL MODE (<=560px) ===== */
@media (max-width:560px){
  .deck{ 
    position:relative; overflow:hidden; width:100%;
    padding: 8px 0 22px; margin: 10px 0;
    pointer-events:auto;  /* allow taps */
    background: rgba(255,255,255,0.02);
    border:1px solid rgba(255,255,255,0.06);
    border-radius:16px;
  }
  .deck-track{ 
    display:flex; gap:10px; 
    transition: transform .28s ease; will-change: transform;
  }
  .deck .card{
    position:relative; transform:none !important; 
    width: 88vw; height: 58vw; flex: 0 0 88vw; 
    border-radius:14px; object-fit:cover;
  }
  /* Buttons */
  .deck .nav{ 
    position:absolute; inset:0; display:flex; 
    align-items:center; justify-content:space-between; 
    pointer-events:none; padding:0 6px;
  }
  .deck .nav button{
    pointer-events:auto; border:1px solid rgba(255,255,255,.2);
    background:#0b1220; color:#e5e7eb; border-radius:12px;
    width:36px; height:36px; font-weight:800;
    opacity:.85;
  }
  /* Dots */
  .deck .dots{ 
    position:absolute; left:50%; bottom:6px; 
    transform:translateX(-50%); display:flex; gap:6px;
  }
  .deck .dot{
    width:7px; height:7px; border-radius:50%;
    background:rgba(255,255,255,.25);
  }
  .deck .dot.active{ background:#0ea5e9; }
}

/* Keep the top navbar above everything */
.nav{
  position: sticky;      /* already there, but restate for clarity */
  top: 0;
  z-index: 1000;         /* raise above carousels */
  isolation: isolate;    /* create its own stacking context */
}

/* On mobile, ensure decks sit below the navbar */
@media (max-width:560px){
  .deck{ z-index: 1; position: relative; }
  .deck .nav, .deck .dots, .deck .card{ z-index: 1; }
}

.brand{ display:flex; align-items:center; gap:10px; min-width:0; }
.brand-logo{
  width:40px; height:40px; flex:0 0 40px;
  object-fit:contain; border-radius:12px; background:#0b1220; padding:2px;
}
.brand-text{ line-height:1.05; }
.brand-text strong{ display:block; }
.brand-sub{ color:#93c5fd; }

@media (max-width:560px){
  .brand-logo{ width:30px; height:30px; flex-basis:30px; }
  .brand-text strong{ font-size:15px; }
  .brand-sub{ font-size:12px; }
  .nav .cta{ padding:8px 12px; font-size:14px; border-radius:10px; }
}

.brand { text-decoration: none; color: inherit; display:flex; align-items:center; gap:10px; }

/* ===== Mobile typography tweaks (<=560px) ===== */
@media (max-width:560px){
  /* Navbar brand */
  .brand-text strong{ font-size:16px; line-height:1.1; }
  .brand-sub{ font-size:12px; }
  .brand-logo{ width:28px; height:28px; flex-basis:28px; }

  /* “Get a Quote” button in nav */
  .nav .cta{ padding:8px 12px; font-size:14px; border-radius:10px; }

  /* Section headings */
  h1{ font-size:24px; }
  h2{ font-size:18px; }
  h3{ font-size:16px; }

  /* Body copy and labels */
  body{ font-size:14px; }
  label, .brand-sub, .footer{ font-size:12px; }

  /* Cards & buttons inside panels */
  .card h3{ font-size:16px; }
  .cta:not(.nav .cta){ font-size:14px; padding:10px 14px; }
}

@media (max-width:560px){
  .deck .card{
    filter:none !important;
    -webkit-filter:none !important;
    backdrop-filter:none !important;
    transform:translateZ(0);
  }
}

/* Stop the carousel overlay from inheriting the navbar blur */
.deck .nav{
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: transparent !important;
  border: 0 !important; /* prevents any inherited border */
  box-shadow: none !important;
}


#right-rail {
  width: 100%;
}

.panel {
  width: 100%;
}


.footer .container {
  text-align: center;
}


/* ======================
   CAROUSEL
====================== */

/* .carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 40px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-img {
  min-width: 100%;
  height: 500px;
  object-fit: cover;
  cursor: pointer;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(14,165,233,0.8);
  border: none;
  color: white;
  font-size: 24px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 9999;
}

.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
} */

.coverflow-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.coverflow {
  position: relative;
  width: 100%;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  overflow: hidden;
}

.coverflow-img {
  position: absolute;
  width: 600px;
  height: 400px;
  object-fit: cover;
  border-radius: 14px;
  transition: all 0.5s ease;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

/* Blur non-active */
.coverflow-img:not(.active) {
  filter: blur(5px);
  opacity: 0.6;
}

/* Active image */
.coverflow-img.active {
  filter: blur(0);
  opacity: 1;
  cursor: pointer;
}

/* Buttons */
.cf-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(14,165,233,0.85);
  border: none;
  color: white;
  font-size: 28px;
  padding: 14px 18px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 200;
  transition: 0.2s ease;
}

.cf-btn:hover {
  background: rgba(14,165,233,1);
}

.cf-btn.prev {
  left: 40px;   /* INSIDE LEFT IMAGE */
}

.cf-btn.next {
  right: 40px;  /* INSIDE RIGHT IMAGE */
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 9999;
}

.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
