/* EscoLabs site styles. Part 1: shared structure. Part 2 (bottom): the look (sage green, design "E", body class d-e). */
/* Structure. Colors and fonts come from the variables below and Part 2.
   Compatibility: no flex gap, no aspect-ratio, no clamp without a fallback, no vh units, no position:fixed.
   Old browsers without grid simply stack blocks. */

:root {
  --bg: #fff; --bg2: #f4f4f4; --ink: #111; --muted: #555; --rule: #ddd;
  --accent: #b5502e; --accent-ink: #fff; --accent-hover: #9a4126;
  --head: Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 4px; --frame: #d8d2c6; --frame-bar: #ece7de; --phone: #111;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; background: var(--bg); color: #111; color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  overflow-wrap: break-word; word-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; border: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.12; margin: 0; }
p { margin: 0 0 14px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Language switch */
html[data-lang="es"] [lang="en"], html[data-lang="en"] [lang="es"] { display: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }


/* Header */
.top { border-bottom: 1px solid var(--rule); background: var(--bg); }
.top-in { display: flex; align-items: center; min-height: 64px; }
.mark { display: inline-block; padding: 12px 0; font: 600 21px/1 var(--head); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.mark b { font-weight: inherit; color: var(--accent); }
.nav { display: none; margin-left: auto; }
.nav a { display: inline-block; min-width: 44px; min-height: 44px; text-align: center; text-decoration: none; color: var(--muted); font-size: 15px; padding: 12px 10px; }
.nav a:hover { color: var(--ink); }
.lang {
  margin-left: auto; min-width: 44px; min-height: 44px; padding: 0 8px;
  font: 600 14px/1 var(--body); letter-spacing: 0.04em; color: var(--ink);
  background: transparent; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer;
}
.top .btn-sm { margin-left: 10px; }

/* Buttons and links */
.btn {
  display: inline-block; min-height: 48px; padding: 14px 22px;
  font: 600 16px/20px var(--body); text-align: center; text-decoration: none;
  color: #fff; color: var(--accent-ink); background: var(--accent);
  border: 0; border-radius: var(--radius); cursor: pointer; -webkit-appearance: none; appearance: none;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-sm { min-height: 44px; padding: 12px 14px; font-size: 15px; line-height: 20px; white-space: nowrap; }
.more, .go { display: inline-block; padding: 12px 0; font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; line-height: 1.2; }
.go { color: var(--accent); margin-top: 6px; }

/* Hero */
.hero { padding: 48px 0 56px; }
.kicker, .label, .case-kind, .includes-title {
  font: 600 13px/1.4 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}
h1 { font-size: 38px; letter-spacing: -0.02em; }
h1 em { font-style: italic; color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); margin-top: 20px; max-width: 34em; }
.actions { margin-top: 26px; }
.actions .btn { margin: 0 18px 12px 0; }
.hero-media { display: none; position: relative; padding: 0 0 36px; margin-top: 40px; }
.hero-media .frame-desk { width: 88%; }
.hero-media .frame-phone { position: absolute; right: 0; bottom: 0; width: 30%; max-width: 170px; }

/* Device frames */
.frame-desk { border: 1px solid var(--frame); border-radius: 8px; overflow: hidden; background: var(--frame-bar); }
.frame-desk .bar { height: 26px; padding: 0 10px; font: 11px/26px var(--body); color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-desk img { width: 100%; }
.frame-phone { border: 5px solid var(--phone); border-radius: 18px; overflow: hidden; background: var(--phone); }
.frame-phone img { width: 100%; border-radius: 12px; }

/* Sections */
.sec { padding: 56px 0; }
h2 { font-size: 30px; letter-spacing: -0.01em; margin-bottom: 28px; max-width: 22em; }
h3 { font-size: 24px; margin-bottom: 10px; }

/* Work cases */
.case { margin-top: 40px; }
.case + .case { margin-top: 64px; }
.case-media { position: relative; padding-bottom: 28px; margin-bottom: 24px; }
.case-media .frame-desk { width: 86%; }
.case-media .frame-phone { position: absolute; right: 0; bottom: 0; width: 28%; max-width: 160px; }
.case-text p { color: var(--muted); }

.ticks li { position: relative; padding-left: 28px; margin: 0 0 8px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 6px; height: 11px;
  border: solid var(--accent); border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg); transform: rotate(45deg);
}
.case-text .ticks { margin: 14px 0 10px; }

/* Services */
.col { margin-bottom: 28px; }
.col p { color: var(--muted); }
.includes { margin-top: 12px; padding: 24px 20px 14px; background: var(--bg2); border-radius: var(--radius); }

/* Steps */
.steps { counter-reset: s; }
.steps li { counter-increment: s; padding: 18px 0 0; margin-bottom: 26px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 13px/1 var(--body); color: var(--accent); margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; }

/* About */
.team { margin: 24px 0 0; }
.team div { border-top: 1px solid var(--rule); padding: 14px 0; }
.team dt { font: 22px/1.3 var(--head); }
.team dd { margin: 2px 0 0; color: var(--muted); }

/* FAQ */
.qs details { border-top: 1px solid var(--rule); }
.qs details:last-child { border-bottom: 1px solid var(--rule); }
.qs summary {
  position: relative; display: block; list-style: none; cursor: pointer;
  padding: 16px 40px 16px 0; min-height: 48px; font-weight: 600; font-size: 17px;
}
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 400 26px/1 var(--body); color: var(--accent); }
.qs details[open] summary::after { content: "\2212"; }
.qs details p { color: var(--muted); padding: 0 0 16px; margin: 0; max-width: 40em; }

/* Contact */
.contact h2 { margin-bottom: 16px; }
.form { margin-top: 28px; }
.form label { display: block; margin-bottom: 16px; font-size: 15px; font-weight: 600; }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px;
  font: 16px/1.4 var(--body); color: var(--ink); background: var(--bg);
  border: 1px solid var(--rule); border-radius: var(--radius); -webkit-appearance: none; appearance: none;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.cf-turnstile { margin: 4px 0 16px; min-height: 65px; }
.form .btn { width: 100%; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 12px 0 0; min-height: 1.6em; font-size: 15px; }
.status.ok { color: #2e7d32; }
.status.err { color: #c62828; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 24px 0 32px; font-size: 14px; color: var(--muted); }
.foot-in a { display: inline-block; padding: 10px 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Very small phones (320px) */
@media (max-width: 359px) {
  .wrap { padding: 0 14px; }
  .mark { font-size: 18px; }
  .btn-sm { padding: 12px 10px; font-size: 14px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  /* Turnstile is at least 300px wide; the form is 292px here, so let it use 4px of page padding on each side. */
  .cf-turnstile { margin-left: -4px; margin-right: -4px; }
}

/* Tablets and up */
@media (min-width: 760px) {
  .nav { display: block; }
  .lang { margin-left: 8px; }
  h1 { font-size: 52px; }
  h2 { font-size: 38px; }
  .hero { padding: 80px 0 88px; }
  .sec { padding: 84px 0; }
  .cols, .steps { display: grid; grid-template-columns: 1fr 1fr; grid-column-gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr 1fr; }
  .ticks-grid { display: grid; grid-template-columns: 1fr 1fr; grid-column-gap: 24px; }
  .form .btn { width: auto; min-width: 200px; }
  .foot-in { display: flex; justify-content: space-between; align-items: center; }
}
@media (min-width: 760px) and (max-width: 899px) {
  .nav a { padding: 12px 6px; font-size: 14px; }
}

/* Laptops and up */
@media (min-width: 900px) {
  h1 { font-size: 60px; }
  .hero-in.has-media, .two-col-hero .hero-in { display: grid; grid-template-columns: 1.05fr 0.95fr; grid-column-gap: 48px; align-items: center; }
  .case { display: grid; grid-template-columns: 1.25fr 1fr; grid-column-gap: 56px; align-items: center; }
  .case-flip .case-media { -webkit-box-ordinal-group: 3; order: 2; }
  .case-media { margin-bottom: 0; }
  .about-in, .contact-in { display: grid; grid-template-columns: 1fr 1fr; grid-column-gap: 64px; align-items: start; }
  .ticks-grid { grid-template-columns: 1fr 1fr 1fr; }
  .form { margin-top: 0; }
}

/* Motion: only opacity and transform, so old phones stay smooth. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .anim .reveal { opacity: 0; -webkit-transform: translateY(18px); transform: translateY(18px);
    transition: opacity 0.6s ease, -webkit-transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .anim .reveal.in { opacity: 1; -webkit-transform: none; transform: none; }
  .anim .steps li.reveal:nth-child(2), .anim .col.reveal:nth-child(2) { transition-delay: 0.1s; }
  .anim .steps li.reveal:nth-child(3) { transition-delay: 0.2s; }
  .hero-text > * { -webkit-animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-text > :nth-child(2) { -webkit-animation-delay: 0.08s; animation-delay: 0.08s; }
  .hero-text > :nth-child(3) { -webkit-animation-delay: 0.16s; animation-delay: 0.16s; }
  .hero-text > :nth-child(4) { -webkit-animation-delay: 0.24s; animation-delay: 0.24s; }
  .btn, .go, .more, .lang { transition: background-color 0.2s ease, color 0.2s ease, -webkit-transform 0.2s ease; transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
  .btn:active { -webkit-transform: scale(0.98); transform: scale(0.98); }
  .qs details[open] p { -webkit-animation: fade 0.3s ease both; animation: fade 0.3s ease both; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { -webkit-transform: translateY(-1px); transform: translateY(-1px); }
  .case-media .frame-desk, .case-media .frame-phone { transition: -webkit-transform 0.4s ease; transition: transform 0.4s ease; }
  .case:hover .frame-desk { -webkit-transform: translateY(-4px); transform: translateY(-4px); }
  .case:hover .frame-phone { -webkit-transform: translateY(-8px); transform: translateY(-8px); }
}
@-webkit-keyframes rise { from { opacity: 0; -webkit-transform: translateY(14px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@-webkit-keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.team dd.feats { margin-top: 8px; font-size: 15px; line-height: 1.5; }

/* ---- Part 2: look ---- */
/* E · Amigable: sage green and cream, rounded, friendly. Approachable for local businesses. */
:root {
  --bg: #f7f4ed; --bg2: #e3ece6; --ink: #1f2a26; --muted: #4d5a54; --rule: #d5ddd7;
  --accent: #2f5d50; --accent-hover: #244a3f; --accent-ink: #fff;
  --head: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px; --frame: #cdd8d1; --frame-bar: #eef3ef; --phone: #1f2a26;
}
.d-e h1, .d-e h2, .d-e h3, .d-e .mark, .d-e .team dt { font-weight: 700; letter-spacing: -0.02em; }
.d-e h1 em { font-style: normal; color: var(--accent); background: linear-gradient(transparent 58%, #fde7b0 58%); padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.d-e .btn { border-radius: 999px; }
.d-e .lang { border-radius: 999px; }
.d-e .hero-media { display: block; }
.d-e .hero { background: var(--bg2); }
.d-e .frame-desk { border-radius: 14px; }
.d-e .frame-phone { border-radius: 24px; }
.d-e .frame-phone img { border-radius: 18px; }
.d-e .frame-desk, .d-e .frame-phone { box-shadow: 0 20px 40px -26px rgba(31, 60, 50, 0.5); }
.d-e .col, .d-e .steps li, .d-e .team div { background: #fff; border-radius: var(--radius); padding: 22px 20px; border: 0; }
.d-e .steps li { border-top: 0; }
.d-e .team div { margin-bottom: 10px; }
.d-e .includes { background: var(--bg2); }
.d-e .qs details { background: #fff; border: 0; border-radius: 12px; padding: 0 16px; margin-bottom: 10px; }
.d-e .qs details:last-child { border: 0; }
.d-e .contact { background: var(--accent); color: #fff; }
.d-e .contact .label { color: #fde7b0; }
.d-e .contact a { color: #fff; }
.d-e .contact .form { background: #fff; color: var(--ink); padding: 22px 18px; border-radius: 18px; }
.d-e .contact .form a { color: var(--accent); }
@media (min-width: 900px) {
  .d-e .hero-in { display: grid; grid-template-columns: 1fr 1fr; grid-column-gap: 48px; align-items: center; }
  .d-e .hero-media { margin-top: 0; }
}
@media (max-width: 359px) {
  .d-e .contact .form { padding: 18px 10px; }
  .d-e .cf-turnstile { margin-left: -14px; margin-right: -14px; }
}
