/* ==========================================================================
   Nexus Foundations — stylesheet
   ========================================================================== */

:root {
  --navy-950: #060f1f;
  --navy-900: #0a1f3d;
  --navy-800: #12294f;
  --navy-700: #1b3763;
  --navy-600: #2a4b7c;
  --gold-500: #c9a227;
  --gold-400: #d9b84a;
  --gold-300: #e3c567;
  --cream-100: #f8f5ec;
  --cream-200: #f5f0e6;
  --cream-300: #ece3cf;
  --ink-900: #16181d;
  --ink-600: #4a4f58;
  --ink-400: #767c87;
  --line: rgba(10, 31, 61, 0.1);
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(10, 31, 61, 0.08);
  --shadow-md: 0 12px 32px rgba(10, 31, 61, 0.14);
  --shadow-gold: 0 10px 24px rgba(201, 162, 39, 0.28);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: var(--cream-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-600); }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
img { max-width: 100%; display: block; }

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

.eyebrow {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}

.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--navy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  color: var(--cream-200);
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--cream-100); }
.hero h1, .page-hero h1 { color: var(--cream-100); }
.section--navy p { color: rgba(245, 240, 230, 0.75); }
.section--cream { background: var(--cream-200); }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { box-shadow: 0 14px 30px rgba(201, 162, 39, 0.38); }
.btn-outline {
  background: transparent;
  border-color: rgba(245, 240, 230, 0.35);
  color: var(--cream-100);
}
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-300); }
.btn-navy {
  background: var(--navy-900);
  color: var(--cream-100);
}
.btn-navy:hover { background: var(--navy-800); }
.btn-block { width: 100%; justify-content: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 15, 31, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245, 240, 230, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 40px; width: auto; }
.brand-text {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--cream-100);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.brand-text span {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold-400);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-desktop a {
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(245, 240, 230, 0.82);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  background: rgba(245, 240, 230, 0.08);
  color: var(--gold-300);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(245, 240, 230, 0.25);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch a {
  padding: 5px 11px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.03em;
  color: rgba(245, 240, 230, 0.65);
  border-radius: 999px;
}
.lang-switch a.active {
  background: var(--gold-500);
  color: var(--navy-950);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--cream-100);
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--navy-950);
  border-top: 1px solid rgba(245, 240, 230, 0.08);
  padding: 8px 24px 20px;
}
.nav-mobile a {
  padding: 13px 0;
  color: rgba(245, 240, 230, 0.85);
  font-weight: 500;
  border-bottom: 1px solid rgba(245, 240, 230, 0.06);
}
.nav-mobile.open { display: flex; }

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(circle at 82% 18%, rgba(201, 162, 39, 0.16), transparent 55%), linear-gradient(165deg, var(--navy-900), var(--navy-950));
  color: var(--cream-100);
  padding: 96px 0 100px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,240,230,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,240,230,0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 70% 30%, black, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero p.lead {
  font-size: 1.14rem;
  color: rgba(245, 240, 230, 0.8);
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-art img {
  width: 100%;
  max-width: 380px;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}

.stat-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(245, 240, 230, 0.12);
}
.stat-row .num {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-400);
}
.stat-row .label {
  font-size: 0.85rem;
  color: rgba(245, 240, 230, 0.65);
}

/* Pillars / cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.pillar-card, .service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.pillar-card:hover, .service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: var(--gold-400);
  margin-bottom: 20px;
}
.icon-badge svg { width: 26px; height: 26px; }

.pillar-card .btn-textlink, .service-card .btn-textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy-800);
}
.pillar-card .btn-textlink:hover, .service-card .btn-textlink:hover { color: var(--gold-500); }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-800);
  background: var(--cream-300);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Services page groups */
.service-group {
  margin-bottom: 64px;
}
.service-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--cream-300);
}
.service-group-head h2 { margin: 0; }
.service-group-head .count {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--gold-500);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--cream-100);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(245, 240, 230, 0.75); margin: 0; }

/* Values / about */
.value-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.value-item .icon-badge { flex-shrink: 0; margin-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img, .split .art-box { border-radius: var(--radius); }
.art-box {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.art-box img { max-width: 55%; }

/* Timeline / process */
.process-list { counter-reset: step; }
.process-item {
  position: relative;
  padding-left: 62px;
  padding-bottom: 34px;
  border-left: 2px solid var(--cream-300);
  margin-left: 22px;
}
.process-item:last-child { border-color: transparent; padding-bottom: 0; }
.process-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -23px;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-400);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}
.contact-info-card {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  color: var(--cream-100);
  border-radius: var(--radius);
  padding: 40px 34px;
}
.contact-info-card h3 { color: #fff; }
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-row .icon-badge { margin-bottom: 0; background: rgba(245,240,230,0.08); }
.contact-row a, .contact-row div { color: rgba(245, 240, 230, 0.85); font-size: 0.95rem; }
.social-row { display: flex; gap: 10px; margin-top: 28px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(245,240,230,0.25);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { border-color: var(--gold-400); color: var(--gold-400); }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream-100);
  color: var(--ink-900);
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--ink-400); margin-top: 10px; }
.form-status {
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 14px;
  border-radius: 10px;
  transition: padding 0.15s ease;
}
.form-status:empty { margin-top: 0; }
.form-status--success {
  padding: 12px 16px;
  background: rgba(46, 158, 96, 0.12);
  color: #1e7a44;
}
.form-status--error {
  padding: 12px 16px;
  background: rgba(201, 60, 60, 0.1);
  color: #b23a3a;
}

/* Legal pages */
.legal-content { max-width: 760px; }
.legal-content h2 { margin-top: 2.2em; font-size: 1.35rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal-content p, .legal-content li { color: var(--ink-600); }
.legal-content ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal-content li { margin-bottom: 0.45em; }
.legal-content a { color: var(--navy-800); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--gold-500); }
.legal-updated { font-size: 0.85rem; color: var(--ink-400); margin-bottom: 0; }
.legal-note {
  background: var(--cream-300);
  border-left: 3px solid var(--gold-500);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--ink-600);
  margin: 1.4em 0;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: rgba(245, 240, 230, 0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(245, 240, 230, 0.08);
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: rgba(245, 240, 230, 0.6); max-width: 300px; font-size: 0.9rem; }
.footer-col h4 {
  color: var(--cream-100);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  padding: 7px 0;
  font-size: 0.9rem;
  color: rgba(245, 240, 230, 0.65);
}
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.82rem;
  color: rgba(245, 240, 230, 0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(245, 240, 230, 0.45); }
.footer-bottom a:hover { color: var(--gold-400); }

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  color: var(--cream-100);
  padding: 64px 0 72px;
}
.page-hero p { color: rgba(245, 240, 230, 0.75); max-width: 560px; }
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(245, 240, 230, 0.5);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--gold-400); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 240px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .value-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr; gap: 18px; }
  .nav-desktop { display: none; }
  .lang-switch.desktop-only { display: none; }
  .nav-toggle { display: flex; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 64px 0; }
  .cta-band { border-radius: 16px; }
}
