/* =====================================================
   LONE STAR BUILD TX — Stylesheet
   Update the CSS variables in :root to rebrand quickly
   ===================================================== */

:root {
  /* BRAND COLORS — Red / Blue / White (priority order)
     RGB triplets let you tint anything with rgba(var(--x-rgb), alpha).
     To rebrand: change the three triplets + the navy surface trio below. */
  --red-rgb:     230, 57, 70;     /* #E63946 — primary accent */
  --blue-rgb:    29, 95, 165;     /* #1D5FA5 — secondary / feature blue */

  --red:         rgb(var(--red-rgb));
  --red-light:   #F25561;         /* hover */
  --red-dark:    #C1121F;         /* pressed / deep red */
  --red-grad:       linear-gradient(135deg, #F25561 0%, #E63946 50%, #C1121F 100%);
  --red-grad-hover: linear-gradient(135deg, #E63946 0%, #C1121F 60%, #A00D18 100%);
  --blue:        rgb(var(--blue-rgb));
  --blue-light:  #3A7BC8;
  --blue-grad:       linear-gradient(135deg, #3A7BC8 0%, #1D5FA5 50%, #134680 100%);
  --blue-grad-hover: linear-gradient(135deg, #1D5FA5 0%, #134680 60%, #0D3460 100%);
  --navy-grad:       linear-gradient(135deg, #1F3A5C 0%, #16293F 55%, #0E1D30 100%);

  --dark:        #0A1628;         /* page background — deep navy */
  --dark-2:      #0C1A30;         /* darker section surface */
  --mid:         #14263F;         /* card / surface — navy */
  --text:        #F8FAFC;         /* near-white body text */
  --text-muted:  #A7B6C9;         /* blue-gray muted text (WCAG AA on navy) */
  --white:       #FFFFFF;
  --accent:      rgb(var(--blue-rgb));

  /* TYPOGRAPHY */
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body:    'Barlow', system-ui, -apple-system, sans-serif;
  --font-cond:    'Barlow Condensed', 'Barlow', sans-serif;

  /* LAYOUT */
  --container-pad: 40px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--dark); color: var(--text); overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ---------- ACCESSIBILITY ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red-grad); color: var(--white); padding: 12px 20px;
  font-weight: 700; z-index: 9999;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Focus rings for keyboard users */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Honor reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--red-grad);
  padding: 6px var(--container-pad);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: .05em; color: #000;
  flex-wrap: wrap; gap: 8px;
}
.topbar a { color: #000; }
.topbar a:hover { text-decoration: underline; }

/* ---------- NAV ---------- */
.main-nav {
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(10px);
  padding: 0 var(--container-pad);
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  border-bottom: 1px solid rgba(var(--red-rgb),.2);
  position: sticky; top: 0; z-index: 100;
}
.logo {
  font-family: var(--font-display); font-size: 28px;
  letter-spacing: .1em; color: var(--white); line-height: 1;
}
.logo span { color: var(--red); }

.nav-links { display: flex; gap: 32px; }
.nav-links > li { position: relative; }
.nav-links a {
  color: var(--text-muted);
  font-size: 13px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 0; display: inline-block;
  transition: color .2s;
}
.nav-links a:hover { color: var(--red); }

.submenu {
  position: absolute; top: 100%; left: 0;
  background: var(--mid);
  min-width: 240px;
  padding: 12px 0;
  border-top: 2px solid var(--red);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all .2s;
  z-index: 50;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu a { display: block; padding: 10px 20px; }
.submenu a:hover { background: rgba(var(--red-rgb),.1); }

.nav-cta {
  background: var(--red-grad); color: var(--white);
  padding: 10px 22px; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  border: none; transition: background .2s;
}
.nav-cta:hover { background: var(--red-grad-hover); }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: transparent; border: none; padding: 8px;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--white); transition: all .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex; align-items: stretch;
  overflow: hidden;
}

.hero-video, .hero-slides {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video { background: var(--dark); }
.hero-video:not([src]):not(:has(source[src])) { display: none; } /* hide if no source */

.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-repeat: no-repeat; background-position: center;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }

/* Placeholder slide gradients — replace with actual photo backgrounds */
.slide-1 { background-image: linear-gradient(135deg, #0A1628 0%, #14304F 45%, #0A1628 100%); }
.slide-2 { background-image: linear-gradient(135deg, #0A1628 0%, #1D5FA5 55%, #0C1A30 100%); }
.slide-3 { background-image: linear-gradient(135deg, #0C1A30 0%, #1A2F4A 45%, #3A1418 100%); }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,22,40,.55) 0%, rgba(10,22,40,.15) 45%, rgba(10,22,40,0) 70%);
  z-index: 1;
}

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 380px;
  width: 100%;
  align-items: stretch;
}

.hero-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px var(--container-pad);
}

.hero-eyebrow {
  font-family: var(--font-cond);
  font-size: 13px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--blue); font-weight: 600; margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 72px);
  line-height: .95; letter-spacing: .03em;
  color: var(--white); margin-bottom: 20px;
}
.hero-title span { color: var(--blue-rgb); }
.hero-sub {
  font-size: 20px; color: var(--text-muted);
  max-width: 480px; line-height: 2.2;
  margin-bottom: 32px; font-weight: 700;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn-primary, .btn-outline, .btn-dark, .btn-trans, .submit-btn {
  display: inline-block;
  padding: 14px 28px; font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  font-family: var(--font-body); border: none;
  transition: all .2s; text-align: center;
}
.btn-primary { background: var(--red-grad); color: var(--white); }
.btn-primary:hover { background: var(--red-grad-hover); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,.4);
}
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: var(--red); color: var(--red); }
.btn-dark { background: var(--red-grad); color: var(--white); }
.btn-dark:hover { background: var(--red-grad-hover); }
.btn-trans {
  background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.7);
}
.btn-trans:hover { background: var(--white); color: var(--blue); }

/* ---------- CONSULTATION PANEL ---------- */
.consult-panel {
  background: var(--white);
  display: flex; flex-direction: column; justify-content: center;
  padding: 36px 30px; gap: 16px;
  border-top: 4px solid var(--red);
}
.consult-panel h2 {
  font-family: var(--font-display);
  font-size: 30px; letter-spacing: .04em;
  color: var(--dark); line-height: 1;
}
.consult-panel > p {
  font-size: 13px; color: #51607A;
  font-weight: 500; line-height: 1.5;
}
.consult-form { display: flex; flex-direction: column; gap: 12px; }

.form-field {
  background: #EEF2F7;
  border: 1px solid #D5DEE8;
  color: var(--dark); padding: 11px 14px;
  font-size: 13px; font-family: var(--font-body);
  width: 100%; outline: none;
  transition: all .2s;
}
.form-field:focus {
  background: #fff;
  border-color: var(--blue);
}
.form-field::placeholder { color: #8593A6; }
.form-field option { background: #fff; }
textarea.form-field { resize: vertical; min-height: 70px; }

.submit-btn {
  background: var(--red-grad); color: var(--white);
  padding: 14px; width: 100%; margin-top: 4px;
}
.submit-btn:hover { background: var(--red-grad-hover); }

.form-note {
  font-size: 11px; color: #8593A6;
  text-align: center; margin-top: 4px;
}

/* Slideshow dots */
.slide-dots {
  position: absolute; bottom: 20px; left: var(--container-pad);
  z-index: 3; display: flex; gap: 8px;
}
.dot {
  width: 28px; height: 3px;
  background: rgba(255,255,255,.3);
  border: none; padding: 0;
  transition: all .3s;
}
.dot.active { background: var(--red); width: 48px; }

/* ---------- TRUST BAR ---------- */
.trust-bar {
  background: var(--navy-grad);
  padding: 18px var(--container-pad);
  display: flex; justify-content: space-around; align-items: center;
  border-bottom: 1px solid rgba(var(--red-rgb),.15);
  flex-wrap: wrap; gap: 16px;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--text-muted);
}
.trust-icon {
  width: 32px; height: 32px;
  background: var(--red-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--white);
  flex-shrink: 0;
}

/* ---------- GENERIC SECTION ---------- */
.section { padding: 80px var(--container-pad); }
.section-label {
  font-family: var(--font-cond);
  font-size: 12px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--red);
  font-weight: 600; margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: .03em; color: var(--white);
  line-height: 1; margin-bottom: 8px;
}
.section-title span { color: var(--red); }
.section-sub {
  font-size: 15px; color: var(--text-muted);
  max-width: 540px; line-height: 1.6;
  font-weight: 300; margin-bottom: 48px;
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
.service-card {
  background: var(--navy-grad);
  padding: 36px 28px;
  position: relative; overflow: hidden;
  transition: background .25s;
  display: block;
}
.service-card:hover { background: rgba(var(--red-rgb),.12); }
.service-card::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 3px; height: 0; background: var(--red);
  transition: height .3s;
}
.service-card:hover::before { height: 100%; }
.service-num {
  font-family: var(--font-display);
  font-size: 44px; color: var(--red);
  line-height: 1; margin-bottom: 12px;
}
.service-name {
  font-family: var(--font-cond);
  font-size: 20px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--white); margin-bottom: 10px;
}
.service-desc {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.6; font-weight: 300;
}
.service-arrow {
  margin-top: 20px;
  font-size: 12px; color: var(--red);
  letter-spacing: .1em; font-weight: 600;
  text-transform: uppercase;
}

/* ---------- WHY US ---------- */
.why-section {
  background: var(--dark-2);
  padding: 80px var(--container-pad);
}
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.why-visual {
  background: var(--mid);
  height: 400px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.why-visual-inner {
  font-family: var(--font-display);
  font-size: clamp(70px, 9vw, 110px);
  color: rgba(var(--red-rgb),.1);
  letter-spacing: .1em; text-align: center; line-height: 1;
}
.why-badge {
  position: absolute; bottom: 24px; right: 24px;
  background: var(--red-grad);
  padding: 16px 20px; text-align: center;
}
.why-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 36px; color: var(--white); line-height: 1;
}
.why-badge span {
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.why-intro {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.7; font-weight: 300; margin-top: 8px;
}
.feature-list {
  display: flex; flex-direction: column;
  gap: 24px; margin-top: 32px;
}
.feature-item {
  display: flex; gap: 16px; align-items: flex-start;
}
.feature-check {
  width: 36px; height: 36px;
  background: rgba(var(--red-rgb),.15);
  border: 1px solid var(--red);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--red); font-size: 16px; font-weight: 700;
}
.feature-item h3 {
  font-size: 14px; font-weight: 700;
  letter-spacing: .04em; color: var(--white);
  margin-bottom: 4px; text-transform: uppercase;
}
.feature-item p {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.55; font-weight: 300;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: 80px var(--container-pad);
  background: var(--dark);
}
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin-top: 48px;
}
.testi-card {
  background: var(--mid);
  padding: 32px 28px;
}
.stars {
  color: var(--red); font-size: 14px;
  letter-spacing: 2px; margin-bottom: 16px;
}
.testi-text {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.7; font-style: italic;
  font-weight: 300; margin-bottom: 20px;
}
.testi-name {
  font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--white);
}

/* ---------- CTA STRIP ---------- */
.cta-strip {
  background: var(--blue-grad);
  padding: 48px var(--container-pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  color: var(--white); letter-spacing: .03em; line-height: 1;
}
.cta-strip p {
  font-size: 14px; color: rgba(255,255,255,.85);
  font-weight: 500; margin-top: 6px;
}
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--dark-2);
  padding: 60px var(--container-pad) 24px;
  border-top: 1px solid rgba(var(--red-rgb),.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; display: inline-block; }
.footer-desc {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.7; font-weight: 300; margin-bottom: 20px;
}
.footer-contact {
  font-size: 13px; color: var(--text-muted); line-height: 2;
}
.footer-contact strong { color: var(--red); }
.footer-contact a:hover { color: var(--red); }
.footer-col h3 {
  font-family: var(--font-cond);
  font-size: 13px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px; color: var(--text-muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(176,188,201,.6);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a:hover { color: var(--red); }

/* =====================================================
   RESPONSIVE — Tablet (≤ 960px)
   ===================================================== */
@media (max-width: 960px) {
  :root { --container-pad: 24px; }

  .topbar { font-size: 11px; justify-content: center; text-align: center; }
  .topbar-left { display: none; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    gap: 0; padding: 12px 0;
    border-bottom: 1px solid rgba(var(--red-rgb),.2);
    transform: translateY(-20px);
    opacity: 0; visibility: hidden;
    transition: all .25s;
  }
  .nav-links.open {
    transform: translateY(0); opacity: 1; visibility: visible;
  }
  .nav-links > li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; }
  .submenu {
    position: static; opacity: 1; visibility: visible;
    transform: none; background: var(--mid);
    padding: 0; border-top: none;
    min-width: 0;
  }
  .submenu a { padding: 10px 36px; font-size: 12px; }

  .hero-grid { grid-template-columns: 1fr; }
  .consult-panel { order: 2; padding: 32px 24px; }
  .hero-content { padding: 50px 24px 30px; }

  .services-grid, .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-visual { height: 280px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
   RESPONSIVE — Mobile (≤ 600px)
   ===================================================== */
@media (max-width: 600px) {
  .topbar-left { display: none; }
  .topbar { justify-content: center; }

  .main-nav { padding: 0 16px; }
  .nav-cta { display: none; } /* keep nav clean; CTA is in hero */

  .hero { min-height: auto; }
  .hero-title { font-size: 44px; }

  .services-grid, .testi-grid { grid-template-columns: 1fr; }

  .section, .why-section, .testimonials { padding: 56px 16px; }

  .cta-strip { flex-direction: column; align-items: flex-start; padding: 36px 16px; }
  .cta-btns { width: 100%; }
  .cta-btns a { flex: 1; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .trust-bar { justify-content: flex-start; padding: 18px 16px; overflow-x: auto; }
  .trust-item { white-space: nowrap; }
}
