/* ============================================================
   Brent G Tye Excavation Inc. — Main Stylesheet
   Computer Systems Design & Integration
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1c1c1c;
  background-color: #fafaf8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c78d3e;
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0f1724;
  letter-spacing: -0.02em;
}

.section-subheading {
  font-size: 1.125rem;
  color: #5c5c5c;
  max-width: 640px;
  margin-top: 1rem;
  line-height: 1.6;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #0f1724;
  color: #ffffff;
  padding: 0.5rem 1rem;
  z-index: 10000;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid #eae7e2;
  transition: box-shadow 0.3s ease;
}
.site-nav.scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,0.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 1.125rem;
  color: #0f1724;
  letter-spacing: -0.02em;
}
.nav-brand-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #3a3a3a;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #c78d3e;
  transition: width 0.25s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: #0f1724;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}
.nav-cta {
  display: inline-block;
  background-color: #0f1724;
  color: #ffffff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: background-color 0.25s ease, transform 0.2s ease !important;
}
.nav-cta:hover {
  background-color: #c78d3e !important;
  transform: translateY(-1px);
}
.nav-cta::after {
  display: none !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: #0f1724;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 160px 0 100px;
  background-color: #0f1724;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background-color: #1a2740;
  opacity: 0.5;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background-color: #1a2740;
  opacity: 0.35;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-content {
  max-width: 560px;
}
.hero-badge {
  display: inline-block;
  background-color: #1a2740;
  color: #c78d3e;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.hero-heading {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.025em;
}
.hero-heading span {
  color: #c78d3e;
}
.hero-text {
  font-size: 1.125rem;
  color: #c0c5ce;
  margin-top: 1.25rem;
  line-height: 1.65;
  max-width: 460px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn-primary {
  background-color: #c78d3e;
  color: #ffffff;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #b07a2f;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(199,141,62,0.3);
}
.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #3a4560;
}
.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: #c78d3e;
  color: #c78d3e;
  transform: translateY(-2px);
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
}
.hero-card {
  position: absolute;
  background-color: #1a2740;
  border: 1px solid #2a3a5a;
  border-radius: 12px;
  padding: 1.5rem;
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.hero-card:nth-child(1) {
  top: 0;
  left: 0;
  width: 65%;
  z-index: 3;
}
.hero-card:nth-child(2) {
  top: 15%;
  right: 0;
  width: 55%;
  z-index: 2;
  opacity: 0.85;
}
.hero-card:nth-child(3) {
  bottom: 0;
  left: 10%;
  width: 60%;
  z-index: 1;
  opacity: 0.7;
}
.hero-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #c78d3e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.hero-card-icon svg {
  width: 22px;
  height: 22px;
  color: #ffffff;
}
.hero-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}
.hero-card p {
  font-size: 0.8125rem;
  color: #a0aac0;
  line-height: 1.5;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 100px 0;
  background-color: #fafaf8;
}
.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1a2740 0%, #0f1724 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-image-placeholder::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background-color: #c78d3e;
  border-radius: 12px 0 0 0;
}
.about-image-placeholder svg {
  width: 80px;
  height: 80px;
  color: #c78d3e;
  position: relative;
  z-index: 1;
}
.about-content .section-heading {
  margin-bottom: 0.5rem;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.about-feature {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.about-feature-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background-color: #f0ede8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-feature-icon svg {
  width: 22px;
  height: 22px;
  color: #c78d3e;
}
.about-feature h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f1724;
  margin-bottom: 0.25rem;
}
.about-feature p {
  font-size: 0.875rem;
  color: #5c5c5c;
  line-height: 1.5;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 100px 0;
  background-color: #ffffff;
}
.services-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.services-header .section-subheading {
  margin-left: auto;
  margin-right: auto;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background-color: #fafaf8;
  border: 1px solid #eae7e2;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: #c78d3e;
}
.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: #f0ede8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background-color 0.3s ease;
}
.service-card:hover .service-card-icon {
  background-color: #c78d3e;
}
.service-card-icon svg {
  width: 28px;
  height: 28px;
  color: #c78d3e;
  transition: color 0.3s ease;
}
.service-card:hover .service-card-icon svg {
  color: #ffffff;
}
.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f1724;
  margin-bottom: 0.625rem;
}
.service-card p {
  font-size: 0.9375rem;
  color: #5c5c5c;
  line-height: 1.6;
  flex: 1;
}
.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #c78d3e;
  margin-top: 1.25rem;
  transition: gap 0.25s ease;
}
.service-card .service-link:hover {
  gap: 0.625rem;
}

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industries {
  padding: 100px 0;
  background-color: #fafaf8;
}
.industries-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.industries-header .section-subheading {
  margin-left: auto;
  margin-right: auto;
}
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.industry-card {
  background-color: #ffffff;
  border: 1px solid #eae7e2;
  border-radius: 10px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.industry-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #f0ede8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.industry-card-icon svg {
  width: 24px;
  height: 24px;
  color: #c78d3e;
}
.industry-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f1724;
}

/* ============================================================
   COUNTERS
   ============================================================ */
.counters {
  padding: 80px 0;
  background-color: #0f1724;
}
.counters .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.counter-item {
  text-align: center;
}
.counter-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #c78d3e;
  line-height: 1;
  letter-spacing: -0.02em;
}
.counter-suffix {
  color: #c78d3e;
}
.counter-label {
  font-size: 0.9375rem;
  color: #c0c5ce;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: 90px 0;
  background: linear-gradient(160deg, #1a2740 0%, #0f1724 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(199,141,62,0.08);
}
.cta-banner .container {
  position: relative;
  z-index: 1;
}
.cta-banner .section-heading {
  color: #ffffff;
}
.cta-banner .section-subheading {
  color: #c0c5ce;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btn {
  margin-top: 2rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 100px 0;
  background-color: #ffffff;
}
.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 {
  margin-bottom: 0.25rem;
}
.contact-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background-color: #f0ede8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  color: #c78d3e;
}
.contact-detail h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f1724;
  margin-bottom: 0.125rem;
}
.contact-detail p, .contact-detail a {
  font-size: 0.9375rem;
  color: #5c5c5c;
  transition: color 0.2s ease;
}
.contact-detail a:hover {
  color: #c78d3e;
}

/* Form */
.contact-form-wrapper {
  background-color: #fafaf8;
  border: 1px solid #eae7e2;
  border-radius: 12px;
  padding: 2.25rem;
}
.contact-form-wrapper h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f1724;
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: 1.125rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f1724;
  margin-bottom: 0.375rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d4d0c8;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #1c1c1c;
  background-color: #ffffff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c78d3e;
  box-shadow: 0 0 0 3px rgba(199,141,62,0.15);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}
.form-feedback {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 1.25rem;
}
.form-feedback.success {
  color: #1a7f6e;
}
.form-feedback.error {
  color: #c0392b;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: #0f1724;
  color: #c0c5ce;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 48px;
  border-bottom: 1px solid #1a2740;
}
.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.25rem;
}
.footer-brand-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #9098a8;
  max-width: 280px;
  margin-top: 1rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer-col ul a {
  font-size: 0.9375rem;
  color: #9098a8;
  transition: color 0.2s ease;
}
.footer-col ul a:hover {
  color: #c78d3e;
}
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-contact-list li {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  font-size: 0.875rem;
}
.footer-contact-list li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #c78d3e;
  margin-top: 3px;
}
.footer-contact-list a {
  color: #9098a8;
  transition: color 0.2s ease;
}
.footer-contact-list a:hover {
  color: #c78d3e;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  color: #606878;
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  color: #606878;
  transition: color 0.2s ease;
}
.footer-legal a:hover {
  color: #c78d3e;
}

/* ============================================================
   LEGAL PAGES (Privacy & Terms)
   ============================================================ */
.legal-page {
  padding: 140px 0 80px;
  background-color: #fafaf8;
}
.legal-page .container {
  max-width: 800px;
}
.legal-page h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: #0f1724;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.legal-page .legal-meta {
  font-size: 0.9375rem;
  color: #5c5c5c;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0ddd6;
}
.legal-page .legal-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #1c1c1c;
}
.legal-page .legal-body h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f1724;
  margin: 2.5rem 0 0.75rem;
}
.legal-page .legal-body h2:first-child {
  margin-top: 0;
}
.legal-page .legal-body p {
  margin-bottom: 1rem;
}
.legal-page .legal-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-page .legal-body ul li {
  margin-bottom: 0.5rem;
}

/* ============================================================
   SCROLL FADE-IN
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background-color: #ffffff;
    padding: 96px 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    transition: right 0.35s ease;
    align-items: flex-start;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-toggle {
    display: flex;
  }
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
  .hero {
    padding: 120px 0 60px;
  }
  .about .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact .container {
    grid-template-columns: 1fr;
  }
  .counters .container {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .industries-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .industries-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .about-features {
    grid-template-columns: 1fr;
  }
  .counters .container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .legal-page {
    padding: 120px 0 60px;
  }
}
