/* ============================================
   El Mixteco Landscaping — styles
   ============================================ */

:root {
  --charcoal: #1b1f1c;
  --charcoal-soft: #262b27;
  --green: #1f3d2b;
  --green-deep: #16291c;
  --green-bright: #3a6b48;
  --beige: #efe6d4;
  --beige-soft: #f7f2e8;
  --white: #ffffff;
  --ink: #20231f;
  --text-muted: #5c6258;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --radius: 6px;
  --transition: 220ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--beige-soft);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: var(--white);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

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

#services, #gallery, #areas, #quote {
  scroll-margin-top: 80px;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-bright);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  color: var(--charcoal);
  max-width: 720px;
}

.section-lead {
  margin-top: 16px;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 13px 26px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-large { padding: 16px 30px; font-size: 1rem; }
.btn-small { padding: 9px 18px; font-size: 0.86rem; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(31,61,43,0.6);
}
.btn-primary:hover {
  background: var(--green-bright);
  box-shadow: 0 12px 26px -8px rgba(31,61,43,0.7);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}
.btn-outline-dark:hover { background: var(--green); color: var(--white); }

.btn-ghost {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-ghost:hover { background: var(--charcoal); color: var(--white); }

.btn-ghost-light {
  background: transparent;
  color: var(--beige);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding-left: 8px;
  padding-right: 8px;
}
.btn-ghost-light:hover { color: var(--white); }

/* ============ NAVBAR ============ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 31, 28, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.wordmark-main {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}
.wordmark-sub {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--beige);
  margin-top: 4px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--beige);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--white); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--green-bright);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover::after { transform: scaleX(1); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-actions .btn-ghost {
  border-color: rgba(255,255,255,0.4);
  color: var(--beige);
}
.navbar-actions .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--beige);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--charcoal);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(58,107,72,0.3), transparent 55%),
    linear-gradient(180deg, rgba(20,24,21,0.78) 0%, rgba(20,24,21,0.58) 45%, rgba(15,18,16,0.88) 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-eyebrow {
  color: var(--green-bright);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-headline {
  color: var(--white);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1.04;
  max-width: 920px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.hero-sub {
  margin-top: 26px;
  max-width: 560px;
  color: rgba(239,230,212,0.85);
  font-size: 1.15rem;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  z-index: 2;
}

/* ============ TRUST BAR ============ */

.trust-bar {
  background: var(--green-deep);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.trust-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 30px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--beige);
  font-family: var(--font-display);
  font-size: 1.02rem;
}
.trust-item svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--green-bright);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============ SERVICES ============ */

.services { background: var(--beige-soft); }

.services-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--beige-soft);
  border: 1px solid rgba(32,35,31,0.08);
  border-radius: 8px;
  padding: 36px 30px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31,61,43,0.25);
  box-shadow: 0 20px 36px -24px rgba(27,31,28,0.25);
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31,61,43,0.08);
  border-radius: 50%;
}
.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============ GALLERY ============ */

.gallery { background: var(--charcoal); }
.gallery .section-eyebrow { color: var(--green-bright); }
.gallery .section-title { color: var(--white); }
.gallery .section-lead { color: rgba(239,230,212,0.7); }

/* ===== Before & After ===== */

.before-after {
  margin-top: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.before-after-title {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  color: var(--white);
}

.before-after-lead {
  margin-top: 10px;
  color: rgba(239,230,212,0.7);
  font-size: 0.98rem;
}

.before-after-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px -28px rgba(0,0,0,0.6);
}

.ba-photo {
  position: relative;
  aspect-ratio: 4/5;
  margin: 0;
  overflow: hidden;
}

.ba-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.ba-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
}
.ba-tag.ba-before { background: rgba(27,31,28,0.85); }
.ba-tag.ba-after { background: var(--green); }

.ba-caption {
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.05rem;
}

.gallery-subtitle {
  margin-top: 48px;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  color: var(--white);
}

.gallery-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 10px;
  background-color: var(--charcoal-soft);
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px -28px rgba(0,0,0,0.6);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 48px -24px rgba(0,0,0,0.7);
}

.gallery-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.gallery-card:hover .gallery-card-img {
  transform: scale(1.08);
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.15) 45%, transparent 70%);
}

.gallery-card figcaption {
  position: absolute;
  left: 22px;
  bottom: 20px;
  right: 22px;
  z-index: 2;
  color: var(--white);
  font-size: 0.95rem;
}
.gallery-card figcaption span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 2px;
}

/* ============ AREAS SERVED ============ */

.areas { background: var(--beige); }

.areas-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.area-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--beige-soft);
  border: 1px solid rgba(32,35,31,0.1);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--charcoal);
}

.pin {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.area-item-more {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============ WHY US ============ */

.why-us { background: var(--beige); }

.why-us-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.why-us-item {
  border-top: 2px solid var(--green);
  padding-top: 20px;
}
.why-us-item h3 {
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.why-us-item p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ============ CTA BAND ============ */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 100px 24px;
  text-align: center;
}

.cta-band-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.cta-band-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,41,28,0.88) 0%, rgba(16,20,17,0.82) 100%);
}

.cta-band-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}
.cta-band-inner h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  color: var(--white);
}
.cta-band-inner p {
  margin-top: 14px;
  color: rgba(239,230,212,0.85);
  font-size: 1.05rem;
}
.cta-band-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============ QUOTE FORM ============ */

.quote { background: var(--beige-soft); }

.quote-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.quote-contact {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.quote-form {
  background: var(--white);
  border: 1px solid rgba(32,35,31,0.08);
  border-top: 4px solid var(--green);
  border-radius: 8px;
  padding: 44px;
  box-shadow: 0 30px 60px -28px rgba(27,31,28,0.22);
}

.form-row { margin-bottom: 20px; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row-split > div { margin-bottom: 0; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.optional { font-weight: 400; color: var(--text-muted); }

input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid rgba(32,35,31,0.18);
  border-radius: 5px;
  background: var(--beige-soft);
  color: var(--ink);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(31,61,43,0.12);
}
textarea { resize: vertical; }

.form-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.form-success {
  margin-top: 18px;
  background: rgba(31,61,43,0.08);
  border: 1px solid rgba(31,61,43,0.25);
  color: var(--green-deep);
  padding: 16px 18px;
  border-radius: 6px;
  font-size: 0.92rem;
}
.form-success a { text-decoration: underline; }

/* ============ FOOTER ============ */

.footer { background: var(--charcoal); color: rgba(239,230,212,0.75); }

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand { display: flex; flex-direction: column; }
.footer-brand .wordmark-main { color: var(--white); font-size: 1.4rem; }
.footer-brand .wordmark-sub { color: var(--green-bright); margin-top: 4px; }
.footer-brand p { margin-top: 14px; font-size: 0.9rem; max-width: 260px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: rgba(239,230,212,0.75);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 24px;
  text-align: center;
  font-size: 0.82rem;
}

/* ============ MOBILE CALL BAR ============ */

.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--green);
  color: var(--white);
  padding: 14px 20px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
}
.mobile-call-bar span { font-size: 0.8rem; opacity: 0.85; }
.mobile-call-bar strong { font-size: 1.05rem; }

/* ============ SCROLL ANIMATION ============ */

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .before-after-grid { grid-template-columns: 1fr; gap: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
  .quote-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-collapsible { display: none; }
  .nav-toggle { display: flex; }

  .navbar.menu-open .nav-collapsible {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--charcoal);
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .navbar.menu-open .nav-links {
    flex-direction: column;
    gap: 18px;
  }
  .navbar.menu-open .navbar-actions {
    flex-direction: column;
    gap: 12px;
  }

  .mobile-call-bar { display: flex; }
  body { padding-bottom: 64px; }
  .footer-bottom { padding-bottom: 80px; }
}

@media (max-width: 640px) {
  .section-inner { padding: 64px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .before-after-grid { max-width: none; }
  .ba-tag { font-size: 0.62rem; padding: 4px 9px; top: 8px; left: 8px; }
  .areas-grid { grid-template-columns: 1fr; }
  .why-us-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { grid-template-columns: 1fr; gap: 16px; padding: 24px 20px; }
  .trust-item { justify-content: center; }
  .cta-band { padding: 72px 20px; }
  .cta-band-actions { flex-direction: column; align-items: stretch; }
  .cta-band-actions .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 56px 20px 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .quote-contact { flex-direction: column; }
  .quote-contact .btn { width: 100%; }
  .quote-form { padding: 28px; }
  .form-row-split { grid-template-columns: 1fr; gap: 0; }
  .form-row-split > div { margin-bottom: 20px; }
}
