/* ============================================================
   WAVELENGTH BASE CSS
   Shared brand styles for all Wavelength landing pages.
   Tokens, reset, typography, buttons, grid, utilities.
   ============================================================ */


/* ------------------------------------------------------------
   1. BRAND TOKENS (CSS Custom Properties)
   ------------------------------------------------------------ */

:root {
  /* Colours */
  --wl-navy:        #2C2D4C;
  --wl-red:         #E30613;
  --wl-red-hover:   #c70510;
  --wl-white:       #FFFFFF;
  --wl-body-text:   #435366;
  --wl-light-pink:  #F9ECED;
  --wl-light-grey:  #F5F6F8;

  /* Border radius */
  --wl-border-radius-sm: 8px;
  --wl-border-radius-md: 12px;

  /* Typography */
  --wl-font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Spacing scale (used by utility classes) */
  --wl-space-1: 8px;
  --wl-space-2: 16px;
  --wl-space-3: 32px;
  --wl-space-4: 64px;

  /* Layout */
  --wl-container-max: 1140px;
  --wl-container-pad: 20px;

  /* Transitions */
  --wl-transition-fast: 0.2s ease;
}

@media (min-width: 768px) {
  :root {
    --wl-container-pad: 40px;
  }
}


/* ------------------------------------------------------------
   2. CSS RESET
   Minimal, production-safe reset.
   ------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--wl-font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--wl-body-text);
  background-color: var(--wl-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--wl-red);
  text-decoration: none;
  transition: color var(--wl-transition-fast);
}

a:hover {
  color: var(--wl-red-hover);
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}


/* ------------------------------------------------------------
   3. TYPOGRAPHY SCALE
   Responsive heading hierarchy for premium executive pages.
   ------------------------------------------------------------ */

h1, h2, h3, h4 {
  color: var(--wl-navy);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* H1 — Hero headline */
h1 {
  font-size: 2rem;       /* 32px mobile */
  line-height: 1.15;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;   /* 40px tablet */
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;     /* 48px desktop */
  }
}

/* H2 — Section headlines */
h2 {
  font-size: 1.625rem;   /* 26px mobile */
  line-height: 1.2;
}

@media (min-width: 768px) {
  h2 {
    font-size: 2rem;     /* 32px tablet */
  }
}

@media (min-width: 1024px) {
  h2 {
    font-size: 2.25rem;  /* 36px desktop */
  }
}

/* H3 — Sub-section headlines */
h3 {
  font-size: 1.25rem;    /* 20px mobile */
  line-height: 1.25;
}

@media (min-width: 768px) {
  h3 {
    font-size: 1.5rem;   /* 24px desktop */
  }
}

/* H4 — Card/component headlines */
h4 {
  font-size: 1.125rem;   /* 18px mobile */
  line-height: 1.3;
  letter-spacing: -0.25px;
}

@media (min-width: 768px) {
  h4 {
    font-size: 1.25rem;  /* 20px desktop */
  }
}

/* Body text — already set on body, but explicit class for overrides */
.wl-body-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--wl-body-text);
}

/* Small text — captions, disclaimers, micro-copy */
.wl-small-text,
small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--wl-body-text);
}

/* Label text — uppercase tracking for tags like "FREE EXECUTIVE WEBINAR" */
.wl-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  line-height: 1.4;
  color: var(--wl-red);
}


/* ------------------------------------------------------------
   4. BUTTONS
   Primary (red CTA) and secondary (navy outline).
   ------------------------------------------------------------ */

/* Shared button base */
.wl-btn-primary,
.wl-btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: var(--wl-border-radius-sm);
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background var(--wl-transition-fast),
              color var(--wl-transition-fast),
              border-color var(--wl-transition-fast);
  line-height: 1.4;
}

/* Primary — Red background, white text */
.wl-btn-primary {
  background: var(--wl-red);
  color: var(--wl-white);
  border: 2px solid var(--wl-red);
}

.wl-btn-primary:hover,
.wl-btn-primary:focus-visible {
  background: var(--wl-red-hover);
  border-color: var(--wl-red-hover);
  color: var(--wl-white);
}

/* Secondary — Navy outline, transparent background */
.wl-btn-secondary {
  background: transparent;
  color: var(--wl-navy);
  border: 2px solid var(--wl-navy);
}

.wl-btn-secondary:hover,
.wl-btn-secondary:focus-visible {
  background: var(--wl-navy);
  color: var(--wl-white);
}

/* Full-width button modifier */
.wl-btn-full {
  display: block;
  width: 100%;
}


/* ------------------------------------------------------------
   5. LAYOUT — Container
   Centred max-width wrapper with responsive padding.
   ------------------------------------------------------------ */

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


/* ------------------------------------------------------------
   6. LAYOUT — Grid System
   Two-column grids with responsive collapse at 768px.
   ------------------------------------------------------------ */

.wl-grid-2 {
  display: grid;
  gap: 32px;
  align-items: start;
}

/* Default: single column on mobile */
.wl-grid-2 {
  grid-template-columns: 1fr;
}

/* Tablet and up: two equal columns (50/50) */
@media (min-width: 768px) {
  .wl-grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Hero variant: 60/40 split for content-heavy left, form right */
@media (min-width: 768px) {
  .wl-grid-2--hero {
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: center;
  }
}


/* ------------------------------------------------------------
   7. UTILITY CLASSES — Text Alignment
   ------------------------------------------------------------ */

.wl-text-center { text-align: center; }
.wl-text-left   { text-align: left; }
.wl-text-right  { text-align: right; }


/* ------------------------------------------------------------
   8. UTILITY CLASSES — Spacing (margin-top)
   Scale: 1 = 8px, 2 = 16px, 3 = 32px, 4 = 64px
   ------------------------------------------------------------ */

.wl-mt-1 { margin-top: var(--wl-space-1); }
.wl-mt-2 { margin-top: var(--wl-space-2); }
.wl-mt-3 { margin-top: var(--wl-space-3); }
.wl-mt-4 { margin-top: var(--wl-space-4); }

.wl-mb-1 { margin-bottom: var(--wl-space-1); }
.wl-mb-2 { margin-bottom: var(--wl-space-2); }
.wl-mb-3 { margin-bottom: var(--wl-space-3); }
.wl-mb-4 { margin-bottom: var(--wl-space-4); }


/* ------------------------------------------------------------
   9. UTILITY CLASSES — Display / Visibility
   ------------------------------------------------------------ */

/* Hide on mobile (below 768px), show on tablet+ */
.wl-hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .wl-hide-mobile {
    display: block;
  }
}

/* Show on mobile (below 768px), hide on tablet+ */
@media (min-width: 768px) {
  .wl-hide-desktop {
    display: none;
  }
}


/* ------------------------------------------------------------
   10. RESPONSIVE BREAKPOINT REFERENCE
   These are the project-wide breakpoints. Components should
   use these consistently.

   480px  — Small mobile (compact adjustments)
   768px  — Tablet (grid collapse, layout shifts)
   1024px — Desktop (full layout, larger type)
   ------------------------------------------------------------ */

/* Mobile-specific refinements (max-width: 480px) */
@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;  /* 28px on small phones */
  }

  h2 {
    font-size: 1.375rem; /* 22px on small phones */
  }

  .wl-btn-primary,
  .wl-btn-secondary {
    padding: 12px 20px;
    font-size: 15px;
  }
}
