/* ==========================================================================
   ZAG Creative Web Design — Main Stylesheet
   Design System, Typography, Variables & Base Layout
   Aesthetic: Clean, Sophisticated, High-Contrast Minimalist (Stretch Creative style)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Custom Properties / Design Tokens --- */
:root {
  /* Brand Colors from Brief */
  --color-brand-1: #a4a9f9;         /* Soft lavender / periwinkle accent */
  --color-brand-2: #353de3;         /* Royal electric blue primary */
  --color-brand-2-hover: #262ecb;   /* Deeper electric blue for hover */
  --color-body: #4f4e4e;            /* Dark neutral grey body copy */
  --color-heading: #11121d;         /* Deep obsidian navy for Anton headings */
  --color-white: #ffffff;           /* Clean white */
  --color-surface-subtle: #f8f9fe;  /* Toned soft background */
  --color-surface-card: #ffffff;    /* Card background */
  --color-border: #e6e8f4;          /* Clean minimalist border */
  --color-border-subtle: #f0f2fa;   /* Extra subtle divider */
  --color-dark-bg: #11121d;         /* Contrast dark obsidian background */
  --color-dark-card: #181a29;       /* Dark card surface */
  --color-orange-accent: #f5580d;   /* ZAG logo exclamation accent */

  /* Typography Scale */
  --font-heading: 'Anton', sans-serif;
  --font-body: 'Google Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Heading Sizes Specified in Brief */
  --size-h1: 56px;
  --size-h2: 48px;
  --size-h3: 40px;
  --size-h4: 32px;
  --size-h5: 26px;
  --size-h6: 22px;
  --size-body: 18px;
  --size-lead: 21px;
  --size-sm: 15px;
  --size-xs: 13px;

  /* Line Heights */
  --lh-tight: 1.12;
  --lh-heading: 1.2;
  --lh-body: 1.7;

  /* Spacing Scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 36px;
  --space-xl: 56px;
  --space-2xl: 84px;
  --space-3xl: 120px;

  /* Layout Container */
  --container-max: 1200px;
  --container-narrow: 840px;
  --container-pad: 28px;

  /* UI Tokens */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-pill: 9999px;
  --shadow-subtle: 0 4px 24px rgba(17, 18, 29, 0.05);
  --shadow-hover: 0 12px 36px rgba(53, 61, 227, 0.09);
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Resets & Modern Normalization --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  color: var(--color-body);
  background-color: var(--color-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

/* --- Typography Hierarchy (Anton Headings) --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 400;
  line-height: var(--lh-tight);
}

h1 {
  font-size: var(--size-h1);
  letter-spacing: 0.8px;
}

h2 {
  font-size: var(--size-h2);
  letter-spacing: 0.6px;
}

h3 {
  font-size: var(--size-h3);
  letter-spacing: 0.5px;
}

h4 {
  font-size: var(--size-h4);
}

h5 {
  font-size: var(--size-h5);
}

h6 {
  font-size: var(--size-h6);
}

p {
  margin-bottom: 1.35em;
  color: var(--color-body);
}

p:last-child {
  margin-bottom: 0;
}

.lead-p {
  font-size: var(--size-lead);
  line-height: 1.6;
  color: #383737;
  font-weight: 400;
}

a {
  color: var(--color-brand-2);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover, a:focus-visible {
  color: var(--color-brand-2-hover);
}

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* Full-width content block (overrides inline max-width constraints) */
.full-width-block {
  width: 100%;
  max-width: none;
}

.section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  position: relative;
}

.section-lg {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.section-subtle {
  background-color: var(--color-surface-subtle);
}

.section-dark {
  background-color: var(--color-dark-bg);
  color: #e2e4ef;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--color-white);
}

.section-dark p {
  color: #c1c4d6;
}

/* --- Section Dividers (Stretch Creative style) --- */
.divider-line {
  height: 1px;
  background-color: var(--color-border);
  width: 100%;
  border: none;
}

.section-dark .divider-line {
  background-color: rgba(255, 255, 255, 0.1);
}

/* --- Eyebrow & Badges --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-brand-2);
  margin-bottom: var(--space-sm);
}

.eyebrow-accent {
  color: var(--color-brand-1);
}

.tag-pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  color: #4a4d62;
  white-space: nowrap;
}

.tag-pill.accent {
  background: rgba(164, 169, 249, 0.18);
  border-color: rgba(164, 169, 249, 0.6);
  color: var(--color-brand-2);
}

.tag-pill.active {
  background: var(--color-brand-2);
  border-color: var(--color-brand-2);
  color: var(--color-white);
}

/* --- Accessibility & Focus State --- */
:focus-visible {
  outline: 2px solid var(--color-brand-2);
  outline-offset: 3px;
}

.skip-to-content {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-brand-2);
  color: var(--color-white);
  padding: 10px 20px;
  z-index: 99999;
  font-weight: 600;
  border-radius: 4px;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 20px;
}

/* Text selections */
::selection {
  background-color: var(--color-brand-1);
  color: var(--color-heading);
}
