/* ==========================================================================
   Verteson: shared stylesheet (used by every page)
   ========================================================================== */

/* 1. DESIGN TOKENS
   Change a color or font here and it updates across the whole site. */
:root {
  --navy-900: #0B1530;   /* darkest: header, hero, footer */
  --navy-700: #12244A;   /* logo navy: headings on light backgrounds */
  --blue-500: #2662F0;   /* accent: buttons, links, highlights (darkened from #2F6BFF to pass WCAG AA contrast) */
  --blue-300: #8FB0FF;   /* lighter accent for use on dark backgrounds */
  --mist-100: #F4F7FB;   /* light section background */
  --line:     #DCE5EA;   /* borders on light backgrounds */
  --white:    #FFFFFF;
  --text:     #1E2A44;   /* body text on light backgrounds */
  --text-muted: #5A6785;
  --text-on-dark: #C9D3E8;

  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --max-width: 1140px;
  --radius: 6px;
}

/* 2. BASE: sensible defaults for every element */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
h1, h2, h3 { font-family: var(--font-heading); color: var(--navy-700); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--blue-500); }
img, svg { max-width: 100%; }

/* .container keeps content centred with a comfortable maximum width */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* 3. BUTTONS */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8em 1.4em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s;
}
.btn-primary { background: var(--blue-500); color: var(--white); }
.btn-primary:hover { background: #1D4FCC; }
.btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* 4. HEADER (sticky: stays at the top while scrolling) */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo svg { height: 30px; width: auto; }
.main-nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.main-nav a { color: var(--text-on-dark); text-decoration: none; font-size: 0.95rem; }
.main-nav a:hover { color: var(--white); }
.header-cta { padding: 0.6em 1.1em; font-size: 0.85rem; }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.8rem; cursor: pointer; }

/* 5. SECTIONS */
.section { padding: 96px 0; }
.section-light { background: var(--mist-100); }
.section-dark { background: var(--navy-900); color: var(--text-on-dark); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-intro { max-width: 680px; margin-bottom: 48px; color: var(--text-muted); }
.accent-bar { width: 40px; height: 4px; background: var(--blue-500); margin-bottom: 24px; }

/* Card grid: cards are at least 260px wide; the browser fits as many per row as it can */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.card p { color: var(--text-muted); margin: 0; }
.card .icon { width: 2rem; height: 2rem; color: var(--blue-500); display: block; margin-bottom: 16px; }
/* Inline SVG icons take their size from the text around them and their colour from `color` */
.icon-svg { width: 1em; height: 1em; vertical-align: -0.15em; flex-shrink: 0; }
.card-link { text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s; }
.card-link:hover { border-color: var(--blue-500); transform: translateY(-2px); }
.card-link h3::after { content: " →"; color: var(--blue-500); }
.step { font-family: var(--font-heading); font-weight: 700; color: var(--blue-500); font-size: 0.9rem; letter-spacing: 1px; }

/* 6. HERO */
.hero { background: var(--navy-900); color: var(--text-on-dark); padding: 112px 0; overflow: hidden; position: relative; }
.hero-inner { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); }
.hero-sub { font-size: 1.15rem; max-width: 600px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-pattern { width: 100%; height: auto; }

/* 7. SLIM BANDS (platforms, mission & vision) */
.band { padding: 40px 0; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; font-family: var(--font-heading); }
.platforms .label { color: var(--text-muted); font-size: 0.9rem; }
.platforms strong { color: var(--navy-700); font-size: 1.15rem; }
.mv-label { font-family: var(--font-heading); font-weight: 600; color: var(--blue-300); font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; }
.leadership-note { margin-top: 32px; font-weight: 500; color: var(--navy-700); }

/* 8. CALL TO ACTION */
.cta { text-align: center; }
.cta p { max-width: 560px; margin: 0 auto 32px; }

/* 9. FOOTER */
.site-footer { background: #070E22; color: var(--text-on-dark); padding: 64px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1.5fr; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; }

/* 10. PHONES & SMALL TABLETS (screens narrower than 860px) */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy-900); padding: 16px 24px 24px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 16px; }

  .section { padding: 64px 0; }
  .hero { padding: 72px 0; }
  .hero-inner { grid-template-columns: 1fr; }
  /* The V pattern moves behind the text as a faint background */
  .hero-art { position: absolute; right: -80px; top: 40px; width: 360px; opacity: 0.35; pointer-events: none; }
  .hero-text { position: relative; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   INNER PAGES (Capabilities, Industries, Technology, Contact, Privacy)
   ========================================================================== */

/* Shorter dark banner at the top of inner pages */
.page-hero { background: var(--navy-900); color: var(--text-on-dark); padding: 80px 0 64px; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { max-width: 720px; font-size: 1.1rem; }

/* Jump links ("pills") under the page title */
.jump-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.jump-links a { color: var(--white); text-decoration: none; font-size: 0.85rem; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 6px 14px; }
.jump-links a:hover { border-color: var(--blue-500); background: rgba(47,107,255,0.15); }

/* Sections reached by a jump link: leave room for the sticky header */
[id] { scroll-margin-top: 90px; }

/* "The problem" / "Why it matters" callout */
.callout { border-left: 4px solid var(--blue-500); background: var(--white); padding: 20px 24px; margin: 0 0 32px; max-width: 820px; }
.section-light .callout { background: var(--white); }
.section:not(.section-light) .callout { background: var(--mist-100); }
.callout strong { display: block; font-family: var(--font-heading); color: var(--navy-700); font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.callout p { margin: 0; }

/* Simple list of offerings: title + one line, two columns on wide screens */
.item-list { display: grid; gap: 28px 48px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.item-list h3 { margin-bottom: 6px; }
.item-list p { color: var(--text-muted); margin: 0; }
.section-dark .item-list p { color: var(--text-on-dark); }

/* Long-form text (Privacy Policy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-top: 40px; }

/* CONTACT PAGE */
.contact-grid { display: grid; gap: 48px; grid-template-columns: 1fr 1.4fr; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.contact-list .icon-svg { color: var(--blue-500); width: 1.3rem; height: 1.3rem; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.95rem; color: var(--navy-700); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--text);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--blue-500); outline-offset: 1px; border-color: var(--blue-500); }
.form-2col { display: grid; gap: 0 20px; grid-template-columns: 1fr 1fr; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text-muted); }
.consent input { width: auto; margin-top: 4px; }
.form-note { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); background: #E8F0FF; color: var(--navy-700); display: none; }
.form-note.show { display: block; }
.required { color: var(--blue-500); }

@media (max-width: 860px) {
  .page-hero { padding: 56px 0 48px; }
  .contact-grid, .form-2col { grid-template-columns: 1fr; }
}

/* Highlight the nav link of the page you're on */
.main-nav a[aria-current="page"] { color: var(--white); border-bottom: 2px solid var(--blue-500); padding-bottom: 4px; }

/* LEADERSHIP PROFILE CARD (home page): photo left, text right; stacks on phones */
.leadership-heading { margin-top: 72px; }
.profile { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; max-width: 960px; }
.profile-photo { width: 220px; height: 220px; object-fit: cover; border-radius: var(--radius); }
.profile-text { min-width: 0; }
.profile-text h3 { font-size: 1.4rem; margin-bottom: 2px; }
.profile-title { color: var(--blue-500); font-family: var(--font-heading); font-weight: 600; margin-bottom: 16px !important; }
.card .profile-text p { color: var(--text); margin-bottom: 12px; }
.card .profile-text .profile-creds { color: var(--text-muted); font-size: 0.9rem; }
.profile-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.profile-link:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .profile { grid-template-columns: 1fr; gap: 24px; }
  .profile-photo { width: 160px; height: 160px; }
}
.profile-quote { margin: 20px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue-500); font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; line-height: 1.5; color: var(--navy-700); }

/* ACCESSIBILITY */
/* Visible outline when someone moves through the page with the Tab key */
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 3px; border-radius: 2px; }
/* "Skip to main content" link: hidden until a keyboard user presses Tab */
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 200; background: var(--white); color: var(--navy-700); padding: 8px 14px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; }
