/* style.css
   Modern, deep-gray theme with electric-blue accents
   Shared stylesheet for index.html, offerings.html, products.html, contact.html, showcase.html
*/

/* ===============================
   Variables
   =============================== */
:root{
  --bg: #0b1220;
  --panel: #0f1724;
  --muted: #9ca3af;
  --text: #f8fafc;
  --accent: #3b82f6;
  --radius: 12px;
  --container: 1100px;
  --glass: rgba(255,255,255,0.03);
  --ease: cubic-bezier(.2,.9,.3,1);
  --shadow: 0 6px 20px rgba(2,6,23,0.6);
  --header-height: 3.5rem; /* height of your fixed header */

  /* Showcase grid variables */
  --image-gap: clamp(0.75rem, 2vw, 2rem);
  --image-buffer: clamp(1rem, 3vw, 2rem);
  --cell-min-small:  clamp(220px, 32vw, 360px);
}

* { box-sizing: border-box; }
html,body { height:100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  padding-top: calc(var(--header-height) + env(safe-area-inset-top));
}

/* ===============================
   Layout Helpers
   =============================== */
.container{
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  overflow-x: hidden; /* Prevent accidental overflow */
}

/* ===============================
   Header
   =============================== */
.site-header {
  position: fixed;
  top: env(safe-area-inset-top, 0);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(180deg, rgba(11,18,32,0.6), rgba(11,18,32,0.35));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding-top: max(0px, env(safe-area-inset-top));
}

.header-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 2rem;   /* restored vertical padding to match old size */
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;    /* restored font size */
}

/* === Mobile-scrollable nav (fix) === */
.nav{
  display:flex;
  gap:0.75rem;
  align-items:center;

  overflow-x: auto;                /* key: allow horizontal scroll */
  overflow-y: hidden;
  white-space: nowrap;             /* keep in one row */
  -webkit-overflow-scrolling: touch; /* iOS momentum */
  scroll-behavior: smooth;
  touch-action: pan-x;             /* better horizontal gesture */
  scrollbar-width: none;           /* Firefox hide scrollbar */
}
.nav::-webkit-scrollbar{ display:none; } /* WebKit hide scrollbar */

.nav-link{
  display: inline-block;           /* ensures nowrap behavior is respected */
  color:var(--muted);
  text-decoration:none;
  padding:0.65rem 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
  font-weight:500;
}
.nav-link:hover{ color:var(--text); border-color: rgba(59,130,246,0.12); }
.nav-link.active{ color:var(--text); border-color: var(--accent); }

/* ===============================
   Hero
   =============================== */
.hero{
  padding:6.5rem 0 4rem;
  background: linear-gradient(160deg, rgba(59,130,246,0.06), rgba(30,58,138,0.12)),
              radial-gradient(600px 300px at 10% 10%, rgba(59,130,246,0.07), transparent 20%),
              linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.hero-inner{ max-width:900px; margin:0 auto; text-align:left; padding:2rem 0; }
.hero-title{
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  margin:0 0 .6rem;
  font-weight:700;
  letter-spacing: -0.02em;
}
.hero-sub{
  margin:0 0 1.25rem;
  color: var(--muted);
  font-weight: 400;
}
.hero-ctas{ display:flex; gap:0.75rem; margin-top:1rem; align-items:center; flex-wrap:wrap; }

/* ===============================
   Buttons
   =============================== */
.btn{
  display:inline-block;
  text-decoration:none;
  font-weight:600;
  padding:0.6rem 1rem;
  border-radius:10px;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
  border:1px solid transparent;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: linear-gradient(90deg, var(--accent), #2563eb);
  color: white;
  box-shadow: 0 6px 18px rgba(59,130,246,0.12);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 28px rgba(59,130,246,0.14); }
.btn-ghost{
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.04);
}
.btn-outline{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
}

/* ===============================
   Overview Section
   =============================== */
.overview{ padding:3rem 0; }
.grid-2{
  display:grid;
  grid-template-columns: 1fr;
  gap:1.5rem;
}
@media(min-width:880px){
  .grid-2{
    grid-template-columns: 1fr 360px;
    align-items:start;
  }
}
@media(min-width:880px){
  .callout-inner.grid-2 > div:first-child {
    align-self: start; /* ✅ Forces the text block to stick to the top */
  }
}
.stat{
  background:var(--panel);
  padding:1rem;
  border-radius:10px;
  margin-bottom:0.75rem;
  box-shadow:var(--shadow);
}
.stats{ display:flex; gap:1rem; flex-direction:column; }
.stat-value{ font-size:1.2rem; font-weight:700; color:var(--text); }
.stat-label{ color:var(--muted); font-size:0.9rem; }

/* ===============================
   Centered Cards
   =============================== */
.cards-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  /* Products page buffer (option B-ready): can also scope via .page-products */
  /* padding-inline: clamp(1rem, 5vw, 1.5rem); */
}
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2rem 0 3rem;

  /* === Products buffer fix (Option A): always keep safe side gutters === */
  padding-inline: clamp(0.75rem, 4vw, 1.25rem);
}
.card {
  flex: 0 1 320px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(2,6,23,0.6);
  border: 1px solid rgba(255,255,255,0.03);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(2,6,23,0.7);
}
.card h3{
  margin:0 0 0.5rem;
    margin-top: 0;
    margin-bottom: 0.75rem;   /* consistent gap after title */
}
.card p{ 
   color:var(--muted); 
   margin:0 0 1rem; 
   margin-top: 0;
   margin-bottom: 0.75rem;   /* consistent gap after title */
}
.card-icon{ color: var(--accent); margin-bottom:0.6rem; }

/* Make Deliverables text white and slightly bigger */
.card p.muted {
  color: #ffffff !important;   /* bright white */
  opacity: 1;                  /* ensure it's not dimmed */
}

/* ===============================
   Products
   =============================== */
.tier {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  flex: 1;
}
.tier-header .muted{ color:var(--muted); font-size:0.95rem; margin-top:-0.3rem; }
.tier-price{ font-size:1.6rem; font-weight:700; color:var(--text); }
.per{ font-size:0.9rem; font-weight:500; color:var(--muted); margin-left:0.4rem; }
.tier-list{ list-style:none; padding:0; margin:0; color:var(--muted); flex-grow:1; }
.recommended{
  border: 1px solid rgba(59,130,246,0.12);
  transform: none;
  box-shadow: 0 12px 36px rgba(59,130,246,0.06);
}
.tier .btn { margin-top: auto; }

/* ===============================
   CTA Strip
   =============================== */
.cta-strip{
  padding:2rem 0;
  border-top:1px solid rgba(255,255,255,0.02);
  border-bottom:1px solid rgba(255,255,255,0.02);
}
.cta-inner{
  display:flex;
  gap:1rem;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
}

/* ===============================
   Contact
   =============================== */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:1.25rem;
  align-items:start;
  padding:2rem 0;
}
@media(min-width:880px){
  .contact-grid{ grid-template-columns: 1fr 320px; }
}
.contact-card{
  background:var(--panel);
  padding:1.25rem;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.03);
}
.contact-form label{
  display:block;
  margin-bottom:0.6rem;
  font-weight:600;
  font-size:0.92rem;
  color:var(--text);
}
.contact-form input,
.contact-form textarea{
  width:100%;
  margin-top:0.35rem;
  padding:0.75rem;
  border-radius:8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  color:var(--text);
  outline:none;
  font-weight:500;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color: var(--accent);
  font-weight:400;
}
.form-actions{
  display:flex;
  gap:0.6rem;
  align-items:center;
  margin-top:0.6rem;
}

/* ===============================
   Utilities & Footer
   =============================== */
.lead{ color:var(--muted); margin-top:0.4rem; }
.muted{ color:var(--muted); font-size:0.95rem; }
.text-link{ color:var(--accent); text-decoration:none; font-weight:600; }
.note{ padding:1.25rem 0 3rem; }

.site-footer{
  padding:1.25rem 0;
  border-top:1px solid rgba(255,255,255,0.02);
  margin-top:2rem;
}
.footer-inner{
  display:flex;
  justify-content:center;
  color:var(--muted);
  font-size:0.95rem;
}

/* ===============================
   Responsive Tweaks
   =============================== */
@media (max-width:640px){
  .container{ padding:1rem; }
  .header-inner{ gap:0.5rem; }

  /* Nav stays horizontally scrollable; avoid clipping siblings */
  .hero{ padding:4rem 0 3rem; text-align:center; }
  .hero-inner{ padding:1rem; }

  /* Avoid accidental x-overflow on common rows (but do not apply to .nav) */
  .header-inner,
  .hero-inner,
  .cta-inner{
    overflow-x: clip;
  }

  /* Slightly larger side padding for dense card sections on very small screens */
  .cards{
    padding-inline: clamp(1rem, 5vw, 1.25rem);
  }
}

/* ===============================
   Accessible Focus
   =============================== */
a:focus, button:focus, input:focus, textarea:focus{
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
  outline: none;
}

/* =======================================================
   SHOWCASE SECTION — responsive grid
   ======================================================= */
.showcase {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
}

.image-row {
  display: grid;
  gap: var(--image-gap);
  padding-left: var(--image-buffer);
  padding-right: var(--image-buffer);
  overflow-x: hidden; /* prevent scrollbars */
}

/* Small rows: auto-fit for flexibility */
.image-row.small {
  grid-template-columns: repeat(auto-fit, minmax(var(--cell-min-small), 1fr));
}

/* Medium rows: 3 items side by side on large screens */
.image-row.medium {
  grid-template-columns: repeat(3, 1fr);
}

/* Large rows: 2 items side by side on large screens */
.image-row.large {
  grid-template-columns: repeat(2, 1fr);
}

/* Responsive: stack vertically on smaller screens */
@media (max-width: 900px) {
  .image-row.medium,
  .image-row.large {
    grid-template-columns: 1fr; /* stack items vertically */
  }
}

/* Prevent overflow on very large screens */
@media (min-width: 1200px) {
  .image-row {
    padding-left: 0;
    padding-right: 0;
  }
}

.showcase-figure {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.showcase-figure :is(img, video) {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #0b1220;
  box-shadow: 0 10px 30px rgba(2,6,23,0.6);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.showcase-figure :is(img, video):hover {
  transform: scale(1.03);
  box-shadow: 0 18px 48px rgba(2,6,23,0.7);
}

.showcase-figure figcaption {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  inline-size: clamp(24ch, 90%, 36ch);
  margin-inline: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
}

/* ===============================
   Lightbox (Images & Video)
   =============================== */
.lb-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lb-backdrop[aria-hidden="false"] {
  display: flex;
  animation: lb-fade-in .16s var(--ease);
}

@keyframes lb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lb-dialog {
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  width: 100%;
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(2,6,23,0.75);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
}

.lb-stage :is(img, video) {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: calc(var(--radius) - 4px);
  box-shadow: 0 10px 30px rgba(2,6,23,0.6);
  background: #0b1220;
}

.lb-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  background: rgba(15, 23, 36, 0.85);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .12s var(--ease);
  box-shadow: var(--shadow);
}
.lb-close:hover { transform: translateY(-1px); background: rgba(15, 23, 36, 0.95); }
.lb-close:active { transform: translateY(0); }

body.lb-open { overflow: hidden; }

.showcase-figure :is(img, video)[data-lightbox] { cursor: zoom-in; }

/* ===============================
   Floating Corner Chip
   =============================== */
.float-chip{
  position: fixed;
  right: clamp(.75rem, 2vw, 1rem);
  bottom: clamp(.75rem, 3vw, 1.25rem);
  z-index: 100;
  padding: .55rem .8rem;
  border-radius: 12px;
  font-size: .9rem;
  color: white;
  text-decoration: none;
  background: linear-gradient(90deg, var(--accent), #2563eb);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 28px rgba(59,130,246,0.22);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.float-chip:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(59,130,246,0.28);
}
.float-chip strong{ color: white; }
@media (max-width: 640px){
  .float-chip{ font-size: .86rem; }
}

/* === Hamburger Styling === */
.nav-toggle {
  display: none; /* hidden by default */
  background: linear-gradient(90deg, var(--accent), #2563eb);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(59,130,246,0.18);
}

/* === Mobile header fix: always fixed + hamburger toggle === */
@media (max-width: 880px) {
  .site-header {
    position: fixed;      /* was sticky */
    top: 0;               /* stick to top */
    left: 0;
    right: 0;
    z-index: 100;         /* above content */
  }

  .header-inner {
    gap: 0.5rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none; /* hide scrollable nav */
    flex-direction: column;
    gap: 0.8rem;
    background: var(--panel);
    padding: 1rem;
    border-radius: var(--radius);
    position: absolute;
    top: 100%;
    right: 1rem;
    box-shadow: var(--shadow);
    z-index: 101; /* above header content */
  }

  .nav.open {
    display: flex; /* show when toggled */
  }
}

@media (min-width: 881px) {
  .nav-link {
    padding: 0.8rem 0.5rem;  /* vertical padding slightly bigger than before */
    font-size: 1rem;          /* restores old font size */
  }
}
