/* ============================================================
   WorldNexora — Global Stylesheet
   Palette: navy #0a2757 on off-white #f8f7f9
   Style: minimal, spacious, abc.xyz-inspired
   ============================================================ */

:root {
  --navy: #0a2757;
  --bg: #f8f7f9;
  --white: #ffffff;
  --body: #3d4a63;
  --muted: #6b7688;
  --line: rgba(10, 39, 87, 0.12);
  --line-soft: rgba(10, 39, 87, 0.07);
  --accent-soft: rgba(10, 39, 87, 0.05);
  --focus: #1d4ed8;
  --max: 1120px;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { color: var(--navy); font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; }

a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 18px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------- Navigation ---------------- */

.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(248, 247, 249, 0.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--navy);
  font-weight: 700; font-size: 1.125rem; letter-spacing: 0.01em;
}
.brand img { width: 34px; height: 34px; border-radius: 6px; }

.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--navy); font-size: 0.95rem; font-weight: 500;
  padding: 8px 14px; border-radius: 6px; transition: background 0.15s ease;
}
.nav-links a:hover { background: var(--accent-soft); }
.nav-links a[aria-current="page"] { font-weight: 700; }

.nav-cta {
  background: var(--navy); color: #fff !important; margin-left: 8px;
  padding: 10px 20px !important; border-radius: var(--radius);
}
.nav-cta:hover { background: #123a7a !important; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 6px;
  align-items: center; justify-content: center;
}
.nav-toggle:hover { background: var(--accent-soft); }
.nav-toggle .bar {
  display: block; width: 22px; height: 2px; background: var(--navy);
  position: relative; transition: background 0.2s ease;
}
.nav-toggle .bar::before, .nav-toggle .bar::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px;
  background: var(--navy); transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle .bar::before { top: -7px; }
.nav-toggle .bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; animation: menuIn 0.22s ease; }
  .nav-links a { padding: 14px 12px; font-size: 1.05rem; }
  .nav-cta { margin-left: 0; text-align: center; }
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------------- Sections & typography ---------------- */

main { padding-top: 72px; }

.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section.tight { padding: 72px 0; }

.eyebrow {
  display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}

.h-display { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.03em; }
.h-1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.h-2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 20px; }
.h-3 { font-size: 1.2rem; margin-bottom: 10px; }

.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--body); max-width: 46ch; }

.measure { max-width: 66ch; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  padding: 14px 28px; border-radius: var(--radius);
  border: 2px solid var(--navy);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #123a7a; border-color: #123a7a; }

.btn-secondary { background: transparent; color: var(--navy); }
.btn-secondary:hover { background: var(--accent-soft); }

.btn[aria-disabled="true"], .btn:disabled {
  background: #e4e3e8; border-color: #e4e3e8; color: var(--muted);
  cursor: not-allowed; transform: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------------- Hero ---------------- */

.hero { padding: 130px 0 110px; position: relative; overflow: hidden; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 48px; align-items: center;
}

.hero .lede { margin-top: 28px; }

.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 420px; height: auto; border-radius: 20%; }

@media (max-width: 860px) {
  .hero { padding: 90px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 240px; }
}

/* ---------------- Cards ---------------- */

.card-grid {
  display: grid; gap: 20px; margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(10, 39, 87, 0.07); }

.card-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--accent-soft); color: var(--navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }

.card p { font-size: 0.98rem; }

/* ---------------- Featured product / panels ---------------- */

.panel {
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: clamp(32px, 5vw, 64px);
}

.panel-navy { background: var(--navy); border: 0; color: rgba(255,255,255,0.85); }
.panel-navy h2, .panel-navy h3 { color: #fff; }
.panel-navy .btn-primary { background: #fff; color: var(--navy); border-color: #fff; }
.panel-navy .btn-primary:hover { background: var(--bg); border-color: var(--bg); }
.panel-navy .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.6); }
.panel-navy .btn-secondary:hover { background: rgba(255,255,255,0.1); }

.status-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 650;
  padding: 7px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--navy);
  border: 1px solid var(--line);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.panel-navy .badge { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.25); }
.panel-navy .badge .dot { background: #7fb2ff; }

.product-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
@media (max-width: 860px) { .product-split { grid-template-columns: 1fr; } }

.note { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }
.panel-navy .note { color: rgba(255,255,255,0.65); }

/* ---------------- Values list ---------------- */

.value-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0; margin-top: 32px; }
.value-list > div { padding: 28px 0; border-top: 1px solid var(--line-soft); }
.value-list h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-list p { font-size: 0.97rem; max-width: 40ch; }
@media (min-width: 700px) { .value-list { column-gap: 56px; } }

/* ---------------- Contact form ---------------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }

.field label { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.field .optional { color: var(--muted); font-weight: 400; }

.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 1rem; color: var(--navy);
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 13px 14px; width: 100%;
  transition: border-color 0.15s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(10,39,87,0.3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,39,87,0.12);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }

.field-error { display: none; color: #b3261e; font-size: 0.88rem; font-weight: 500; }
.field.invalid .field-error { display: block; }

.consent { flex-direction: row; align-items: flex-start; gap: 12px; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.consent label { font-weight: 400; color: var(--body); font-size: 0.95rem; }

.form-status { margin-top: 20px; padding: 16px 20px; border-radius: var(--radius); font-weight: 500; display: none; }
.form-status.success { display: block; background: #e8f3ec; color: #14532d; border: 1px solid #bbdcc8; }
.form-status.error { display: block; background: #fdeceb; color: #7f1d1d; border: 1px solid #f2c4c0; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.spinner {
  display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 8px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.contact-aside h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-aside > div { padding: 22px 0; border-top: 1px solid var(--line-soft); }
.contact-aside p { font-size: 0.97rem; }

/* ---------------- Social icons ---------------- */

.social-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  color: var(--navy); background: var(--accent-soft);
  transition: background 0.15s ease, transform 0.15s ease;
}
.social-links a:hover { background: rgba(10,39,87,0.12); transform: translateY(-2px); }
.social-links svg { width: 20px; height: 20px; }
.social-links .social-empty { color: var(--muted); font-size: 0.92rem; }

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

.site-footer { background: var(--navy); color: rgba(255,255,255,0.78); margin-top: 96px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 72px 24px 40px; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 1.1rem; }
.footer-brand img { width: 34px; height: 34px; border-radius: 6px; }

.footer-tagline { margin-top: 16px; max-width: 34ch; font-size: 0.97rem; }

.site-footer h3 {
  color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 16px; font-weight: 700;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 0.97rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer .social-links {
  margin-top: 20px;
  flex-direction: row;
  align-items: center;
}
.site-footer .social-links a { color: #fff; background: rgba(255,255,255,0.1); }
.site-footer .social-links a:hover { background: rgba(255,255,255,0.2); }
.site-footer .social-links .social-empty { color: rgba(255,255,255,0.5); }

.footer-bottom {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; text-align: center;
  font-size: 0.9rem; color: rgba(255,255,255,0.6);
}

/* ---------------- Legal & 404 ---------------- */

.legal h2 { font-size: 1.35rem; margin: 44px 0 14px; }
.legal p, .legal li { max-width: 70ch; }
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal .updated { color: var(--muted); font-size: 0.92rem; }

.error-page { text-align: center; padding: 140px 0; }
.error-page .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; color: var(--navy); letter-spacing: -0.04em; line-height: 1; }
.error-page p { max-width: 44ch; margin: 20px auto 0; }
.error-page .btn-row { justify-content: center; }

/* ---------------- Reveal animation ---------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
