/* ============================================================
   SPOTLESS DUO — main.css
   Design tokens · Font-faces · Reset · Typography · Layout base
   ============================================================ */

/* ── 1. FONT FACES ─────────────────────────────────────────── */

@font-face {
  font-family: 'Adventures Unlimited';
  src: url('../assets/fonts/adventures-unlimited/adventures-unlimited-script.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aero';
  src: url('../assets/fonts/aero/AeroTrial-Light-BF661600bbea048.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aero';
  src: url('../assets/fonts/aero/AeroTrial-LightItalic-BF661600bbe46ff.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Aero';
  src: url('../assets/fonts/aero/AeroTrial-Book-BF661600bb5a543.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aero';
  src: url('../assets/fonts/aero/AeroTrial-BookItalic-BF661600bb94746.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Aero';
  src: url('../assets/fonts/aero/AeroTrial-Medium-BF661600bc0f01e.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aero';
  src: url('../assets/fonts/aero/AeroTrial-Bold-BF661600baa8861.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aero';
  src: url('../assets/fonts/aero/AeroTrial-BoldItalic-BF661600bb577f3.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ── 2. DESIGN TOKENS ──────────────────────────────────────── */

:root {
  /* Brand colors */
  --color-bg:           #F5F0E8;
  --color-blue:         #7BAFC4;
  --color-blue-dark:    #4A8FA8;
  --color-blue-light:   #B8D4DC;
  --color-yellow:       #F5C842;
  --color-yellow-light: #FAF0A0;
  --color-navy:         #1A2744;
  --color-cream:        #F5F0E8;
  --color-white:        #FFFFFF;
  --color-gray-border:  #E0D5C5;
  --color-gray-text:    #6B7A90;

  /* Typography */
  --font-display: 'Adventures Unlimited', cursive;
  --font-body:    'Aero', system-ui, sans-serif;

  /* Spacing scale */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   24px;
  --space-6:   32px;
  --space-7:   48px;
  --space-8:   64px;
  --space-9:   96px;
  --space-10: 128px;

  /* Border radius */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(26, 39, 68, 0.06);
  --shadow-md:   0 4px 20px rgba(26, 39, 68, 0.08);
  --shadow-lg:   0 8px 40px rgba(26, 39, 68, 0.12);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Layout */
  --max-width:  1200px;
  --nav-height: 72px;
  --bar-height: 40px;
}

/* ── 3. RESET ───────────────────────────────────────────────── */

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-navy);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ── 4. TYPOGRAPHY SCALE ───────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
}

h1 { font-size: clamp(2rem,   5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem);   }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem;   }

p { line-height: 1.7; }

/* Utility classes */
.text-light     { font-weight: 300; }
.text-book      { font-weight: 400; }
.text-medium    { font-weight: 500; }
.text-bold      { font-weight: 700; }

.text-sm        { font-size: 0.875rem; }
.text-base      { font-size: 1rem; }
.text-lg        { font-size: 1.125rem; }
.text-xl        { font-size: 1.25rem; }
.text-2xl       { font-size: 1.5rem; }

.text-navy      { color: var(--color-navy)   !important; }
.text-blue      { color: var(--color-blue)   !important; }
.text-yellow    { color: var(--color-yellow) !important; }
.text-white     { color: var(--color-white)  !important; }
.text-gray      { color: var(--color-gray-text) !important; }

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

.font-display   { font-family: var(--font-display); }

/* ── 5. LAYOUT UTILITIES ───────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section      { padding-block: var(--space-9); }
.section-sm   { padding-block: var(--space-7); }

/* Flex */
.flex             { display: flex; }
.flex-col         { display: flex; flex-direction: column; }
.items-center     { align-items: center; }
.items-start      { align-items: flex-start; }
.justify-center   { justify-content: center; }
.justify-between  { justify-content: space-between; }
.flex-wrap        { flex-wrap: wrap; }

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

/* Grid */
.grid   { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── 6. SCROLLBAR ───────────────────────────────────────────── */

::-webkit-scrollbar        { width: 6px; }
::-webkit-scrollbar-track  { background: var(--color-bg); }
::-webkit-scrollbar-thumb  { background: var(--color-blue-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-blue); }

/* ── 7. SELECTION ───────────────────────────────────────────── */

::selection {
  background: var(--color-yellow);
  color: var(--color-navy);
}

/* ── 8. FOCUS ───────────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── 9. RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 768px) {
  :root {
    --space-9:  64px;
    --space-10: 80px;
    --nav-height: 60px;
  }

  .container {
    padding-inline: var(--space-4);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root { --space-9: 48px; }
}
