/* ================================
   Greeksimmers.com Design System (CSS Tokens)
   ================================ */

/* ===== Import Google Font: Poppins (Latin + Greek) ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap&subset=latin,greek');

:root {
  /* ===== Colors ===== */
  --white: #FFFFFF;
  --black: #151515;

  /* Primary Palette */
  --dark-blue: #07162B;
  --dark-blue-rgb: 7, 22, 43;
  --main: #226DD7;
  --main-rgb: 34, 109, 215;
  --light-blue: #EEF4FC;
  --light-blue-rgb: 238, 244, 252;

  /* Accent */
  --accent-1: #F2AF11;
  --accent-1-rgb: 242, 175, 17;

  /* Neutrals */
  --light-grey: #F5F5F5;
  --gray: #737578;

  /* Accessible text variants (WCAG AA 4.5:1 on white) */
  --accent-1-text: #956D00;

  /* ===== Typography ===== */
  --font-family-base: 'Poppins', sans-serif;
  --font-weight-regular: 400;
  --font-weight-bold: 700;

  /* Font Sizes */
  --h1-size: 96px;
  --h2-size: 64px;
  --h3-size: 48px;
  --h4-size: 40px;
  --h5-size: 32px;
  --h6-size: 24px;
  --h7-size: 16px;
  --p-size: 16px;
  --p-sm-size: 12px;

  /* Line Heights */
  --lh-tight: 1.2;
  --lh-snug: 1.3;
  --lh-normal: 1.6;

  /* ===== Spacing Scale ===== */
  --sp-xxs: 4px;
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-m: 16px;
  --sp-ml: 24px;
  --sp-l: 32px;
  --sp-xl: 64px;
  --sp-xxl: 128px;
  --sp-xxxl: 256px;

  /* ===== Radius ===== */
  --radius: 16px;
  --radius-circle: 9999px;

  /* ===== Breakpoints ===== */
  --bp-mobile: 799px;
  --bp-tablet: 1280px;
  /* Desktop: 1280px and above */
}

/* ================================
   Base
   ================================ */
html {
  box-sizing: border-box;
  font-family: var(--font-family-base);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

*, *::before, *::after { box-sizing: inherit; }

/* Ensure hidden overlays/modals don't block interactions */
[aria-hidden="true"],
[hidden] {
  pointer-events: none !important;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-weight: var(--font-weight-regular);
  font-size: var(--p-size);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  min-width: 0;
  padding-top: 64px;
}

@media (max-width: 460px) {
  body {
    padding-top: 42px;
  }
}

/* ================================
   Typography
   ================================ */
h1, .h1 {
  margin: 0 0 var(--sp-m);
  font-weight: var(--font-weight-bold);
  font-size: var(--h1-size);
  line-height: var(--lh-tight);
  color: var(--dark-blue);
}

h2, .h2 {
  margin: 0 0 var(--sp-m);
  font-weight: var(--font-weight-bold);
  font-size: var(--h2-size);
  line-height: var(--lh-tight);
  color: var(--dark-blue);
}

h3, .h3 {
  margin: 0 0 var(--sp-m);
  font-weight: var(--font-weight-bold);
  font-size: var(--h3-size);
  line-height: var(--lh-tight);
  color: var(--dark-blue);
}

h4, .h4 {
  margin: 0 0 var(--sp-m);
  font-weight: var(--font-weight-bold);
  font-size: var(--h4-size);
  line-height: var(--lh-snug);
  color: var(--dark-blue);
}

h5, .h5 {
  margin: 0 0 var(--sp-m);
  font-weight: var(--font-weight-bold);
  font-size: var(--h5-size);
  line-height: var(--lh-snug);
  color: var(--dark-blue);
}

h6, .h6 {
  margin: 0 0 var(--sp-m);
  font-weight: var(--font-weight-bold);
  font-size: var(--h6-size);
  line-height: var(--lh-snug);
  color: var(--dark-blue);
}

.h7 {
  margin: 0 0 var(--sp-m);
  font-weight: var(--font-weight-bold);
  font-size: var(--h7-size);
  line-height: var(--lh-snug);
  color: var(--dark-blue);
}

p, .p {
  margin: 0 0 var(--sp-m);
  font-weight: var(--font-weight-regular);
  font-size: var(--p-size);
  line-height: var(--lh-normal);
  color: var(--black);
}

.p-sm {
  margin: 0 0 var(--sp-m);
  font-size: var(--p-sm-size);
  line-height: var(--lh-normal);
}

/* ================================
   Utilities
   ================================ */
.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: var(--radius-circle); }

/* Spacing utilities */
.mb-xxs { margin-bottom: var(--sp-xxs); }
.mb-xs  { margin-bottom: var(--sp-xs); }
.mb-sm  { margin-bottom: var(--sp-sm); }
.mb-m   { margin-bottom: var(--sp-m); }
.mb-ml  { margin-bottom: var(--sp-ml); }
.mb-l   { margin-bottom: var(--sp-l); }
.mb-xl  { margin-bottom: var(--sp-xl); }
.mb-xxl { margin-bottom: var(--sp-xxl); }
.mb-xxxl{ margin-bottom: var(--sp-xxxl); }

/* ================================
   Responsive Typography & Layout
   ================================ */

/* ===== Mobile (1px – 799px) ===== */
@media (max-width: 799px) {
  :root {
    --h1-size: 48px;
    --h2-size: 40px;
    --h3-size: 32px;
    --h4-size: 24px;
    --h5-size: 20px;
    --h6-size: 16px;
    --p-size: 14px;
  }
}

/* ===== Tablet (800px – 1199px) ===== */
@media (min-width: 800px) and (max-width: 1199px) {
  :root {
    --h1-size: 72px;
    --h2-size: 56px;
    --h3-size: 40px;
    --h4-size: 32px;
    --h5-size: 24px;
    --h6-size: 18px;
    --p-size: 15px;
  }
}

/* ===== Desktop (1200px and up) ===== */
@media (min-width: 1200px) {
  :root {
    --h1-size: 96px;
    --h2-size: 64px;
    --h3-size: 48px;
    --h4-size: 40px;
    --h5-size: 32px;
    --h6-size: 24px;
    --p-size: 16px;
  }
}

/* ================================
   Reduced Motion (Global)
   ================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

