/* =============================================
   Triple H Excavation & Site Work, LLC
   Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
  --gold: #c9a84c;
  --dark: #0d0d0d;
  --dark2: #1a1a1a;
  --dark3: #242424;
  --light: #f0f0f0;
  --muted: #999;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark);
  color: var(--light);
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

a {
  color: var(--gold);
  text-decoration: none;
}

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

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

/* =============================================
   NAVIGATION
   ============================================= */

nav {
  background-color: var(--dark);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--light);
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--light);
  transition: 0.3s;
}

/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero-logo {
  width: 160px;
  margin: 0 auto 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--light);
  margin-bottom: 2rem;
  font-style: italic;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--white);
  color: var(--dark);
}

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

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

/* =============================================
   SECTIONS
   ============================================= */

section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
}

.section-title h2 span {
  color: var(--gold);
}

.section-title p {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 1rem;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0.75rem auto 0;
}

/* =============================================
   SERVICE CARDS
   ============================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--dark3);
  border: 1px solid #333;
  border-top: 3px solid var(--gold);
  padding: 2rem;
  transition: transform 0.2s, border-color 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--white);
}

.service-card .icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.service-card ul {
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.service-card ul li {
  padding: 0.25rem 0;
  border-bottom: 1px solid #2a2a2a;
}

.service-card ul li:last-child {
  border-bottom: none;
}

.service-card ul li::before {
  content: '— ';
  color: var(--gold);
}

/* =============================================
   WHY CHOOSE US
   ============================================= */

.why-section {
  background: var(--dark2);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.why-item .icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.why-item h3 {
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.why-item p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* =============================================
   GALLERY
   ============================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* =============================================
   CONTACT
   ============================================= */

.contact-section {
  background: var(--dark2);
}

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

.contact-info h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

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

.contact-item .ci-icon {
  font-size: 1.4rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-family: 'Oswald', sans-serif;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
}

.contact-item p, .contact-item a {
  color: var(--light);
  font-size: 0.95rem;
}

.contact-form h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--dark3);
  border: 1px solid #444;
  color: var(--white);
  padding: 0.75rem 1rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group select option {
  background: var(--dark3);
}

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

/* =============================================
   ABOUT / TEAM
   ============================================= */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border: 3px solid var(--gold);
}

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.about-text h2 span {
  color: var(--gold);
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* =============================================
   CALL TO ACTION BANNER
   ============================================= */

.cta-banner {
  background: var(--gold);
  padding: 3rem 2rem;
  text-align: center;
}

.cta-banner h2 {
  color: var(--dark);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: var(--dark);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.cta-banner .btn {
  background: var(--dark);
  color: var(--white);
}

.cta-banner .btn:hover {
  background: var(--dark2);
  color: var(--white);
}

/* =============================================
   FOOTER
   ============================================= */

footer {
  background: #080808;
  border-top: 2px solid var(--gold);
  padding: 3rem 2rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  width: 80px;
  margin: 0 auto 1rem;
}

footer h3 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

footer p {
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--muted);
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #222;
  font-size: 0.8rem;
  color: #555;
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */

.page-hero {
  background: var(--dark2);
  border-bottom: 2px solid var(--gold);
  padding: 4rem 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
}

.page-hero h1 span {
  color: var(--gold);
}

.page-hero p {
  color: var(--muted);
  margin-top: 0.5rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark);
    border-bottom: 2px solid var(--gold);
    padding: 1rem 2rem 1.5rem;
    gap: 1rem;
  }

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

  .nav-toggle {
    display: flex;
  }

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

  .about-img img {
    height: 280px;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 0.75rem;
  }

  .hero-content .btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}
