/* ============================================================
   base.css — SurfTrip.ph v2
   Design tokens, font setup, reset, typography
   ============================================================ */

/* --- Google Fonts ----------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&family=Barlow+Condensed:wght@600;700;800&display=swap');

/* --- Design tokens ---------------------------------------- */
:root {
  /* Brand colors */
  --color-teal:        #5DCAA5;
  --color-teal-dark:   #0F6E56;
  --color-teal-mid:    #1D9E75;
  --color-teal-dim:    rgba(93, 202, 165, 0.55);
  --color-amber:       #EF9F27;

  /* Background scale */
  --bg-deepest:        #040c18;
  --bg-deep:           #060f1c;
  --bg-dark:           #0a1628;
  --bg-card:           #0d1f35;
  --bg-card-hover:     #0f2540;
  --bg-raised:         #112844;

  /* Text */
  --text-primary:      #f0f4f8;
  --text-secondary:    rgba(240, 244, 248, 0.6);
  --text-muted:        rgba(240, 244, 248, 0.35);
  --text-teal:         #5DCAA5;

  /* Borders */
  --border-subtle:     rgba(255, 255, 255, 0.07);
  --border-light:      rgba(255, 255, 255, 0.12);
  --border-teal:       rgba(93, 202, 165, 0.35);

  /* Typography */
  --font-body:         'Barlow', sans-serif;
  --font-display:      'Barlow Condensed', sans-serif;

  /* Spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;

  /* Border radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-pill: 999px;

  /* Nav heights — used for offset calculations */
  --nav-height:        56px;
  --bottom-bar-height: 60px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-mid:  0.25s ease;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  /* reserve space for mobile bottom bar */
  padding-bottom: var(--bottom-bar-height);
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

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);
}

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3rem);   font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* --- Utility classes -------------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-teal   { color: var(--color-teal); }
.text-muted  { color: var(--text-muted); }
.text-amber  { color: var(--color-amber); }

.label-tag {
  font-size: 0.625rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-teal);
}

/* --- Scrollbar -------------------------------------------- */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-card); }
::-webkit-scrollbar-thumb { background: var(--bg-raised); border-radius: 3px; }
