/*
Theme Name:  BACA — Build America Compliance Advisors
Theme URI:   https://bacaadvisors.com
Author:      BACA
Author URI:  https://bacaadvisors.com
Description: Custom WordPress theme for Build America Compliance Advisors — a federal infrastructure compliance consulting firm serving housing, automotive, and government sectors.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baca
Tags:        consulting, compliance, government, custom-header, custom-logo, full-width-template
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --navy:     #0E2A47;
  --navy-deep:#0b1f34;
  --gold:     #C89B3C;
  --gold-lt:  #e8b84b;
  --slate:    #5E6B78;
  --light:    #F5F7FA;
  --charcoal: #12202E;
  --white:    #ffffff;
  --shadow:   0 18px 45px rgba(14,42,71,.12);
  --shadow-sm:0 4px 16px rgba(14,42,71,.08);
  --radius:   22px;
  --radius-sm:14px;
  --trans:    .2s ease;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  color: var(--charcoal);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 1.25rem;
  margin: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 .75rem;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

section {
  padding: 56px 0;
}

@media (min-width: 768px) {
  section { padding: 88px 0; }
}

main { display: block; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(14,42,71,.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.site-logo img {
  height: 80px;
  width: auto;
}

@media (min-width: 768px) {
  .site-logo img { height: 100px; }
}

/* Primary Nav */
.primary-nav {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
  align-items: center;
  font-size: 15px;
  color: var(--slate);
}

@media (min-width: 768px) {
  .primary-nav { display: flex; }
}

.primary-nav a {
  transition: color var(--trans);
  font-weight: 500;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: var(--navy);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .hamburger { display: none; }
}

/* Mobile Drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(14,42,71,.08);
  background: #fff;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  display: block;
  padding: 13px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--slate);
  border-bottom: 1px solid rgba(14,42,71,.06);
  transition: color var(--trans);
}

.mobile-nav a:hover { color: var(--navy); }

.mobile-nav .btn {
  margin-top: 16px;
  text-align: center;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  transition: all var(--trans);
  white-space: nowrap;
  min-height: 44px;
  cursor: pointer;
  border: none;
}

.btn-primary,
.btn.primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover,
.btn.primary:hover {
  background: var(--gold-lt);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,155,60,.35);
}

.btn-secondary,
.btn.secondary {
  border: 1px solid rgba(255,255,255,.28);
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.btn-secondary:hover,
.btn.secondary:hover {
  background: rgba(255,255,255,.2);
}

.btn-ghost,
.btn.ghost {
  border: 1px solid rgba(14,42,71,.16);
  color: var(--navy);
  background: #fff;
}

.btn-ghost:hover,
.btn.ghost:hover {
  background: var(--light);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8,22,39,.90) 0%, rgba(8,22,39,.60) 100%),
    url('assets/images/hero-city.jpg') center / cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto -5% -30% auto;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(200,155,60,.40), rgba(200,155,60,0));
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: 60px 0 56px;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr .85fr;
    align-items: end;
    min-height: 82vh;
    padding: 46px 0 70px;
  }
}

.eyebrow {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(255,255,255,.07);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 18px;
  max-width: 820px;
  color: #fff;
}

.hero .lead {
  font-size: clamp(16px, 2.2vw, 20px);
  max-width: 680px;
  color: rgba(255,255,255,.88);
  margin: 0 0 30px;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* KPI Strip */
.kpi-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 36px;
}

@media (min-width: 500px) {
  .kpi-strip { grid-template-columns: repeat(3,1fr); }
}

.kpi {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 18px;
}

.kpi strong {
  display: block;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1;
  color: #fff;
  margin-bottom: 8px;
}

.kpi span {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
}

/* Hero Card */
.hero-card {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.hero-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
  color: #fff;
}

.hero-card ul {
  color: rgba(255,255,255,.88);
  margin-bottom: 18px;
  line-height: 1.7;
}

/* =========================================================
   SECTION HEADER
   ========================================================= */
.section-head {
  display: block;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .section-head {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-end;
  }
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--navy);
  margin-bottom: .5rem;
}

.section-head p {
  max-width: 620px;
  color: var(--slate);
  margin: 0;
}

/* Page intro (inner pages) */
.page-intro {
  padding: 60px 0 30px;
  background: var(--light);
}

@media (min-width: 768px) {
  .page-intro { padding: 80px 0 36px; }
}

.page-intro .eyebrow {
  color: var(--navy);
  border-color: rgba(14,42,71,.14);
  background: #fff;
}

.page-intro h1 {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--navy);
  margin-bottom: .75rem;
}

.page-intro .lead {
  font-size: 18px;
  color: var(--slate);
  max-width: 640px;
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  list-style: none;
  padding: 0;
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 6px;
  color: var(--gold);
}

.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--navy); }

/* =========================================================
   GRIDS
   ========================================================= */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3,1fr); }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1.1fr .9fr; }
}

/* =========================================================
   CARDS
   ========================================================= */
.card {
  background: #fff;
  border: 1px solid rgba(14,42,71,.08);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card.dark {
  background: var(--navy);
  color: #fff;
  border-color: transparent;
}

.card h3 {
  margin: 0 0 12px;
  font-size: clamp(18px, 2.5vw, 24px);
  color: inherit;
}

.card p { color: var(--slate); }
.card.dark p { color: rgba(255,255,255,.8); }

/* Callout card */
.callout {
  padding: 28px;
  border-left: 4px solid var(--gold);
  background: #fff7e8;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.callout h3 {
  margin-top: 0;
  color: var(--navy);
  font-size: clamp(18px, 2.5vw, 22px);
}

/* Photo Card */
.photo-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 380px;
  background: #ccd4de;
}

@media (min-width: 768px) {
  .photo-card { min-height: 470px; }
}

.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,42,71,0) 10%, rgba(14,42,71,.82) 96%);
}

.photo-card .caption {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 22px;
  color: #fff;
}

.photo-card .caption h3 {
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 8px;
  color: #fff;
}

/* =========================================================
   MINI LABEL
   ========================================================= */
.mini {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate);
}

/* =========================================================
   BADGES
   ========================================================= */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.badge {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--light);
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .03em;
}

/* =========================================================
   PROCESS STEPS
   ========================================================= */
.process {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

@media (min-width: 768px) {
  .process { grid-template-columns: repeat(5,1fr); }
}

.step {
  border-top: 4px solid var(--gold);
  padding: 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--light);
}

.step strong {
  display: block;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 6px;
}

.step span {
  font-size: 13px;
  line-height: 1.4;
  color: var(--charcoal);
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background: linear-gradient(110deg, var(--navy) 0%, #173f6a 100%);
  color: #fff;
  border-radius: 28px;
  padding: 40px 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 768px) {
  .cta-band { grid-template-columns: 1.2fr .8fr; }
}

.cta-band h2 {
  font-size: clamp(24px, 3.5vw, 38px);
  margin: 8px 0 10px;
  color: #fff;
  letter-spacing: -.02em;
}

.cta-band p {
  margin: 0;
  color: rgba(255,255,255,.85);
}

.cta-band-action {
  display: flex;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .cta-band-action { justify-content: flex-end; }
}

/* =========================================================
   TABLE
   ========================================================= */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 500px;
}

.table th,
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(14,42,71,.08);
  vertical-align: top;
  text-align: left;
}

.table th {
  color: var(--slate);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--light);
}

.table tbody tr:hover {
  background: rgba(14,42,71,.02);
}

.table a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.table a:hover { color: var(--gold); }

/* =========================================================
   NOTE LIST
   ========================================================= */
.note-list {
  padding-left: 18px;
  margin: 0;
}

.note-list li {
  margin-bottom: .5rem;
  color: var(--slate);
  line-height: 1.6;
}

/* =========================================================
   CONTACT FORM (CF7)
   ========================================================= */
.contact-form-wrap {
  background: #fff;
  border: 1px solid rgba(14,42,71,.08);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
  margin: 0 0 6px;
  font-size: 24px;
  color: var(--navy);
}

.contact-form-wrap .form-subtitle {
  color: var(--slate);
  margin-bottom: 28px;
  font-size: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 600px) {
  .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .03em;
}

.form-group label .req {
  color: var(--gold);
  margin-left: 2px;
}

/* CF7 overrides */
.wpcf7-form .form-group input,
.wpcf7-form .form-group select,
.wpcf7-form .form-group textarea,
.baca-cf7-form input[type="text"],
.baca-cf7-form input[type="email"],
.baca-cf7-form input[type="tel"],
.baca-cf7-form select,
.baca-cf7-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(14,42,71,.15);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--charcoal);
  background: var(--light);
  transition: border-color var(--trans), box-shadow var(--trans);
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
}

.baca-cf7-form input[type="text"]:focus,
.baca-cf7-form input[type="email"]:focus,
.baca-cf7-form input[type="tel"]:focus,
.baca-cf7-form select:focus,
.baca-cf7-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(14,42,71,.1);
  background: #fff;
}

.baca-cf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235E6B78' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.baca-cf7-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.baca-cf7-form input[type="submit"],
.baca-cf7-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--trans);
  min-height: 52px;
  width: 100%;
  letter-spacing: .01em;
}

.baca-cf7-form input[type="submit"]:hover,
.baca-cf7-form .wpcf7-submit:hover {
  background: var(--gold-lt);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,155,60,.35);
}

/* CF7 validation states */
.wpcf7-not-valid-tip {
  font-size: 12px;
  color: #c0392b;
  margin-top: 4px;
  display: block;
}

.wpcf7-response-output {
  margin: 16px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 14px !important;
  border: none !important;
}

.wpcf7-mail-sent-ok {
  background: #e8f5e9 !important;
  color: #2e7d32 !important;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background: #fdecea !important;
  color: #c62828 !important;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy-deep);
  color: #d6dde6;
  padding: 64px 0 0;
  margin-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

@media (min-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

.footer-brand .footer-logo {
  width: auto;
  margin-bottom: 16px;
  background: var(--light);
  border-radius: var(--radius-sm);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  margin-top: 10px;
}

.footer-tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin: 0 0 18px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  transition: color var(--trans);
}

.footer-links a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255,255,255,.7);
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  opacity: .6;
}

.footer-contact-item a {
  color: rgba(255,255,255,.7);
  transition: color var(--trans);
}

.footer-contact-item a:hover { color: var(--gold); }

/* Footer bottom bar */
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 0;
}

.footer-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.38);
}

@media (min-width: 768px) {
  .footer-bar-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bar-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bar-links a {
  color: rgba(255,255,255,.38);
  transition: color var(--trans);
}

.footer-bar-links a:hover { color: rgba(255,255,255,.7); }

/* =========================================================
   UTILITY
   ========================================================= */
.text-navy   { color: var(--navy); }
.text-gold   { color: var(--gold); }
.text-slate  { color: var(--slate); }
.text-white  { color: #fff; }
.text-center { text-align: center; }
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mt-sm { margin-top: 14px; }

/* Visually hidden (for screen readers only) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 18px;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 9999;
  transition: top .2s;
}

.skip-link:focus { top: 0; }

/* Spinner for CF7 */
.wpcf7-spinner {
  margin-left: 12px;
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  .site-header,
  .site-footer,
  .btn,
  .hamburger { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .85em; }
}
