/* ============================================================
   RIDGANE EXCAVATION LLC — brand stylesheet
   Palette: #D4FF00 action · #050505 base · #1a1a1a→#2d3238
   Text #9AA0A7 on dark · white on lime
   ============================================================ */

:root {
  --lime: #D4FF00;
  --lime-dark: #b8e000;
  --bg: #050505;
  --bg-1: #1a1a1a;
  --bg-2: #2d3238;
  --text: #9AA0A7;
  --text-bright: #e8eaed;
  --white: #ffffff;
  --line: #33383e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .9rem 1.6rem;
  font-size: 1rem; font-weight: 700; letter-spacing: .01em;
  border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  min-height: 48px; /* touch target */
}
.btn-primary { background: var(--lime); color: #0a0a0a; }
.btn-primary:hover { background: var(--lime-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(212,255,0,.25); }
.btn-outline { background: transparent; color: var(--lime); border-color: var(--lime); }
.btn-outline:hover { background: rgba(212,255,0,.1); transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.1rem; min-height: 40px; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,5,5,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand-logo { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; flex: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--lime); color: #0a0a0a;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .02em;
}
.brand-text { font-size: 1.05rem; line-height: 1.15; color: var(--text-bright); }
.brand-text strong { color: var(--lime); display: block; font-size: 1.05rem; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) { font-weight: 600; color: var(--text-bright); transition: color .15s ease; }
.nav-links a:not(.btn):hover { color: var(--lime); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle .bar { width: 26px; height: 3px; background: var(--text-bright); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(212,255,0,.12), transparent 60%),
    linear-gradient(180deg, rgba(5,5,5,.72), rgba(5,5,5,.38) 45%, rgba(5,5,5,.9));
  background-size: cover; background-position: center;
  overflow: hidden;
}
.hero.has-img { background-image: url('/images/hero.jpg'); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,.55), rgba(5,5,5,.15) 40%, rgba(5,5,5,.85));
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 4rem 0 6rem; }
.hero-logo { width: clamp(140px, 22vw, 240px); height: auto; margin-bottom: 1.6rem; filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)); }
.hero-kicker {
  display: inline-block; color: var(--lime); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; font-size: .85rem;
  border: 1px solid rgba(212,255,0,.4); border-radius: 999px;
  padding: .35rem 1rem; margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.08;
  color: var(--white); font-weight: 800; margin-bottom: 1.1rem; letter-spacing: -.01em;
}
.hero-subhead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text); max-width: 560px; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-phone {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--text-bright); font-size: 1.15rem;
}
.hero-phone strong { color: var(--white); }
.phone-icon { font-size: 1.3rem; }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-1), #14171b); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2.2rem 0; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--lime); }
.stat-label { color: var(--text); font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-1), var(--bg-2)); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-kicker { color: var(--lime); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin-bottom: .5rem; }
.section-title { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.15; margin-bottom: .75rem; }
.section-sub { color: var(--text); font-size: 1.05rem; }

.grid { display: grid; gap: 1.4rem; }
.services-grid, .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
.projects-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(160deg, var(--bg-1), #12151a);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(212,255,0,.4); box-shadow: var(--shadow); }
.card-icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 14px;
  background: rgba(212,255,0,.12); color: var(--lime);
  margin-bottom: 1.2rem;
}
.service-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: .6rem; }
.service-card p { font-size: .98rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-media { position: relative; }
.about-img {
  min-height: 460px; border-radius: var(--radius);
  background: linear-gradient(160deg, #2d3238, #0c0e11);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.about-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0) 55%, rgba(5,5,5,.4));
  pointer-events: none;
}
.about-badge {
  position: absolute; bottom: 1.2rem; left: 1.2rem;
  background: var(--lime); color: #0a0a0a; font-weight: 700;
  padding: .5rem 1rem; border-radius: 999px; font-size: .85rem;
}
.about-content .section-title { margin-bottom: 1rem; }
.about-content p { margin-bottom: 1.2rem; }
.value-list { margin: 1.4rem 0 1.8rem; display: grid; gap: .7rem; }
.value-list li { display: flex; align-items: center; gap: .7rem; color: var(--text-bright); font-weight: 500; }
.check { color: var(--lime); font-weight: 800; }

/* ---------- Projects / Filters ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.4rem; }
.filter {
  background: transparent; color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: .5rem 1.15rem; font-size: .92rem; font-weight: 600;
  cursor: pointer; min-height: 44px; transition: .15s;
}
.filter.active, .filter:hover { background: var(--lime); color: #0a0a0a; border-color: var(--lime); }

.project {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-1); transition: transform .2s ease, opacity .2s ease, border-color .2s ease;
}
.project:hover { transform: translateY(-5px); border-color: rgba(212,255,0,.4); }
.project.hide { display: none; }
.project-media { position: relative; height: 200px; display: grid; place-items: center; overflow: hidden; background: var(--bg-1); }
.pm-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.project-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0) 55%, rgba(5,5,5,.35)), radial-gradient(300px 140px at 85% 15%, rgba(212,255,0,.10), transparent 60%);
  pointer-events: none;
}
.project-tag {
  position: absolute; top: .9rem; right: .9rem; z-index: 2;
  background: rgba(5,5,5,.75); color: var(--lime); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; padding: .3rem .7rem; border-radius: 999px; border: 1px solid rgba(212,255,0,.3);
}
.project figcaption { padding: 1.1rem 1.2rem; }
.project h4 { color: var(--white); font-size: 1.05rem; margin-bottom: .25rem; }
.project figcaption p { font-size: .9rem; color: var(--text); }

/* ---------- Testimonials ---------- */
.testimonial p { font-size: 1.02rem; margin: .8rem 0; }
.stars { color: var(--lime); font-size: 1.15rem; letter-spacing: .12em; }
.t-author { color: var(--text); font-style: normal; font-size: .92rem; margin-top: .6rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-info .section-title { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 1.4rem; }
.contact-list { display: grid; gap: 1.1rem; margin-bottom: 1.6rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; }
.contact-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(212,255,0,.12); font-size: 1.15rem; flex: none;
}
.contact-list a { color: var(--text-bright); font-weight: 600; }
.contact-list a:hover { color: var(--lime); }
.contact-list strong { display: block; color: var(--white); font-size: .85rem; }
.map-placeholder {
  min-height: 180px; border-radius: var(--radius);
  background: linear-gradient(160deg, #2d3238, #12151a);
  border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--lime); font-weight: 700; letter-spacing: .03em;
}

.quote-form { background: linear-gradient(160deg, var(--bg-1), #12151a); }
.quote-form h3 { color: var(--white); margin-bottom: 1.3rem; font-size: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .4rem; color: var(--text-bright); font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem;
  background: #0c0e11; color: var(--white); border: 1px solid var(--line);
  border-radius: 8px; font-size: 1rem; font-family: inherit; min-height: 48px;
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--lime);
}
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #ff5a5a; }
.form-note { margin-top: 1rem; font-weight: 600; }
.form-note.ok { color: var(--lime); }
.form-note.err { color: #ff8a8a; }

/* ---------- Footer ---------- */
.footer { background: #040404; border-top: 1px solid var(--line); padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-title { color: var(--white); font-weight: 800; font-size: 1.1rem; margin-bottom: .5rem; }
.footer-logo-row { display: flex; align-items: center; gap: .65rem; }
.footer-logo { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; flex: none; }
.footer-head { color: var(--white); font-weight: 700; margin-bottom: .7rem; }
.footer-links ul, .footer-contact ul { display: grid; gap: .45rem; }
.footer a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.2rem 0; font-size: .9rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services-grid, .projects-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #0a0a0a; border-bottom: 1px solid var(--line);
    padding: .5rem 1rem 1.2rem; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 1rem 0; font-size: 1.05rem; }
  .nav-links .btn { margin-top: .8rem; justify-content: center; }
  .hero { min-height: 92vh; }
  .services-grid, .projects-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .section { padding: 3.5rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}