/* =========================================================
   services.css  —  dark, card-based layout for service pages
   Load AFTER styles.css
   ========================================================= */

/* Theme tokens (can tweak anytime) */
:root{
    --bg: #0b0f14;
    --bg-elev: #0f141b;
    --panel: #0f1720;
    --panel-2: #0e151d;
    --text: #e6edf3;
    --muted: #a6b3c2;
    --line: #1e2937;
  
    --brand: #55c1ff;       /* blue */
    --brand-2: #6ee7b7;     /* mint */
    --brand-3: #7dd3fc;     /* light blue accent */
  
    --radius: 18px;
    --radius-lg: 22px;
    --shadow-s: 0 6px 20px rgba(0,0,0,.25);
    --shadow:   0 16px 40px rgba(0,0,0,.35);
  
    --speed: .25s;
  }
  
  /* Base reset tweaks for this theme */
  body{ background: var(--bg); color: var(--text); }
  .section{ padding: 80px 0; }
  .section.alt{ background: var(--bg-elev); }
  
  /* ---------- Section headers (centered, crisp) ---------- */
  .section-head{
    text-align:center;
    margin: 0 auto 36px;
    max-width: 760px;
  }
  .section-head h2{
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: .2px;
    margin: 0 0 6px;
  }
  .section-head p{
    color: var(--muted);
    margin: 0;
  }
  
  /* ---------- Hero with dark overlay ---------- */
  .hero.service-hero{ position: relative; overflow: clip; }
  .hero.service-hero .hero-bg{
    position:absolute; inset:0; width:100%; height:100%;
    object-fit: cover; filter: saturate(1.05) contrast(1.02) brightness(.75);
  }
  .hero.service-hero::before{
    content:""; position:absolute; inset:0;
    background:
      radial-gradient(1200px 400px at 50% 0%, rgba(12,18,25,.65), transparent 60%),
      linear-gradient(180deg, rgba(11,15,20,.75), rgba(11,15,20,.85));
    pointer-events:none;
  }
  .hero.service-hero .hero-inner{
    position: relative;
    padding: 110px 0 80px;
  }
  .hero.service-hero h1{
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 8px;
  }
  .hero.service-hero .lead{
    color: var(--muted);
  }
  
  /* === Gallery (single source of truth) === */
.grid.gallery{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
@media (max-width:980px){ .grid.gallery{ grid-template-columns:1fr; } }

.shot{
  position:relative; display:block; overflow:hidden;
  border-radius:18px; border:1px solid var(--line);
  background:#0d131b; box-shadow:0 10px 30px rgba(0,0,0,.15);
  transition:transform .2s ease, box-shadow .2s ease;
  aspect-ratio: 16 / 10;                /* taller than 16/9 so tops don't get cut */
}
.shot:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }

/* IMG-based tiles */
.shot img{
  display:block; width:100%; height:100%;
  object-fit: cover;                     /* fill the box */
  object-position: center 20%;           /* bias crop upward a bit */
  transition: transform .6s ease;
}
.shot.focus-top img{ object-position: center 10%; }   /* optional per-tile control */
.shot.focus-center img{ object-position: 50% 50%; }
.shot.focus-bottom img{ object-position: center 80%; }
.shot:hover img{ transform: scale(1.05); }

/* BG-based tiles (no <img>) */
.shot.bg-tile{ background-size: cover; background-position: center 20%; }
.shot.bg-tile.focus-top{ background-position: center 10%; }
.shot.bg-tile.focus-bottom{ background-position: center 80%; }

  /* ---------- Cards (services & generic) ---------- */
  .grid{ display:grid; gap: 22px; }
  .cards{ grid-template-columns: repeat(4, minmax(0,1fr)); }
  @media (max-width:1100px){ .cards{ grid-template-columns: repeat(2,1fr); } }
  @media (max-width:640px){ .cards{ grid-template-columns: 1fr; } }
  
  .card{
    position: relative;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--panel), #fff 3%), var(--panel-2));
    border-radius: var(--radius-lg);
    border: 1px solid color-mix(in srgb, var(--line), #000 20%);
    box-shadow: var(--shadow-s);
    padding: 22px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    transition: transform var(--speed) ease, box-shadow var(--speed) ease, border-color var(--speed) ease;
  }
  .card:hover{
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--brand), var(--line) 60%);
  }
  .card h3{ margin: 6px 0 8px; }
  .card p{ color: var(--muted); }
  
  /* Bullet list style with brand dots */
  .bullet{ list-style:none; margin: 10px 0 0; padding: 0; color: var(--muted); }
  .bullet li{ position: relative; padding-left: 18px; margin: 6px 0; }
  .bullet li::before{
    content:""; position:absolute; left:0; top:.65em;
    width: 8px; height: 8px; border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
  }
  
  /* Micro link arrow */
  .link.micro{ color: var(--brand-3); }
  .link.micro::after{ content: "↗"; margin-left: .35rem; transition: transform .2s ease; }
  .link.micro:hover::after{ transform: translate(.1rem,-.1rem); }
  
  /* ---------- Pricing / Plans ---------- */
  .plans{ grid-template-columns: repeat(3, minmax(0,1fr)); align-items: stretch; }
  @media (max-width:980px){ .plans{ grid-template-columns: 1fr; } }
  
  .plan{
    position: relative;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--panel), #fff 2%), var(--panel-2));
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--line), #000 20%);
    box-shadow: var(--shadow-s);
    padding: 26px;
    display: grid;
    gap: 12px;
    align-content: start;
  }
  .plan .price{
    font-size: 2rem;
    margin: 0;
  }
  .plan .price span{ font-size:.9rem; color: var(--muted); }
  .plan ul{ margin: 8px 0 16px; padding-left: 18px; color: var(--muted); }
  .plan.featured{
    outline: 2px solid color-mix(in srgb, var(--brand), #000 20%);
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
  }
  .badge{
    position:absolute; right:16px; top:16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #001018; font-weight: 600;
    padding: .28rem .6rem; border-radius: 999px; font-size: .75rem;
  }
  
  /* ---------- Buttons (rounded, lively) ---------- */
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
    padding: 12px 18px; border-radius: 14px;
    border:1px solid color-mix(in srgb, var(--line), #000 15%);
    background: linear-gradient(180deg, color-mix(in srgb, var(--panel), #fff 2%), var(--panel));
    color: var(--text);
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  }
  .btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow-s); }
  .btn:active{ transform: translateY(0); }
  .btn-primary{
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #001018; border-color: transparent;
  }
  .btn-outline{
    background: transparent;
    border-color: color-mix(in srgb, var(--brand), var(--line) 70%);
    color: var(--brand);
  }
  
  /* Magnetic (from app.js) — adds subtle halo */
  .btn.magnetic{ position:relative; overflow:hidden; }
  .btn.magnetic::after{
    content:""; position:absolute; left: var(--haloLeft, -100px); top: var(--haloTop, -100px);
    width: 90px; height: 90px; border-radius: 999px;
    background: color-mix(in srgb, var(--brand), transparent 80%);
    transform: translate(-50%,-50%) scale(var(--haloScale, 0));
    transition: transform .25s ease;
    pointer-events:none;
  }
  
  /* ---------- FAQ accordions ---------- */
  .faq-item{
    background: linear-gradient(180deg, color-mix(in srgb, var(--panel), #fff 2%), var(--panel-2));
    border:1px solid color-mix(in srgb, var(--line), #000 20%);
    border-radius: var(--radius);
    padding: 18px;
    max-width: 820px;
    margin: 12px auto;
  }
  .faq-item > summary{ cursor:pointer; font-weight: 600; }
  .faq-item[open]{ outline: 1px solid color-mix(in srgb, var(--brand), #000 20%); }
  

  /* ---------- Footer tidy ---------- */
  .site-footer{ background: var(--bg-elev); border-top: 1px solid var(--line); }
  
  /* ---------- Motion preferences ---------- */
  @media (prefers-reduced-motion: reduce){
    *{ animation: none !important; transition: none !important; }
  }
  /* === Pro skin additions === */

/* Gradient headline accent */
.h-accent {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
  
  /* Glass cards + spotlight hover */
  .card {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--panel), #fff 6%), var(--panel-2));
    border: 1px solid color-mix(in srgb, var(--line), #000 5%);
    position: relative; overflow: hidden;
  }
  .card::after{
    content:""; position:absolute; inset:-40% -40% auto auto;
    width:60%; height:200%; transform:rotate(25deg);
    background: radial-gradient(40% 60% at 30% 50%, color-mix(in srgb,var(--brand-3), transparent 75%), transparent 70%);
    opacity: 0; transition: opacity .3s ease, transform .3s ease; pointer-events:none;
  }
  .card:hover::after{ opacity:.8; transform:rotate(22deg); }
  
  /* Spotlight cursor for any .spotlight container */
  .spotlight { position: relative; overflow: hidden; }
  .spotlight::before{
    content:""; position:absolute; width:280px; height:280px; border-radius:50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-3), transparent 75%), transparent 80%);
    left:var(--sx, -1000px); top:var(--sy, -1000px); filter: blur(18px);
    opacity:.0; transition: opacity .2s ease; pointer-events:none;
  }
  .spotlight:hover::before{ opacity:.6; }
  
  /* Sticky service sub‑nav */
  .service-subnav{
    position: sticky; top:64px; z-index:35;
    background: color-mix(in srgb, var(--bg-elev), transparent 10%);
    backdrop-filter: blur(8px) saturate(140%);
    border-bottom:1px solid var(--line);
  }
  .service-subnav .container{
    display:flex; gap:10px; align-items:center; overflow:auto; padding:10px 0;
  }
  .service-subnav a{
    padding:10px 14px; border-radius:999px; color:var(--muted);
    border:1px solid transparent; white-space:nowrap;
  }
  .service-subnav a.is-active,
  .service-subnav a:hover{
    color:var(--text);
    border-color: color-mix(in srgb, var(--brand), var(--line) 70%);
    background: linear-gradient(180deg, color-mix(in srgb,var(--panel),transparent 60%), transparent);
  }
  
  /* Stats band */
  .stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
  .stat{
    background: linear-gradient(180deg, color-mix(in srgb, var(--panel), #fff 4%), var(--panel-2));
    border:1px solid color-mix(in srgb, var(--line), #000 15%);
    border-radius:16px; padding:18px; text-align:center;
  }
  .stat .num{ font-size: clamp(1.6rem,3vw,2.2rem); font-weight:800; letter-spacing:.2px; }
  .stat .label{ color:var(--muted) }
  @media (max-width:900px){ .stats{ grid-template-columns:repeat(2,1fr);} }
  @media (max-width:560px){ .stats{ grid-template-columns:1fr;} }
  
  /* Testimonial */
  .testimonial{
    max-width:860px; margin:0 auto; text-align:center;
    background: linear-gradient(180deg, color-mix(in srgb, var(--panel), #fff 3%), var(--panel-2));
    border:1px solid color-mix(in srgb, var(--line), #000 15%);
    border-radius:22px; padding:28px;
    box-shadow: var(--shadow-s);
  }
  .testimonial .who{ color:var(--muted); margin-top:8px }
  
  /* Section dividers */
  .divider{
    height:80px; color:var(--bg-elev);
  }
  .divider svg{ display:block; width:100%; height:100%; }
  /* Remove secondary sub‑nav across service pages */
.service-subnav{ display:none !important; }
/* Compact service heroes */
.hero.service-hero .hero-inner{
    padding: 56px 0 40px;   /* was ~110/80 */
  }
  @media (min-width: 900px){
    .hero.service-hero .hero-inner{
      padding: 22px 0 48px; /* desktop */
    }
  }
  .hero.service-hero .lead{ max-width: 700px; }
  .hero.service-hero .cta-row{ margin-top: 8px; }
  .glow-hover {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .glow-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 18px rgba(0, 221, 255, 0.45),
                0 0 36px rgba(0, 255, 170, 0.25);
  }
/* Gradient titles everywhere in section headers */
.section-head h1,
.section-head h2 {
  --grad: linear-gradient(135deg, var(--brand), var(--brand-2));
  background-image: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent; /* required for Safari/Chrome */
}