/* ==========================================================================
   Astratechnos Ltd. — Design System
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-950: #0a0e27;
  --navy-900: #0f1638;
  --navy-800: #121a44;
  --navy-700: #182154;
  --navy-600: #2a3b7a;
  --navy-500: #3d4f96;

  --teal-500: #2fd4c0;
  --teal-600: #1fb6a3;
  --teal-050: #e9fbf8;

  --amber-500: #e9aa4c;
  --amber-600: #cf8f2e;
  --amber-050: #fdf3e2;

  --ink-900: #12162b;
  --ink-700: #3a3f57;
  --ink-500: #656b85;
  --ink-300: #9297ab;

  --surface-0: #ffffff;
  --surface-50: #f6f7fb;
  --surface-100: #eef0f7;
  --surface-200: #e2e5f0;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(10, 14, 39, 0.08), 0 1px 2px rgba(10, 14, 39, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 14, 39, 0.10), 0 2px 8px rgba(10, 14, 39, 0.06);
  --shadow-lg: 0 24px 48px rgba(10, 14, 39, 0.16), 0 8px 16px rgba(10, 14, 39, 0.08);

  --container: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--surface-0);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--navy-900); }
p { color: var(--ink-700); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2.5px solid var(--teal-600);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.section { padding-block: clamp(3.5rem, 6vw, 6rem); }
.section-tight { padding-block: clamp(2.5rem, 4vw, 3.5rem); }
.section-alt { background: var(--surface-50); }
.section-dark { background: var(--navy-900); color: #cdd3ec; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #b7bede; }

.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber-500);
  display: inline-block;
}
.section-dark .eyebrow { color: var(--teal-500); }

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
.lead { font-size: 1.15rem; color: var(--ink-700); }
.section-dark .lead { color: #c2c8e4; }

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal-500); color: var(--navy-950); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-600); box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-ghost { border-color: var(--surface-200); color: var(--navy-900); }
.btn-ghost:hover { border-color: var(--navy-600); background: var(--surface-50); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.88rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--surface-200);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-900);
}
.brand img { width: 40px; height: 40px; }
.brand .brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-name small {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-500);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links a {
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-700);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--surface-100); color: var(--navy-900); }
.nav-links a[aria-current="page"] { color: var(--navy-900); background: var(--surface-100); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--surface-200);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 940px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--surface-200);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links a { padding: 0.75rem 0.6rem; border-radius: var(--radius-sm); }
  .site-header.nav-open .nav-links { display: flex; }
  .nav-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-actions .btn-desktop-only { display: none; }
}
@media (min-width: 941px) {
  .nav-actions .btn-mobile-only { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 90% at 20% 0%, #1a2456 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: #fff;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero .lead { color: #c2c8e4; margin-bottom: 2rem; max-width: 560px; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.hero-meta { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-size: 1.5rem; color: #fff; }
.hero-meta span { font-size: 0.82rem; color: #9aa3cc; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin-inline: auto;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--surface-200); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  background: var(--navy-900);
  color: var(--teal-500);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.96rem; }
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-600);
  background: var(--amber-050);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.pillar-card { position: relative; padding-top: 2.1rem; }

/* ---------- Stats ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (max-width: 700px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }
.stat strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--navy-900); }
.section-dark .stat strong { color: #fff; }
.stat span { color: var(--ink-500); font-size: 0.88rem; }

/* ---------- Logo strip ---------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.logo-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-pill);
  color: var(--ink-500);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.logo-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); }

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial .stars { color: var(--amber-500); margin-bottom: 1rem; letter-spacing: 0.15em; }
.testimonial p.quote { color: var(--ink-900); font-size: 1.02rem; flex-grow: 1; }
.testimonial .person { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-600), var(--teal-600));
  flex-shrink: 0;
}
.person strong { display: block; font-size: 0.92rem; color: var(--navy-900); }
.person span { font-size: 0.82rem; color: var(--ink-500); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-950));
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-banner p { color: #b7bede; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #9aa3cc;
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-brand img { width: 34px; height: 34px; }
.footer-brand span { font-weight: 700; color: #fff; font-size: 1.05rem; }
.site-footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul { display: flex; flex-direction: column; gap: 0.65rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.75rem;
  font-size: 0.85rem;
  color: var(--ink-300);
}
.social-row { display: flex; gap: 0.6rem; }
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-row a:hover { border-color: var(--teal-500); }
.social-row svg { width: 16px; height: 16px; }

/* ---------- Page header (interior pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-950));
  color: #fff;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.page-hero h1 { color: #fff; }
.page-hero .lead { max-width: 640px; }
.breadcrumb { display: flex; gap: 0.4rem; font-size: 0.85rem; color: #9aa3cc; margin-bottom: 1rem; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Services page ---------- */
.service-category { padding-block: clamp(2.5rem, 5vw, 4rem); }
.service-category:not(:last-child) { border-bottom: 1px solid var(--surface-200); }
.category-head { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 2.25rem; flex-wrap: wrap; }
.category-icon {
  width: 60px; height: 60px; border-radius: var(--radius-md);
  background: var(--navy-900); color: var(--teal-500);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.category-icon svg { width: 30px; height: 30px; }
.category-copy { max-width: 640px; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 700px) { .service-list { grid-template-columns: 1fr; } }
.service-item {
  display: flex; gap: 1rem; padding: 1.4rem; border: 1px solid var(--surface-200);
  border-radius: var(--radius-md); background: var(--surface-50);
}
.service-item .num {
  font-weight: 800; font-size: 0.85rem; color: var(--teal-600);
  background: var(--teal-050); width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.service-item h4 { font-size: 1rem; margin-bottom: 0.35rem; color: var(--navy-900); }
.service-item p { font-size: 0.9rem; margin: 0; }

/* ---------- About page ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }

.team-card { text-align: center; }
.team-card .avatar { width: 84px; height: 84px; font-size: 1.4rem; margin-inline: auto; margin-bottom: 1rem; }
.team-card h3 { margin-bottom: 0.15rem; }
.team-card .role { color: var(--teal-600); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.75rem; display: block; }

.timeline { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--surface-200); margin-left: 10px; }
.timeline-item { position: relative; padding: 0 0 2.25rem 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--teal-500); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--surface-200);
}
.timeline-item .year { font-weight: 700; color: var(--navy-600); font-size: 0.85rem; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--navy-950); color: #fff; border-radius: var(--radius-lg); padding: 2rem;
}
.contact-info-card h3 { color: #fff; }
.info-row { display: flex; gap: 0.9rem; padding-block: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
.info-row:first-of-type { border-top: none; margin-top: 1.25rem; }
.info-row .icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(47,212,192,0.15); color: var(--teal-500); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-row .icon svg { width: 18px; height: 18px; }
.info-row strong { display: block; font-size: 0.9rem; color: #fff; }
.info-row span, .info-row a { font-size: 0.88rem; color: #b7bede; }
.info-row a:hover { color: var(--teal-500); }

.map-placeholder {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-200);
  aspect-ratio: 16/10;
  position: relative;
  background:
    linear-gradient(rgba(18,26,68,0.9), rgba(18,26,68,0.75)),
    repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(255,255,255,0.06) 24px),
    repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(255,255,255,0.06) 24px),
    linear-gradient(135deg, #1a2456, #0a0e27);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.5rem; color: #fff; text-align: center;
}
.map-placeholder svg { width: 34px; height: 34px; color: var(--amber-500); }
.map-placeholder small { color: #9aa3cc; }

.form-card { background: #fff; border: 1px solid var(--surface-200); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--navy-900); margin-bottom: 0.4rem; }
.field .req { color: #d64545; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1.5px solid var(--surface-200); border-radius: var(--radius-sm);
  background: var(--surface-50); color: var(--ink-900); transition: border-color 0.15s ease, background-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-600); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.field .error-msg { display: none; color: #d64545; font-size: 0.8rem; margin-top: 0.35rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d64545; }
.field.invalid .error-msg { display: block; }
.checkbox-row { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.86rem; color: var(--ink-700); }
.checkbox-row input { width: 17px; height: 17px; margin-top: 0.2rem; flex-shrink: 0; }
.form-success, .form-error-banner {
  display: none; align-items: center; gap: 0.6rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.92rem; margin-bottom: 1.25rem;
}
.form-success { background: var(--teal-050); color: #0f6b5e; }
.form-error-banner { background: #fdeceb; color: #b3261e; }
.form-success.show, .form-error-banner.show { display: flex; }

/* ---------- Legal pages ---------- */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } }
.legal-toc { position: sticky; top: 90px; border: 1px solid var(--surface-200); border-radius: var(--radius-md); padding: 1.25rem; background: var(--surface-50); }
.legal-toc h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); margin-bottom: 0.85rem; }
.legal-toc ol { display: flex; flex-direction: column; gap: 0.55rem; counter-reset: toc; }
.legal-toc a { font-size: 0.88rem; color: var(--ink-700); display: block; }
.legal-toc a:hover { color: var(--navy-900); }
.legal-content h2 { margin-top: 2.5rem; scroll-margin-top: 6rem; margin-bottom: 0.85rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--ink-700); margin-bottom: 0.9rem; font-size: 0.98rem; }
.legal-content ul, .legal-content ol { padding-left: 1.4rem; list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content strong { color: var(--navy-900); }
.updated-badge { display: inline-block; background: var(--surface-100); color: var(--ink-500); padding: 0.4rem 0.85rem; border-radius: var(--radius-pill); font-size: 0.82rem; margin-bottom: 1rem; }

/* ---------- FAQ Accordion ---------- */
.faq-group { margin-bottom: 2.5rem; }
.faq-group h3 { margin-bottom: 1rem; color: var(--navy-600); }
.accordion-item { border: 1px solid var(--surface-200); border-radius: var(--radius-md); margin-bottom: 0.75rem; overflow: hidden; }
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem; background: #fff; border: none; text-align: left; font-weight: 700; color: var(--navy-900); font-size: 0.98rem;
}
.accordion-trigger:hover { background: var(--surface-50); }
.accordion-trigger .plus { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-100); position: relative; transition: transform 0.2s ease; }
.accordion-trigger .plus::before, .accordion-trigger .plus::after {
  content: ""; position: absolute; background: var(--navy-900); top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.accordion-trigger .plus::before { width: 10px; height: 2px; }
.accordion-trigger .plus::after { width: 2px; height: 10px; transition: opacity 0.2s ease; }
.accordion-item[open] .accordion-trigger .plus::after { opacity: 0; }
.accordion-item[open] .accordion-trigger .plus { background: var(--teal-050); }
.accordion-panel { padding: 0 1.3rem 1.25rem; color: var(--ink-700); font-size: 0.94rem; }
.accordion-item summary { list-style: none; cursor: pointer; }
.accordion-item summary::-webkit-details-marker { display: none; }

/* ---------- Careers ---------- */
.job-card { border: 1px solid var(--surface-200); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.job-card + .job-card { margin-top: 1rem; }
.job-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.6rem; }
.job-meta span { font-size: 0.78rem; font-weight: 700; color: var(--ink-500); background: var(--surface-100); padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); }
.perks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 780px) { .perks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .perks-grid { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.blog-card { display: flex; flex-direction: column; height: 100%; }
.blog-card .blog-thumb {
  height: 160px; border-radius: var(--radius-md); margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: flex; align-items: center; justify-content: center; color: var(--teal-500); position: relative; overflow: hidden;
}
.blog-card .blog-thumb svg { width: 40px; height: 40px; }
.blog-card .meta { display: flex; gap: 0.75rem; font-size: 0.78rem; color: var(--ink-500); margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.blog-card .meta .cat { color: var(--teal-600); }
.blog-card p { font-size: 0.92rem; flex-grow: 1; }
.blog-card .read-more { margin-top: 1rem; font-weight: 700; font-size: 0.88rem; color: var(--navy-600); display: inline-flex; align-items: center; gap: 0.35rem; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--surface-200); border: none; margin-block: 2.5rem; }
.badge-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.badge-list span { font-size: 0.8rem; font-weight: 700; padding: 0.4rem 0.85rem; border-radius: var(--radius-pill); background: var(--surface-100); color: var(--ink-700); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.icon-list { display: flex; flex-direction: column; gap: 1rem; }
.icon-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.icon-list .check {
  width: 26px; height: 26px; border-radius: 50%; background: var(--teal-050); color: var(--teal-600);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.1rem;
}
.icon-list .check svg { width: 14px; height: 14px; }

.back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-900); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease; z-index: 90; border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; }

/* Scroll reveal (progressive enhancement — content is visible by default) */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
