/* JECO Services — coming-soon site. Brand values sampled from the 2026-10 logo preview. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  --bg: #0a2421;
  --bg-raised: #0e2d29;
  --line: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.5);
  --green: #00a57a;
  --amber: #ffb000;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--green); text-underline-offset: 0.2em; }
a:hover { color: #19c393; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Home ---------- */

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem 3rem;
}

.hero__inner { display: flex; flex-direction: column; align-items: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 2.75rem;
}
.badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--amber);
}

.mark { width: clamp(5.5rem, 14vw, 8.25rem); height: auto; display: block; }

.wordmark {
  margin: 1.5rem 0 0;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  /* letter-spacing adds trailing space after the last letter; pull it back so the word stays centered */
  margin-right: -0.16em;
}

.headline {
  margin: clamp(2.5rem, 7vw, 4rem) 0 0;
  font-size: clamp(2.75rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.headline .accent { color: var(--green); }
.headline .dot { color: var(--amber); }

.tagline-es {
  margin: 1.5rem 0 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  color: var(--green);
}

.services {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0;
  font-size: clamp(1.0625rem, 2.4vw, 1.375rem);
  font-weight: 500;
}
.services li + li::before {
  content: "·";
  color: var(--green);
  padding: 0 0.6em;
}

.scroll-hint {
  margin-top: 3.5rem;
  font-size: 0.875rem;
  color: var(--faint);
  text-decoration: none;
}
.scroll-hint:hover { color: var(--muted); }

/* ---------- About ---------- */

.about { border-top: 1px solid var(--line); padding: 4.5rem 0 4rem; }

.about__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.about h2 {
  margin: 0 0 0.9rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.about h2 + p { margin-top: 0; }
.about p { color: var(--muted); max-width: 34rem; }

.about .lang {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.contact {
  margin-top: 3.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.contact p { margin: 0; color: var(--muted); }
.contact a { font-weight: 600; word-break: break-all; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  font-size: 0.875rem;
  color: var(--faint);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Legal pages ---------- */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 1.125rem;
}
.brand:hover { color: var(--text); }
.brand img { width: 2rem; height: 2rem; }
.lang-switch { font-size: 0.875rem; color: var(--faint); }
.lang-switch a { color: var(--muted); }

.doc { max-width: 46rem; padding: 3.5rem 1.25rem 4.5rem; }
.doc h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.doc .meta { margin: 0.75rem 0 2.5rem; color: var(--faint); font-size: 0.9375rem; }
.doc h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.doc h3 { margin: 1.75rem 0 0.5rem; font-size: 1.0625rem; font-weight: 700; }
.doc p,
.doc li { color: var(--muted); }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0.4rem 0; }
.doc strong { color: var(--text); font-weight: 600; }
/* Long URLs and emails (myaccount.google.com/permissions) must wrap on narrow phones. */
.doc a { overflow-wrap: anywhere; }
.doc .callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--green);
  background: var(--bg-raised);
  border-radius: 0 0.75rem 0.75rem 0;
}
.doc .callout p { margin: 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 4rem 0 3rem; }

@media (max-width: 760px) {
  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact { padding: 1.25rem; }
}

/* Keep "Automations · Custom systems · Content" on one line at phone width; a wrapped line would start with a dot. */
@media (max-width: 440px) {
  .services { font-size: 0.9375rem; flex-wrap: nowrap; white-space: nowrap; }
  .services li + li::before { padding: 0 0.4em; }
}
@media (max-width: 359px) {
  .services { flex-direction: column; gap: 0.35rem; }
  .services li + li::before { content: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__inner > :nth-child(2) { animation-delay: 0.05s; }
  .hero__inner > :nth-child(3) { animation-delay: 0.1s; }
  .hero__inner > :nth-child(4) { animation-delay: 0.18s; }
  .hero__inner > :nth-child(5) { animation-delay: 0.26s; }
  .hero__inner > :nth-child(6) { animation-delay: 0.32s; }
  .hero__inner > :nth-child(7) { animation-delay: 0.4s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}
