/* ===========================
   XANNON CONTRACTING — STYLES
   =========================== */

:root {
  --blue:       #1a5fc8;
  --blue-dark:  #0d3a7a;
  --blue-light: #2979e8;
  --navy:       #0b1a2e;
  --silver:     #a8b8cc;
  --gray-light: #f2f4f8;
  --gray-mid:   #e0e6ef;
  --gray-text:  #5a6a7e;
  --white:      #ffffff;
  --black:      #0d0d0d;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(13,26,46,0.12);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1160px;
  margin: 0 auto;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.section-heading {
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--gray-text);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,95,200,0.35); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ─── NAVBAR ─── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0;
  overflow: visible;
}

#navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.nav-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 100px;
  width: 100%;
  padding: 0 2rem;
  position: relative;
}

.nav-logo {
  align-self: flex-start;
  flex-shrink: 0;
  margin-top: -30px;
}

#navbar.scrolled .nav-logo {
  align-self: center;
  margin-top: 0;
}

.nav-logo img {
  height: 350px;
  transition: height 0.4s ease;
}

#navbar.scrolled .nav-logo img {
  height: 170px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  align-self: flex-start;
  padding-top: 1.5rem;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue-light);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--blue-dark) !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  background:
    linear-gradient(to bottom, rgba(11,26,46,0.72) 0%, rgba(11,26,46,0.82) 100%),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1920&q=80&fit=crop') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.015) 40px,
      rgba(255,255,255,0.015) 41px
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 8rem 0 6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-content h1 span { color: #7eb8f7; }

.hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 4rem;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  color: var(--white);
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-right: 2px solid rgba(255,255,255,0.3);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  transform: rotate(45deg);
  margin: 8px auto 0;
  animation: bounce 1.6s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ─── TRUST BAR ─── */
#trust-bar {
  background: #0f2440;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trust-icon {
  width: 18px;
  height: 18px;
  color: var(--blue-light);
}

/* ─── SECTIONS SHARED ─── */
section { padding: 6rem 0; }

.bg-light { background: var(--gray-light); }
.bg-navy  { background: var(--navy); }
.bg-white { background: var(--white); }

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--gray-text);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-mid);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.badge-blue {
  background: rgba(26,95,200,0.1);
  color: var(--blue);
  border: 1px solid rgba(26,95,200,0.2);
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-mid);
}

.avatar {
  width: 56px;
  height: 56px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
}

.contact-card-name {
  font-weight: 800;
  font-size: 1.05rem;
}

.contact-card-title {
  color: var(--gray-text);
  font-size: 0.85rem;
}

.contact-card-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.contact-card-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue);
}

.contact-card-label {
  font-size: 0.75rem;
  color: var(--gray-text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
}

.contact-card-value {
  font-weight: 600;
  color: var(--navy);
}

.id-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-mid);
}

.id-item { }
.id-label {
  font-size: 0.7rem;
  color: var(--gray-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.id-value {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  font-family: 'Courier New', monospace;
}

/* ─── SERVICES ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(26,95,200,0.2);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(26,95,200,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue);
}

.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.service-card p {
  color: var(--gray-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── DIFFERENTIATORS ─── */
#why {
  background: var(--navy);
}

#why .section-label { color: var(--blue-light); }
#why .section-heading { color: var(--white); }
#why .section-sub { color: rgba(255,255,255,0.6); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(26,95,200,0.15);
  border-color: rgba(26,95,200,0.4);
  transform: translateY(-4px);
}

.why-icon {
  width: 52px;
  height: 52px;
  background: rgba(26,95,200,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--blue-light);
}

.why-card h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.why-card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* ─── PAST PERFORMANCE ─── */
.performance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.perf-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 12px;
  padding: 1.75rem;
  transition: var(--transition);
}

.perf-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(26,95,200,0.25);
  transform: translateY(-3px);
}

.perf-client {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.perf-scope {
  font-size: 0.82rem;
  color: var(--gray-text);
  margin-bottom: 0.3rem;
}

.perf-location {
  font-size: 0.82rem;
  color: var(--gray-text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.perf-divider {
  height: 1px;
  background: var(--gray-mid);
  margin-bottom: 1rem;
}

.perf-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.perf-line-label { color: var(--gray-text); }
.perf-line-val {
  font-weight: 700;
  color: var(--blue);
}

.perf-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-mid);
  margin-top: 0.5rem;
}
.perf-total-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-text);
}
.perf-total-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
}

/* ─── NAICS ─── */
#naics .section-label { color: var(--blue); }
#naics .section-heading { color: var(--navy); }
#naics .section-sub { color: var(--gray-text); }

.naics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.naics-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  transition: var(--transition);
}

.naics-item:hover {
  border-color: rgba(26,95,200,0.3);
  box-shadow: 0 2px 12px rgba(26,95,200,0.08);
}

.naics-code {
  font-weight: 800;
  color: var(--blue);
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  white-space: nowrap;
}

.naics-desc {
  color: var(--gray-text);
  font-size: 0.82rem;
}

/* ─── CONTACT ─── */
#contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p {
  color: var(--gray-text);
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.75rem;
  color: var(--gray-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: block;
  margin-bottom: 2px;
}

.contact-detail-val {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy);
}

.contact-form-wrap {
  background: var(--white);
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,95,200,0.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success svg {
  color: #22c55e;
  margin: 0 auto 1rem;
}

/* ─── FOOTER ─── */
footer {
  background: #060f1c;
  color: rgba(255,255,255,0.55);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}

.footer-brand img {
  height: 176px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.footer-bottom span { color: rgba(255,255,255,0.35); }

/* ─── PHOTO BAND ─── */
.photo-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 320px;
  overflow: hidden;
}

.photo-band-item {
  position: relative;
  overflow: hidden;
}

.photo-band-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-band-item:hover img { transform: scale(1.06); }

.photo-band-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,26,46,0.55) 0%, transparent 60%);
}

.photo-band-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── ABOUT PHOTO ─── */
.about-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  height: 220px;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── MOBILE ─── */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .performance-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .photo-band { grid-template-columns: repeat(2, 1fr); height: 240px; }
  section { padding: 4rem 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 5%;
    gap: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .about-grid,
  .contact-grid,
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .performance-grid { grid-template-columns: 1fr; }
  .naics-grid { grid-template-columns: 1fr 1fr; }

  .hero-stats { gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .services-grid,
  .why-grid,
  .naics-grid { grid-template-columns: 1fr; }
  .trust-inner { gap: 1rem; }
  .hero-btns { flex-direction: column; }
}
