@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #0A0F1D;
  --bg-surface: #111827;
  --bg-card: #162032;
  --bg-card-hover: #1E2B42;
  --bronze: #C5A880;
  --bronze-light: #DFC49E;
  --accent-blue: #38BDF8;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(197, 168, 128, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background: var(--bg-dark); color: var(--text-main); line-height: 1.7; overflow-x: hidden; }

/* Sticky Navbar with larger logo */
header { background: rgba(10, 15, 29, 0.95); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-subtle); position: sticky; top: 0; z-index: 500; }
.nav-container { max-width: 1240px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }

/* 54px Logo Scale */
.brand-svg { height: 54px; width: auto; display: block; }

.nav-right { display: flex; align-items: center; gap: 1.25rem; }

.wing-pill-container { display: flex; background: rgba(255, 255, 255, 0.06); padding: 3px; border-radius: 30px; border: 1px solid var(--border-subtle); }
.wing-pill { padding: 0.48rem 1.25rem; font-size: 0.85rem; font-weight: 600; border-radius: 24px; text-decoration: none; color: var(--text-muted); transition: all 0.2s; white-space: nowrap; }
.wing-pill:hover { color: #FFF; }
.wing-pill.active { background: var(--bronze); color: var(--bg-dark); font-weight: 700; }

.menu-btn { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 42px; height: 42px; border-radius: 6px; }
.menu-btn:hover { background: rgba(255, 255, 255, 0.05); }
.menu-btn span { display: block; width: 24px; height: 2px; background: #FFF; }

/* Drawer */
.drawer-backdrop { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); z-index: 1000; opacity: 0; visibility: hidden; transition: 0.3s; }
.drawer-backdrop.active { opacity: 1; visibility: visible; }
.drawer-panel { position: fixed; top: 0; right: -380px; width: 360px; height: 100vh; background: var(--bg-surface); color: #FFF; z-index: 1001; padding: 2.75rem 2rem; display: flex; flex-direction: column; justify-content: space-between; border-left: 1px solid var(--border-subtle); transition: right 0.35s cubic-bezier(0.16,1,0.3,1); }
.drawer-panel.active { right: 0; }
.drawer-close { align-self: flex-end; background: none; border: none; color: var(--text-muted); font-size: 1.6rem; cursor: pointer; }
.drawer-nav { list-style: none; margin-top: 2rem; }
.drawer-nav li { margin-bottom: 1.25rem; }
.drawer-nav a { text-decoration: none; color: #FFF; font-size: 1.05rem; font-weight: 500; display: flex; justify-content: space-between; }
.drawer-nav a:hover { color: var(--bronze); }

/* Full-Width Background Hero */
.hero-fullwidth {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6.5rem 1.5rem;
  background-image: 
    linear-gradient(180deg, rgba(10, 15, 29, 0.82) 0%, rgba(10, 15, 29, 0.94) 75%, var(--bg-dark) 100%),
    radial-gradient(circle at 50% 30%, rgba(10, 15, 29, 0.35) 0%, rgba(10, 15, 29, 0.95) 100%),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2000&q=85');
  background-size: cover;
  background-position: center center;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-fullwidth-inner { max-width: 960px; margin: 0 auto; position: relative; z-index: 2; }
.hero-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--bronze); text-transform: uppercase; letter-spacing: 0.14em; padding: 0.4rem 1rem; background: rgba(10, 15, 29, 0.7); backdrop-filter: blur(8px); border: 1px solid var(--border-focus); border-radius: 4px; display: inline-block; margin-bottom: 1.75rem; }
.hero-fullwidth h1 { font-size: 3.4rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.035em; margin-bottom: 1.5rem; color: #FFFFFF; }
.hero-fullwidth p { font-size: 1.25rem; color: #CBD5E1; line-height: 1.7; max-width: 820px; margin: 0 auto 2.5rem; }

.hero-btn-group { display: flex; justify-content: center; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.btn-bronze { display: inline-block; background: var(--bronze); color: var(--bg-dark); padding: 0.9rem 2.2rem; font-size: 0.95rem; font-weight: 700; border-radius: 4px; text-decoration: none; transition: 0.2s; border: none; cursor: pointer; text-align: center; }
.btn-bronze:hover { background: var(--bronze-light); transform: translateY(-1px); }
.btn-outline { display: inline-block; background: rgba(10, 15, 29, 0.6); backdrop-filter: blur(8px); color: #FFF; padding: 0.9rem 2.2rem; font-size: 0.95rem; font-weight: 600; border-radius: 4px; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.25); text-align: center; transition: all 0.2s; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: #FFF; transform: translateY(-1px); }

/* Split Hero for Subpages */
.hero-split { max-width: 1240px; margin: 0 auto; padding: 5rem 1.5rem; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: center; }
.hero-split h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.hero-split p { font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; }
.hero-img-box { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-subtle); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.hero-img { width: 100%; height: 380px; object-fit: cover; display: block; filter: brightness(0.9) contrast(1.05); }

.container { max-width: 1240px; margin: 0 auto; padding: 5rem 1.5rem; }
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title h2 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.section-title p { color: var(--text-muted); font-size: 1.05rem; max-width: 700px; margin: 0 auto; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }

.card-photo-box { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: 0.25s; box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.card-photo-box:hover { transform: translateY(-4px); border-color: var(--border-focus); background: var(--bg-card-hover); }
.card-img { width: 100%; height: 210px; object-fit: cover; border-bottom: 1px solid var(--border-subtle); }
.card-body { padding: 2.25rem; display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1; }
.card-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--bronze); font-weight: 600; text-transform: uppercase; margin-bottom: 0.6rem; }
.card-body h3 { font-size: 1.35rem; font-weight: 750; margin-bottom: 0.75rem; color: #FFF; }
.card-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.65; }

.feature-list { list-style: none; margin-bottom: 1.5rem; }
.feature-list li { font-size: 0.88rem; color: #CBD5E1; margin-bottom: 0.75rem; display: flex; align-items: flex-start; gap: 0.6rem; }
.feature-list li::before { content: "✓"; color: var(--bronze); font-weight: 700; }

.price-row { border-top: 1px solid var(--border-subtle); padding-top: 1.25rem; margin-top: 1rem; }
.price-val { font-size: 2.1rem; font-weight: 800; color: #FFF; }
.price-unit { font-size: 0.85rem; color: var(--text-muted); }

.info-section { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 3.5rem 3rem; margin: 4rem 0; }
.info-header { margin-bottom: 2rem; }
.info-header h3 { font-size: 1.85rem; font-weight: 800; margin-bottom: 0.5rem; color: #FFF; }
.info-header p { color: var(--text-muted); font-size: 1.05rem; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.info-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 2rem; }
.info-card h4 { font-size: 1.15rem; font-weight: 700; color: var(--bronze); margin-bottom: 0.75rem; }
.info-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }

.milestone-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; background: var(--bg-card); border-radius: 8px; overflow: hidden; border: 1px solid var(--border-subtle); }
.milestone-table th, .milestone-table td { padding: 1.1rem 1.5rem; text-align: left; font-size: 0.9rem; }
.milestone-table th { background: #0F172A; color: var(--bronze); font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; text-transform: uppercase; }
.milestone-table tr { border-bottom: 1px solid var(--border-subtle); }
.milestone-table tr:last-child { border-bottom: none; }

footer { background: #060911; border-top: 1px solid var(--border-subtle); padding: 4.5rem 1.5rem 3rem; color: var(--text-muted); font-size: 0.84rem; }
.footer-inner { max-width: 1240px; margin: 0 auto; }
.disclaimer-box { background: #0A0F1D; border: 1px solid var(--border-subtle); border-radius: 8px; padding: 1.5rem; margin-top: 2rem; line-height: 1.65; }

@media (max-width: 900px) {
  .hero-fullwidth h1 { font-size: 2.5rem; }
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero-img { height: 280px; }
  .info-section { padding: 2.25rem 1.5rem; }
}

/* ==========================================================================
   MOBILE STEP 1: GLOBAL VIEWPORT & HORIZONTAL OVERFLOW CONTAINMENT
   ========================================================================== */
@media (max-width: 768px) {
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative;
    -webkit-text-size-adjust: 100%;
  }

  /* Standardize safe mobile side padding across all page wrappers */
  .container, 
  .section-container, 
  .footer-inner,
  .hero-split,
  header {
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* ==========================================================================
   MANDATORY MOBILE FIX: HEADER OVERFLOW & VIEWPORT LOCK
   ========================================================================== */
@media screen and (max-width: 820px) {
  /* 1. Prevent any element from blowing out screen width */
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative !important;
  }

  /* 2. Header: Logo Left, Hamburger Right, Hide Desk Pills */
  header {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.75rem 1rem !important;
  }

  .nav-container {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 !important;
  }

  /* HIDE PILLS FROM MOBILE HEADER SO THEY DON'T CROWD SCREEN */
  .wing-pill-container {
    display: none !important;
    visibility: hidden !important;
  }

  .brand-svg {
    max-height: 26px !important;
    width: auto !important;
  }

  .nav-right {
    display: flex !important;
    align-items: center !important;
  }

  /* 3. Hero & Content Full-Width Alignment */
  .hero-split, .container, .section-container, .footer-inner {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero-split {
    display: flex !important;
    flex-direction: column !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    gap: 1.5rem !important;
  }

  .hero-split h1 {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }

  .hero-split p {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }

  /* 4. Collapse all multi-column grids */
  .grid-2, .grid-3, .grid-4, .wings-grid, .info-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 1.25rem !important;
  }

  .card-photo-box, .wing-card {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 1.25rem !important;
  }
}


/* === BATCH 1: HIGH-SEVERITY, CONTRAST & MOBILE OVERFLOW FIXES === */
.table-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}
.table-scroll-wrapper .milestone-table {
  margin-top: 0;
  border: none;
  min-width: 600px;
}

.card-photo-box {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #E2E8F0;
}
.form-optional {
  font-weight: 400;
  color: #CBD5E1;
}
.form-control {
  width: 100%;
  padding: 0.75rem;
  background: #0E1424;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 16px;
  color: #FFFFFF;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .card-photo-box {
    padding: 1.5rem !important;
  }
  .card-body {
    padding: 1.5rem;
  }
}


/* === BATCH 2: ACCESSIBILITY, FOCUS-VISIBLE, TAP TARGETS & HOVER STATES === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--bronze);
  color: var(--bg-dark);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 6px;
  z-index: 2000;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-blue) !important;
  outline-offset: 3px !important;
}

.drawer-close {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.drawer-close:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.drawer-nav li {
  margin-bottom: 0.5rem;
}
.drawer-nav a {
  min-height: 44px;
  align-items: center;
  padding: 0.65rem 0.5rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.drawer-nav a:hover {
  color: var(--bronze);
  background: rgba(255, 255, 255, 0.04);
}

.wing-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.25rem 0.35rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
footer a:hover {
  color: var(--bronze-light) !important;
  text-decoration: underline !important;
  background: rgba(197, 168, 128, 0.08);
}


/* === BATCH 4: DESIGN TOKENS, UNIFIED BUTTONS, CARD ALIGNMENT & MOBILE >= 14PX === */
:root {
  --font-sm: 0.875rem;      /* 14px floor */
  --font-base: 1rem;        /* 16px */
  --font-md: 1.125rem;      /* 18px */
  --font-h3: 1.35rem;       /* 21.6px */
  --font-h2: 2.15rem;       /* 34.4px */
  --font-h1-mobile: 2rem;   /* 32px */
  --font-h1-desktop: 3rem;  /* 48px */

  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-pill: 24px;
  --grid-gap: 2rem;
}

/* Unified Grid Gaps & Card Radii */
.grid-2,
.grid-3,
.info-grid {
  gap: var(--grid-gap) !important;
}

.card-photo-box,
.info-section {
  border-radius: var(--radius-md) !important;
}

.info-card,
.viz-box,
.disclaimer-box,
.table-scroll-wrapper {
  border-radius: var(--radius-sm) !important;
}

/* Equal-Height Cards & Bottom-Pinned Price/CTA Rows */
.card-photo-box {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.card-body > div:first-child {
  flex: 1 1 auto;
}
.price-row {
  margin-top: auto !important;
  padding-top: 1.25rem;
}
.info-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

/* Unified H3 Typography */
.card-body h3,
.info-section h3,
.info-header h3 {
  font-size: var(--font-h3) !important;
  font-weight: var(--weight-bold) !important;
  margin-bottom: 0.75rem !important;
  line-height: 1.3;
}

/* Unified Buttons Across All Pages */
.btn-bronze,
.btn-outline {
  font-size: 0.95rem !important; /* 15.2px unified */
  font-weight: var(--weight-bold) !important;
  padding: 0.85rem 1.75rem !important;
  border-radius: var(--radius-sm) !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Cross-Page H1 & First-Section Top Padding Alignment */
.hero-split,
.hero-fullwidth,
.page-hero {
  padding-top: 5rem !important;
  padding-bottom: 4.5rem !important;
}
.hero-split h1,
.hero-fullwidth h1,
.page-hero h1 {
  font-size: var(--font-h1-desktop) !important;
  font-weight: var(--weight-extrabold) !important;
  line-height: 1.15 !important;
}

@media (max-width: 900px) {
  .hero-split,
  .hero-fullwidth,
  .page-hero {
    padding-top: 2.5rem !important;
    padding-bottom: 3rem !important;
  }
  .hero-split h1,
  .hero-fullwidth h1,
  .page-hero h1 {
    font-size: var(--font-h1-mobile) !important;
  }
}

/* Mobile Typography Floor >= 14px (0.875rem) */
@media (max-width: 768px) {
  .hero-tag,
  .card-tag,
  .price-unit,
  .milestone-table th,
  .milestone-table td,
  footer,
  footer p,
  footer a,
  .disclaimer-box,
  [style*="font-size: 0.7"],
  [style*="font-size: 0.8"] {
    font-size: var(--font-sm) !important;
  }
}
