/* ==============================================
   TASTESKILL — Taste Hospitality
   Premium F&B Hospitality B2B Mockup
   Palette: Charcoal + Gold + Burgundy (NO beige/cream)
   Fonts: Outfit + Noto Sans TC
   Dials: VARIANCE=7 MOTION=5 DENSITY=3
   ============================================== */

/* --- CSS Custom Properties (Light/Dark via data-theme) --- */
:root {
  --bg: #1a1a1a;
  --bg-elevated: #242424;
  --bg-card: #2d2d2d;
  --bg-surface: #353535;
  --border: rgba(201, 168, 76, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);

  --text: #f0ece4;
  --text-secondary: #b8b0a0;
  --text-muted: #7a7268;

  --gold: #c9a84c;
  --gold-light: #d4b96a;
  --gold-dark: #a88a30;
  --burgundy: #8b1a2b;
  --burgundy-light: #a01a2b;
  --burgundy-dark: #6b1420;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.15);

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Noto Sans TC', 'Outfit', sans-serif;

  --transition-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

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

/* --- Mesh Gradient Background (decorative, fixed) --- */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background:
    radial-gradient(ellipse at 15% 20%, var(--burgundy) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 70%, var(--gold) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, var(--burgundy-dark) 0%, transparent 60%);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  color: var(--text-secondary);
  max-width: 65ch;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--gold-light); }

/* --- Utility Classes --- */
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }

.text-gold { color: var(--gold); }
.text-burgundy { color: var(--burgundy-light); }
.text-muted { color: var(--text-muted); }

.section-py { padding: 100px 0; }
.section-pt { padding-top: 100px; }
.section-pb { padding-bottom: 100px; }

@media (max-width: 768px) {
  .section-py { padding: 60px 0; }
  .section-pt { padding-top: 60px; }
  .section-pb { padding-bottom: 60px; }
}

/* --- Buttons --- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gold);
  color: #1a1a1a;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: scale(0.97);
  box-shadow: var(--shadow-gold);
  color: #1a1a1a;
}

.btn-gold:active {
  transform: scale(0.95);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--gold);
  color: #1a1a1a;
  transform: scale(0.97);
}

/* --- Navigation --- */
.navbar-custom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 72px;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-brand span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

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

.nav-lang {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(26,26,26,0.98);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
}

/* --- Sections & Headers --- */
.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 16px;
}

<!-- Service Number Label -->
.service-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  opacity: 0.7;
}

/* --- Cards --- */
.card-custom {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.card-custom img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.card-body-custom {
  padding: 24px;
}

.card-body-custom h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.card-body-custom p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.card-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
}

.card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Split Hero --- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
  align-items: center;
  gap: 0;
  padding-top: 72px;
}

.hero-split-content {
  padding: 0 0 0 24px;
  max-width: 560px;
}

.hero-split-content h1 {
  margin-bottom: 20px;
}

.hero-split-content .hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 440px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-split-visual {
  height: 100%;
  min-height: calc(100dvh - 72px);
  position: relative;
  overflow: hidden;
}

.hero-split-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,26,26,0.5), transparent 40%);
}

@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-split-content {
    padding: 80px 24px 40px;
    max-width: 100%;
  }
  .hero-split-visual {
    min-height: 50vh;
  }
}

/* --- Bento Grid --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.bento-cell {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.bento-cell:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.bento-cell.span-2 { grid-column: span 2; }
.bento-cell.span-3 { grid-column: span 3; }
.bento-cell.span-4 { grid-column: span 4; }

.bento-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bento-cell.has-image { position: relative; }

.bento-cell-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 240px;
}

.bento-cell-content h3 {
  margin-bottom: 8px;
}

.bento-cell-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.bento-cell.gold-bg {
  background: linear-gradient(135deg, var(--gold-dark), var(--burgundy-dark));
  border: none;
}

.bento-cell.gold-bg .bento-cell-content h3,
.bento-cell.gold-bg .bento-cell-content p { color: #f0ece4; }

.bento-cell.image-bg {
  position: relative;
}

.bento-cell.image-bg .bento-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(26,26,26,0.9), transparent);
}

.bento-cell.image-bg .bento-overlay h3,
.bento-cell.image-bg .bento-overlay p { color: #f0ece4; }

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bento-cell.span-2,
  .bento-cell.span-3,
  .bento-cell.span-4 {
    grid-column: span 1;
  }
}

/* --- Image Gallery with Zoom --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

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

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

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

/* --- Carousel (CSS scroll-snap) --- */
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.carousel-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 2px solid var(--gold);
}

.carousel-card blockquote {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.5;
}

.carousel-card .attribution {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.carousel-card .attribution strong {
  color: var(--text);
  display: block;
}

/* Logo carousel */
.logo-carousel {
  display: flex;
  gap: 48px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 20px 0;
  align-items: center;
  opacity: 0.5;
}

.logo-carousel::-webkit-scrollbar { display: none; }

.logo-carousel .logo-item {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

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

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg);
  z-index: 1;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  padding: 32px 20px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.profile-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 3px solid var(--gold-dark);
}

.profile-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.profile-card .role {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 12px;
}

.profile-card .bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

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

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

/* --- Service Detail Layouts --- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.service-row:last-child { margin-bottom: 0; }

.service-row.reverse { direction: rtl; }
.service-row.reverse > * { direction: ltr; }

.service-row img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.service-info h2 {
  margin-bottom: 16px;
}

.service-info p {
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.service-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
}

.service-stat {
  display: flex;
  gap: 32px;
  margin-top: 16px;
}

.service-stat .stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.service-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.service-full-image {
  margin-bottom: 80px;
}

.service-full-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 21/9;
  object-fit: cover;
}

.service-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.service-process .step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition-base);
}

.service-process .step-card:hover {
  transform: translateY(-4px);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .service-process { grid-template-columns: 1fr; }
  .service-stat { flex-wrap: wrap; gap: 16px; }
}

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 20px;
}

.blog-card-body .blog-category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
}

.blog-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-card-body .blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.pagination a.active,
.pagination a:hover {
  background: var(--gold);
  color: #1a1a1a;
  border-color: var(--gold);
}

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

/* --- Contact Form --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

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

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

.contact-info-list {
  list-style: none;
  padding: 0;
}

.contact-info-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-list .info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(201, 168, 76, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
}

.contact-info-list .info-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-info-list .info-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.map-container {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.map-container iframe {
  width: 100%;
  height: 360px;
  border: none;
  display: block;
  filter: grayscale(0.3) contrast(0.9);
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: left;
}

.stat-block .stat-num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-block .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

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

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand span { color: var(--gold); }

.footer-col p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

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

/* --- Border Shimmer --- */
.border-shimmer {
  position: relative;
  overflow: hidden;
}

.border-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* --- Line Decoration --- */
.line-decor {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 24px;
}

/* ==============================================
   ANIMATIONS — MOTION_INTENSITY=5 (Fluid CSS)
   ============================================== */

/* --- Page Fade In --- */
.page-fade {
  animation: pageFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Hero Typography Stagger --- */
.hero-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.25s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.4s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.55s; }

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Section Slide-Up (scroll-driven via view-timeline) --- */
.slide-up-section {
  animation: slideUp linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 100%;
}

/* Fallback for browsers without view-timeline support */
@supports not (animation-timeline: view()) {
  .slide-up-section {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .stagger-children > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Stagger children with view-timeline --- */
.stagger-children > * {
  animation: staggerItem linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 80%;
}

.stagger-children > *:nth-child(1) { animation-delay: 0s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.08s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.16s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.24s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.32s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.40s; }

@keyframes staggerItem {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Gallery Zoom on hover (already in .gallery-item:hover img) --- */

/* --- Decorative gradient animation for mesh --- */
@keyframes meshShift {
  0%, 100% { opacity: 0.06; }
  50% { opacity: 0.09; }
}

.mesh-bg {
  animation: meshShift 8s ease-in-out infinite;
}

/* ==============================================
   REDUCED MOTION
   ============================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }

  .mesh-bg { opacity: 0.04; }

  .border-shimmer::before { display: none; }

  .card-custom:hover,
  .bento-cell:hover,
  .profile-card:hover,
  .carousel-card:hover,
  .blog-card:hover,
  .service-process .step-card:hover {
    transform: none;
  }

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

  .btn-gold:hover,
  .btn-outline:hover {
    transform: none;
  }
}

/* ==============================================
   DARK MODE IS DEFAULT (charcoal base)
   Light mode override if needed for print/preview
   ============================================== */
@media (prefers-color-scheme: light) {
  /* This site is designed dark-first. If the user forces light,
     we invert to a readable charcoal-on-light scheme. */
  :root {
    --bg: #f5f2ed;
    --bg-elevated: #ede8e0;
    --bg-card: #ffffff;
    --bg-surface: #f0ece4;
    --border: rgba(139, 26, 43, 0.15);
    --border-subtle: rgba(0, 0, 0, 0.08);

    --text: #1a1a1a;
    --text-secondary: #4a4540;
    --text-muted: #7a7268;
  }

  .navbar-custom {
    background: rgba(245, 242, 237, 0.9);
  }

  .btn-gold {
    color: #f5f2ed;
  }

  .btn-gold:hover {
    color: #f5f2ed;
  }

  .mesh-bg { opacity: 0.03; }

  body::after { opacity: 0.015; }
}

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

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* --- Smooth page transitions --- */
main {
  animation: pageFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
