/* ============================================================
   TRYDR — Main CSS
   Design system: variables, reset, base, layout, utilities
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;0,9..40,900;1,9..40,400&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Brand colors */
  --c-charcoal: #171717;
  --c-charcoal-90: rgba(23, 23, 23, 0.9);
  --c-charcoal-80: rgba(23, 23, 23, 0.8);
  --c-charcoal-60: rgba(23, 23, 23, 0.6);
  --c-lime: #C7F000;
  --c-lime-dim: #a8cb00;
  --c-lime-10: rgba(199, 240, 0, 0.1);
  --c-lime-20: rgba(199, 240, 0, 0.2);
  --c-offwhite: #F7F7F2;
  --c-offwhite-dark: #EBEBE6;
  --c-white: #FFFFFF;
  --c-gray-mid: #6B6B6B;
  --c-gray-light: #E0E0DB;
  --c-charcoal-soft: #222222;

  /* Typography */
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 128px;

  /* Section vertical padding */
  --section-pad: clamp(64px, 10vw, 120px);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.35s;

  /* Nav */
  --nav-height: 72px;

  /* Container */
  --container: 1200px;
  --container-pad: clamp(20px, 5vw, 80px);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

html::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

body {
  font-family: var(--font);
  background: var(--c-charcoal);
  color: var(--c-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul,
ol {
  list-style: none;
}

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

/* ── Section base ─────────────────────────────────────────── */
.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

/* Background variants */
.bg-charcoal {
  background: var(--c-charcoal);
  color: var(--c-white);
}

.bg-offwhite {
  background: var(--c-offwhite);
  color: var(--c-charcoal);
}

.bg-lime {
  background: var(--c-lime);
  color: var(--c-charcoal);
}

.bg-white {
  background: var(--c-white);
  color: var(--c-charcoal);
}

/* ── Typography ───────────────────────────────────────────── */
.eyebrow {
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: var(--space-sm);
  display: block;
}

.display {
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.headline {
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.headline-sm {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.subheading {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  line-height: 1.55;
  opacity: 0.75;
}

.body-text {
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 400;
  line-height: 1.7;
}

.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Lime highlight */
.lime {
  color: var(--c-lime);
}

.lime-on-dark {
  color: var(--c-lime);
}

.charcoal-on-lime {
  color: var(--c-charcoal);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 16px 32px;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: scale(0.97);
}

/* Lime button */
.btn-lime {
  background: var(--c-lime);
  color: var(--c-charcoal);
}

.btn-lime:hover {
  background: #d4f519;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(199, 240, 0, 0.3);
}

/* Charcoal button */
.btn-charcoal {
  background: var(--c-charcoal);
  color: var(--c-white);
}

.btn-charcoal:hover {
  background: #222;
  transform: translateY(-2px);
}

/* Ghost (outline) on dark */
.btn-ghost-dark {
  background: transparent;
  color: var(--c-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost-dark:hover {
  border-color: var(--c-lime);
  color: var(--c-lime);
  transform: translateY(-2px);
}

/* Ghost on light */
.btn-ghost-light {
  background: transparent;
  color: var(--c-charcoal);
  border: 2px solid rgba(23, 23, 23, 0.3);
}

.btn-ghost-light:hover {
  border-color: var(--c-charcoal);
  transform: translateY(-2px);
}

/* WhatsApp button */
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  gap: 10px;
}

.btn-whatsapp:hover {
  background: #20b857;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp svg {
  flex-shrink: 0;
}

/* Large button variant */
.btn-lg {
  padding: 20px 44px;
  font-size: 16px;
}

/* Full width */
.btn-block {
  width: 100%;
}

/* ── Grid ─────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

@media (max-width: 768px) {

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

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Utilities ────────────────────────────────────────────── */
.text-center {
  text-align: center;
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

/* Reveal animation base states */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

.delay-6 {
  transition-delay: 0.6s;
}

/* ── Divider ──────────────────────────────────────────────── */
.divider-lime {
  width: 48px;
  height: 3px;
  background: var(--c-lime);
  border-radius: 2px;
  margin: var(--space-md) 0;
}

/* ── Pill tag ─────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag-lime {
  background: var(--c-lime);
  color: var(--c-charcoal);
}

.tag-outline {
  border: 1.5px solid currentColor;
  opacity: 0.5;
}

/* ── Mobile padding bottom for sticky bar ─────────────────── */
@media (max-width: 768px) {
  body {
    padding-bottom: 80px;
  }
}