/* ===========================
   Guardics Ltd — Design System
   =========================== */

:root {
  --navy-950: #050b18;
  --navy-900: #0a1834;
  --navy-800: #0f2044;
  --navy-700: #16294f;
  --navy-600: #223a68;

  --platinum-100: #f4f6f8;
  --platinum-200: #e6e9ee;
  --platinum-300: #c9ced6;
  --platinum-400: #a7b0bd;
  --platinum-500: #7d8798;

  --gold-300: #eecf98;
  --gold-500: #c9a15a;
  --gold-700: #a9793b;

  --ink: #101826;
  --slate: #4a5568;
  --slate-light: #6b7688;
  --white: #ffffff;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --container-w: 1200px;
  --header-h: 84px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-md: 0 12px 32px -12px rgba(5, 11, 24, 0.35);
  --shadow-lg: 0 24px 60px -20px rgba(5, 11, 24, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, li, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea { font: inherit; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--navy-900); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; }

p { color: var(--slate); }

.section { padding: 112px 0; }
.section-alt { background: var(--platinum-100); }

.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 14px;
}

.section-heading { max-width: 640px; margin-bottom: 56px; }
.section-heading.light .section-eyebrow { color: var(--gold-300); }
.section-heading.light h2 { color: var(--platinum-100); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.28s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--navy-950);
  box-shadow: 0 8px 24px -10px rgba(201, 161, 90, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(201, 161, 90, 0.65); }

.btn-ghost {
  border-color: rgba(244, 246, 248, 0.35);
  color: var(--platinum-100);
}
.btn-ghost:hover { background: rgba(244, 246, 248, 0.08); border-color: rgba(244, 246, 248, 0.6); }

.btn-cta {
  border: 1px solid var(--platinum-300);
  color: var(--platinum-100);
  padding: 11px 22px;
}
.btn-cta:hover { background: var(--platinum-100); color: var(--navy-900); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), height 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(5, 11, 24, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.5);
  height: 72px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark { width: 42px; height: 42px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--platinum-100);
}
.logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--platinum-400);
  font-weight: 600;
  margin-left: 2px;
}

.primary-nav ul { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--platinum-200);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-500);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--platinum-100);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--navy-950);
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-svg { width: 100%; height: 100%; }

.hero-inner { position: relative; z-index: 1; max-width: 840px; padding-block: 80px 60px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--gold-300);
  margin-bottom: 22px;
}

.hero h1 { color: var(--white); margin-bottom: 26px; }

.hero-lede {
  color: var(--platinum-300);
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.trust-bar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  border-top: 1px solid rgba(244, 246, 248, 0.12);
  padding: 26px 24px;
  max-width: var(--container-w);
  margin-inline: auto;
  width: 100%;
}
.trust-bar li {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--platinum-400);
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-bar li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
  flex-shrink: 0;
}

/* ---------- Approach ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}

.approach-copy p { margin-bottom: 18px; }

.check-list { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--navy-900);
  font-size: 0.98rem;
}
.check-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
}
.check-icon svg { width: 100%; height: 100%; }

.approach-svg { width: 100%; height: auto; }

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

.capability-card {
  background: var(--white);
  border: 1px solid var(--platinum-200);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.capability-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-500);
}

.capability-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
  margin-bottom: 24px;
}
.capability-icon svg { width: 100%; height: 100%; }

.capability-card h3 { margin-bottom: 12px; }
.capability-card p { font-size: 0.95rem; }

/* ---------- Global Reach ---------- */
.global-reach {
  position: relative;
  background: var(--navy-950);
  overflow: hidden;
}
.global-reach-bg { position: absolute; inset: 0; z-index: 0; }
.global-reach .container { position: relative; z-index: 1; }

.reach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.reach-card {
  border: 1px solid rgba(201, 206, 214, 0.18);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  background: rgba(244, 246, 248, 0.03);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.reach-card:hover { border-color: var(--gold-500); transform: translateY(-4px); }

.reach-icon {
  width: 44px; height: 44px;
  color: var(--gold-300);
  margin-bottom: 20px;
  display: block;
}
.reach-icon svg { width: 100%; height: 100%; }

.reach-card h3 {
  color: var(--platinum-100);
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}

.contact-copy p { margin-bottom: 32px; max-width: 440px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--navy-900);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px;
}
.contact-icon svg { width: 100%; height: 100%; }
.contact-detail div { display: flex; flex-direction: column; gap: 2px; }
.contact-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-light); font-weight: 700; }
.contact-detail a { font-weight: 700; color: var(--navy-900); }
.contact-detail a:hover { color: var(--gold-700); }

.contact-form {
  position: relative;
  background: var(--platinum-100);
  border-radius: var(--radius-lg);
  padding: 44px;
  border: 1px solid var(--platinum-200);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--platinum-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 161, 90, 0.18);
}
.form-note { margin-top: 16px; font-size: 0.9rem; color: var(--navy-900); font-weight: 600; min-height: 1.2em; }
.form-note.is-error { color: #a9433b; }
.form-note.is-success { color: #1f7a4d; }

.form-honeypot {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.btn[disabled] { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--platinum-300);
  padding-top: 80px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244, 246, 248, 0.1);
}

.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { color: var(--platinum-400); font-size: 0.9rem; max-width: 260px; }

.footer-nav ul { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-size: 0.92rem; color: var(--platinum-300); transition: color 0.25s var(--ease); }
.footer-nav a:hover { color: var(--gold-300); }

.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-heading { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--platinum-500); font-weight: 700; margin-bottom: 4px; }
.footer-contact a { font-weight: 700; color: var(--platinum-100); }
.footer-contact a:hover { color: var(--gold-300); }
.footer-contact span { color: var(--platinum-400); font-size: 0.9rem; }

.footer-disclaimer {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--platinum-500);
  max-width: 920px;
  padding-block: 36px 24px;
}

.footer-bottom {
  padding-bottom: 32px;
  font-size: 0.82rem;
  color: var(--platinum-500);
}

/* ---------- Entrance animation ----------
   Content is always visible by default — this is a pure CSS, load-time
   effect (not scroll-triggered), so it always completes and never
   depends on JS timing to show content. */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .reveal { animation: fadeInUp 0.8s var(--ease) both; }
.hero .eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero .hero-lede { animation-delay: 0.28s; }
.hero .hero-actions { animation-delay: 0.4s; }
.hero .trust-bar { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .reveal { animation: none; opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .approach-grid { grid-template-columns: 1fr; gap: 56px; }
  .approach-art { max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .reach-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .capability-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 840px) {
  .primary-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: rgba(5, 11, 24, 0.98);
    backdrop-filter: blur(12px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    padding: 40px 24px;
  }
  .primary-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 8px; }
  .primary-nav .nav-link { display: block; padding: 14px 4px; font-size: 1.05rem; width: 100%; }
  .header-actions .btn-cta { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 80px 0; }
}

@media (max-width: 560px) {
  .container { padding-inline: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .reach-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
  .trust-bar { gap: 12px 24px; padding: 20px; }
  .logo-word { font-size: 1.05rem; }
}
