/* ==========================================================================
   El Chango Media - styles
   Brand: Green #97b656 · Black #231f20 · White #ffffff · Font: Mulish
   ========================================================================== */

:root {
  --green: #97b656;
  --green-hover: #86a548;
  --green-dark: #4f6d1f;      /* green that passes contrast as text on white */
  --green-light: #c9e09a;     /* green for small text on dark photos */
  --ink: #231f20;
  --text: #3a3637;
  --muted: #5e5a5b;
  --subtle: #6f6b6c;
  --line: #e7e7e2;
  --cream: #faf9f3;
  --white: #ffffff;
  --footer-text: #bdb9ba;
  --radius: 6px;
  --gutter: 60px;
  --max: 1200px;
  --font: 'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); font-weight: 700; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--green-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:active { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: 12px;
}
.eyebrow-light { color: var(--green-light); font-size: 13px; margin-bottom: 14px; }
.section-heading { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 16px; }
.lead { font-size: 17px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.4;
  padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--ink); }
.btn-primary:hover { background: var(--green-hover); color: var(--ink); }
.btn-primary:active { background: #779440; color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); border-color: var(--white); color: var(--white); }
.btn-outline-light:active { background: rgba(255,255,255,.22); color: var(--white); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { font-weight: 600; }

/* ---------- Header & navigation ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: flex; }
.logo img { height: 34px; width: auto; }
.logo:hover { text-decoration: none; }

.main-nav ul { display: flex; align-items: center; gap: 32px; }
.nav-link {
  display: inline-block; font-size: 16px; font-weight: 600; color: var(--text);
  padding-bottom: 2px; box-shadow: inset 0 -2px 0 transparent;
  transition: color .15s ease, box-shadow .15s ease;
}
/* Hover and active (current page) share the same underline style */
.nav-link:hover,
.nav-link.is-active { color: var(--ink); text-decoration: none; box-shadow: inset 0 -2px 0 var(--green); }

.nav-cta {
  background: var(--ink); color: var(--white); padding: 9px 18px; border-radius: var(--radius);
  box-shadow: none;
}
.nav-cta:hover { background: #3a3536; color: var(--white); box-shadow: none; }
.nav-cta.is-active { background: var(--ink); color: var(--white); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--green); }

.menu-toggle {
  display: none; align-items: center; gap: 10px; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 14px; font: inherit; font-size: 15px; font-weight: 600;
  color: var(--ink); cursor: pointer; min-height: 44px;
}
.menu-toggle:hover { border-color: var(--ink); }
.menu-toggle-bars { display: inline-flex; flex-direction: column; justify-content: space-between; width: 20px; height: 14px; }
.menu-toggle-bars span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; background: #2b3a2a; }
.hero-large { min-height: 560px; }
.hero-page { min-height: 420px; }
.hero-tall { min-height: 620px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,22,18,.76) 0%, rgba(20,22,18,.52) 45%, rgba(20,22,18,.16) 100%);
}
.hero-content { position: relative; width: 100%; padding-top: 88px; padding-bottom: 88px; }
.hero-content > * { max-width: 660px; }
.hero h1 { color: var(--white); font-size: 50px; line-height: 1.12; letter-spacing: -.03em; margin-bottom: 16px; }
.hero-large h1 { font-size: 56px; letter-spacing: -.02em; margin-bottom: 18px; }
.hero-intro { color: #eef0ec; font-size: 20px; max-width: 620px; }
.hero-large .hero-intro { font-size: 22px; font-weight: 500; max-width: 600px; }
.hero .button-row { margin-top: 30px; }
.hero-large .hero-content { padding-top: 110px; padding-bottom: 110px; }

/* ---------- Plain page intro (legal pages) ---------- */
.page-intro { background: var(--cream); padding: 100px 0 64px; border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: 50px; line-height: 1.12; letter-spacing: -.03em; margin-bottom: 16px; }
.page-intro p { color: var(--muted); }

/* ---------- Generic sections ---------- */
.section { padding: 96px 0; }
.section-tinted { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.split-side { flex: 1 1 320px; max-width: 380px; }
.split-main { flex: 999 1 520px; min-width: 0; }

/* Two-column list rows (homepage services, About "Why choose us") */
.row-list { border-top: 1px solid var(--line); }
.row-list li { display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row-list h3 { flex: 0 0 260px; font-size: 18px; line-height: 1.65; }
.row-list p { flex: 1 1 280px; color: var(--muted); }

/* Featured project */
.feature { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: center; }
.feature-text { flex: 1 1 420px; max-width: 560px; }
.feature-text p { margin-bottom: 24px; }
.feature-media { flex: 1 1 400px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); }
.feature-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- Services page ---------- */
.services-list { padding: 40px 0 88px; }
.service { display: flex; flex-wrap: wrap; gap: 12px 64px; padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.service-title { flex: 0 1 340px; }
.service-number { font-size: 13px; font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.service-title h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.service-body { flex: 999 1 420px; min-width: 0; max-width: 680px; }
.service-body p { margin-bottom: 12px; }
.service-body .service-tags { font-size: 15px; color: var(--muted); margin: 0; }

.testimonial { padding: 0 0 96px; }
.testimonial blockquote {
  margin: 0 auto; max-width: 740px; border-left: 3px solid var(--green);
  padding: 6px 0 6px 24px; font-size: 19px; line-height: 1.6; color: var(--ink);
}
.testimonial cite { display: block; margin-top: 14px; font-size: 15px; font-style: normal; color: var(--subtle); }

/* ---------- Our Work ---------- */
.clients-intro { max-width: 640px; margin-bottom: 48px; }
.client-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 56px; }
.client-groups h3 { font-size: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--green); margin-bottom: 14px; }
.client-groups ul { display: flex; flex-direction: column; gap: 7px; font-size: 16px; }

/* ---------- About ---------- */
.story { padding: 88px 0 0; }
.story-text { max-width: 720px; font-size: 18px; line-height: 1.75; }
.story-text p + p { margin-top: 20px; }
.bio { font-size: 18px; line-height: 1.75; max-width: 680px; }
.bio p + p { margin-top: 18px; }
.bio .bio-aside { color: var(--muted); }

/* ---------- CTA strip ---------- */
.cta-strip { padding: 56px 0; }
.cta-tinted { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--subtle); margin-bottom: 4px; }
.cta-heading { font-size: 24px; font-weight: 700; color: var(--ink); }

/* ---------- Contact form ---------- */
.contact-section { padding: 80px 0 104px; }
.contact-form { max-width: 680px; display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 700; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--subtle); }
.field input, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--white);
  border: 1px solid #cfcfc8; border-radius: var(--radius); padding: 12px 14px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:hover, .field textarea:hover { border-color: #a9a9a1; }
.field input:focus, .field textarea:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(151,182,86,.35); outline: none; }
.field textarea { resize: vertical; min-height: 180px; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { font-size: 14px; color: #b3261e; }
.form-alert { border-radius: var(--radius); padding: 14px 18px; font-size: 16px; }
.form-alert-error { background: #fbeceb; border: 1px solid #f0c4c1; color: #7a1c16; }
.form-alert ul { list-style: disc; padding-left: 20px; margin-top: 6px; }
.form-note { font-size: 14px; color: var(--subtle); }
.contact-form button { align-self: flex-start; border: 0; }
/* Honeypot field: hidden from people, visible to bots */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Legal pages ---------- */
.legal { padding: 72px 0 104px; }
.legal-text { max-width: 760px; line-height: 1.75; }
.legal-text h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.01em; margin: 40px 0 12px; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p + p, .legal-text ul { margin-top: 12px; }
.legal-text ul { list-style: disc; padding-left: 22px; }
.legal-text li + li { margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--footer-text); padding: 56px 0 36px; font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.footer-brand { flex: 1 1 300px; max-width: 360px; }
.footer-logo { display: inline-flex; margin-bottom: 16px; }
.footer-logo img { height: 34px; width: auto; }
.footer-tagline { font-size: 18px; font-weight: 600; color: #e6e4e4; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.footer-nav a { color: #e6e4e4; font-size: 15px; }
.footer-nav a:hover, .footer-nav a:active { color: var(--white); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.footer-bottom { border-top: 1px solid #3a3536; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #a39fa0; }
.footer-legal a { color: #d8d5d5; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover, .footer-legal a:active { color: var(--white); text-decoration-color: var(--green); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  :root { --gutter: 40px; }
  .hero h1, .page-intro h1 { font-size: 44px; }
  .hero-large h1 { font-size: 48px; }
}

/* Mobile navigation */
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(35,31,32,.08);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav li:last-child { border-bottom: 0; padding-top: 16px; }
  .nav-link { display: block; font-size: 18px; padding: 14px 0; box-shadow: none; }
  .nav-link:hover, .nav-link.is-active { box-shadow: inset 3px 0 0 var(--green); padding-left: 12px; }
  .nav-cta { text-align: center; padding: 14px 18px; }
  .nav-cta:hover { padding-left: 18px; box-shadow: none; }
  .nav-cta.is-active { padding-left: 18px; }
}

/* Phones */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  .header-inner { padding-top: 14px; padding-bottom: 14px; }
  .logo img { height: 28px; }

  .hero-large { min-height: 520px; }
  .hero-page { min-height: 360px; }
  .hero-tall { min-height: 520px; }
  .hero-content, .hero-large .hero-content { padding-top: 64px; padding-bottom: 64px; }
  .hero-shade { background: linear-gradient(180deg, rgba(20,22,18,.55) 0%, rgba(20,22,18,.68) 100%); }
  .hero h1, .page-intro h1 { font-size: 34px; line-height: 1.15; }
  .hero-large h1 { font-size: 38px; }
  .hero-intro, .hero-large .hero-intro { font-size: 18px; }
  .hero .button-row { margin-top: 24px; }
  .btn { padding: 13px 20px; font-size: 16px; }

  .page-intro { padding: 64px 0 44px; }
  .section { padding: 64px 0; }
  .section-heading { font-size: 28px; }
  .split, .feature { gap: 32px; }
  .row-list h3 { flex-basis: 100%; }
  .services-list { padding: 16px 0 56px; }
  .service { padding: 36px 0; gap: 12px; }
  .service-title h2 { font-size: 24px; }
  .testimonial { padding-bottom: 64px; }
  .testimonial blockquote { font-size: 18px; padding-left: 18px; }
  .story { padding-top: 56px; }
  .story-text, .bio { font-size: 17px; }
  .cta-heading { font-size: 22px; }
  .contact-section { padding: 48px 0 72px; }
  .contact-form button { align-self: stretch; text-align: center; }
  .legal { padding: 48px 0 72px; }
  .legal-text h2 { font-size: 22px; }
  .site-footer { padding-top: 44px; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-brand { flex: none; }
  .footer-nav ul { gap: 14px 24px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
