/* ===== DESIGN SYSTEM ===== */
:root {
  /* Colors - Dark steel + warm accent */
  --primary: #1a2332;
  --primary-light: #2a3a4e;
  --accent: #d4922a;
  --accent-light: #e8a840;
  --accent-dark: #b87a1e;
  --white: #ffffff;
  --off-white: #f5f5f0;
  --light-gray: #e8e8e3;
  --medium-gray: #8a8a85;
  --dark-gray: #3a3a35;
  --text: #2a2a25;
  --text-light: #6a6a65;
  --success: #2ecc71;
  --overlay: rgba(26, 35, 50, 0.85);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --section-pad: 80px;
  --container-max: 1200px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== UTILITIES ===== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad) 0; }
.section-dark { background: var(--primary); color: var(--white); }
.section-light { background: var(--off-white); }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* Headings */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 12px; }
p { margin-bottom: 16px; }
.section-subtitle {
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.section-desc {
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--text-light);
  font-size: 1.05rem;
}
.section-dark .section-desc { color: rgba(255,255,255,0.7); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: all 0.3s var(--ease);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,146,42,0.3); }
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-dark {
  background: var(--primary);
  color: var(--white);
}
.btn-dark:hover { background: var(--primary-light); transform: translateY(-2px); }

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 35, 50, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 50px; width: auto; }
.logo-text { color: var(--white); font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.logo-text span { color: var(--accent); display: block; font-size: 0.75rem; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { 
  background: var(--accent); 
  color: var(--white) !important; 
  padding: 10px 20px; 
  border-radius: 4px; 
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent-dark) !important; color: var(--white) !important; }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

/* Mobile menu */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,35,50,0.92) 0%, rgba(26,35,50,0.7) 50%, rgba(26,35,50,0.5) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 120px 0 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,146,42,0.15);
  border: 1px solid rgba(212,146,42,0.3);
  padding: 8px 16px;
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.15rem; margin-bottom: 32px; max-width: 540px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat { text-align: center; }
.hero-stat-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--accent); }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 350px;
  cursor: pointer;
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover img { transform: scale(1.08); }
.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,35,50,0.9) 0%, rgba(26,35,50,0.2) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: background 0.3s;
}
.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(26,35,50,0.95) 0%, rgba(26,35,50,0.4) 60%);
}
.service-card h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 8px; }
.service-card p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0; opacity: 0; transform: translateY(10px); transition: all 0.3s var(--ease); }
.service-card:hover p { opacity: 1; transform: translateY(0); }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,35,50,0);
  transition: background 0.3s;
}
.gallery-item:hover::after { background: rgba(26,35,50,0.3); }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 4px; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ===== ABOUT SECTION ===== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-images .img-tall { grid-row: span 2; border-radius: 8px; overflow: hidden; height: 100%; }
.about-images .img-tall img { height: 100%; object-fit: cover; }
.about-images .img-sm { border-radius: 8px; overflow: hidden; }
.about-images .img-sm img { height: 100%; object-fit: cover; }

.credentials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}
.credential {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--off-white);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}
.credential svg { width: 18px; height: 18px; fill: var(--accent); flex-shrink: 0; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--accent);
  padding: 60px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 24px; font-size: 1.1rem; }
.cta-banner .btn { background: var(--primary); color: var(--white); }
.cta-banner .btn:hover { background: var(--primary-light); }

/* ===== FAQ ACCORDION ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--light-gray);
}
.faq-question {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-align: left;
  transition: color 0.3s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  margin-left: 16px;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--accent);
  transition: transform 0.3s var(--ease);
}
.faq-icon::before { width: 16px; height: 2px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-icon::after { width: 2px; height: 16px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-item.active .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s;
}
.faq-answer-inner {
  padding: 0 0 20px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--off-white);
  border-radius: 8px;
  margin-bottom: 16px;
  transition: transform 0.3s;
}
.contact-info-card:hover { transform: translateX(4px); }
.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; fill: var(--white); }
.contact-info-card h4 { font-size: 0.85rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.contact-info-card p { margin: 0; font-weight: 600; color: var(--text); font-size: 1rem; }
.contact-info-card a { color: var(--accent); }

.contact-form { background: var(--white); padding: 40px; border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.contact-form h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
  background: var(--off-white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.payment-methods {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.payment-badge {
  padding: 8px 16px;
  background: var(--off-white);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* Map */
.map-container {
  margin-top: 48px;
  border-radius: 8px;
  overflow: hidden;
  height: 400px;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.footer p { font-size: 0.9rem; line-height: 1.8; }
.footer-links a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 18px; height: 18px; fill: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.veteran-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,146,42,0.15);
  border: 1px solid rgba(212,146,42,0.3);
  padding: 8px 16px;
  border-radius: 4px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

/* ===== THANK YOU MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  max-width: 480px;
  width: 90%;
  animation: modalIn 0.3s var(--ease);
}
@keyframes modalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-icon {
  width: 64px;
  height: 64px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.modal-icon svg { width: 32px; height: 32px; fill: var(--white); }
.modal h3 { margin-bottom: 12px; }
.modal p { color: var(--text-light); }
.modal .btn { margin-top: 20px; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: var(--primary);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/Chain_link_1-1920w.jpg') center/cover;
  opacity: 0.15;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 600px; font-size: 1.1rem; }
.breadcrumb { margin-bottom: 16px; }
.breadcrumb a { color: var(--accent); font-size: 0.85rem; }
.breadcrumb span { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin: 0 8px; }

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-right.visible { opacity: 1; transform: translateX(0); }
.stagger > * { transition-delay: calc(var(--i, 0) * 0.1s); }

/* Counter animation */
@keyframes countUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Service card types for services page */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--light-gray);
}
.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }
.service-detail-img {
  border-radius: 8px;
  overflow: hidden;
  height: 320px;
}
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.service-detail h3 { font-size: 1.5rem; }

/* Market segments */
.market-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.market-card {
  padding: 40px 28px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.market-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.market-icon {
  width: 64px;
  height: 64px;
  background: rgba(212,146,42,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.market-icon svg { width: 28px; height: 28px; fill: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; }
  .nav-links { 
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right 0.3s var(--ease);
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }
  .header-phone { display: none; }
  .hero-stats { gap: 24px; }
  .hero-btns { flex-direction: column; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.large { grid-column: span 1; grid-row: span 1; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) { direction: ltr; }
  .market-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 375px) {
  .hero-stats { flex-direction: column; gap: 16px; }
}
