/* ==========================================================================
   MYTRM - Base Styles & Design Tokens
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Warm, Editorial, Gen-Z modern */
  --color-primary: #D95228;
  --color-primary-hover: #C2431C;
  --color-primary-active: #A83614;
  --color-primary-light: #FDF0ED;
  --color-primary-subtle: #F9ECE6;
  
  --color-secondary-peach: #FCECE7;
  --color-secondary-sand: #F4EFEA;
  
  --color-bg-page: #FAF6F0;
  --color-bg-card: #FFFFFF;
  --color-bg-card-alt: #F7F3EC;
  
  --color-text-main: #1F1B18;
  --color-text-muted: #544E48;
  --color-text-subtle: #8C827A;
  --color-text-inverse: #FFFFFF;

  --color-border: #E8E2D9;
  --color-border-hover: #D5CFC5;

  --color-success: #2E7D32;
  --color-success-bg: #E8F5E9;
  --color-warning: #ED6C02;
  --color-warning-bg: #FFF3E0;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows - Soft & Warm */
  --shadow-sm: 0 2px 8px rgba(31, 27, 24, 0.04);
  --shadow-md: 0 4px 20px rgba(31, 27, 24, 0.06);
  --shadow-lg: 0 12px 32px rgba(31, 27, 24, 0.08);
  --shadow-hover: 0 14px 36px rgba(217, 82, 40, 0.12), 0 4px 12px rgba(31, 27, 24, 0.04);

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* Container */
  --container-max-width: 1240px;
  --header-height: 80px;
}

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

html, body {
  max-width: 100%;
  overflow-x: clip;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-page);
  color: var(--color-text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: 100%;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-main);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: break-word;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(1.75rem, 5.5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.4rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.05rem, 2.5vw, 1.25rem); font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }

p {
  color: var(--color-text-muted);
  font-size: 1rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  max-width: 100%;
  box-sizing: border-box;
}

button {
  cursor: pointer;
  background: none;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 375px) {
  .container {
    padding: 0 0.85rem;
  }
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Badge / Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-primary {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.badge-sand {
  background-color: var(--color-secondary-sand);
  color: var(--color-text-muted);
}

.badge-success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

/* Fade in scroll animation helper */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
