/* ==========================================================================
   NUMA Beauty & Salon — Luxury Design System (style.css)
   Inspired by Phenomenon Studio's NUMA Dribbble showcase.
   ========================================================================== */

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

:root {
  /* --- Color Palette (Soft Luxury & Clean Care) --- */
  --bg-base: #FAF8F5;          /* Warm Alabaster */
  --bg-surface: #F2EFE9;       /* Soft Silk / Sand */
  --bg-surface-elevated: #FFFFFF; /* Pure White with soft elevation */
  --bg-dark: #1A1A1A;          /* Deep Obsidian */
  --bg-dark-surface: #262524;
  
  --text-main: #1D1C1A;        /* Ink Black (>=4.5:1 contrast) */
  --text-muted: #635F59;       /* Warm Taupe */
  --text-light: #FAF8F5;
  --text-light-muted: #B3AFAA;
  
  --accent: #C4A47C;           /* Refined Champagne Gold / Warm Ochre */
  --accent-hover: #B08D60;
  --accent-light: #F7EFE6;
  --accent-rose: #E8DCD0;      /* Blush Rose */
  
  --border: #E6E1DA;
  --border-dark: #363432;
  
  /* --- Typography --- */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* --- Easing Curves (GPU-accelerated craft) --- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  
  /* --- Shadows & Elevations --- */
  --shadow-sm: 0 2px 8px rgba(29, 28, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(29, 28, 26, 0.06);
  --shadow-lg: 0 20px 48px rgba(29, 28, 26, 0.1);
  --shadow-float: 0 24px 64px rgba(29, 28, 26, 0.14);
  
  /* --- Radii --- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* --- Z-Index Hierarchy --- */
  --z-normal: 1;
  --z-sticky: 100;
  --z-drawer: 500;
  --z-modal: 1000;
  --z-toast: 1500;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background-color: var(--accent);
  color: var(--bg-base);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: #D5CFC7;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

ul, ol {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Focus Visibility for Accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ==========================================================================
   Typography Utility Classes
   ========================================================================== */

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-hero {
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.text-h1 {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 400;
}

.text-h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 500;
}

.text-h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
}

.text-subtitle {
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.6;
}

.text-caption {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

.text-accent {
  color: var(--accent);
}

/* ==========================================================================
   Layout Containers & Spacing
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-padding {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   Buttons & Interactive Elements (8 States & Craft)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--bg-dark);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--accent);
  color: var(--bg-base);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--bg-base);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--text-main);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--text-main);
  color: var(--bg-base);
}

.btn:disabled, .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Magnetic Button Hover Wrapper */
.btn-magnetic {
  will-change: transform;
}

/* ==========================================================================
   Header & Floating Navigation
   ========================================================================== */

.navbar {
  position: fixed;
  top: 24px;
  left: 5%;
  right: 5%;
  max-width: 1440px;
  margin: 0 auto;
  height: 72px;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(230, 225, 218, 0.6);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: var(--z-sticky);
  transition: all 0.4s var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
  top: 12px;
  height: 64px;
  background: rgba(250, 248, 245, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-main);
  transition: all 0.3s var(--ease-out);
}

.cart-trigger:hover {
  background: var(--accent-light);
  color: var(--accent);
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: var(--bg-base);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 32px;
  padding: 6px 0;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: all 0.3s var(--ease-out);
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-base);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  transition: right 0.5s var(--ease-out);
  padding: 40px;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
}

.mobile-nav-close {
  position: absolute;
  top: 32px;
  right: 32px;
  font-size: 2rem;
  color: var(--text-main);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
}

.hero-content {
  z-index: 2;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

@media (max-width: 1024px) {
  .hero-actions {
    justify-content: center;
  }
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.hero-image-wrapper:hover img {
  transform: scale(1.04);
}

/* Floating Glass Badges on Hero Image */
.hero-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.hero-badge-left {
  bottom: 40px;
  left: -20px;
}

.hero-badge-right {
  top: 40px;
  right: -20px;
  animation-delay: -3s;
}

@media (max-width: 640px) {
  .hero-badge-left { left: 10px; bottom: 20px; }
  .hero-badge-right { right: 10px; top: 20px; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   Product Bento Grid & Cards
   ========================================================================== */

.product-card {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.product-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bg-surface);
  overflow: hidden;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.product-card:hover .product-img-box img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--bg-dark);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-quick-view {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  padding: 10px;
  border-radius: var(--radius-full);
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s var(--ease-out);
}

.product-card:hover .product-quick-view {
  opacity: 1;
  transform: translateY(0);
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-category {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
}

.btn-add-cart {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
}

.btn-add-cart:hover {
  background: var(--accent);
  color: var(--bg-base);
  transform: scale(1.1);
}

/* ==========================================================================
   Salon Treatment Menu (Tabs & Accordion)
   ========================================================================== */

.treatment-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.tab-btn {
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  background: var(--bg-surface);
  color: var(--text-muted);
  transition: all 0.3s var(--ease-out);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--bg-dark);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

.treatment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.treatment-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.treatment-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
}

@media (max-width: 640px) {
  .treatment-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }
}

.treatment-meta {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 640px) {
  .treatment-meta {
    width: 100%;
    justify-content: space-between;
  }
}

.treatment-duration {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Philosophy / Ritual Storytelling Section
   ========================================================================== */

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

@media (max-width: 992px) {
  .ritual-grid {
    grid-template-columns: 1fr;
  }
}

.ritual-step {
  background: var(--bg-surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.ritual-step:hover {
  background: var(--bg-surface-elevated);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.ritual-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 20px;
}

/* ==========================================================================
   Testimonials & Social Proof
   ========================================================================== */

.testimonial-card {
  background: var(--bg-surface-elevated);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.stars {
  color: #F59E0B;
  display: flex;
  gap: 4px;
}

.author-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

/* ==========================================================================
   Drawers & Modals (Cart Bag & Booking Wizard)
   ========================================================================== */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-drawer);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Slide-over Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background: var(--bg-base);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  transition: right 0.4s var(--ease-out);
  box-shadow: var(--shadow-float);
}

.cart-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-body {
  padding: 32px;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  align-items: center;
}

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* Booking Modal */
.modal-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 680px;
  max-height: 90vh;
  background: var(--bg-base);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border);
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
  overflow-y: auto;
  padding: 40px;
}

.modal-window.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.wizard-step-ind {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.wizard-step-ind.active {
  color: var(--accent);
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  transition: all 0.3s var(--ease-out);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-light);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  transition: color 0.3s var(--ease-out);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-light-muted);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ==========================================================================
   Scroll Reveal Animation Classes (IntersectionObserver Telemetry)
   ========================================================================== */

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}

.reveal-fade {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
  will-change: opacity;
}

.revealed {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Staggered transition delays for grids */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Reduced Motion Mandatory Fallback */
@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;
  }
  .reveal-up, .reveal-scale, .reveal-fade {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Mobile Screen Typography Override for Small Phones */
@media (max-width: 480px) {
  h1, .text-h1 {
    font-size: 2rem !important; /* ~32px */
  }
  h2, .text-h2 {
    font-size: 1.65rem !important; /* ~26px */
  }
  h3, .text-h3 {
    font-size: 1.35rem !important; /* ~21px */
  }
}

