/* ==========================================
   MADHYA EARTH — Global Styles
   Aesthetic: Forest Ritual
   ========================================== */

/* ---- Google Fonts (non-blocking) ---- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Poppins:wght@300;400;500;600&display=swap');

@font-face {
  font-family: 'Lemon Milk';
  src: url('../fromrashi/fonts/lemonmilk/LEMONMILK-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lemon Milk';
  src: url('../fromrashi/fonts/lemonmilk/LEMONMILK-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---- Custom Properties ---- */
:root {
  --bg-dark:          #0b1a0f;
  --bg-mid:           #122018;
  --bg-light:         #f5f0e6;
  --bg-cream:         #ede8dc;
  --accent-terra:     #c4653a;
  --accent-terra-dk:  #a8502c;
  --accent-gold:      #c9a96e;
  --accent-gold-dk:   #a88b50;
  --sage:             #4a7c59;
  --sage-light:       #6a9a78;

  /* Five Trees — logo colour palette
     Tree 1 (leftmost) → Tree 5 (rightmost) */
  --tree-1: #B87068;   /* dusty clay rose   */
  --tree-2: #D9A898;   /* soft blush peach  */
  --tree-3: #D4CECC;   /* warm pearl stone  */
  --tree-4: #B2C4BC;   /* silvery sage      */
  --tree-5: #84A87C;   /* warm living sage  */
  --text-dark:        #1c2b1f;
  --text-muted:       #5e7262;
  --text-light:       #f5f0e6;
  --text-light-muted: rgba(245, 240, 230, 0.6);
  --border-light:     rgba(28, 43, 31, 0.12);
  --border-dark:      rgba(245, 240, 230, 0.1);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Poppins', system-ui, sans-serif;
  --font-card-title: 'Lemon Milk', 'Poppins', system-ui, sans-serif;

  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;
  --space-2xl: 12rem;

  --max-w:     1400px;
  --content-w: 1200px;
  --gutter:    clamp(1.25rem, 4vw, 3rem);

  --nav-h:         72px;
  --nav-h-compact: 56px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:  150ms var(--ease-in-out);
  --t-base:  260ms var(--ease-in-out);
  --t-slow:  550ms var(--ease-out);

  --z-base:    1;
  --z-raised:  10;
  --z-overlay: 50;
  --z-nav:     100;
  --z-drawer:  200;
  --z-grain:   9999;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; padding: 0; font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

/* ---- Grain Texture Overlay ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: 0.045;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='250' height='250'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/></filter><rect width='250' height='250' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  animation: grain-drift 9s steps(2) infinite;
}

@keyframes grain-drift {
  0%   { background-position:   0    0; }
  25%  { background-position: -60px -30px; }
  50%  { background-position:  30px  60px; }
  75%  { background-position: -80px  30px; }
  100% { background-position:   0    0; }
}

/* ---- Typography Utilities ---- */
.label-caps {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.8rem;
  height: 1px;
  background: var(--accent-gold);
  flex-shrink: 0;
}

/* ---- Layout Utilities ---- */
.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--wide {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 320ms; }
.reveal--delay-4 { transition-delay: 440ms; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base), transform 120ms ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent-terra);
  color: #fff;
  border-color: var(--accent-terra);
}
.btn--primary:hover {
  background: var(--accent-terra-dk);
  border-color: var(--accent-terra-dk);
}

.btn--outline {
  background: transparent;
  color: var(--text-dark);
  border-color: rgba(28, 43, 31, 0.35);
}
.btn--outline:hover {
  background: var(--text-dark);
  color: var(--text-light);
  border-color: var(--text-dark);
}

.btn--outline-light {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(245, 240, 230, 0.35);
}
.btn--outline-light:hover {
  background: rgba(245, 240, 230, 0.1);
  border-color: var(--text-light);
}

.btn--ghost {
  background: transparent;
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}
.btn--ghost:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

/* ---- Sections ---- */
.section { padding: clamp(4rem, 10vw, 8rem) 0; }
.section--dark  { background: var(--bg-dark);  color: var(--text-light); }
.section--mid   { background: var(--bg-mid);   color: var(--text-light); }
.section--cream { background: var(--bg-cream); color: var(--text-dark); }

/* ======================================
   NAVBAR
   ====================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  z-index: var(--z-nav);
  transition:
    height    var(--t-base),
    background var(--t-base),
    backdrop-filter var(--t-base),
    -webkit-backdrop-filter var(--t-base),
    border-color var(--t-base),
    transform 300ms ease;
  border-bottom: 1px solid transparent;
}

.navbar--solid {
  position: sticky;
}

.navbar--solid,
.navbar--scrolled {
  height: var(--nav-h-compact);
  background: rgba(11, 26, 15, 0.92);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: rgba(201, 169, 110, 0.14);
}

.navbar--hidden { transform: translateY(-100%); }

.navbar--menu-open {
  background: var(--bg-dark);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: rgba(201, 169, 110, 0.14);
}

.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
}

.navbar__logo img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity var(--t-base);
}
.navbar__logo:hover img { opacity: 0.75; }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}

.navbar__link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--t-base);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent-gold);
  transition: width var(--t-base);
}

.navbar__link:hover,
.navbar__link--active { color: var(--accent-gold); }

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

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}

.navbar--menu-open .navbar__actions {
  z-index: calc(var(--z-nav) + 2);
}

.navbar__icon-link,
.navbar__cart-btn {
  position: relative;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  border-radius: 50%;
  transition: color var(--t-base), transform var(--t-fast);
}

.navbar__icon-link:hover,
.navbar__cart-btn:hover {
  color: var(--accent-terra);
  transform: scale(1.12);
}

.navbar__cart-icon {
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url("../media/icon-cart.svg") center / contain no-repeat;
  -webkit-mask: url("../media/icon-cart.svg") center / contain no-repeat;
}

.cart-badge {
  position: absolute;
  top: 0; right: 0;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent-terra);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity var(--t-fast), transform var(--t-fast);
}

.cart-badge.is-visible {
  opacity: 1;
  transform: scale(1);
}

.navbar__wishlist-btn {
  position: relative;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  border-radius: 50%;
  transition: color var(--t-base), transform var(--t-fast);
}

.navbar__wishlist-btn:hover {
  color: var(--accent-terra);
  transform: scale(1.12);
}

.wishlist-badge {
  position: absolute;
  top: 0; right: 0;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent-terra);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity var(--t-fast), transform var(--t-fast);
}

.wishlist-badge.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ======================================
   SHARED CART DRAWER
   ====================================== */
.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(460px, 100vw);
  height: 100%;
  height: 100dvh;
  background: var(--bg-light);
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.45s var(--ease-out);
  box-shadow: 8px 0 40px rgba(11, 26, 15, 0.15);
}

.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.75rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.cart-drawer__title-wrap { display: flex; flex-direction: column; gap: 0.5rem; }

.cart-drawer__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: 0;
}

.cart-drawer__close {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  margin-top: 0.25rem;
  transition: color var(--t-base), border-color var(--t-base);
  flex-shrink: 0;
}
.cart-drawer__close:hover { color: var(--text-dark); border-color: var(--text-dark); }

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.75rem;
  -webkit-overflow-scrolling: touch;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}
.cart-item:last-child { border-bottom: none; }

.cart-item__img {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-cream);
}

.cart-item__info { display: flex; flex-direction: column; gap: 0.3rem; }

.cart-item__title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.3;
}

.cart-item__price {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.cart-item__qty-btn {
  width: 26px; height: 26px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text-dark);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.cart-item__qty-btn:hover { border-color: var(--sage); background: var(--bg-cream); }
.cart-item__qty-num { font-size: 0.875rem; min-width: 18px; text-align: center; }

.cart-item__remove {
  align-self: start;
  color: var(--text-muted);
  padding: 0.25rem;
  transition: color var(--t-fast);
}
.cart-item__remove:hover { color: var(--accent-terra); }

.cart-empty {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 0.75rem; padding: 4rem 1rem;
  color: var(--text-muted);
}
.cart-empty p { font-size: 0.95rem; }
.cart-empty a { color: var(--sage); text-decoration: underline; }

.cart-drawer__footer {
  padding: 1.25rem 1.75rem 1.75rem;
  border-top: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 1rem;
  flex-shrink: 0;
}

.cart-drawer__total-row {
  display: flex; justify-content: space-between; align-items: center;
}
.cart-drawer__total-label { font-size: 0.875rem; color: var(--text-muted); }
.cart-drawer__total-amount {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-dark);
}

.cart-drawer__checkout { width: 100%; justify-content: center; }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 15, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: calc(var(--z-drawer) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-slow);
}

.drawer-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Hamburger */
.hamburger {
  width: 38px; height: 38px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: var(--text-light);
  border: 1px solid transparent;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base), transform var(--t-fast);
}

.hamburger[aria-expanded="true"] {
  color: var(--bg-dark);
  background: var(--accent-gold);
  border-color: rgba(245, 240, 230, 0.52);
  transform: scale(1.04);
  z-index: calc(var(--z-nav) + 3);
}

.hamburger__line {
  display: block;
  width: 22px; height: 1px;
  background: currentColor;
  transition: transform var(--t-base), opacity var(--t-fast);
  transform-origin: center;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: calc(var(--z-nav) - 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-slow), visibility var(--t-slow);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  color: var(--text-light);
  letter-spacing: -0.01em;
  line-height: 1;
  transition: color var(--t-base);
}

.mobile-menu__link:hover {
  color: var(--accent-gold);
}

.mobile-menu__footer {
  position: absolute;
  bottom: var(--space-md);
  display: flex;
  gap: 1.5rem;
}

.mobile-menu__footer a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  transition: color var(--t-base);
}

.mobile-menu__footer a:hover {
  color: var(--accent-gold);
}

/* ======================================
   FOOTER
   ====================================== */
.footer {
  background: var(--bg-dark);
  color: var(--text-light-muted);
  padding: clamp(4rem, 8vw, 7rem) 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-lg);
  border-bottom: 1px solid var(--border-dark);
}

.footer__brand { max-width: 320px; }

.footer__logo img {
  height: 30px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  margin-bottom: var(--space-sm);
}

.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-light-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.footer__newsletter-copy {
  color: var(--text-light-muted);
  font-size: 0.84rem;
  line-height: 1.65;
  margin-bottom: var(--space-sm);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--text-light-muted);
  transition: color var(--t-base);
}

.footer__social-link:hover {
  color: var(--text-light);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-md);
}

.footer__nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2.25rem;
}

.footer__nav-link {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-light-muted);
  transition: color var(--t-base);
}

.footer__nav-link:hover { color: var(--accent-gold); }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
  text-align: right;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-dark);
}

.footer__contact-title {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.footer__contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
}

.footer__contact-links a {
  font-size: 0.88rem;
  color: var(--text-light-muted);
  transition: color var(--t-base);
}

.footer__contact-links a:hover { color: var(--text-light); }

.footer__bottom {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: var(--space-sm) var(--gutter);
  display: flex;
  justify-content: center;
}

.footer__copyright {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-light-muted);
  opacity: 0.5;
}

/* ======================================
   FOCUS STYLES
   ====================================== */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

/* ======================================
   SKIP LINK
   ====================================== */
.skip-link {
  position: absolute;
  top: -200%;
  left: var(--gutter);
  z-index: calc(var(--z-nav) + 10);
  padding: 0.5rem 1rem;
  background: var(--accent-gold);
  color: var(--bg-dark);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: top var(--t-fast);
}

.skip-link:focus { top: var(--space-sm); }

/* ======================================
   BADGE
   ====================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
}

.badge--terra {
  background: rgba(196, 101, 58, 0.15);
  color: var(--accent-terra);
  border: 1px solid rgba(196, 101, 58, 0.3);
}

.badge--gold {
  background: rgba(201, 169, 110, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(201, 169, 110, 0.3);
}

.badge--sage {
  background: rgba(74, 124, 89, 0.15);
  color: var(--sage);
  border: 1px solid rgba(74, 124, 89, 0.3);
}

.badge--dev {
  background: rgba(74, 124, 89, 0.2);
  color: var(--sage-light);
  border: 1px solid rgba(74, 124, 89, 0.4);
  border-radius: 20px;
  padding: 0.35rem 1.1rem;
}

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 1023px) {
  .navbar__links { display: none; }
  .hamburger    { display: flex; }
}

@media (max-width: 767px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .footer__nav {
    align-items: flex-start;
  }
  .footer__contact {
    align-items: flex-start;
    text-align: left;
  }
  .footer__nav-links {
    flex-wrap: wrap;
    gap: 1.25rem;
  }
}

/* ======================================
   TOAST NOTIFICATIONS
   ====================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: calc(var(--z-grain) - 1);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
  width: min(340px, calc(100vw - 2rem));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 4px;
  border-left: 3px solid transparent;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  box-shadow: 0 8px 30px rgba(11, 26, 15, 0.35);
  pointer-events: auto;
  transform: translateX(calc(100% + 1.5rem));
  opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}

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

.toast.is-leaving {
  transform: translateX(calc(100% + 1.5rem));
  opacity: 0;
}

.toast--success { border-left-color: var(--sage); }
.toast--error   { border-left-color: var(--accent-terra); }
.toast--info    { border-left-color: var(--accent-gold); }

.toast--success .toast__icon { color: var(--sage); }
.toast--error   .toast__icon { color: var(--accent-terra); }
.toast--info    .toast__icon { color: var(--accent-gold); }

.toast__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-top: 1px;
}

.toast__msg {
  flex: 1;
}

.toast__close {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light-muted);
  border-radius: 50%;
  transition: color var(--t-fast);
  margin-top: -1px;
}

.toast__close:hover { color: var(--text-light); }

/* ======================================
   NEWSLETTER FORM (footer)
   ====================================== */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.newsletter-form__input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: rgba(245, 240, 230, 0.07);
  border: 1px solid var(--border-dark);
  color: var(--text-light);
  outline: none;
  transition: border-color var(--t-base);
}

.newsletter-form__input::placeholder { color: var(--text-light-muted); }
.newsletter-form__input:focus { border-color: var(--accent-gold); }

.newsletter-form__btn {
  flex-shrink: 0;
  padding: 0.7rem 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.newsletter-otp {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) + 30);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}

.newsletter-otp.is-open {
  display: flex;
}

.newsletter-otp__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 26, 15, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.newsletter-otp__panel {
  position: relative;
  width: min(520px, 100%);
  background: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid rgba(201, 169, 110, 0.28);
  box-shadow: 0 24px 70px rgba(11, 26, 15, 0.28);
  padding: clamp(1.5rem, 4vw, 2.4rem);
}

.newsletter-otp__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  transition: color var(--t-base), border-color var(--t-base);
}

.newsletter-otp__close:hover {
  color: var(--text-dark);
  border-color: var(--text-dark);
}

.newsletter-otp__title {
  margin-top: 0.9rem;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--text-dark);
}

.newsletter-otp__body {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.newsletter-otp__info {
  margin-top: 1.1rem;
  color: var(--sage);
  font-size: 0.9rem;
  line-height: 1.6;
}

.newsletter-otp__demo-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.newsletter-otp__demo-code {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.35rem 0.65rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-dark);
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
}

.newsletter-otp__form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.newsletter-otp__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.newsletter-otp__input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border-light);
  outline: none;
  transition: border-color var(--t-base), background var(--t-base);
}

.newsletter-otp__input:focus {
  background: #fff;
  border-color: var(--accent-gold);
}

.newsletter-otp__error {
  color: var(--accent-terra);
  font-size: 0.85rem;
}

.newsletter-otp__submit {
  justify-content: center;
  margin-top: 0.25rem;
}

/* ======================================
   REDUCED MOTION
   ====================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  body::after { display: none; }
}
