/*
Theme Name:  BrandShyp Child
Theme URI:   https://brandshyp.org
Description: BrandShyp design system — child of Astra
Author:      BrandShyp LLC
Author URI:  https://brandshyp.org
Template:    astra
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: brandshyp-child
*/

/* ============================================================
   BrandShyp Design System
   brandshyp.org | San Antonio, TX
   ============================================================ */

/* ── Tokens ── */
:root {
  --navy:   #030d4e;
  --gold:   #f8a01c;
  --white:  #ffffff;
  --bg:     #f8fafc;
  --border: #e2e8f0;
  --text:   #1e293b;
  --muted:  #64748b;
  --light:  #94a3b8;
  --green:  #22c55e;
  --mono:   'SF Mono', 'Roboto Mono', monospace;
  --radius: 4px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Astra overrides — fix 20px right-padding Astra adds in page-builder mode ── */
.ast-page-builder-template .site-content #primary {
  padding-right: 0 !important;
}
.ast-page-builder-template .entry-header {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}
/* Hide the WordPress auto-generated page title (our HTML has its own h1) */
.ast-page-builder-template .entry-title {
  display: none !important;
}
/* Clear Astra's default margin on #primary */
.ast-page-builder-template #primary {
  margin: 0 !important;
}
/* Mobile overflow containment */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 6%; }
.section { padding: 80px 6%; }
.section-sm { padding: 50px 6%; }
.section-dark { background: var(--navy); color: var(--white); }
.section-light { background: var(--bg); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  line-height: 1.1;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; line-height: 1.7; }

.outline-text { -webkit-text-stroke: 1.5px var(--navy); color: transparent; }
.gold-text { color: var(--gold); }
.white-text { color: var(--white); }
.navy-text { color: var(--navy); }
.ghost { color: var(--navy); opacity: 0.25; }

/* ── Labels & Kickers ── */
.kicker {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}
.tag {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 900;
  padding: 4px 10px;
  letter-spacing: 1px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 2px;
  letter-spacing: 1px;
}
.dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 7px var(--green);
}
.num-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 16px 32px;
  border-radius: var(--radius);
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-ghost { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-ghost-white { background: transparent; border: 2px solid rgba(255,255,255,0.5); color: var(--white); }
.btn-sm { padding: 10px 22px; font-size: 0.75rem; }

/* ── System Bar ── */
.sys-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 6px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--light);
  letter-spacing: 1px;
}

/* ── Page Header ── */
.page-header {
  padding: 32px 6% 28px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.page-header .kicker { margin-bottom: 6px; }
.page-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.page-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Hero ── */
.hero {
  padding: 100px 6% 80px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: 900px; }
.hero h1 { margin: 20px 0 24px; }
.hero-lead { margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-bottom: 4px solid var(--border);
  padding: 36px;
}
.card-gold { border-bottom-color: var(--gold); }
.card-navy { background: var(--navy); color: var(--white); border: none; padding: 36px; }
.card h3 { color: var(--navy); margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card-meta {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.card-footer {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--light);
}

/* ── Grid layouts ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* ── Section header ── */
.section-header { margin-bottom: 48px; }
.section-header h2 { margin-top: 10px; margin-bottom: 16px; }
.section-header p { max-width: 560px; }

/* ── Value list ── */
.value-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; }
.value-item {
  padding: 28px;
  border-left: 3px solid var(--gold);
  border-top: 1px solid var(--border);
}
.value-item:first-child { border-top: none; }
.value-item strong { display: block; color: var(--navy); font-weight: 700; margin-bottom: 6px; }
.value-item p { font-size: 0.9rem; }

/* ── Checklist ── */
.check-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 0.9rem;
  color: var(--muted);
}
.check-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 900;
}

/* ── Stats row ── */
.stats-row { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 40px; }
.stat-item .stat-val { font-size: 2rem; font-weight: 900; color: var(--navy); line-height: 1; }
.stat-item .stat-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--light);
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ── CTA Banner ── */
.cta-banner {
  padding: 80px 6%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.7); margin-top: 10px; max-width: 500px; }
.cta-banner-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Glass card ── */
.glass-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 40px;
}

/* ── Contact ── */
.contact-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.contact-card { background: var(--white); border: 1px solid var(--border); padding: 32px; }
.contact-card .label { font-family: var(--mono); font-size: 0.6rem; color: var(--gold); font-weight: 900; letter-spacing: 1px; margin-bottom: 14px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 10px; }
.contact-card p, .contact-card a { font-size: 0.95rem; color: var(--muted); display: block; margin-bottom: 4px; }
.contact-card a:hover { color: var(--gold); }

/* ── Portfolio ── */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.portfolio-card { border: 1px solid var(--border); overflow: hidden; transition: box-shadow 0.2s; }
.portfolio-card:hover { box-shadow: 0 8px 32px rgba(3,13,78,0.08); }
.portfolio-card-img { aspect-ratio: 16/9; background: var(--bg); overflow: hidden; }
.portfolio-card-img img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card-body { padding: 28px; }
.portfolio-card-body h3 { margin-bottom: 10px; font-size: 1rem; }
.portfolio-card-body p { font-size: 0.9rem; margin-bottom: 18px; }
.portfolio-card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.portfolio-tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  padding: 3px 8px;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; }
details { border-top: 1px solid var(--border); }
details:last-child { border-bottom: 1px solid var(--border); }
details summary {
  padding: 22px 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--gold); flex-shrink: 0; transition: transform 0.2s; }
details[open] summary::after { content: '−'; }
details .answer { padding: 0 0 22px; color: var(--muted); font-size: 0.95rem; max-width: 720px; }

/* ── NAICS ── */
.naics-grid { display: flex; flex-direction: column; }
.naics-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.naics-code { font-family: var(--mono); font-size: 0.7rem; font-weight: 900; color: var(--gold); min-width: 60px; }
.naics-desc { font-size: 0.9rem; color: var(--muted); }

/* ── Cert bar ── */
.cert-bar { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.cert-item { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.65rem; font-weight: 700; color: var(--muted); }

/* ── MetaSlider — always contained ── */
.metaslider,
.metaslider-container,
.flexslider,
.flex-viewport {
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}
.metaslider img,
.flexslider img {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}
.flexslider .slides > li {
  overflow: hidden !important;
  max-width: 100% !important;
}

/* ── .brandshyp-slider — set in MetaSlider Developer Options → CSS Classes ──
   Provides a hard clip boundary so MetaSlider's inline pixel widths
   cannot cause document-level overflow on mobile.                    ── */
.brandshyp-slider {
  overflow: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  position: relative !important;
  box-sizing: border-box !important;
}
.brandshyp-slider .ms-wrap,
.brandshyp-slider .metaslider,
.brandshyp-slider .flexslider,
.brandshyp-slider .flex-viewport {
  overflow: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
@media (max-width: 768px) {
  .brandshyp-slider,
  .brandshyp-slider .ms-wrap,
  .brandshyp-slider .metaslider,
  .brandshyp-slider .flexslider,
  .brandshyp-slider .flex-viewport,
  .brandshyp-slider .slides {
    overflow: hidden !important;
    max-width: 100% !important;
  }
}

/* ── Responsive — tablet (≤ 900px) ── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr !important; gap: 32px !important; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 50px 6%; }
  .cta-banner-actions { flex-direction: column; width: 100%; }
  .cta-banner-actions .btn { text-align: center; }
  .hero { padding: 70px 6% 50px; }
  .section { padding: 60px 5%; }
  .section-sm { padding: 36px 5%; }
  .sys-bar { flex-direction: column; gap: 4px; text-align: center; }
  .page-header { padding: 22px 5% 20px; }
  .page-header-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .contact-track { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 24px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .faq-layout { grid-template-columns: 1fr !important; }
}

/* ── Responsive — mobile (≤ 640px) ── */
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; gap: 16px !important; }
  .hero { padding: 50px 5% 40px; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; box-sizing: border-box; }
  .section { padding: 48px 5%; }
  .section-sm { padding: 28px 5%; }
  .section-header { margin-bottom: 28px; }
  h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  h2 { font-size: clamp(1.3rem, 5vw, 2rem); }
  .card { padding: 24px; }
  .glass-card { padding: 24px; }
  .stats-row { gap: 20px; }
  .stat-item .stat-val { font-size: 1.6rem; }
  .cta-banner { padding: 40px 5%; }
  .cta-banner h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .cta-banner-actions { flex-direction: column; width: 100%; }
  .cta-banner-actions .btn { width: 100%; text-align: center; box-sizing: border-box; }
  .sys-bar { display: none; }
  .page-header { padding: 18px 5% 16px; }
  .page-header h1 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .badge { font-size: 0.55rem; }
  .contact-card { padding: 22px; }
  .naics-grid .naics-row { flex-direction: column; gap: 2px; }
  .cert-bar { flex-direction: column; gap: 8px; }
  .value-item { padding: 20px; }
  .portfolio-card-body { padding: 20px; }
  details summary { font-size: 0.9rem; padding: 18px 0; }
  .form-row { grid-template-columns: 1fr !important; }
}
