/* =============================================
   EXODUS LAWN CARE - Global Styles
   ============================================= */

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

:root {
  --red: #c0392b;
  --red-dark: #962d22;
  --red-glow: rgba(192, 57, 43, 0.3);
  --black: #111;
  --dark: #1a1a1a;
  --gray: #2a2a2a;
  --light-gray: #ccc;
  --white: #f5f5f5;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ---------- UTILITIES ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* Scroll-triggered reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- NAV ---------- */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--red);
  transition: padding var(--transition), background var(--transition);
}
nav.scrolled {
  padding: 0.6rem 2rem;
  background: rgba(17, 17, 17, 0.98);
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.4rem; font-weight: 700; letter-spacing: 1px;
}
.logo img {
  height: 40px; width: auto;
  border-radius: 4px;
}
.logo span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links > li > a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width var(--transition);
}
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { width: 100%; }
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--red); }

/* ---------- NAV DROPDOWN ---------- */
.dropdown > a { cursor: pointer; }
.dropdown > a .arrow {
  display: inline-block; font-size: 0.6rem; margin-left: 4px;
  transition: transform var(--transition);
}
.dropdown.open > a .arrow { transform: rotate(180deg); }
.dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 0.75rem); left: 0;
  min-width: 200px;
  background: var(--dark); border: 1px solid #333;
  border-top: 2px solid var(--red);
  border-radius: 0 0 6px 6px;
  padding: 0.5rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 200;
}
.dropdown.open .dropdown-menu { display: block; }

/* Hover open on desktop */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu { display: block; }
  .dropdown:hover > a .arrow { transform: rotate(180deg); }
}

.dropdown-menu li a {
  display: block; padding: 0.55rem 1.2rem;
  font-size: 0.9rem; white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu li a:hover {
  background: var(--gray); color: var(--red);
}

.menu-toggle {
  display: none; background: none; border: none;
  color: var(--white); font-size: 1.6rem; cursor: pointer;
}

/* ---------- HERO (Home) ---------- */
.hero {
  position: relative;
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media img,
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media img {
  position: absolute; inset: 0;
  z-index: 1;
  transition: opacity 0.8s ease;
}
.hero-media img.hidden { opacity: 0; }
.hero-media video {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(17,17,17,0.75), rgba(17,17,17,0.9));
}
.hero-content {
  position: relative; z-index: 3;
}
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1rem; }
.hero h1 span { color: var(--red); }
.hero p {
  font-size: 1.25rem; max-width: 600px; margin: 0 auto 2rem;
  color: var(--light-gray);
}

/* ---------- PAGE HEADER (Interior pages) ---------- */
.page-header {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: var(--dark);
  border-bottom: 3px solid var(--red);
}
.page-header h1 { font-size: 2.8rem; margin-bottom: 0.5rem; }
.page-header h1 span { color: var(--red); }
.page-header p { color: var(--light-gray); max-width: 550px; margin: 0 auto; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; padding: 0.85rem 2rem; border-radius: 4px;
  font-weight: 600; font-size: 1rem;
  transition: background var(--transition), transform 0.2s, box-shadow var(--transition);
  cursor: pointer; border: none;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--red-glow);
}
.btn-outline { border: 2px solid var(--red); color: var(--red); margin-left: 0.75rem; background: transparent; }
.btn-outline:hover {
  background: var(--red); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--red-glow);
}

/* ---------- SECTIONS ---------- */
section { padding: 5rem 2rem; }
.section-title {
  text-align: center; font-size: 2rem; margin-bottom: 0.5rem;
}
.section-title span { color: var(--red); }
.section-subtitle {
  text-align: center; color: var(--light-gray); max-width: 550px;
  margin: 0 auto 3rem;
}

/* ---------- SERVICE CARDS (Home) ---------- */
.bg-dark { background: var(--dark); }

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; max-width: 1000px; margin: 0 auto;
}
.service-card {
  background: var(--gray); border-radius: 8px; padding: 2rem;
  border-top: 3px solid var(--red);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--light-gray); font-size: 0.95rem; }
.service-card .btn { margin-top: 1.25rem; font-size: 0.85rem; padding: 0.55rem 1.25rem; }

/* ---------- SERVICE DETAIL PAGE ---------- */
.service-detail { max-width: 900px; margin: 0 auto; }
.service-detail h2 {
  font-size: 1.6rem; margin: 2.5rem 0 0.75rem;
  color: var(--red);
}
.service-detail p {
  color: var(--light-gray); font-size: 1.05rem; margin-bottom: 1rem;
}
.service-detail ul {
  list-style: none; padding: 0; margin-bottom: 1.5rem;
}
.service-detail ul li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--light-gray);
}
.service-detail ul li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--red); font-weight: 700;
}

/* ---------- ABOUT SECTION / PAGE ---------- */
.about-content { max-width: 800px; margin: 0 auto; text-align: center; }
.about-content p { color: var(--light-gray); margin-top: 1rem; font-size: 1.05rem; }

.about-values {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem; max-width: 900px; margin: 3rem auto 0;
}
.value-card {
  background: var(--gray); border-radius: 8px; padding: 2rem;
  text-align: center;
  border-left: 3px solid var(--red);
  transition: transform var(--transition);
}
.value-card:hover { transform: translateY(-4px); }
.value-card h3 { margin-bottom: 0.5rem; }
.value-card p { color: var(--light-gray); font-size: 0.95rem; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: var(--red); text-align: center; padding: 4rem 2rem;
}
.cta-banner h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.cta-banner p { margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .btn {
  background: var(--black); color: var(--white);
}
.cta-banner .btn:hover {
  background: var(--dark);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* ---------- CONTACT ---------- */
.contact-wrapper { max-width: 600px; margin: 0 auto; }
.contact-wrapper form { display: flex; flex-direction: column; gap: 1rem; }
.contact-wrapper input,
.contact-wrapper select,
.contact-wrapper textarea {
  padding: 0.85rem 1rem; border: 1px solid #444; border-radius: 4px;
  background: var(--gray); color: var(--white); font-size: 1rem;
  font-family: inherit; transition: border-color var(--transition);
}
.contact-wrapper input:focus,
.contact-wrapper select:focus,
.contact-wrapper textarea:focus { outline: none; border-color: var(--red); }
.contact-wrapper textarea { min-height: 140px; resize: vertical; }
.contact-wrapper select option { background: var(--gray); }

/* ---------- FOOTER ---------- */
footer {
  text-align: center; padding: 2rem; font-size: 0.85rem;
  color: #777; border-top: 1px solid #333;
}
footer span { color: var(--red); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.4rem; }
  .page-header h1 { font-size: 2rem; }

  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; width: 100%; background: var(--black);
    padding: 1rem 2rem; gap: 1rem; border-bottom: 2px solid var(--red);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }

  /* Dropdown stacks inline on mobile */
  .dropdown-menu {
    position: static; box-shadow: none; border: none; border-top: none;
    background: transparent; padding: 0 0 0 1rem;
  }
  .dropdown.open .dropdown-menu { display: block; }

  .btn-outline { margin-left: 0; margin-top: 0.5rem; }

  .hero-buttons { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
}
