@import url('./fonts.css');
@import url('./components/button.css');
@import url('./sections/nav.css');
@import url('./sections/hero.css');
@import url('./sections/trips.css');
@import url('./sections/about.css');
@import url('./sections/campaign.css');
@import url('./sections/testimonial.css');
@import url('./sections/footer.css');

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

:root {
  --font-heading: 'Tanker', Georgia, serif;
  --font-body: 'General Sans', system-ui, sans-serif;

  /* Palette */
  --color-dark-green: #283618;
  --color-white: #FFFDF4;
  --color-pure-white: #FFFFFF;
  --color-sand: #CCC1B2;
  --color-grey: #E4E4E4;
  --color-grey-light: #CDCDCD;
  --color-grey-placeholder: #B2B2B2;

  /* Spacing */
  --spacing-page: clamp(24px, 3.4vw, 49px);
  --spacing-section: clamp(80px, 10vw, 140px);

  /* Radius */
  --radius-sm: 4px;
  --radius-card: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--color-pure-white);
  color: var(--color-dark-green);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ── Skip link — accessible keyboard navigation ─────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--color-dark-green);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: 16px;
}

/* ── Global focus states ─────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-dark-green);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Page content wrapper — sits above fixed footer ─────── */
.page-content {
  position: relative;
  z-index: 2;
  background: var(--color-pure-white);
}

/* Text box trim — matches Figma's "trim text" bounding box */
h1, h2, h3, h4, h5, h6,
.btn,
.stats__number,
.stats__label {
  text-box-trim: both;
  text-box-edge: cap alphabetic;
  /* Shorthand fallback */
  text-box: cap alphabetic;
}

/* ── Page Loader ─────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader--done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__logo {
  width: clamp(140px, 20vw, 220px);
}

.loader__svg {
  width: 100%;
  height: auto;
}

/* GSAP handles reveal animations — initial state set here */
.reveal {
  opacity: 0;
}
