/* ─────────────────────────────────────────────
   All American Contractors LLC — main.css
   ───────────────────────────────────────────── */

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

:root {
  --navy:      #0B1F3A;
  --navy-mid:  #152D50;
  --navy-light:#1E3D6E;
  --red:       #C8102E;
  --red-dark:  #9B0C23;
  --white:     #FAFAF8;
  --off-white: #EEE9DF;
  --gold:      #C9A84C;
  --text-muted:#8A9BB5;
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif:   'Playfair Display', serif;
  --font-body:    'IBM Plex Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11,31,58,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-star { color: var(--red); font-size: 1.1rem; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--red); }
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-stripes {
  position: absolute; top: 0; right: 0;
  width: 42%; height: 100%;
  display: flex; flex-direction: column;
  opacity: 0.06; pointer-events: none;
}
.stripe { flex: 1; }
.stripe:nth-child(odd)  { background: var(--red); }
.stripe:nth-child(even) { background: var(--white); }
.hero-stars {
  position: absolute; top: 0; right: 0;
  width: 42%; height: 50%;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 18px; opacity: 0.08; pointer-events: none; padding: 40px;
}
.hero-star-item { color: var(--white); font-size: 1.4rem; line-height: 1; }
.hero-content {
  position: relative; z-index: 2;
  padding: 120px 5vw 80px;
  max-width: 780px;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 1.5rem;
}
.eyebrow-line { width: 40px; height: 2px; background: var(--red); }
.eyebrow-text {
  font-size: 0.72rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--text-muted); font-weight: 500;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: 0.92; letter-spacing: 0.02em;
  color: var(--white); margin-bottom: 1.5rem;
}
.hero h1 span { color: var(--red); display: block; }
.hero-sub {
  font-size: 1.1rem; line-height: 1.7; color: #A8BACE;
  max-width: 520px; margin-bottom: 2.5rem; font-weight: 300;
}
.hero-stats {
  display: flex; gap: 3rem; margin-bottom: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem;
}
.stat-num {
  font-family: var(--font-display); font-size: 3rem;
  color: var(--white); line-height: 1; letter-spacing: 0.02em;
}
.stat-num span { color: var(--red); }
.stat-label {
  font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted);
  margin-top: 4px; font-weight: 500;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--red); color: var(--white); border: none;
  padding: 16px 36px; font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s; display: inline-block;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 16px 36px; font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: border-color 0.2s, transform 0.15s; display: inline-block;
}
.btn-outline:hover { border-color: var(--white); transform: translateY(-1px); }

/* ─── SECTION HEADERS ─── */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1rem;
}
.section-eyebrow-line { width: 24px; height: 2px; background: var(--red); }
.section-eyebrow-text {
  font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red); font-weight: 500;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 0.95; letter-spacing: 0.02em; color: var(--navy);
}
.section-title-white { color: var(--white); }

/* ─── ABOUT ─── */
#about { padding: 100px 5vw; background: var(--off-white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; max-width: 1200px; margin: 0 auto;
}
.about-box-main {
  background: var(--navy); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.about-box-number {
  font-family: var(--font-display); font-size: 10rem;
  color: rgba(255,255,255,0.06); line-height: 1;
  position: absolute; right: -10px; bottom: -20px;
}
.about-box-content {
  text-align: center; position: relative; z-index: 1; padding: 2rem;
}
.about-founded {
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 0.5rem; font-weight: 500;
}
.about-year {
  font-family: var(--font-display); font-size: 5rem;
  color: var(--white); line-height: 1;
}
.about-year-sub { font-size: 0.85rem; color: #6A8099; margin-top: 0.5rem; font-weight: 300; }
.about-badge {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--red); width: 100px; height: 100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.badge-num { font-family: var(--font-display); font-size: 2.2rem; color: var(--white); line-height: 1; }
.badge-text {
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.8); font-weight: 500; line-height: 1.3;
}
.about-visual { position: relative; }
.about-text h2 {
  font-family: var(--font-display); font-size: 3.2rem;
  line-height: 0.95; letter-spacing: 0.02em; color: var(--navy); margin-bottom: 1.5rem;
}
.about-text h2 em {
  font-family: var(--font-serif); font-style: italic; color: var(--red);
  font-size: 2rem; display: block; margin-bottom: 0.25rem; letter-spacing: 0;
}
.about-text p { font-size: 1rem; line-height: 1.8; color: #3E5168; font-weight: 300; margin-bottom: 1rem; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 2rem; }
.value-item { display: flex; align-items: flex-start; gap: 10px; }
.value-icon {
  width: 20px; height: 20px; background: var(--red); flex-shrink: 0;
  margin-top: 2px; display: flex; align-items: center; justify-content: center;
}
.value-icon::after {
  content: ''; width: 8px; height: 8px;
  background: var(--white); clip-path: polygon(0 50%, 35% 100%, 100% 0, 35% 65%);
}
.value-label { font-size: 0.82rem; font-weight: 500; color: var(--navy); letter-spacing: 0.04em; }

/* ─── SERVICES ─── */
#services { padding: 100px 5vw; background: var(--navy); position: relative; overflow: hidden; }
.services-bg-text {
  position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 18vw;
  color: rgba(255,255,255,0.025); letter-spacing: 0.05em;
  white-space: nowrap; pointer-events: none;
}
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px; max-width: 1200px; margin: 0 auto;
}
.service-card {
  background: var(--navy-mid); padding: 3rem 2.5rem;
  position: relative; overflow: hidden; transition: background 0.3s; cursor: default;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.service-card:hover { background: var(--navy-light); }
.service-card:hover::before { transform: scaleX(1); }
.service-num {
  font-family: var(--font-display); font-size: 5rem;
  color: rgba(255,255,255,0.04); line-height: 1;
  position: absolute; top: 16px; right: 20px; letter-spacing: 0.02em;
}
.service-icon {
  width: 48px; height: 48px; background: var(--red); margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg {
  width: 24px; height: 24px; fill: none; stroke: var(--white);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.service-title {
  font-family: var(--font-display); font-size: 2rem;
  letter-spacing: 0.04em; color: var(--white); margin-bottom: 0.75rem; line-height: 1;
}
.service-desc { font-size: 0.9rem; line-height: 1.75; color: #7A9ABC; font-weight: 300; margin-bottom: 1.5rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; padding: 5px 10px; border: 1px solid rgba(255,255,255,0.12); color: #9AB0C8;
}

/* ─── GALLERY ─── */
#portfolio { padding: 100px 5vw; background: var(--white); }
.portfolio-intro { max-width: 560px; margin: 0 auto 3.5rem; text-align: center; }
.portfolio-intro p { font-size: 1rem; line-height: 1.8; color: #5A6E85; font-weight: 300; }

.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin: 0 auto 2.5rem;
  max-width: 1200px;
}
.filter-btn {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; padding: 10px 22px;
  border: 1.5px solid rgba(11,31,58,0.25); background: transparent;
  color: #3E5168; cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }

.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px; max-width: 1200px; margin: 0 auto;
}
.gallery-item {
  position: relative; aspect-ratio: 4/3;
  overflow: hidden; cursor: pointer; background: var(--navy);
}
.gallery-item.featured { grid-column: span 2; aspect-ratio: 16/9; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,31,58,0.88) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 1.25rem 1.5rem;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay,
.gallery-item.featured .gallery-overlay { opacity: 1; }
.gallery-item.featured .gallery-overlay {
  background: linear-gradient(to top, rgba(11,31,58,0.8) 0%, transparent 50%);
}
.gallery-count {
  position: absolute; top: 10px; right: 10px;
  background: rgba(11,31,58,0.75); color: var(--white);
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 10px; backdrop-filter: blur(4px);
}
.gallery-item.hidden { display: none; }
.portfolio-category {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); font-weight: 500; margin-bottom: 4px;
}
.portfolio-name {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--white); letter-spacing: 0.04em; line-height: 1.1;
}

/* ─── LIGHTBOX ─── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(5,10,20,0.97);
  align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lb-close {
  position: absolute; top: 20px; right: 24px; font-size: 2rem;
  color: rgba(255,255,255,0.7); background: none; border: none;
  cursor: pointer; line-height: 1; transition: color 0.2s; z-index: 10;
}
.lb-close:hover { color: var(--white); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: var(--white); font-size: 1.5rem; width: 52px; height: 52px;
  cursor: pointer; transition: background 0.2s; z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.lb-nav:hover { background: var(--red); border-color: var(--red); }
.lb-nav.hidden { opacity: 0; pointer-events: none; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-content {
  display: flex; flex-direction: column; align-items: center;
  max-width: min(1100px, calc(100vw - 140px)); width: 100%; gap: 1.25rem;
}
.lb-img-wrap { width: 100%; max-height: 75vh; display: flex; align-items: center; justify-content: center; }
.lb-img-wrap img { max-width: 100%; max-height: 75vh; object-fit: contain; display: block; transition: opacity 0.2s; }
.lb-img-wrap img.fading { opacity: 0; }
.lb-info { text-align: center; }
.lb-project-cat {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); font-weight: 500; margin-bottom: 4px;
}
.lb-project-title {
  font-family: var(--font-display); font-size: 1.6rem;
  letter-spacing: 0.04em; color: var(--white); line-height: 1; margin-bottom: 6px;
}
.lb-caption { font-size: 0.82rem; color: #7A9ABC; font-weight: 300; margin-bottom: 12px; }
.lb-dots { display: flex; gap: 6px; justify-content: center; }
.lb-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.25); cursor: pointer;
  transition: background 0.2s; border: none; padding: 0;
}
.lb-dot.active { background: var(--red); }

/* ─── CONTACT ─── */
#contact { padding: 100px 5vw; background: var(--off-white); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 80px; align-items: start; max-width: 1200px; margin: 0 auto;
}
.contact-info h2 {
  font-family: var(--font-display); font-size: 3.5rem;
  line-height: 0.95; color: var(--navy); margin-bottom: 1.5rem; letter-spacing: 0.02em;
}
.contact-info h2 span { color: var(--red); display: block; }
.contact-info p { font-size: 0.95rem; line-height: 1.8; color: #4A6077; font-weight: 300; margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-detail { display: flex; align-items: center; gap: 14px; }
.contact-detail-icon {
  width: 40px; height: 40px; background: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-detail-icon svg {
  width: 18px; height: 18px; fill: none; stroke: var(--white);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.contact-detail-text { font-size: 0.88rem; color: var(--navy); font-weight: 400; }
.contact-detail-label {
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500; display: block; margin-bottom: 2px;
}
.contact-form { background: var(--white); padding: 3rem; border-top: 3px solid var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; margin-bottom: 1rem; }
label {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500; margin-bottom: 6px;
}
input, textarea, select {
  font-family: var(--font-body); font-size: 0.9rem;
  background: var(--off-white); border: 1.5px solid transparent;
  padding: 12px 14px; color: var(--navy); font-weight: 400;
  outline: none; transition: border-color 0.2s; width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--red); }
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; cursor: pointer; }
.form-submit {
  background: var(--red); color: var(--white); border: none; width: 100%;
  padding: 16px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer;
  transition: background 0.2s; margin-top: 0.5rem;
}
.form-submit:hover { background: var(--red-dark); }

/* ─── FOOTER ─── */
footer {
  background: var(--navy); border-top: 2px solid var(--red);
  padding: 40px 5vw; display: flex; align-items: center;
  justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-display); font-size: 1.6rem;
  letter-spacing: 0.12em; color: var(--white); display: flex; align-items: center; gap: 10px;
}
.footer-copy { font-size: 0.78rem; color: #4A6580; font-weight: 300; letter-spacing: 0.05em; }
.footer-stars { color: var(--red); letter-spacing: 4px; font-size: 0.9rem; }

/* ─── FLAG BAR ─── */
.flag-bar {
  height: 6px;
  background: linear-gradient(to right,
    var(--red) 0%, var(--red) 33.3%,
    var(--white) 33.3%, var(--white) 66.6%,
    var(--navy) 66.6%, var(--navy) 100%);
}

/* ─── HERO ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: fadeUp 0.6s ease both 0.1s; }
.hero h1      { animation: fadeUp 0.7s ease both 0.25s; }
.hero-sub     { animation: fadeUp 0.6s ease both 0.4s; }
.hero-stats   { animation: fadeUp 0.6s ease both 0.55s; }
.hero-buttons { animation: fadeUp 0.6s ease both 0.65s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.featured { grid-column: span 2; }
  .lb-nav { width: 40px; height: 40px; font-size: 1.1rem; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-content { max-width: calc(100vw - 100px); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.featured { grid-column: span 1; aspect-ratio: 4/3; }
  .contact-form { padding: 2rem 1.5rem; }
  .hero-stats { gap: 1.5rem; }
}
