/* halah.io Design System
 * Version: 1.0.0
 * Typography: Cormorant Garamond (headings) + DM Sans (body)
 * Palette: Warm whites, bronze accents, sage green secondary
 */

/* ==========================================
   FONTS
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@400;500&display=swap');

/* ==========================================
   DESIGN TOKENS
   ========================================== */
:root {
  /* Backgrounds */
  --bg-primary: #FAF8F5;
  --bg-secondary: #F3EDE7;
  --bg-dark: #1C1917;
  --bg-dark-secondary: #292524;

  /* Text */
  --text-primary: #2C2520;
  --text-secondary: #6B5E54;
  --text-muted: #A89E95;
  --text-on-dark: #FAF8F5;
  --text-on-dark-muted: #C4BAB1;

  /* Accents */
  --accent-primary: #8B7355;
  --accent-primary-hover: #7A6349;
  --accent-secondary: #6B8F71;
  --accent-secondary-hover: #5A7D60;
  --accent-gold: #C9A96E;

  /* Borders */
  --border: #E8E0D8;
  --border-dark: #3D3835;

  /* Overlays */
  --overlay: rgba(28, 25, 23, 0.7);
  --overlay-light: rgba(28, 25, 23, 0.4);

  /* Functional */
  --success: #6B8F71;
  --error: #C45B4A;
  --warning: #C9A96E;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(44, 37, 32, 0.05);
  --shadow-md: 0 4px 12px rgba(44, 37, 32, 0.08);
  --shadow-lg: 0 8px 24px rgba(44, 37, 32, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Spacing (8px base) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Container */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1440px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-lightbox: 500;
  --z-toast: 600;
  --z-nav: 700;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --text-hero: clamp(3rem, 6vw, 5.5rem);
  --text-h1: clamp(2rem, 4vw, 3.5rem);
  --text-h2: clamp(1.5rem, 3vw, 2.5rem);
  --text-h3: clamp(1.25rem, 2vw, 1.75rem);
  --text-h4: clamp(1.125rem, 1.5vw, 1.25rem);
  --text-body: 1rem;
  --text-body-lg: 1.125rem;
  --text-small: 0.875rem;
  --text-xs: 0.75rem;
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

ul, ol { list-style: none; }

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); font-weight: 400; }

.text-hero {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.text-accent {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

p:last-child { margin-bottom: 0; }

/* ==========================================
   LAYOUT
   ========================================== */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

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

.section {
  padding: var(--space-4xl) 0;
}

.section--dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--text-on-dark);
}

.section--dark p {
  color: var(--text-on-dark-muted);
}

.section--cream {
  background-color: var(--bg-secondary);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--space-lg) 0;
  transition: background-color var(--transition-base), padding var(--transition-base);
}

.nav--scrolled {
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--space-md) 0;
  box-shadow: var(--shadow-sm);
}

.nav--transparent {
  background-color: transparent;
}

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

.gold { color: var(--accent-gold) !important; }

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: var(--tracking-wider);
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.nav--transparent .nav__logo {
  color: var(--text-on-dark);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.3);
}

.nav--scrolled .nav__logo {
  color: var(--text-primary);
  text-shadow: none;
}

.nav__links {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav--transparent .nav__link {
  color: rgba(250, 248, 245, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
}

.nav--scrolled .nav__link {
  color: var(--text-secondary);
  text-shadow: none;
}

.nav__link:hover,
.nav__link--active {
  color: var(--accent-primary);
}

.nav--transparent .nav__link:hover {
  color: var(--text-on-dark);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav--transparent .nav__toggle span {
  background-color: var(--text-on-dark);
}

/* Mobile menu overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--bg-primary);
  z-index: calc(var(--z-nav) - 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav__mobile.is-open {
  display: flex;
  opacity: 1;
}

.nav__mobile .nav__link {
  font-size: var(--text-h3);
  font-family: var(--font-heading);
  font-weight: 300;
  text-transform: none;
  letter-spacing: var(--tracking-normal);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 25, 23, 0.55) 0%,
    rgba(28, 25, 23, 0.15) 15%,
    rgba(28, 25, 23, 0.25) 40%,
    rgba(28, 25, 23, 0.5) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text-on-dark);
  padding: var(--space-lg);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 300;
  letter-spacing: var(--tracking-wider);
  color: var(--text-on-dark);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4), 0 1px 6px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 300;
  letter-spacing: var(--tracking-wide);
  color: rgba(250, 248, 245, 0.9);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.25);
}

.hero__tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-h4);
  color: rgba(250, 248, 245, 0.85);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(250, 248, 245, 0.6);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--accent-primary);
  color: white;
}

.btn--primary:hover {
  background-color: var(--accent-primary-hover);
}

.btn--secondary {
  background-color: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.btn--secondary:hover {
  background-color: var(--accent-primary);
  color: white;
}

.btn--ghost {
  background-color: transparent;
  color: var(--text-on-dark);
  border: 1px solid rgba(250, 248, 245, 0.3);
}

.btn--ghost:hover {
  background-color: rgba(250, 248, 245, 0.1);
  border-color: rgba(250, 248, 245, 0.6);
}

.btn--sm {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-body);
}

/* ==========================================
   PORTFOLIO GRID (Masonry)
   ========================================== */
.portfolio-grid {
  column-count: 1;
  column-gap: var(--space-md);
  padding: 0;
}

.portfolio-grid__item {
  break-inside: avoid;
  margin-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.portfolio-grid__item img {
  width: 100%;
  display: block;
  transition: transform var(--transition-slow);
  /* Default aspect-ratio prevents column reflow on load.
     Overridden by inline style when D1 has real dimensions. */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bg-secondary);
}

.portfolio-grid__item:hover img {
  transform: scale(1.03);
}

.portfolio-grid__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.portfolio-grid__item:hover .portfolio-grid__overlay {
  opacity: 1;
}

.portfolio-grid__overlay-title {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: 400;
  color: var(--text-on-dark);
  margin-bottom: var(--space-xs);
}

.portfolio-grid__overlay-category {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.7);
}

@media (min-width: 640px) {
  .portfolio-grid { column-count: 2; }
}

@media (min-width: 1024px) {
  .portfolio-grid { column-count: 3; }
}

/* ==========================================
   FILTER PILLS
   ========================================== */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-2xl);
}

.filter-pill {
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.filter-pill--active {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

/* ==========================================
   LIGHTBOX
   ========================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background-color: rgba(28, 25, 23, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.lightbox__close:hover { opacity: 1; }

.lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: var(--space-lg); }
.lightbox__nav--next { right: var(--space-lg); }

.lightbox__info {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-on-dark);
}

.lightbox__title {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.lightbox__category {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

/* ==========================================
   CARDS
   ========================================== */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card__body {
  padding: var(--space-lg);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: 400;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.card__text {
  font-size: var(--text-small);
  color: var(--text-secondary);
}

.card__meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-md);
}

/* ==========================================
   FORMS
   ========================================== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--text-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  font-size: var(--text-xs);
  color: var(--error);
  margin-top: var(--space-xs);
  display: none;
}

.form-group--error .form-input,
.form-group--error .form-textarea,
.form-group--error .form-select {
  border-color: var(--error);
}

.form-group--error .form-error {
  display: block;
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonial {
  text-align: center;
  max-width: var(--container-md);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.testimonial__quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-h3);
  font-weight: 300;
  line-height: var(--leading-snug);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.testimonial__quote::before { content: '\201C'; }
.testimonial__quote::after { content: '\201D'; }

.testimonial__author {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--text-primary);
}

.testimonial__type {
  font-size: var(--text-small);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: var(--tracking-wider);
  color: var(--text-on-dark);
  margin-bottom: var(--space-md);
}

.footer__tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-body-lg);
  color: var(--text-on-dark-muted);
}

.footer__nav-title {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: var(--space-md);
}

.footer__link {
  display: block;
  font-size: var(--text-body);
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.footer__link:hover { color: var(--text-on-dark); }

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

.footer__social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text-on-dark-muted);
  border-radius: var(--radius-full);
  color: var(--text-on-dark);
  transition: all var(--transition-fast);
}

.footer__social a svg {
  width: 20px;
  height: 20px;
}

.footer__social a:hover {
  border-color: var(--text-on-dark);
  color: var(--text-on-dark);
}

.footer__bottom {
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.footer__copyright {
  font-size: var(--text-small);
  color: var(--text-on-dark-muted);
}

.footer__credit {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-body);
  color: var(--text-on-dark);
  opacity: 0.7;
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================
   SECTION HEADINGS
   ========================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

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

.section-header__subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-h3);
  color: var(--text-primary);
  opacity: 0.7;
  max-width: 600px;
  margin: 0 auto;
}

.section-header__line {
  width: 40px;
  height: 1px;
  background-color: var(--accent-gold);
  margin: var(--space-lg) auto 0;
}

/* ==========================================
   PAGE HERO (Non-home pages)
   ========================================== */
.page-hero {
  padding: calc(var(--space-5xl) + 80px) 0 var(--space-3xl);
  text-align: center;
  background-color: var(--bg-secondary);
}

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

.page-hero__subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-h3);
  color: var(--text-primary);
  opacity: 0.7;
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.toast {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-toast);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-small);
  font-weight: 500;
  color: white;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-base);
  max-width: 400px;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast--success { background-color: var(--success); }
.toast--error { background-color: var(--error); }
.toast--warning { background-color: var(--warning); color: var(--text-primary); }

/* ==========================================
   LOADING SKELETON
   ========================================== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, #EDE5DC 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================
   UTILITIES
   ========================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.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); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.hidden { display: none !important; }
.visible { display: block !important; }

/* Fade-in animation (CSS-only for Phase 1) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 640px) {
  .section {
    padding: var(--space-3xl) 0;
  }

  .container {
    padding: 0 var(--space-md);
  }
}
