/* ============================================
   Lone Cedar Dirt Works — v2.0
   Clean, modern, minimal
   ============================================ */

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

:root {
  --charcoal: #1a1a1a;
  --dark: #2a2a2a;
  --warm: #3d3428;
  --tan: #c4a96a;
  --tan-light: #dcc99a;
  --sand: #f7f3ed;
  --white: #ffffff;
  --text: #333333;
  --text-light: #777777;
  --green: #4a6741;
  --green-dark: #2d3f28;
  --radius: 8px;
  --max-w: 1140px;
}

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; line-height: 1.15; color: var(--charcoal); }
h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }

.section { padding: 100px 0; }
.section-sub { color: var(--text-light); font-size: 1.1rem; max-width: 500px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 16px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--tan);
  color: var(--charcoal);
}
.btn:hover { background: var(--tan-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ---- HEADER ---- */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.3s;
}
#header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 40px;
  width: auto;
}
.logo-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.nav a:hover { color: var(--charcoal); }
.nav-cta {
  padding: 10px 24px !important;
  background: var(--charcoal) !important;
  color: #fff !important;
  border-radius: 50px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--dark) !important; }

.header-phone {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--charcoal);
  white-space: nowrap;
  margin-left: auto;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/land-clearing-web.jpg') center/cover no-repeat;
  text-align: center;
  padding: 120px 24px 80px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,26,26,0.7) 0%, rgba(26,26,26,0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-tag {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: #fff;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- SERVICES ---- */
#services h2 { text-align: center; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.service-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--sand);
}
.service-card h3 {
  font-size: 1.25rem;
  padding: 20px 24px 4px;
}
.service-card p {
  padding: 0 24px 24px;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---- ABOUT ---- */
.section-dark {
  background: var(--sand);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img {
  height: 480px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center 30%;
  background-color: #ddd;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 500;
  font-size: 1rem;
}
.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tan);
}

/* ---- AREAS ---- */
#areas { text-align: center; }
.areas-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.areas-list span {
  padding: 12px 28px;
  background: var(--sand);
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: background 0.2s;
}
.areas-list span:hover { background: #ede8dd; }

#areas .section-sub { margin: 0 auto; }

/* ---- CONTACT ---- */
.section-contact {
  background: var(--charcoal);
  color: #fff;
}
.section-contact h2 { color: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  margin-bottom: 36px;
}
.contact-detail {
  margin-bottom: 20px;
}
.contact-detail strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 2px;
}
.contact-detail a,
.contact-detail span {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
}
.contact-detail a:hover { color: #fff; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 16px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  color: #fff;
  transition: border-color 0.2s;
  outline: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.35);
}
.contact-form select { color: rgba(255,255,255,0.35); }
.contact-form select option { color: var(--charcoal); background: #fff; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--tan);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { width: 100%; text-align: center; border: none; }

/* ---- FOOTER ---- */
footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-inner a { color: rgba(255,255,255,0.6); }
.footer-inner a:hover { color: #fff; }

/* ---- MOBILE BAR ---- */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--charcoal);
}
.mobile-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}
.mobile-bar a:first-child { background: var(--tan); color: var(--charcoal); }

/* ---- SCROLL ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-img { height: 300px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .nav, .header-phone { display: none; }
  .menu-toggle { display: flex; }

  /* Mobile nav overlay */
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--white);
    padding: 32px 24px;
    gap: 24px;
    z-index: 99;
  }
  .nav.open a { font-size: 1.2rem; }
  .nav.open .nav-cta { text-align: center; }

  .hero { min-height: 90vh; padding: 100px 20px 60px; }
  .hero h1 { font-size: 2.6rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-img { height: 180px; }

  .mobile-bar { display: flex; }
  body { padding-bottom: 56px; }

  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* Menu toggle active state */
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.active span:nth-child(2) { transform: rotate(-45deg); }
