/* ============================================
   MOOZI LANDING PAGE - BASE STYLES
   Design tokens, reset, fonts, utilities
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-bg-darkest: #190607;
  --color-bg-dark: #280c0d;
  --color-bg-mid: #3b0f11;
  --color-bg-card: #451113;
  --color-bg-accent: #561417;
  --color-gold: #fccf3d;
  --color-gold-light: #fde68a;
  --color-gold-hover: #e5b935;
  --color-gold-secondary: #FFB326;
  --color-text-primary: #ffffff;
  --color-text-secondary: #e5e7eb;
  --color-text-muted: #d1d5db;
  --color-text-on-gold: #422c18;
  --color-text-placeholder: #684041;
  --color-border-subtle: #8f7071;
  --color-border-gold: rgba(252, 207, 61, 0.15);
  --color-brand-focus: #6D0D0E;
  --color-accent-warm: #d37e4b;
  --color-card-gradient-start: #a24436;
  --color-card-gradient-mid: #90342a;
  --color-card-gradient-end: #6c1413;

  /* Spacing */
  --space-section: clamp(3rem, 6vw, 7rem);
  --max-width-content: 1248px;
  --nav-height: 66px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-smooth: 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

/* --- Font Face --- */
@font-face {
  font-family: "helvetica";
  src: url("../fonts/helvetica_light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "helvetica";
  src: url("../fonts/helvetica.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "helvetica";
  src: url("../fonts/helvetica.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "helvetica";
  src: url("../fonts/helvetica.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "helvetica";
  src: url("../fonts/helvetica_italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #7c3227 var(--color-bg-darkest);
  scrollbar-width: thin;
}

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "helvetica", Arial, Helvetica, sans-serif;
  background-color: var(--color-bg-darkest);
  color: var(--color-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* --- Skip to Content (Accessibility) --- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-bg-dark);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 0.5rem;
}

/* --- Background (hero only) --- */
.bg-image {
  position: relative;
  background-image: url("../img/bg.webp");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }

/* --- Text Gradient Gold --- */
.text-gradient-gold {
  background: linear-gradient(135deg, #FCCF3D, #FFB326);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Glassmorphism --- */
.glass {
  background: rgb(40 12 13 / 65%);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgb(255 255 255 / 8%);
}

.glass-light {
  background: rgb(69 17 19 / 45%);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgb(255 255 255 / 12%);
}

.glass-dark {
  background: rgb(25 6 7 / 75%);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgb(255 255 255 / 5%);
}

/* --- Surface Elevation --- */
.surface-elevated {
  background: linear-gradient(
    180deg,
    var(--color-card-gradient-start),
    var(--color-card-gradient-mid),
    var(--color-card-gradient-end)
  );
  box-shadow:
    0 1px 3px rgb(0 0 0 / 20%),
    0 4px 12px rgb(0 0 0 / 15%),
    0 8px 24px rgb(0 0 0 / 10%),
    inset 0 1px 0 rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 5%);
  border-radius: var(--radius-md);
}

/* --- Focus Ring --- */
.focus-ring-modern:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgb(252 207 61 / 40%), 0 0 0 4px rgb(252 207 61 / 10%);
}

/* --- Gradient Gold Border --- */
.border-gradient-gold {
  position: relative;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.border-gradient-gold::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgb(252 207 61 / 30%), rgb(255 179 38 / 10%), rgb(252 207 61 / 30%));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-darkest);
}

::-webkit-scrollbar-thumb {
  background: #7c3227;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(124 50 39);
}

/* --- Section CTA Wrapper --- */
.section-cta-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
