/* ==========================================================================
   OGGIO EGG WAFFLE - BASE STYLES
   Reset, CSS Variables, Typography Foundation
   ========================================================================== */

:root {
  /* Brand Colors */
  --color-primary: #F5811F;
  --color-primary-dark: #D9600F;
  --color-secondary: #F4478C;
  --color-accent: #FFC93C;
  --color-text: #3B2418;
  --color-bg: #FFFBF4;
  --color-surface: #FFFFFF;

  /* Derived / utility colors */
  --color-text-soft: #6B5546;
  --color-border: rgba(59, 36, 24, 0.10);
  --color-overlay: rgba(59, 36, 24, 0.55);
  --color-success: #2E9E5B;

  /* Typography */
  --font-display: 'Baloo 2', 'Fredoka', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-data: 'Space Grotesk', monospace;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Radii - honeycomb-inspired soft rounding */
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(59, 36, 24, 0.08);
  --shadow-md: 0 8px 24px rgba(59, 36, 24, 0.12);
  --shadow-lg: 0 16px 40px rgba(59, 36, 24, 0.18);
  --shadow-glow: 0 0 0 6px rgba(245, 129, 31, 0.15);

  /* Transitions */
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-med: 0.4s var(--ease-smooth);

  /* Container */
  --container-max: 1200px;

  /* Bubble/honeycomb signature size */
  --bubble-size: 18px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
}

p {
  margin: 0;
}

/* ---------- Focus visibility (accessibility) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Typography scale ---------- */
.h-display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw + 1rem, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.h-display-lg {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.h-display-md {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.5vw + 1rem, 1.75rem);
  font-weight: 700;
}

.text-lead {
  font-size: 1.125rem;
  color: var(--color-text-soft);
}

.text-data {
  font-family: var(--font-data);
  font-weight: 600;
  font-feature-settings: "tnum" 1;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-xs);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  position: relative;
  padding: var(--space-2xl) 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-lg);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Signature honeycomb/bubble pattern (reusable) ---------- */
.bubble-pattern {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0 3px, transparent 3px);
  background-size: var(--bubble-size) var(--bubble-size);
  background-position: 0 0, calc(var(--bubble-size)/2) calc(var(--bubble-size)/2);
}

.bubble-divider {
  position: relative;
  height: 44px;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.bubble-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}