/* =========================================================================
   ZEPHYR METALES, S.A. de C.V. — Design System
   "Agile Industrial Supply" — dynamic, modern, technical.
   Brand: navy blue + lime green, chemistry-flask mark with motion.
   ========================================================================= */

:root {
  /* Brand palette (from corporate identity) */
  --ink:        #111B45;   /* deepest navy — headings */
  --graphite:   #16245C;   /* primary navy / dark surfaces */
  --navy-600:   #20327A;
  --steel:      #5A668A;   /* secondary text (cool slate) */
  --steel-200:  #95A0BC;
  --mist:       #F4F7FC;   /* light section background (cool) */
  --mist-2:     #EAEFF8;
  --line:       #E1E8F3;   /* hairline borders */
  --line-2:     #D2DCEC;
  --white:      #FFFFFF;
  --green:      #7AB81E;   /* accent — chemistry / motion */
  --green-700:  #5E9214;
  --green-50:   #F0F7E2;
  --steelblue:  #2D52B8;   /* secondary accent (electric blue) */
  --warn-bg:    #FFF7E6;
  --warn-line:  #F0D89B;
  --warn-text:  #8a6d1f;

  --radius:     14px;
  --radius-sm:  10px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 2px rgba(17,27,69,.05), 0 1px 3px rgba(17,27,69,.06);
  --shadow:     0 6px 20px rgba(17,27,69,.09);
  --shadow-lg:  0 18px 50px rgba(17,27,69,.16);
  --maxw:       1160px;
  --ease:       cubic-bezier(.16,.84,.44,1);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--graphite);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--steelblue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin: .25rem 0; }

.muted { color: var(--steel); }
.small { font-size: .82rem; }
.center { text-align: center; }

/* ----------------------------- Layout ---------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(48px, 5vw, 88px) 0; }
.section--mist { background: var(--mist); border-block: 1px solid var(--line); }
.section--ink { background: var(--graphite); color: #D9E0E6; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--green); border-radius: 2px; }
.section--ink .eyebrow { color: #B6CF8C; }
.lead { font-size: 1.1rem; color: var(--steel); }
.section--ink .lead { color: #B8C2CB; }

/* ----------------------------- Header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.02rem; color: var(--ink); letter-spacing: .02em; }
.brand-text span { font-size: .66rem; color: var(--steel); letter-spacing: .04em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--graphite); font-weight: 600; font-size: .92rem;
  padding: 9px 13px; border-radius: 9px; text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-links a:hover { background: var(--mist); color: var(--ink); }
.nav-links a.active { color: var(--green-700); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden;
  background: var(--white);
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .78rem; font-weight: 700; color: var(--steel);
  padding: 6px 12px; transition: all .18s var(--ease); letter-spacing: .03em;
}
.lang-toggle button[aria-pressed="true"] { background: var(--graphite); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
  padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--white); color: var(--graphite); text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--primary { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.btn--primary:hover { background: var(--ink); }
.btn--green { background: var(--green); color: #fff; border-color: var(--green); }
.btn--green:hover { background: var(--green-700); }
.btn--ghost { background: transparent; }
.btn--lg { padding: 14px 24px; font-size: 1rem; }
.btn--block { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; border-radius: 8px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--graphite); border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after  { transform: translateY(5px); }

/* ------------------------------- Hero ---------------------------------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--mist) 100%); border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(420px 320px at 88% -8%, rgba(110,143,58,.10), transparent 70%),
    radial-gradient(520px 420px at 102% 60%, rgba(62,92,114,.08), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: clamp(48px, 6vw, 92px) 0; }
.hero h1 { margin-top: 14px; }
.hero p.lead { max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-visual { position: relative; }
.hero-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px; position: relative;
}
.hero-card img { margin: 0 auto 8px; max-height: 150px; width: auto; }
.hero-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.chip {
  display: flex; flex-direction: column; gap: 2px; background: var(--mist); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 13px;
}
.chip b { color: var(--ink); font-size: .92rem; }
.chip span { color: var(--steel); font-size: .73rem; }

/* --------------------------- Trust strip ------------------------------- */
.trust { background: var(--graphite); color: #cdd5db; }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 14px 38px; justify-content: center; padding: 18px 22px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: .86rem; }
.trust-item b { color: #fff; font-weight: 700; }
.trust-item svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.trust-sep { width: 1px; background: rgba(255,255,255,.16); align-self: stretch; }

/* ------------------------------ Cards ---------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.card.hoverable:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }

.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); margin-bottom: 16px; border: 1px solid #E2EAD3;
}
.icon svg { width: 24px; height: 24px; }
.icon--steel { background: #EAF0F4; color: var(--steelblue); border-color: #D8E2EA; }

.tag-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list li {
  margin: 0; font-size: .78rem; color: var(--graphite); background: var(--mist); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 999px;
}

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 30px; margin: 11px 0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A7730' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid #D8E4C5;
}

/* ----------------------- Feature split (Kathalyx etc.) ----------------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.split.reverse .split-media { order: 2; }
.product-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff;
  font-weight: 700; letter-spacing: .04em; padding: 7px 14px; border-radius: 999px; font-size: .8rem;
}
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.metric { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.metric b { display: block; color: var(--ink); }
.metric span { font-size: .76rem; color: var(--steel); }

/* --------------------------- Data table -------------------------------- */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
.data-table th { width: 38%; color: var(--steel); font-weight: 600; background: var(--mist); }
.data-table td { color: var(--ink); font-weight: 500; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }

/* -------------------------- Declaration box ---------------------------- */
.declaration {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow-sm);
}
.declaration::before { content: "§"; display:none; }
.declaration .sig { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: .9rem; }
.declaration .sig b { color: var(--ink); }

/* ------------------------------ Notice --------------------------------- */
.notice {
  display: flex; gap: 12px; align-items: flex-start; background: var(--warn-bg);
  border: 1px solid var(--warn-line); color: var(--warn-text); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: .88rem;
}
.notice svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }

/* --------------------------- CTA banner -------------------------------- */
.cta-banner { background: linear-gradient(120deg, var(--graphite), var(--ink)); color: #fff; border-radius: var(--radius-lg); padding: clamp(34px, 4vw, 56px); text-align: center; position: relative; overflow: hidden; }
.cta-banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(110,143,58,.35), transparent 70%); }
.cta-banner h2 { color: #fff; position: relative; }
.cta-banner p { color: #C3CCD3; max-width: 50ch; margin-inline: auto; position: relative; }
.cta-banner .hero-cta { justify-content: center; position: relative; }

/* ------------------------------ Forms ---------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--graphite); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .94rem; color: var(--ink); padding: 11px 13px; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); background: var(--white); transition: border-color .18s, box-shadow .18s; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(110,143,58,.15);
}

/* ----------------------------- Contact --------------------------------- */
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon { margin: 0; flex: none; width: 42px; height: 42px; }
.contact-item h4 { margin: 0 0 2px; font-size: .95rem; }
.contact-item p { margin: 0; color: var(--steel); font-size: .9rem; }
.map-frame { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: var(--radius); }

/* ------------------------------ Footer --------------------------------- */
.site-footer { background: var(--ink); color: #aeb9c1; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 0 36px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #aeb9c1; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 16px; background: #fff; padding: 8px 12px; border-radius: 10px; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 9px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; font-size: .8rem; color: #85939d; }

/* ----------------------------- Page hero ------------------------------- */
.page-hero { background: linear-gradient(180deg, #fff, var(--mist)); border-bottom: 1px solid var(--line); padding: clamp(40px, 5vw, 70px) 0; }
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero p.lead { max-width: 62ch; }
.breadcrumb { font-size: .8rem; color: var(--steel); margin-bottom: 10px; }
.breadcrumb a { color: var(--steel); }

/* --------------------------- i18n visibility --------------------------- */
[data-lang-only] { }

/* ------------------------------ Reveal --------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* --------------------------- Skip link --------------------------------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* ===================== ZEPHYR ENHANCEMENTS ============================== */

/* Hero gradient tuned to navy→green, with motion accents */
.hero { background: linear-gradient(160deg, #fff 0%, var(--mist) 60%, #EAF1E0 130%); }
.hero::before {
  background:
    radial-gradient(440px 340px at 86% -10%, rgba(122,184,30,.16), transparent 70%),
    radial-gradient(560px 460px at 104% 64%, rgba(45,82,184,.10), transparent 72%);
  opacity: 1;
}

/* Animated chemistry bubbles rising in the hero */
.hero-bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-bubbles span {
  position: absolute; bottom: -40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(154,206,74,.9), rgba(122,184,30,.55));
  box-shadow: 0 0 14px rgba(122,184,30,.35); opacity: 0; animation: rise linear infinite;
}
.hero-bubbles span:nth-child(1){ left: 8%;  width: 16px; height: 16px; animation-duration: 13s; animation-delay: 0s; }
.hero-bubbles span:nth-child(2){ left: 20%; width: 10px; height: 10px; animation-duration: 16s; animation-delay: 3s; }
.hero-bubbles span:nth-child(3){ left: 33%; width: 22px; height: 22px; animation-duration: 18s; animation-delay: 6s; }
.hero-bubbles span:nth-child(4){ left: 67%; width: 12px; height: 12px; animation-duration: 15s; animation-delay: 1.5s; }
.hero-bubbles span:nth-child(5){ left: 80%; width: 18px; height: 18px; animation-duration: 20s; animation-delay: 4.5s; }
.hero-bubbles span:nth-child(6){ left: 91%; width: 9px;  height: 9px;  animation-duration: 14s; animation-delay: 7s; }
@keyframes rise {
  0%   { transform: translateY(0) scale(.6); opacity: 0; }
  12%  { opacity: .85; }
  80%  { opacity: .5; }
  100% { transform: translateY(-86vh) scale(1.1); opacity: 0; }
}
.hero-grid { z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero-bubbles { display: none; } }

/* Speed-line motif (echoes the logo's motion lines) */
.speedlines { display: inline-flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.speedlines i { display: block; height: 3px; border-radius: 3px; background: var(--green); }
.speedlines i:nth-child(1){ width: 46px; opacity: 1; }
.speedlines i:nth-child(2){ width: 30px; opacity: .7; }
.speedlines i:nth-child(3){ width: 38px; opacity: .85; }

/* Gradient brand text accent */
.txt-grad { background: linear-gradient(90deg, var(--graphite), var(--steelblue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Process / "how we work" timeline */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.process .step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: var(--shadow-sm); }
.process .step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 24px; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(140deg, var(--graphite), var(--navy-600)); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; box-shadow: var(--shadow);
}
.process .step h3 { margin-top: 12px; }
.process .step .arrow { position: absolute; top: 0; right: -16px; color: var(--green); display: grid; place-items: center; height: 100%; }
.process .step:last-child .arrow { display: none; }

/* Dark section as brand navy with green glow */
.section--ink { background: linear-gradient(165deg, var(--graphite) 0%, var(--ink) 100%); position: relative; overflow: hidden; }
.section--ink::after { content: ""; position: absolute; left: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(122,184,30,.22), transparent 70%); pointer-events: none; }
.section--ink .wrap { position: relative; z-index: 1; }

/* Pill badge for "nueva empresa / agile" framing */
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--green-50); color: var(--green-700); border: 1px solid #D6E8B8; padding: 6px 13px; border-radius: 999px; font-size: .78rem; font-weight: 700; }

/* ----------------------------- Responsive ------------------------------ */
@media (max-width: 940px) {
  .hero-grid, .split, .grid-4, .grid-3, .form-grid, .footer-grid, .process { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .split.reverse .split-media { order: 0; }
  .hero-visual { max-width: 460px; }
  .footer-grid { gap: 28px; }
  .process .step .arrow { display: none; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 18px 18px; gap: 2px;
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .28s var(--ease); z-index: 40;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 10px; border-radius: 8px; }
  .nav-toggle { display: block; }
  .nav-actions .btn--primary { display: none; }
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .trust-sep { display: none; }
}
