/* ==========================================================================
   BRINSON DIRT CONTRACTING - Bold & Rugged Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Barlow+Condensed:wght@400;600;700&family=Barlow:wght@400;500&display=swap');

:root {
  --bg:         #0f0e0c;
  --bg-2:       #1a1814;
  --bg-3:       #242118;
  --orange:     #d4620a;
  --orange-lt:  #f07c2a;
  --gold:       #c99a2e;
  --text:       #e8e0d0;
  --text-muted: #8a7f6e;
  --border:     #2e2a22;
  --dirt:       #5c4a2a;
}

/* ---- BASE RESET & RESET STYLES ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
}

/* Texture Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' fill='%23ffffff08'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Black Han Sans', sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: 0.5rem;
}

/* ---- GLOBAL LAYOUT COMPONENTS ---- */
.section {
  padding: 5rem clamp(1.5rem, 6vw, 8rem);
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 3rem;
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--orange);
  margin: 1rem 0 1.5rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-primary:hover { background: var(--orange-lt); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover { background: var(--orange); color: #fff; }

/* ==========================================================================
   NAVIGATION BAR & MENUS
   ========================================================================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 14, 12, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 68px;
}

.nav-logo {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

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

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

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

/* Hamburger Trigger */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: none; /* Controlled by responsive media queries */
  flex-direction: column;
  gap: 6px;
  z-index: 100;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  transform-origin: 1px;
}

/* Hamburger to X Animations */
.hamburger.active span:nth-child(1) { transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); }

/* Dropdown Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  left: 0; 
  right: 0;
  background: var(--bg-2);
  border-bottom: 2px solid var(--orange);
  z-index: 99;
  padding: 1rem 2rem;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav.active { 
  display: flex; 
}

.mobile-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--orange); }

/* ==========================================================================
   PAGE SECTIONS & WIDGETS
   ========================================================================== */

/* ---- HERO SECTION ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-2);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(15,14,12,0.92) 40%, rgba(15,14,12,0.5) 100%),
    url('images/hero.jpg') center/cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem 4rem clamp(1.5rem, 6vw, 8rem);
  max-width: 700px;
}

.hero h1 { color: var(--text); margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 480px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text { width: 100%; }
.hero-image { width: 100%; max-width: 550px; }
.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-left: 5px solid var(--orange);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 80px 100vw;
  border-color: transparent transparent var(--bg) transparent;
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--orange);
  padding: 1.5rem clamp(1.5rem, 6vw, 8rem);
  display: flex;
  gap: 2rem;
  justify-content: space-around;
  flex-wrap: wrap;
}

.stat { text-align: center; color: #fff; }
.stat-num { font-family: 'Black Han Sans', sans-serif; font-size: 2.5rem; line-height: 1; }
.stat-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }

/* ---- ABOUT SECTION & QUICK CONTACT WIDGET ---- */
.about-section {
  background: var(--bg);
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about-text { color: var(--text-muted); margin-bottom: 1.25rem; }
.margin-bottom-large { margin-bottom: 2rem; }

.about-contact {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  padding: 2rem;
  width: 100%;
}

.about-contact h3 { margin-bottom: 1.25rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: flex-start;
}

.contact-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
  margin: 0;
}

.contact-value {
  color: var(--text);
  text-decoration: none;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  line-height: 1.1;
  margin: 0;
}

.contact-value.phone-link {
  font-size: 1.1rem;
  font-weight: 600;
}

.no-margin { margin: 0; }

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

.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  padding: 2rem;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(212,98,10,0.05) 0%, transparent 60%);
  pointer-events: none;
}

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

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 1.25rem;
  filter: brightness(0.85) saturate(0.9);
}

.service-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.service-card h3 { color: var(--text); margin-bottom: 0.5rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---- GALLERY LAYOUT & LIGHTBOX ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--bg-3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  filter: brightness(0.85) saturate(0.85);
}

.gallery-item:hover img { transform: scale(1.06); filter: brightness(1) saturate(1); }
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(212,98,10,0.15);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.gallery-item:hover .overlay { opacity: 1; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border: 2px solid var(--orange); }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.lightbox-close:hover { color: var(--orange); }

/* ---- CONTACT INFRASTRUCTURE & FORM ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-block { display: flex; flex-direction: column; gap: 2rem; }
.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.contact-item a, .contact-item p {
  color: var(--text);      /* Keeps it the warm white/cream text color */
  text-decoration: none;   /* Strips away the blue link underline */
  font-size: 1.05rem;
  display: inline-block;
}

/* Controls exactly what happens when someone hovers over the text link */
.contact-item a:hover { 
  color: var(--text);      /* Stays regular text color instead of turning orange */           /* Makes the mouse cursor look like regular selectable text */
}

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  padding: 2.5rem;
}

.contact-form h3 { margin-bottom: 1.5rem; color: var(--text); }
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-notice { font-size: 0.82rem; color: var(--text-muted); margin-top: 1rem; }

/* ---- FOOTER ---- */
footer {
  background: var(--bg-2);
  border-top: 2px solid var(--border);
  padding: 3rem clamp(1.5rem, 6vw, 8rem) 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand .nav-logo { font-size: 1.4rem; margin-bottom: 0.75rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--orange); }
.footer-col p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.25rem; text-align: center; color: var(--text-muted); font-size: 0.82rem; }

/* ---- INNER PAGE HEROS ---- */
.page-hero {
  background: var(--bg-2);
  border-bottom: 3px solid var(--orange);
  padding: 4rem clamp(1.5rem, 6vw, 8rem) 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212,98,10,0.07));
  pointer-events: none;
}

.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--text-muted); max-width: 500px; }


/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Desktop-First / Mobile-First Breaks)
   ========================================================================== */

/* Tablet & Mobile Screens (Down to 768px and below) */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-bar { gap: 1.5rem; }
}

/* Tiny Mobile Devices (480px and below) */
@media (max-width: 480px) {
  .section { padding: 3rem 1.25rem; }
  .page-hero { padding: 3rem 1.25rem 2rem; }
}

/* Large Desktop Viewports (Upward from 768px) */
@media (min-width: 768px) {
  .hero-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 6rem 2rem;
    max-width: 1300px; 
    gap: 4rem; 
  }

  .hero-text {
    flex: 0 1 auto; 
    max-width: 50%; 
  }

  .hero-image {
    flex: 1 1 0%; 
    max-width: none; 
  }

  .hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover; 
  }

  .about-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
  }
}