/* ============================================
   PERIDOT DIRTWORKS — Main Stylesheet
   Excavation & Skid Steer | Roseburg, Oregon
   ============================================ */

:root {
  --dark:        #111410;
  --dark-2:      #1A1E16;
  --green:       #4A7A1E;
  --green-dark:  #385F17;
  --green-light: #5E9A26;
  --amber:       #C87B0A;
  --amber-light: #E08B1A;
  --white:       #FFFFFF;
  --off-white:   #F6F4F0;
  --gray-light:  #E8E5DF;
  --gray:        #9C9A96;
  --gray-dark:   #5A5855;
  --text:        #222220;
  --text-light:  #5A5855;

  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
  --transition: all 0.22s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-light); }
address { font-style: normal; }

/* ---- Typography ---- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

/* ---- Utilities ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; cursor: pointer; transition: var(--transition);
  text-align: center; border: 2px solid transparent; white-space: nowrap; font-family: var(--font);
}
.btn-primary { background: var(--amber); color: var(--white); border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-light); border-color: var(--amber-light); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,123,10,0.35); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-secondary:hover { background: var(--white); color: var(--dark); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-dark:hover { background: var(--dark-2); transform: translateY(-2px); }

/* ---- Sections ---- */
.section { padding: 88px 24px; }
.section-light { background: var(--off-white); }
.section-dark { background: var(--dark-2); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-green { background: var(--green); color: var(--white); }

.section-header { text-align: center; margin-bottom: 56px; }
.eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header .sub { font-size: 1.05rem; color: var(--text-light); max-width: 620px; margin: 0 auto; }
.section-dark .section-header .sub { color: rgba(255,255,255,0.65); }

/* ---- Header / Nav ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--dark); border-bottom: 2px solid var(--green);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; max-width: var(--max-width); margin: 0 auto; height: 72px;
}
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; gap: 1px; }
.logo-name { font-size: 1.25rem; font-weight: 800; color: var(--white); letter-spacing: 0.02em; }
.logo-name span { color: var(--green-light); }
.logo-tagline { font-size: 0.68rem; color: var(--gray); letter-spacing: 0.1em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  color: rgba(255,255,255,0.8); font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); border-bottom-color: var(--green-light); }
.nav-cta {
  background: var(--amber) !important; color: var(--white) !important;
  padding: 10px 20px !important; border-radius: var(--radius) !important; border-bottom: none !important;
}
.nav-cta:hover { background: var(--amber-light) !important; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(200,123,10,0.45); }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition); }

/* ---- Hero ---- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(140deg, #0A0D07 0%, #141A0E 45%, #0D1209 100%);
  position: relative; overflow: hidden; padding-top: 72px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 65% 45%, rgba(74,122,30,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(200,123,10,0.10) 0%, transparent 45%);
}
.hero-inner {
  position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto;
  padding: 80px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--green-light); margin-bottom: 20px;
  padding: 6px 14px; border: 1px solid rgba(94,154,38,0.35); border-radius: 4px;
}
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--green-light); }
.hero .lead { font-size: 1.1rem; color: rgba(255,255,255,0.72); margin-bottom: 36px; line-height: 1.8; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-trust {
  display: flex; gap: 28px; padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-icon { font-size: 1.3rem; }
.trust-text { font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.3; }
.trust-text strong { display: block; color: rgba(255,255,255,0.9); font-size: 0.88rem; }

.hero-visual { position: relative; }
.hero-img-wrap {
  aspect-ratio: 4/3; background: linear-gradient(145deg, #182210, #222E14);
  border-radius: 12px; border: 1px solid rgba(74,122,30,0.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.35); font-size: 0.88rem; text-align: center; gap: 10px;
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.hero-badge {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--amber); color: var(--white); padding: 16px 22px;
  border-radius: var(--radius); box-shadow: var(--shadow); font-size: 0.82rem; font-weight: 700; line-height: 1.4;
}

/* ---- Services Grid ---- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--gray-light); border-radius: 10px;
  padding: 32px 26px; transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--green); transform: scaleX(0); transition: var(--transition); transform-origin: left;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 2rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p { color: var(--text-light); font-size: 0.93rem; margin-bottom: 18px; }
.learn-more { font-size: 0.88rem; font-weight: 700; color: var(--green); display: inline-flex; align-items: center; gap: 5px; }
.learn-more:hover { gap: 9px; }

/* ---- Why Grid ---- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-left .section-header { text-align: left; margin-bottom: 36px; }
.why-left .section-header .sub { margin: 0; }
.why-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.why-item { display: flex; gap: 18px; align-items: flex-start; }
.why-icon {
  width: 46px; height: 46px; background: rgba(74,122,30,0.10); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.why-text h4 { margin-bottom: 4px; }
.why-text p { color: var(--text-light); font-size: 0.93rem; margin: 0; }
.why-right {
  background: linear-gradient(145deg, var(--dark-2), #0A0D07); border-radius: 12px;
  overflow: hidden; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(74,122,30,0.2);
}
.why-right img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Areas ---- */
.areas-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; }
.area-pill {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50px; padding: 11px 18px; text-align: center;
  font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.85); transition: var(--transition);
}
.area-pill:hover { background: rgba(74,122,30,0.28); border-color: var(--green-light); color: #fff; }

/* ---- Testimonials ---- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tcard {
  background: var(--white); border-radius: 10px; padding: 30px 28px;
  box-shadow: var(--shadow); position: relative;
}
.tcard::before {
  content: '"'; position: absolute; top: 12px; left: 20px;
  font-size: 5rem; color: rgba(74,122,30,0.08); font-family: Georgia, serif; line-height: 1;
}
.stars { color: #F5A623; margin-bottom: 14px; font-size: 1rem; }
.tcard p { color: var(--text-light); font-size: 0.93rem; font-style: italic; margin-bottom: 18px; position: relative; z-index: 1; }
.tcard-author strong { display: block; font-size: 0.93rem; color: var(--dark); }
.tcard-author span { font-size: 0.82rem; color: var(--gray); }

/* ---- CTA Banner ---- */
.cta-banner { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%); padding: 88px 24px; text-align: center; }
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.82); font-size: 1.1rem; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 26px; }
.ci-icon {
  width: 44px; height: 44px; background: rgba(74,122,30,0.10); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gray-dark); margin-bottom: 3px; }
.contact-item a, .contact-item span { font-size: 0.98rem; color: var(--text); font-weight: 600; }
.contact-hours { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--gray-light); }
.contact-hours h4 { margin-bottom: 10px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gray-dark); }

.contact-form { background: var(--off-white); padding: 40px; border-radius: 12px; }
.contact-form h3 { margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gray-dark); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 15px; border: 2px solid var(--gray-light); border-radius: var(--radius);
  font-size: 0.97rem; font-family: var(--font); background: var(--white); color: var(--text); transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(74,122,30,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.82rem; color: var(--gray); margin-top: 10px; }

/* ---- Footer ---- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 64px 24px 0; }
.footer-grid {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-name { font-size: 1.15rem; display: block; margin-bottom: 4px; }
.footer-desc { font-size: 0.88rem; color: rgba(255,255,255,0.48); margin: 16px 0 22px; line-height: 1.75; }
.footer-nap { font-size: 0.9rem; line-height: 1.9; }
.footer-nap a { color: rgba(255,255,255,0.7); }
.footer-nap a:hover { color: var(--green-light); }
.footer-col h4 { color: var(--white); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: var(--green-light); padding-left: 4px; }
.footer-bottom {
  max-width: var(--max-width); margin: 0 auto; padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: var(--green-light); }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(140deg, #0A0D07, #141A0E);
  padding: 140px 24px 80px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(74,122,30,0.12) 0%, transparent 70%);
}
.page-hero .breadcrumb { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-bottom: 18px; list-style: none; padding: 0; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.55); }
.page-hero .breadcrumb a:hover { color: var(--green-light); }
.page-hero .breadcrumb span { color: var(--green-light); }
.page-hero h1 { color: var(--white); position: relative; z-index: 1; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.72); font-size: 1.05rem; position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }

/* ---- Service Detail Layout ---- */
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: start; }
.detail-content h2 { margin: 40px 0 14px; }
.detail-content h2:first-child { margin-top: 0; }
.detail-content ul { margin-bottom: 1.2rem; }
.detail-content ul li { margin-bottom: 0.5rem; }
.detail-sidebar { position: sticky; top: 92px; }
.sidebar-cta { background: var(--green); color: var(--white); padding: 32px; border-radius: 10px; margin-bottom: 24px; text-align: center; }
.sidebar-cta h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 10px; }
.sidebar-cta p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 20px; }
.sidebar-cta .btn { width: 100%; margin-bottom: 10px; display: block; }
.sidebar-services { background: var(--off-white); border-radius: 10px; padding: 28px; }
.sidebar-services h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-dark); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--green); }
.sidebar-services ul { list-style: none; padding: 0; }
.sidebar-services li { border-bottom: 1px solid var(--gray-light); }
.sidebar-services a { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; font-size: 0.93rem; font-weight: 600; color: var(--text); }
.sidebar-services a:hover { color: var(--green); }
.sidebar-services a.active { color: var(--green); }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-light); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; padding: 20px 0;
  font-size: 0.98rem; font-weight: 700; color: var(--dark); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font); transition: var(--transition);
}
.faq-q:hover { color: var(--green); }
.faq-icon {
  width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; transition: var(--transition);
}
.faq-a { display: none; padding: 0 0 20px; color: var(--text-light); line-height: 1.78; font-size: 0.96rem; }
.faq-a.open { display: block; }
.faq-q.open .faq-icon { transform: rotate(45deg); background: var(--gray-dark); }

/* ---- Services Page List ---- */
.service-full { padding: 56px 0; border-bottom: 1px solid var(--gray-light); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.service-full:last-child { border-bottom: none; }
.service-full.reverse { direction: rtl; }
.service-full.reverse > * { direction: ltr; }
.service-full-icon { font-size: 3rem; margin-bottom: 12px; }
.service-full h2 { margin-bottom: 14px; }
.service-full p { color: var(--text-light); margin-bottom: 16px; }
.service-full ul { color: var(--text-light); margin-bottom: 20px; }
.service-img {
  aspect-ratio: 4/3; background: linear-gradient(145deg, var(--gray-light), #dedad4);
  border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--gray); font-size: 0.85rem; gap: 8px; border: 1px dashed var(--gray);
  overflow: hidden;
}
.service-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---- About Page ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.value-card { background: var(--white); border: 1px solid var(--gray-light); border-radius: 10px; padding: 28px 22px; text-align: center; }
.value-icon { font-size: 2.4rem; margin-bottom: 12px; }
.value-card h3 { font-size: 1rem; margin-bottom: 8px; }
.value-card p { font-size: 0.88rem; color: var(--text-light); margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .why-right { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-full { grid-template-columns: 1fr; gap: 28px; }
  .service-full.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  :root { }
  .section { padding: 60px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .areas-wrap { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .cta-btns { flex-direction: column; align-items: center; }
  .hero-trust { flex-direction: column; gap: 16px; }

  .nav-links {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    background: var(--dark); flex-direction: column; padding: 16px 24px 24px; gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav-links a { display: block; padding: 15px 0; font-size: 0.95rem; border-bottom: none; }
  .nav-cta { margin-top: 8px; display: block; text-align: center; padding: 14px !important; }
  .mobile-toggle { display: flex; }
}
