/* ══════════════════════════════════════
   LILYWOOD — Unified Design System
   Fluid · Organic · Premium Baby Toys
   ══════════════════════════════════════ */

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

/* ─── Design Tokens ─── */
:root {
  --cream:      #FBF9F6;
  --sand:       #F0EAE0;
  --sand-deep:  #E0D5C7;
  --blush:      #E8C8BE;
  --blush-light:#F2DDD6;
  --sage:       #B8C5B4;
  --sage-light: #D4DDD0;
  --clay:       #C4907A;
  --clay-dark:  #A87560;
  --text:       #3A3530;
  --text-soft:  #7A6F65;
  --white:      #ffffff;

  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'DM Sans', -apple-system, sans-serif;

  --shadow-soft:  0 8px 32px rgba(58,53,48,0.06);
  --shadow-hover: 0 16px 48px rgba(58,53,48,0.10);
  --radius-card:    24px;
  --radius-section: 32px;
  --radius-button:  50px;
  --radius-image:   22px;
}

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Subtle organic grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Smooth selection color */
::selection {
  background: rgba(196,144,122,0.2);
  color: var(--text);
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

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

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Scale variant */
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Clip variant (reveal from bottom) */
.reveal-clip {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-clip.visible {
  clip-path: inset(0 0 0 0);
}

/* Image hover zoom */
.img-hover-zoom {
  overflow: hidden;
  border-radius: var(--radius-card);
}
.img-hover-zoom img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-hover-zoom:hover img {
  transform: scale(1.05);
}

/* ─── Top Bar ─── */
.top-bar {
  background: var(--text);
  color: rgba(251,249,246,0.7);
  text-align: center;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.03em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  transition: transform 0.4s ease;
}
.top-bar strong {
  color: var(--cream);
  font-weight: 400;
}

/* ─── Navigation ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251,249,246,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(224,213,199,0.3);
  transition: padding 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, top 0.4s ease;
  padding: 16px 0;
}
.nav.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 24px rgba(58,53,48,0.06);
  background: rgba(251,249,246,0.95);
}
/* When used with top-bar, nav is fixed */
.nav.nav-fixed {
  position: fixed;
  left: 0;
  right: 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  transition: font-size 0.4s ease, letter-spacing 0.4s ease;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-soft);
  transition: color 0.3s ease;
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--clay);
}
/* Animated underline on nav links */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--clay);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.nav-cart svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-soft);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}
.nav-cart:hover svg {
  stroke: var(--clay);
}
.nav-cart-count {
  background: var(--clay);
  color: white;
  font-size: 10px;
  font-weight: 500;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -8px;
  right: -10px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-cart-count.bump {
  transform: scale(1.3);
}
.nav-cart-count:empty,
.nav-cart-count[data-count="0"] {
  display: none;
}

/* ─── Hamburger ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1100;
  cursor: pointer;
  border: none;
  background: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile Menu ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(251,249,246,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}
.mobile-menu.active a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.18s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.26s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.34s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.42s; }
.mobile-menu a:hover { color: var(--clay); }
.mobile-menu-footer {
  position: absolute;
  bottom: 40px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

/* ─── Buttons ─── */
.btn-clay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--clay);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-button);
  box-shadow: 0 6px 24px rgba(196,144,122,0.3);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
}
.btn-clay:hover {
  background: var(--clay-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(196,144,122,0.4);
}
.btn-clay:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(196,144,122,0.3);
  transition-duration: 0.1s;
}
.btn-clay svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}
.btn-clay:hover svg { transform: translateX(3px); }

/* Ripple effect container */
.btn-clay {
  position: relative;
  overflow: hidden;
}
.btn-clay .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: btn-ripple 0.6s ease-out;
  pointer-events: none;
}
@keyframes btn-ripple {
  to { transform: scale(4); opacity: 0; }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  border: 1.5px solid var(--text);
  border-radius: var(--radius-button);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--text);
  color: var(--cream);
  transform: translateY(-2px);
}
.btn-outline svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}
.btn-outline:hover svg { transform: translateX(3px); }

/* ─── Section Labels ─── */
.section-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

/* ─── Page Header ─── */
.page-header {
  padding-top: 140px;
  padding-bottom: 80px;
  background: linear-gradient(165deg, var(--sand) 0%, var(--sand-deep) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 70% 30%, rgba(232,200,190,0.15), transparent),
    radial-gradient(ellipse 40% 50% at 25% 80%, rgba(184,197,180,0.12), transparent);
}
/* Floating decorative shapes */
.page-header::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(196,144,122,0.08);
  top: -100px;
  right: -80px;
  animation: float-gentle 20s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float-gentle {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-20px, 15px) rotate(5deg); }
  66% { transform: translate(10px, -10px) rotate(-3deg); }
}
.page-header-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.15;
}
.page-header p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 300;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}
/* Top-bar variant: more padding at top */
.has-top-bar .page-header {
  padding-top: 180px;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  padding: 100px 0 16px;
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 300;
}
.breadcrumb a {
  color: var(--text-soft);
  transition: color 0.3s ease;
}
.breadcrumb a:hover {
  color: var(--clay);
}
.breadcrumb span {
  margin: 0 8px;
  opacity: 0.5;
}
.breadcrumb .current {
  color: var(--text);
  font-weight: 400;
}

/* ─── Footer ─── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 40px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clay), transparent);
  opacity: 0.3;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-brand img {
  height: 50px;
  filter: brightness(10);
  margin-bottom: 16px;
}
.footer-brand p,
.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.7;
  font-weight: 300;
  max-width: 260px;
}
.footer-col-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 20px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 12px;
  transition: color 0.3s ease;
  font-weight: 300;
}
.footer-col a:hover {
  color: var(--blush);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  margin-bottom: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 300;
}

/* ─── Scroll to Top ─── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--clay);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(196,144,122,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.3s ease;
  z-index: 900;
  cursor: pointer;
  border: none;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}
.scroll-top:hover {
  transform: translateY(-3px);
  background: var(--clay-dark);
}
.scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Cart Drawer ─── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58,53,48,0.4);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: var(--cream);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(58,53,48,0.1);
}
.cart-drawer.active {
  transform: translateX(0);
}
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--sand-deep);
}
.cart-header h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
}
.cart-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
}
.cart-close:hover {
  background: var(--sand);
}
.cart-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--text);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-soft);
  font-weight: 300;
}
.cart-empty svg {
  width: 48px;
  height: 48px;
  stroke: var(--sand-deep);
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 16px;
}
.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sand);
  align-items: center;
}
.cart-item-image {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--sand);
}
.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 4px;
  color: var(--text);
}
.cart-item-price {
  font-size: 0.88rem;
  color: var(--clay);
  font-weight: 500;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.cart-item-qty button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--sand-deep);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease;
}
.cart-item-qty button:hover {
  background: var(--sand);
}
.cart-item-qty span {
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}
.cart-item-remove {
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}
.cart-item-remove:hover {
  opacity: 1;
}
.cart-item-remove svg {
  width: 16px;
  height: 16px;
  stroke: var(--text);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--sand-deep);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cart-total-label {
  font-size: 0.95rem;
  font-weight: 400;
}
.cart-total-price {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--clay);
}
.cart-shipping-note {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 16px;
  font-weight: 300;
}
.btn-checkout {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 18px 36px;
}

/* ─── Toast Notification ─── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--text);
  color: var(--cream);
  padding: 14px 28px;
  border-radius: var(--radius-button);
  font-size: 0.9rem;
  font-weight: 400;
  z-index: 3000;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(58,53,48,0.2);
}
.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ─── Marquee ─── */
.marquee {
  padding: 16px 0;
  background: var(--text);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}
.marquee-item {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  color: rgba(251,249,246,0.35);
  padding: 0 24px;
  letter-spacing: 0.04em;
}
.marquee-dot {
  color: var(--clay);
  opacity: 0.5;
  padding: 0 24px;
  font-size: 8px;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Newsletter ─── */
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid var(--sand-deep);
  border-radius: var(--radius-button);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s ease;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--clay);
}
.newsletter-form input[type="email"]::placeholder {
  color: var(--text-soft);
  font-weight: 300;
}
.newsletter-form button {
  white-space: nowrap;
}
.newsletter-success {
  display: none;
  color: var(--clay);
  font-weight: 400;
  font-size: 0.95rem;
  padding: 14px 0;
}
.newsletter-success.visible {
  display: block;
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .nav-logo { font-size: 11px; letter-spacing: 0.22em; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .breadcrumb { padding-top: 90px; }
  .page-header { padding-top: 120px; padding-bottom: 60px; }
  .has-top-bar .page-header { padding-top: 140px; }
  .newsletter-form { flex-direction: column; }
}

@media (min-width: 961px) {
  .nav-hamburger { display: none; }
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--sand-deep);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--clay);
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--sand-deep) var(--cream);
}

/* ─── Smooth Page Load ─── */
@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
body {
  animation: page-fade-in 0.4s ease-out;
}

/* ─── Hover lift utility ─── */
.hover-lift {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ─── Stagger children animation ─── */
.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  animation: stagger-in 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
@keyframes stagger-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-scale, .reveal-clip {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}
