/* =============================================================
   SNELGROVE ICE CREAM — Global Styles
   ============================================================= */

/* =============================================================
   FONT LOADING
   Drop font files into fonts/ then uncomment the @font-face
   blocks below. Webflow users: upload via Project Settings > Fonts.
   ============================================================= */

/* GT America — Body (Regular only; add Medium/Bold OTFs to unlock more weights) */
@font-face {
  font-family: 'GT America';
  src: url('../fonts/GT-America-Standard-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Brandon Grotesque — Headings */
@font-face {
  font-family: 'Brandon Grotesque';
  src: url('../fonts/HvDTrial_Brandon_Grotesque_regular-BF64a625c9311e1.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Brandon Grotesque';
  src: url('../fonts/HvDTrial_Brandon_Grotesque_medium-BF64a625c84a521.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Brandon Grotesque';
  src: url('../fonts/HvDTrial_Brandon_Grotesque_bold-BF64a625c9151d5.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Brandon Grotesque';
  src: url('../fonts/HvDTrial_Brandon_Grotesque_black-BF64a625c944b08.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Funkydori — Decorative / Brand Accent */
@font-face {
  font-family: 'FunkiDori';
  src: url('../fonts/Funkydori.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FunkiDori';
  src: url('../fonts/Funkydori Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@import 'tokens.css';

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  padding-bottom: 64px; /* clearance for fixed features strip */
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

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

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

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: var(--space-20);
}

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

.section--lg {
  padding-block: var(--space-32);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-cherry);
  color: var(--color-white);
  border: 2px solid var(--color-cherry);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background-color: var(--color-cherry-dark);
  border-color: var(--color-cherry-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-cherry);
  border: 2px solid var(--color-cherry);
}

.btn--secondary:hover {
  background-color: var(--color-cherry);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn--gold {
  background-color: var(--color-banana-split);
  color: var(--color-blueberry);
  border: 2px solid var(--color-banana-split);
  box-shadow: var(--shadow-md);
}

.btn--gold:hover {
  background-color: var(--color-banana-dark);
  border-color: var(--color-banana-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn--navy {
  background-color: var(--color-blueberry);
  color: var(--color-white);
  border: 2px solid var(--color-blueberry);
  box-shadow: var(--shadow-md);
}

.btn--navy:hover {
  background-color: var(--color-blueberry-dark);
  border-color: var(--color-blueberry-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn--outline-white {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn--outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-red);
}

/* --- Decorative divider --- */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-block: var(--space-8);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-banana-split), transparent);
}

.divider__icon {
  font-size: var(--text-xl);
  color: var(--color-banana-split);
  flex-shrink: 0;
}

/* --- Section headings --- */
.section-label {
  font-family: var(--font-script);
  font-size: var(--text-xl);
  color: var(--color-cherry);
  display: block;
  margin-bottom: var(--space-2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  color: var(--color-blueberry);
  line-height: 1.15;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-mid);
  max-width: 60ch;
  margin-top: var(--space-4);
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-subtitle {
  margin-inline: auto;
}

/* --- Page Hero (shared across pages) --- */
.page-hero {
  background-color: var(--color-blueberry);
  color: var(--color-vanilla);
  padding-block: var(--space-16) var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero__pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    rgba(247, 210, 223, 0.04) 30px,
    rgba(247, 210, 223, 0.04) 31px
  );
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__label {
  font-family: var(--font-script);
  font-size: var(--text-2xl);
  color: var(--color-banana-split);
  display: block;
  margin-bottom: var(--space-3);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 7vw, var(--text-7xl));
  font-weight: 900;
  color: var(--color-vanilla);
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

.page-hero__desc {
  font-size: var(--text-lg);
  color: rgba(252, 240, 228, 0.78);
  max-width: 55ch;
  margin-inline: auto;
  line-height: 1.7;
}

/* --- Retro badge/stamp --- */
.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--color-banana-split);
  background-color: var(--color-vanilla);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-blueberry);
  line-height: 1.3;
  padding: var(--space-2);
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* --- Vintage texture overlay (subtle noise) --- */
.texture-overlay {
  position: relative;
}

.texture-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
}

/* --- Tag / Chip --- */
.tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag--red {
  background-color: #FCE8E6;
  color: var(--color-red);
}

.tag--gold {
  background-color: #FEF3D4;
  color: var(--color-gold-dark);
}

.tag--brown {
  background-color: var(--color-cream-dark);
  color: var(--color-brown);
}

/* --- Responsive media queries --- */
@media (max-width: 768px) {
  .container {
    padding-inline: var(--space-4);
  }

  .section {
    padding-block: var(--space-12);
  }

  .section--lg {
    padding-block: var(--space-20);
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: var(--space-4);
  }
}
