/* ================================================================
   หจก.ไข่สดหนมฟาร์ม — Kai Sod Nom Farm
   Premium Design System — style.css
   ================================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  hanging-punctuation: first last;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background-color: var(--color-cream);
  overflow-x: hidden;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button,
.btn {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

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

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

dialog {
  border: none;
  padding: 0;
  background: transparent;
}

/* Hidden scrollbar — mobile */
@media (max-width: 767px) {
  body {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  body::-webkit-scrollbar {
    display: none;
  }
}

/* Thin custom scrollbar — desktop */
@media (min-width: 768px) {
  body {
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) transparent;
  }
  body::-webkit-scrollbar {
    width: 6px;
  }
  body::-webkit-scrollbar-track {
    background: transparent;
  }
  body::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: var(--radius-pill);
  }
}

/* ----------------------------------------------------------------
   2. DESIGN TOKENS (CSS Custom Properties)
   ---------------------------------------------------------------- */
:root {
  /* Typography */
  --font-display: 'DM Sans', sans-serif;
  --font-body: 'Inter', 'Noto Sans Thai', sans-serif;

  /* Colors — Warm Farm Palette */
  --color-primary: hsl(25, 40%, 14%);
  --color-primary-light: hsl(25, 35%, 20%);
  --color-accent: hsl(32, 75%, 50%);
  --color-accent-hover: hsl(32, 80%, 43%);
  --color-cream: hsl(40, 45%, 96%);
  --color-cream-dark: hsl(38, 35%, 90%);
  --color-warm: hsl(35, 40%, 88%);
  --color-surface-solid: hsl(40, 30%, 98%);
  --color-text: hsl(25, 25%, 12%);
  --color-text-light: hsl(25, 12%, 45%);
  --color-text-on-dark: hsl(38, 30%, 92%);
  --color-border: hsl(30, 15%, 88%);

  /* Shadows */
  --shadow-sm: 0 1px 3px hsla(25, 30%, 10%, 0.06);
  --shadow-md: 0 4px 12px hsla(25, 30%, 10%, 0.08);
  --shadow-lg: 0 8px 30px hsla(25, 30%, 10%, 0.12);
  --shadow-xl: 0 20px 60px hsla(25, 30%, 10%, 0.15);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 100px;
  --radius-round: 50%;

  /* Spacing Scale */
  --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;

  /* Motion */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --nav-height: 72px;
}

/* Hide native scrollbar — custom progress bar at top replaces it */
html {
  scrollbar-width: none;
}
html::-webkit-scrollbar {
  display: none;
}

/* ----------------------------------------------------------------
   3. TYPOGRAPHY
   ---------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

p {
  text-wrap: pretty;
  max-width: 70ch;
}

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

/* ----------------------------------------------------------------
   4. UTILITY CLASSES
   ---------------------------------------------------------------- */

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

/* Section Padding */
.section-padding {
  padding-block: var(--space-4xl);
}

@media (max-width: 767px) {
  .section-padding {
    padding-block: var(--space-3xl);
  }
}

/* Section Headers — generic (used by .products-header, .how-header, .gallery-header, .visit-header) */
.products-header,
.how-header,
.gallery-header,
.visit-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.products-header h2,
.how-header h2,
.gallery-header h2,
.visit-header h2 {
  margin-bottom: var(--space-md);
}

.products-header p,
.how-header p,
.gallery-header p,
.visit-header p {
  color: var(--color-text-light);
  max-width: 56ch;
  margin-inline: auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Section Label — standalone (not inside .section-header) */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.section-label::before,
.section-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.5;
}

/* Section Title — standalone */
.section-title {
  margin-bottom: var(--space-lg);
}

/* Section Subtitle */
.section-subtitle {
  color: var(--color-text-light);
  max-width: 56ch;
  margin-inline: auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Accent span inside h1 */
.accent {
  color: var(--color-accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition:
    background var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

/* .btn-accent — golden accent button (was .btn-primary in old CSS) */
.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 16px hsla(32, 75%, 50%, 0.3);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px hsla(32, 75%, 50%, 0.4);
}

/* .btn-outline — dark outlined button */
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid hsla(0, 0%, 100%, 0.4);
}

.btn-outline-light:hover {
  background: hsla(0, 0%, 100%, 0.12);
  border-color: hsla(0, 0%, 100%, 0.7);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn-icon {
  font-size: 1.1em;
  flex-shrink: 0;
}

/* Divider */
.divider-accent {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  margin-block: var(--space-lg);
}

/* ----------------------------------------------------------------
   BRANDED WATERMARK — subtle overlay on all image containers
   ---------------------------------------------------------------- */
.hero-bg,
.about-image-wrapper,
.gallery-item {
  position: relative;
}

/* Watermark icon (circular logo) */
.hero-bg::before,
.about-image-wrapper::before,
.gallery-item::before {
  content: '';
  position: absolute;
  bottom: 9px;
  right: 10px;
  width: 14px;
  height: 14px;
  background: url('assets/logo.webp') center / cover no-repeat;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
}

/* Watermark text */
.hero-bg::after,
.about-image-wrapper::after,
.gallery-item::after {
  content: 'ไข่สดพนมฟาร์ม';
  position: absolute;
  bottom: 8px;
  right: 28px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  color: hsla(0, 0%, 100%, 0.35);
  letter-spacing: 0.06em;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.3);
  line-height: 1;
  opacity: 0.5;
}

/* Darker images get slightly more visible watermark */
.hero-bg::before {
  bottom: 13px;
  right: 16px;
}
.hero-bg::after {
  color: hsla(0, 0%, 100%, 0.25);
  font-size: 0.7rem;
  bottom: 12px;
  right: 34px;
}

/* ----------------------------------------------------------------
   5. SPLASH LOADER
   ---------------------------------------------------------------- */
.splash-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.splash-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Gauge ring container */
.splash-logo-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG gauge ring */
.splash-gauge {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.splash-gauge-track {
  fill: none;
  stroke: hsla(0, 0%, 100%, 0.08);
  stroke-width: 3;
}

.splash-gauge-fill {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 276.46;
  stroke-dashoffset: 276.46;
  animation: splash-gauge-draw 1.8s var(--ease-in-out) 0.4s forwards;
  filter: drop-shadow(0 0 6px hsla(32, 75%, 50%, 0.5));
}

@keyframes splash-gauge-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.splash-loader .splash-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-round);
  object-fit: cover;
  opacity: 0;
  animation: splash-fade-in 0.6s var(--ease-out) 0.1s forwards;
}

.splash-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text-on-dark);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: splash-fade-in 0.6s var(--ease-out) 0.3s forwards;
  margin-bottom: var(--space-2xl);
}

.splash-bar {
  width: 200px;
  height: 3px;
  background: hsla(0, 0%, 100%, 0.1);
  border-radius: var(--radius-pill);
  overflow: visible;
  opacity: 0;
  animation: splash-fade-in 0.6s var(--ease-out) 0.5s forwards;
  position: relative;
}

.splash-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), hsl(40, 80%, 65%));
  border-radius: var(--radius-pill);
  width: 0;
  animation: splash-slide 1.6s var(--ease-in-out) 0.6s forwards;
}

/* Delivery truck riding along the loading bar */
.splash-bar::after {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  width: 20px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18' fill='none' stroke='%23C8874D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3H1v10h15V3z'/%3E%3Cpath d='M16 8h4l3 3v2h-7V8z'/%3E%3Ccircle cx='5.5' cy='14.5' r='1.5' fill='%23C8874D'/%3E%3Ccircle cx='18.5' cy='14.5' r='1.5' fill='%23C8874D'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  animation: splash-truck-drive 1.6s var(--ease-in-out) 0.6s forwards;
}




@keyframes splash-fade-in {
  to {
    opacity: 1;
  }
}

@keyframes splash-slide {
  0%   { width: 0; }
  40%  { width: 55%; }
  70%  { width: 80%; }
  100% { width: 100%; }
}

@keyframes splash-truck-drive {
  0%   { left: -20px; opacity: 0; }
  5%   { opacity: 1; }
  40%  { left: calc(55% - 10px); }
  70%  { left: calc(80% - 10px); }
  95%  { opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; }
}

/* ----------------------------------------------------------------
   6. SCROLL PROGRESS BAR
   ---------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), hsl(40, 80%, 65%), var(--color-accent));
  background-size: 200% 100%;
  z-index: 10000;
  transition: width 60ms linear;
  pointer-events: none;
}

/* ----------------------------------------------------------------
   7. NAVIGATION
   ---------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition:
    background var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    backdrop-filter var(--duration-normal) var(--ease-out);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
  gap: var(--space-sm);
}

/* Transparent initial state */
.navbar:not(.scrolled) {
  background: transparent;
}

/* Glassmorphism on scroll */
.navbar.scrolled {
  background: hsla(40, 45%, 96%, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 12px hsla(25, 30%, 10%, 0.06);
}

/* When mobile menu is open: match dark menu background */
.navbar.menu-open,
.navbar.menu-open.scrolled {
  background: var(--color-primary);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.navbar.menu-open .nav-brand,
.navbar.menu-open.scrolled .nav-brand {
  color: #fff;
}

.navbar.menu-open .nav-hamburger span,
.navbar.menu-open.scrolled .nav-hamburger span {
  background: #fff;
}

/* Brand (was .nav-logo) */
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  transition: color var(--duration-normal) var(--ease-out);
  z-index: 1001;
}

.navbar.scrolled .nav-brand {
  color: var(--color-primary);
}

.nav-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  object-fit: cover;
  will-change: transform;
}

.footer-brand-icon {
  animation: logo-spin 20s linear infinite;
}

.splash-logo img {
  animation: logo-spin 20s linear infinite;
}

@keyframes logo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.nav-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
}

/* On mobile: icon-only CTA, shorter brand */
@media (max-width: 1099px) {
  .nav-cta-text {
    display: none;
  }
  .nav-cta {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-round);
  }
  .nav-cta [data-lucide] {
    width: 1.1em;
    height: 1.1em;
  }
}


/* Desktop Links */
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-xl);
}

@media (min-width: 1100px) {
  .nav-links {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: hsla(0, 0%, 100%, 0.85);
  transition: color var(--duration-normal) var(--ease-out);
  padding-block: var(--space-xs);
}

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

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

.navbar.scrolled .nav-links a {
  color: var(--color-text);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--color-accent);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 1001;
  margin-left: auto;
}

.nav-actions .btn-lang {
  display: none;
}

@media (min-width: 1100px) {
  .nav-actions .btn-lang {
    display: inline-flex;
  }
}

/* Language Toggle Button (was .lang-toggle, now .btn-lang) */
.btn-lang {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: hsla(0, 0%, 100%, 0.85);
  border: 1.5px solid hsla(0, 0%, 100%, 0.3);
  border-radius: var(--radius-pill);
  transition:
    color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    background var(--duration-normal) var(--ease-out);
  cursor: pointer;
  justify-content: center;
}

.btn-lang:hover {
  background: hsla(0, 0%, 100%, 0.1);
}

.navbar.scrolled .btn-lang {
  color: var(--color-text);
  border-color: var(--color-border);
}

.navbar.scrolled .btn-lang:hover {
  background: var(--color-cream-dark);
}

/* Hamburger (was .hamburger, now .nav-hamburger) */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  gap: 6px;
  z-index: 1001;
}

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

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: var(--radius-pill);
  transition:
    transform var(--duration-normal) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out),
    background var(--duration-normal) var(--ease-out);
}

.navbar.scrolled .nav-hamburger span {
  background: var(--color-primary);
}

/* Hamburger → X animation */
.nav-hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay (was .mobile-menu, now .nav-mobile) */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration-normal) var(--ease-out),
    visibility var(--duration-normal);
}

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

/* Mobile menu logo */
.nav-mobile-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-round);
  object-fit: cover;
  margin-bottom: var(--space-lg);
  animation: slow-spin 20s linear infinite;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.nav-mobile.open .nav-mobile-logo {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0ms;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.nav-mobile.open a {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered link animations */
.nav-mobile.open a:nth-child(1) { transition-delay: 80ms; }
.nav-mobile.open a:nth-child(2) { transition-delay: 140ms; }
.nav-mobile.open a:nth-child(3) { transition-delay: 200ms; }
.nav-mobile.open a:nth-child(4) { transition-delay: 260ms; }
.nav-mobile.open a:nth-child(5) { transition-delay: 320ms; }
.nav-mobile.open a:nth-child(6) { transition-delay: 380ms; }
.nav-mobile.open a:nth-child(7) { transition-delay: 440ms; }

.nav-mobile a:not(.btn):hover {
  color: var(--color-accent);
}

.nav-mobile-actions .btn:hover {
  filter: brightness(1.1);
}

/* Mobile menu actions */
.nav-mobile-actions {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.nav-mobile.open .nav-mobile-actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 500ms;
}

/* ----------------------------------------------------------------
   8. HERO
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

/* Ken Burns background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ken-burns 25s var(--ease-in-out) infinite alternate;
  will-change: transform;
}

@keyframes ken-burns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(-1.5%, -1%);
  }
}

/* Subtle Ken Burns for about/gallery images */
.ken-burns-subtle {
  animation: ken-burns-subtle 30s var(--ease-in-out) infinite alternate;
  will-change: transform;
}

@keyframes ken-burns-subtle {
  0%   { transform: scale(1); }
  100% { transform: scale(1.06) translate(-1%, -0.5%); }
}

/* Dark overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    hsla(25, 40%, 8%, 0.55) 0%,
    hsla(25, 40%, 8%, 0.70) 50%,
    hsla(25, 40%, 8%, 0.85) 100%
  );
  z-index: 1;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: var(--space-lg);
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 20px;
  background: hsla(0, 0%, 100%, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid hsla(0, 0%, 100%, 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: hsla(0, 0%, 100%, 0.9);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xl);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: hsl(120, 60%, 50%);
  border-radius: var(--radius-round);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 hsla(120, 60%, 50%, 0.5);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 6px hsla(120, 60%, 50%, 0);
  }
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--space-lg);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
}

/* Hero description (was .hero-subtitle) */
/* Hero truck icon — delivery emphasis */
.hero-truck-icon {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  vertical-align: -0.05em;
  color: var(--color-accent);
  animation: hero-truck-drive 2.5s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px hsla(32, 75%, 50%, 0.4));
}

@keyframes hero-truck-drive {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

.hero-description {
  color: hsla(0, 0%, 100%, 0.8);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 55ch;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Scroll hint (was .scroll-hint, now .hero-scroll-hint) */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: hsla(0, 0%, 100%, 0.6);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scroll-float 2.5s ease-in-out infinite;
}

/* Scroll line (was .scroll-hint-line, now .scroll-line) */
.scroll-line {
  display: block;
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, hsla(0, 0%, 100%, 0.5), transparent);
}

@keyframes scroll-float {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(8px);
    opacity: 0.5;
  }
}

/* ----------------------------------------------------------------
   9. TRUST BAR
   ---------------------------------------------------------------- */
.trust-bar {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  padding-block: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.trust-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    hsla(32, 75%, 50%, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Trust bar grid (was .trust-bar .container as grid, now .trust-bar-grid inside .container) */
.trust-bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
  grid-auto-rows: 1fr;
}

.trust-bar-grid .trust-divider {
  display: none;
}

/* Mobile reorder: 15+ Years | 100+ Customers (top row), Certified | Daily (bottom row) */
@media (max-width: 767px) {
  .trust-bar-grid > :nth-child(1) { order: 1; } /* 15+ Years */
  .trust-bar-grid > :nth-child(2) { order: 10; } /* divider — push to end */
  .trust-bar-grid > :nth-child(3) { order: 3; } /* Certified Farm */
  .trust-bar-grid > :nth-child(4) { order: 10; } /* divider */
  .trust-bar-grid > :nth-child(5) { order: 4; } /* Daily Delivery */
  .trust-bar-grid > :nth-child(6) { order: 10; } /* divider */
  .trust-bar-grid > :nth-child(7) { order: 2; } /* 100+ Customers */
}

@media (min-width: 768px) {
  .trust-bar-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
  }

  .trust-bar-grid .trust-divider {
    display: block;
  }
}

.trust-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  gap: var(--space-xs);
  flex: 1;
  min-width: 120px;
}

.trust-item .trust-icon {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-item .trust-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 56px;
  justify-content: start;
}

/* Trust icon (was .trust-item-icon) */
.trust-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
  filter: drop-shadow(0 2px 8px hsla(32, 75%, 50%, 0.3));
}

/* Trust text wrapper */
.trust-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* Trust number — numeric counter (was .trust-item-value) */
.trust-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

/* Trust number text — text-based value (no numeric counter) */
.trust-number-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}

/* Trust label (was .trust-item-label) */
.trust-label {
  font-size: 0.85rem;
  color: hsla(38, 30%, 92%, 0.7);
  font-weight: 500;
}

/* Trust divider — vertical lines between items */
.trust-divider {
  width: 1px;
  height: 48px;
  background: hsla(0, 0%, 100%, 0.12);
  flex-shrink: 0;
  display: none;
}

@media (min-width: 768px) {
  .trust-divider {
    display: block;
  }
}

/* ----------------------------------------------------------------
   10. ABOUT
   ---------------------------------------------------------------- */
.about {
  background: var(--color-cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
  }
}

/* Image side */
.about-image-wrapper {
  position: relative;
}

/* Direct img inside .about-image-wrapper (no .about-image wrapper div) */
.about-image-wrapper > img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

/* About image accent — overlay badge bar with stats (NOT decorative border) */
.about-image-accent {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-md);
  right: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  background: hsla(25, 40%, 14%, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  z-index: 2;
}

@media (max-width: 480px) {
  .about-image-accent {
    left: var(--space-sm);
    right: var(--space-sm);
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
  }
  .about-stat-number {
    font-size: 1.4rem;
  }
  .about-stat-label {
    font-size: 0.65rem;
  }
}

.about-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.about-stat-icon {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  margin-bottom: 2px;
  opacity: 0.8;
}

.about-stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.about-stat-label {
  font-size: 0.75rem;
  color: hsla(38, 30%, 92%, 0.7);
  font-weight: 500;
}

.about-stat-divider {
  width: 1px;
  height: 36px;
  background: hsla(0, 0%, 100%, 0.15);
  flex-shrink: 0;
}

/* Text side (was .about-content, now .about-text) */
.about-text .section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.about-text .section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.5;
}

.about-text h2 {
  margin-bottom: var(--space-lg);
}

.about-text p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

/* About signature */
.about-signature {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Avatar image (was .about-signature img, now .about-signature-avatar) */
.about-signature-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-round);
  object-fit: cover;
  border: 2px solid var(--color-accent);
}

.about-signature-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
}

/* Role (was .about-signature-title, now .about-signature-role) */
.about-signature-role {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ----------------------------------------------------------------
   11. PRODUCTS (Tabbed Categories — LIST layout)
   ---------------------------------------------------------------- */
.products {
  background: var(--color-surface-solid);
}

/* Category Tabs */
.product-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: nowrap;
  margin-bottom: var(--space-2xl);
}

@media (max-width: 480px) {
  .product-tabs {
    gap: var(--space-xs);
  }
  .product-tab {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
}

.product-tab {
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  color: var(--color-text-light);
  background: transparent;
  border: 1.5px solid var(--color-border);
  transition:
    background var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}

.product-tab:hover {
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.product-tab.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* Hidden tab content (was .product-category-content, now .product-category) */
.product-category {
  display: none;
}

.product-category.active {
  display: block;
}

/* Product Item Thumbnail */
.product-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-round);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

/* Product Item — LIST layout (was .product-card grid, now row-based list items) */
.product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
  margin-bottom: var(--space-md);
}

.product-item:last-child {
  margin-bottom: 0;
}

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

.product-item-info {
  flex: 1;
  min-width: 0;
}

.product-item-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.product-item-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.product-item-action {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.product-item-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

/* Responsive: stack on mobile */
@media (max-width: 767px) {
  .product-item {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-lg);
  }

  .product-item-action {
    width: 100%;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
  }
}

/* Lucide Icon Sizing */
[data-lucide] {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  vertical-align: -0.125em;
  display: inline-block;
}

.trust-icon [data-lucide],
.step-icon [data-lucide] {
  width: 1.6em;
  height: 1.6em;
}

.visit-contact-icon [data-lucide] {
  width: 1.2em;
  height: 1.2em;
}

.gallery-item-icon [data-lucide] {
  width: 1.4em;
  height: 1.4em;
}

/* Product Detail Dialog */
.product-detail {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 540px;
  width: calc(100% - var(--space-xl) * 2);
  margin: auto;
  position: fixed;
  inset: 0;
  height: fit-content;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.product-detail[open] {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  -webkit-user-select: none;
  user-select: none;
}

.product-detail::backdrop {
  background: hsla(25, 35%, 8%, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@keyframes slide-up-dialog {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.product-detail-prev,
.product-detail-next {
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  aspect-ratio: 1;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 2px solid hsla(0, 0%, 100%, 0.25);
  outline: 0;
  outline-offset: 0;
  background: hsla(0, 0%, 100%, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
}

.product-detail-prev:focus,
.product-detail-next:focus,
.product-detail-prev:focus-visible,
.product-detail-next:focus-visible {
  outline: none;
  box-shadow: none;
}

.product-detail-prev:hover,
.product-detail-next:hover {
  background: hsla(0, 0%, 100%, 0.3);
  transform: scale(1.1);
}

@media (max-width: 640px) {
  .product-detail-prev,
  .product-detail-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
  }
  .product-detail-prev { left: var(--space-sm); }
  .product-detail-next { right: var(--space-sm); }
  .product-detail-prev:hover,
  .product-detail-next:hover {
    transform: translateY(-50%) scale(1.1);
  }
}

.product-detail-inner {
  position: relative;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-y: auto;
  box-shadow: 0 8px 40px hsla(25, 35%, 8%, 0.3);
  flex: 1;
  min-width: 0;
  max-height: calc(100dvh - 48px);
  animation: slide-up-dialog 0.4s var(--ease-out);
}

.product-detail-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  background: hsla(0, 0%, 0%, 0.4);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  transition:
    background var(--duration-fast),
    transform var(--duration-fast);
}

.product-detail-close:hover {
  background: hsla(0, 0%, 0%, 0.6);
  transform: scale(1.1);
}

.product-detail-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  max-height: 40dvh;
}

.product-detail-body {
  padding: var(--space-xl);
  position: relative;
}

.product-detail-body::before {
  content: '';
  position: absolute;
  top: -27px;
  right: 10px;
  width: 14px;
  height: 14px;
  background: url('assets/logo.webp') center / cover no-repeat;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
}

.product-detail-body::after {
  content: 'ไข่สดพนมฟาร์ม';
  position: absolute;
  top: -28px;
  right: 28px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  color: hsla(0, 0%, 100%, 0.4);
  letter-spacing: 0.06em;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.3);
  line-height: 1;
  opacity: 0.5;
}

.product-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.product-detail-tag {
  padding: 4px 12px;
  background: hsla(32, 75%, 50%, 0.1);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
}

.product-detail-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.product-detail-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.product-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.product-detail-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent);
}

/* ----------------------------------------------------------------
   12. HOW IT WORKS
   ---------------------------------------------------------------- */
.how-it-works {
  background: var(--color-cream);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  position: relative;
  align-items: center;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: var(--space-lg);
  }
}

/* Step Connector — SVG arrows between step-cards, hidden on mobile, shown on desktop */
.step-connector {
  display: none;
  color: var(--color-accent);
  opacity: 0.5;
}

@media (min-width: 768px) {
  .step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .step-connector svg {
    width: 48px;
    height: 20px;
  }
}

/* Step Card */
.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-round);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  box-shadow: 0 4px 16px hsla(32, 75%, 50%, 0.3);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid hsla(32, 75%, 50%, 0.2);
  border-radius: var(--radius-round);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

/* Step 1: Phone — ring wobble */
.step-card:nth-child(1) .step-icon [data-lucide] {
  animation: step-phone-ring 2s ease-in-out infinite;
}

@keyframes step-phone-ring {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(8deg); }
  40% { transform: rotate(-4deg); }
  50%, 100% { transform: rotate(0deg); }
}

/* Step 2: Clipboard — gentle bounce */
.step-card:nth-child(3) .step-icon [data-lucide] {
  animation: step-clipboard-bounce 2.5s ease-in-out infinite;
}

@keyframes step-clipboard-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
  60% { transform: translateY(0); }
}

/* Step 3: Truck — drive */
.step-card:nth-child(5) .step-icon [data-lucide] {
  animation: step-truck-drive 2.5s ease-in-out infinite;
}

@keyframes step-truck-drive {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 30ch;
  margin-inline: auto;
}

/* ----------------------------------------------------------------
   12b. REVIEWS
   ---------------------------------------------------------------- */
.reviews {
  background: var(--color-surface-alt);
  text-align: center;
}

.reviews-header {
  margin-bottom: var(--space-xl);
}

/* Rating badge */
.reviews-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-2xl);
  margin-bottom: var(--space-2xl);
  box-shadow: var(--shadow-sm);
}

.reviews-badge-score {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.reviews-badge-stars {
  display: flex;
  gap: 2px;
}

/* Filled star icons */
.star-filled {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  fill: var(--color-accent);
}

.reviews-badge-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Review cards grid */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-stars .star-filled {
  width: 16px;
  height: 16px;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  font-style: italic;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  background: linear-gradient(135deg, var(--color-accent), hsl(25, 60%, 45%));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.review-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.review-role {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* ----------------------------------------------------------------
   13. GALLERY
   ---------------------------------------------------------------- */
.gallery {
  background: var(--color-surface-solid);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: var(--space-lg);
  }

  /* First item spans 2 rows */
  .gallery-grid .gallery-item:first-child {
    grid-row: span 2;
  }
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-grid .gallery-item:first-child {
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    hsla(25, 40%, 8%, 0.6) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

/* Gallery item icon (magnifier inside overlay) */
.gallery-item-icon {
  font-size: 2rem;
  color: #fff;
  opacity: 0.9;
}

/* Lightbox Dialog */
.lightbox {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: var(--shadow-xl);
  background: var(--color-primary);
  border: none;
  padding: 0;
  margin: auto;
  position: fixed;
  inset: 0;
  width: fit-content;
  height: fit-content;
}

.lightbox::backdrop {
  background: hsla(25, 40%, 8%, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  background: hsla(0, 0%, 0%, 0.5);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background var(--duration-fast),
    transform var(--duration-fast);
}

.lightbox-close:hover {
  background: hsla(0, 0%, 0%, 0.7);
  transform: scale(1.1);
}

/* Lightbox navigation buttons */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-round);
  background: hsla(0, 0%, 0%, 0.4);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background var(--duration-fast),
    transform var(--duration-fast);
  border: none;
  line-height: 1;
}

.lightbox-nav:hover {
  background: hsla(0, 0%, 0%, 0.7);
}

.lightbox-prev {
  left: var(--space-md);
}

.lightbox-next {
  right: var(--space-md);
}

/* ----------------------------------------------------------------
   14. VISIT / CONTACT
   ---------------------------------------------------------------- */
.visit {
  background: var(--color-cream);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .visit-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

/* Visit Card (was .hours-card / .contact-card, now .visit-card) */
.visit-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

/* Visit card title */
.visit-card-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 1.2rem;
}

.visit-card-title-icon {
  font-size: 1.3rem;
}

/* Hours table — div-based layout (NOT a <table> element) */
.hours-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: var(--space-lg);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-day {
  font-weight: 500;
  color: var(--color-text);
}

.hours-time {
  color: var(--color-text-light);
  text-align: right;
}

/* Today highlight */
.hours-row.today {
  background: hsla(32, 75%, 50%, 0.06);
  border-radius: var(--radius-sm);
}

.hours-row.today .hours-day {
  color: var(--color-accent);
  font-weight: 600;
}

.hours-row.today .hours-time {
  color: var(--color-accent);
  font-weight: 600;
}

/* Visit contact info */
.visit-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.visit-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.visit-contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: hsla(32, 75%, 50%, 0.1);
  color: var(--color-accent);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.visit-contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.visit-contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
}

.visit-contact-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: color var(--duration-fast);
}

a.visit-contact-value:hover {
  color: var(--color-accent);
}

/* Visit actions */
.visit-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Map embed (inside a .visit-card, NOT grid-column: 1/-1) */
.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  flex: 1;
}

.visit-map iframe {
  width: 100%;
  height: 350px;
  border: none;
  display: block;
}

@media (min-width: 768px) {
  .visit-card:has(.visit-map) {
    display: flex;
    flex-direction: column;
  }

  .visit-map iframe {
    height: 100%;
    min-height: 400px;
  }
}

/* ----------------------------------------------------------------
   15. CTA SECTION
   ---------------------------------------------------------------- */
.cta-section {
  position: relative;
  background: var(--color-primary);
  overflow: hidden;
  padding-block: var(--space-4xl);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    hsla(32, 75%, 50%, 0.12) 0%,
    transparent 65%
  );
  pointer-events: none;
}

/* CTA inner (was .cta-content, now .cta-inner — has .container class too) */
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.cta-title {
  color: var(--color-text-on-dark);
}

.cta-inner h2 {
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-md);
}

.cta-desc {
  color: hsla(38, 30%, 92%, 0.7);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  margin-inline: auto;
}

.cta-inner .section-label {
  color: hsla(38, 30%, 92%, 0.8);
}

.cta-inner .section-label::before,
.cta-inner .section-label::after {
  background: hsla(38, 30%, 92%, 0.3);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ----------------------------------------------------------------
   16. FOOTER
   ---------------------------------------------------------------- */
.footer {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    hsl(40, 80%, 65%),
    var(--color-accent)
  );
}

.footer > .container {
  padding-block: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
  }
}

/* Footer brand — an <a> link with logo img + text */
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.footer-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  object-fit: cover;
}

/* Footer description (was .footer-brand p) */
.footer-desc {
  font-size: 0.9rem;
  color: hsla(38, 30%, 92%, 0.6);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  background: hsla(0, 0%, 100%, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition:
    background var(--duration-fast),
    transform var(--duration-fast);
}

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

/* Footer column title (was .footer-column h4, now .footer-col-title) */
.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-lg);
}

/* Footer links — a div containing <a> links (not ul/li) */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
}

.footer-links a,
.footer-links span {
  font-size: 0.9rem;
  color: hsla(38, 30%, 92%, 0.6);
  transition: color var(--duration-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

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

/* Footer bottom — directly inside .container */
.footer-bottom {
  border-top: 1px solid hsla(0, 0%, 100%, 0.08);
  padding-block: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: hsla(38, 30%, 92%, 0.4);
}

.footer-bottom a {
  color: hsla(38, 30%, 92%, 0.5);
  transition: color var(--duration-fast);
}

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

/* Mobile: center footer content */
@media (max-width: 767px) {
  .footer-grid {
    text-align: center;
  }
  .footer-brand {
    justify-content: center;
  }
  .footer-desc {
    margin-inline: auto;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-links {
    align-items: center;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* ----------------------------------------------------------------
   17. FLOATING BUTTONS
   ---------------------------------------------------------------- */

/* Floating Phone CTA */
.floating-phone {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-round);
  background: var(--color-accent);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 16px hsla(32, 75%, 35%, 0.35),
    0 0 0 0 hsla(32, 75%, 50%, 0.3);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  visibility: hidden;
  transition:
    opacity var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out),
    visibility var(--duration-normal),
    box-shadow var(--duration-normal) var(--ease-out);
}

.floating-phone.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.floating-phone:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 24px hsla(32, 75%, 35%, 0.45);
}

/* Floating WhatsApp CTA */
.floating-whatsapp {
  position: fixed;
  bottom: calc(var(--space-xl) + 56px + var(--space-md));
  right: var(--space-xl);
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-round);
  background: hsl(142, 70%, 45%);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 16px hsla(142, 60%, 35%, 0.35),
    0 0 0 0 hsla(142, 60%, 45%, 0.3);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  visibility: hidden;
  transition:
    opacity var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out),
    visibility var(--duration-normal),
    box-shadow var(--duration-normal) var(--ease-out);
}

.floating-whatsapp.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  animation: whatsapp-pulse 3s ease-in-out infinite;
}

@keyframes whatsapp-pulse {
  0%, 100% {
    box-shadow:
      0 4px 16px hsla(142, 60%, 35%, 0.35),
      0 0 0 0 hsla(142, 60%, 45%, 0.3);
  }
  50% {
    box-shadow:
      0 4px 16px hsla(142, 60%, 35%, 0.35),
      0 0 0 10px hsla(142, 60%, 45%, 0);
  }
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 24px hsla(142, 60%, 35%, 0.45);
  animation: none;
}

/* Back-to-top button */
.back-to-top {
  position: fixed;
  bottom: calc(var(--space-xl) + 56px + var(--space-md) + 56px + var(--space-md));
  right: calc(var(--space-xl) + 6px);
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-round);
  background: var(--color-surface-solid);
  color: var(--color-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition:
    opacity var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out),
    visibility var(--duration-normal),
    background var(--duration-fast),
    color var(--duration-fast);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

/* Mobile: tighter to edge, more bottom clearance */
@media (max-width: 767px) {
  .floating-phone {
    right: var(--space-md);
    bottom: calc(var(--space-xl) + var(--space-sm));
  }
  .floating-whatsapp {
    right: var(--space-md);
    bottom: calc(var(--space-xl) + var(--space-sm) + 56px + var(--space-md));
  }
  .back-to-top {
    right: calc(var(--space-md) + 6px);
    bottom: calc(var(--space-xl) + var(--space-sm) + 56px + var(--space-md) + 56px + var(--space-md));
  }
}

/* ----------------------------------------------------------------
   18. COPY TOAST
   ---------------------------------------------------------------- */
.copy-toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out),
    visibility var(--duration-normal);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  pointer-events: none;
}

.copy-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ----------------------------------------------------------------
   19. SCROLL REVEAL ANIMATIONS
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }
.reveal-delay-6 { transition-delay: 600ms; }

/* Directional variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up variant */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Image lazy reveal */
.img-reveal {
  opacity: 0;
  transform: scale(1.04);
  filter: blur(8px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out),
    filter 0.6s var(--ease-out);
}

.img-reveal.img-loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* ----------------------------------------------------------------
   20. RESPONSIVE FINE-TUNING
   ---------------------------------------------------------------- */

/* Small phones */
@media (max-width: 374px) {
  :root {
    --nav-height: 64px;
  }

  h1 { font-size: 1.8rem; }

  .hero-badge {
    font-size: 0.7rem;
    padding: 6px 14px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }

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

  .trust-bar-grid {
    gap: var(--space-md);
  }

  .trust-number {
    font-size: 1.4rem;
  }
}

/* Tablets (768px) */
@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-xl);
  }

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

/* Desktop (1024px) */
@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-2xl);
  }

  .hero-content {
    max-width: 900px;
  }

  .about-grid {
    gap: var(--space-5xl);
  }
}

/* Large screens */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
}

/* ----------------------------------------------------------------
   21. ACCESSIBILITY
   ---------------------------------------------------------------- */

/* Reduced motion */
@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;
  }

  .hero-bg img {
    animation: none;
  }

  .hero-scroll-hint {
    animation: none;
  }

  .floating-phone.visible {
    animation: none;
  }

  .hero-badge-dot {
    animation: none;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .img-reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .splash-bar-fill {
    animation: none;
    width: 100%;
  }
}

/* Focus-visible — keyboard navigation outlines */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Remove focus outline for mouse/touch */
:focus:not(:focus-visible) {
  outline: none;
}

/* Navbar links focus */
.nav-links a:focus-visible,
.nav-mobile a:focus-visible {
  outline-offset: 6px;
}

/* Button focus */
.btn:focus-visible {
  outline-offset: 4px;
}

/* Touch optimizations */
@media (hover: none) {
  .product-item:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .gallery-item:hover img {
    transform: none;
  }

  .gallery-item-overlay {
    opacity: 1;
  }

  .floating-phone:hover {
    transform: translateY(0) scale(1);
  }

  .back-to-top:hover {
    transform: translateY(0);
  }

  .footer-social a:hover {
    transform: none;
  }

  /* Ensure adequate tap targets */
  .nav-links a,
  .nav-mobile a,
  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 10001;
  transition: top var(--duration-fast);
}

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

/* ----------------------------------------------------------------
   22. BILINGUAL (TH/EN Toggle)
   ---------------------------------------------------------------- */

/*
 * :not(html) prevents the rule from hiding <html> itself
 * when JS adds class="lang-en" to the root element.
 */

/* Default: Thai visible, English hidden */
:not(html).lang-en {
  display: none;
}

/* When html has .lang-en class: swap */
html.lang-en :not(html).lang-en {
  display: revert;
}

html.lang-en .lang-th {
  display: none;
}
