/* ============================================================
   青谷製作所 — Global Design System
   ============================================================ */

/* ── Google Fonts ── */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&family=Noto+Serif+JP:wght@400;700;900&family=Inter:wght@300;400;600;700;900&display=swap");

/* ── CSS Variables ── */
:root {
  --gold: #c5a059;
  --gold-light: #e5c48b;
  --gold-dark: #9a7a3d;
  --copper: #d27d2d;
  /* コッパーアンバー：職人の熱量・生命感を宿す金属色 */
  --amber: #c87533;
  --dark: #0047ab;
  --dark-deep: #0047ab;
  --dark-deeper: #0047ab;
  --sky: #f3f8fc;
  /* 青と白のコントラストをまろやかにする温かいスカイブルー */
  --sky-mid: #e2effc;
  --white: #fcfaf7;
  /* 人の温もりや工芸の質感を伝える絹色（シルキーホワイト） */
  --off-white: #f4f2ec;
  /* 砂や和紙のような情緒あるオーガニックホワイト */
  --text-main: #0d1b35;
  --text-sub: #4a5568;
  --text-muted: #8a97ab;

  /* Gradients */
  --grad-dark: linear-gradient(135deg, #001a40 0%, #0047ab 60%, #0069d9 100%);
  --grad-gold: linear-gradient(135deg, #9a7a3d 0%, #c5a059 50%, #e5c48b 100%);
  --grad-hero: linear-gradient(160deg, #001a40 0%, #003280 40%, #0047ab 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 71, 171, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 71, 171, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 71, 171, 0.16);
  --shadow-gold: 0 8px 32px rgba(197, 160, 89, 0.3);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Typography */
  --font-sans: "Inter", "Noto Sans JP", sans-serif;
  --font-serif: "Noto Serif JP", Georgia, serif;
  --font-inter: "Inter", sans-serif;
  --tracking-tight: -0.04em;
  --tracking-tighter: -0.06em;
}

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

html {
  font-family: var(--font-sans);
  color: var(--text-main);
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--white);
  overflow-x: hidden;
  padding-top: 60px;
}

/* ── Scroll Progress Bar ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-gold);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Custom Cursor Dot ── */
.cursor-dot {
  position: fixed;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--gold);
  background-color: rgba(197, 160, 89, 0.1);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.15s cubic-bezier(0.23, 1, 0.32, 1),
    width 0.3s ease,
    height 0.3s ease,
    background-color 0.3s ease,
    opacity 0.3s ease;
  opacity: 0;
}

.cursor-hover {
  transform: translate(-50%, -50%) scale(1.8);
  background-color: rgba(197, 160, 89, 0.25);
  border-width: 1px;
}

.cursor-active {
  transform: translate(-50%, -50%) scale(0.9);
}

/* Default cursor hidden to prioritize custom dot cursor */
/* Default cursor is retained (no cursor:none) to allow arrow cursor alongside custom dot cursor */

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  color: var(--aotani-dark);
}

.site-header.scrolled {
  /* Prevent header resizing on scroll */
}

.site-header .nav-link {
  color: var(--aotani-dark);
  transition: color 0.3s ease;
}

.site-header .nav-link:hover {
  color: var(--aotani-gold);
}

/* ── Typography Utilities ── */
.eyebrow {
  font-family: var(--font-inter);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  /* サイズを少し抑えて上品に */
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: var(--tracking-tighter);
  color: var(--dark);
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 1vw, 1rem);
  /* 1画面の情報量を増やすため少し抑える */
  font-weight: 500;
  color: var(--text-sub);
  line-height: 1.5;
  max-width: 720px;
  letter-spacing: -0.01em;
}

/* ── Apple Style Text Highlight ── */
.apple-highlight {
  background: rgba(0, 71, 171, 0.08);
  padding: 0 0.4em;
  border-radius: 4px;
  display: inline-block;
  color: var(--dark);
  font-weight: 700;
}

.apple-highlight-blue {
  background: rgba(0, 71, 171, 0.15);
  color: var(--dark);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ── Gold Divider ── */
.gold-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.gold-line::before,
.gold-line::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--grad-gold);
}

/* ── Animated Gradient Text ── */
.gradient-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section Decorative BG ── */
.section-bg-dark {
  background: var(--grad-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section-bg-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(197, 160, 89, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.section-bg-grid {
  background-color: var(--off-white);
  background-image: linear-gradient(rgba(0, 71, 171, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 71, 171, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Diagonal Clip ── */
/* .clip-bottom-right {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.clip-top-left {
  clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
} */

@media screen and (max-width: 768px) {
  /* .clip-top-left {
    clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 100%);
  } */
}

/* ── Cards ── */
.glass-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.4s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(197, 160, 89, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}

.feature-card-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card-dark:hover::before {
  opacity: 1;
}

.feature-card-dark:hover {
  border-color: rgba(197, 160, 89, 0.4);
  transform: translateY(-4px);
}

.light-card {
  background: var(--white);
  border: 1px solid rgba(0, 71, 171, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.light-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, 0.3);
}

.signature-circle {
  width: 4rem;
  height: 4rem;
  border: 2px solid var(--gold);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.25rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--grad-gold);
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(197, 160, 89, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(197, 160, 89, 0.08);
  transform: translateY(-2px);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--grad-dark);
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  /* スクロール時の動きを減らし、ガタつきを軽減 */
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-12px);
  /* 動きを抑え、ユーザーがコンテンツに集中できるように調整 */
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(12px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  /* スケール変化量も抑えめにして実在感を高める */
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.45s;
}

.reveal-delay-4 {
  transition-delay: 0.6s;
}

.reveal-delay-5 {
  transition-delay: 0.75s;
}

/* ── Number Counter ── */
.stat-number {
  font-family: var(--font-inter);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ── Parallax Noise Overlay ── */
.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* ── Animated BG Particles ── */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.15);
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100%) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100vh) scale(1.5);
    opacity: 0;
  }
}

/* ── Shimmer Line ── */
.shimmer-line {
  position: relative;
  overflow: hidden;
}

.shimmer-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ── Glow Effect ── */
.glow-gold {
  box-shadow:
    0 0 40px rgba(197, 160, 89, 0.3),
    0 0 80px rgba(197, 160, 89, 0.1);
}

/* ── Floating Badge ── */
.floating-badge {
  animation: float-badge 3s ease-in-out infinite;
}

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

  50% {
    transform: translateY(-12px);
  }
}

/* ── Hero Section ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grad-hero);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 26, 64, 0.85) 0%, rgba(0, 50, 128, 0.7) 50%, rgba(0, 71, 171, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Sub-page Hero */
.sub-hero {
  position: relative;
  padding: 180px 0 100px;
  background: var(--grad-hero);
  overflow: hidden;
}

.sub-hero .gold-line,
.sub-hero .scroll-indicator {
  display: none;
}

.sub-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sub-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.sub-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(212, 175, 55, 0.4);
}

.sub-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
}

/* ── Product Grid Cards ── */
.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 23, 64, 0.75) 0%, rgba(0, 71, 171, 0.2) 50%, transparent 100%);
  transition: all 0.4s ease;
}

.product-card:hover .product-card-overlay {
  background: linear-gradient(to bottom, rgba(0, 23, 64, 0.85) 0%, rgba(0, 71, 171, 0.4) 60%, rgba(197, 160, 89, 0.15) 100%);
}

.product-card-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 2rem;
}

.product-card-cta {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

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

/* ── Stats Section ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2px;
}

.stat-item {
  padding: 2.5rem 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(197, 160, 89, 0.08);
  border-color: rgba(197, 160, 89, 0.2);
}

/* ── Timeline ── */
.timeline-item {
  position: relative;
  padding-left: 3rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: -2rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 0.65rem;
  color: white;
  box-shadow: var(--shadow-gold);
  z-index: 1;
}

/* ── Navigation ── */
.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 100%;
  height: 1.5px;
  background: var(--grad-gold);
  transition: right 0.3s ease;
}

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

.nav-link:hover::after {
  right: 0;
}

/* ── Footer ── */
.site-footer {
  background: var(--dark-deeper);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-gold);
}

/* ── Scroll Down Indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-indicator .scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(197, 160, 89, 0.8), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%,
  100% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }

  30% {
    transform: scaleY(1);
    opacity: 1;
  }

  70% {
    transform: scaleY(1);
    opacity: 1;
    transform-origin: top;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}

/* ── Misc ── */
.separator {
  width: 60px;
  height: 3px;
  background: var(--grad-gold);
  border-radius: 2px;
  margin: 1rem 0;
}

.separator.center {
  margin: 1rem auto;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }

  .sub-hero {
    padding: 140px 0 80px;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .feature-card-dark {
    padding: 1.5rem;
  }
}

/* ── Text Color Overrides for Better Readability ── */
/* Ensure default text color on white bg is dark instead of blue */
body {
  color: #1a1a1a;
}

/* Ensure white text on dark background blocks */
.bg-aotani-dark,
.bg-black,
.section-bg-dark,
.sub-hero {
  color: var(--white);
}

.bg-aotani-dark h1,
.bg-aotani-dark h2,
.bg-aotani-dark h3,
.bg-aotani-dark h4,
.bg-aotani-dark h5,
.bg-aotani-dark h6,
.bg-black h1,
.bg-black h2,
.bg-black h3,
.bg-black h4,
.bg-black h5,
.bg-black h6,
.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3,
.section-bg-dark h4,
.section-bg-dark h5,
.section-bg-dark h6,
.sub-hero h1,
.sub-hero h2,
.sub-hero h3,
.sub-hero h4,
.sub-hero h5,
.sub-hero h6 {
  color: var(--white) !important;
}

/* Override text-aotani-dark classes on light backgrounds */
:not(.bg-aotani-dark):not(.bg-black):not(.section-bg-dark):not(.sub-hero-content) .text-aotani-dark {
  color: #1a1a1a !important;
}

/* Scrolled Header text colors */
.site-header.scrolled .text-aotani-dark,
.site-header.scrolled .text-xl,
.site-header.scrolled .nav-link {
  color: #1a1a1a !important;
}

.site-header.scrolled .nav-link:hover {
  color: var(--gold) !important;
}

/* Ensure correct text colors inside dark background blocks */
.bg-aotani-dark h5,
.bg-black h5,
.site-footer h5,
footer h5 {
  color: #ffffff !important;
}

.bg-aotani-dark .text-aotani-gold,
.bg-black .text-aotani-gold,
.site-footer .text-aotani-gold,
footer .text-aotani-gold {
  color: #c5a059 !important;
}

.bg-aotani-dark .text-aotani-dark,
.bg-black .text-aotani-dark,
.site-footer .text-aotani-dark,
footer .text-aotani-dark {
  color: #ffffff !important;
}

/* ── Typography & Contrast Readability Improvements ── */
:not(.bg-aotani-dark):not(.bg-black):not(.section-bg-dark):not(.sub-hero-content):not(.hero-content) .text-slate-500,
:not(.bg-aotani-dark):not(.bg-black):not(.section-bg-dark):not(.sub-hero-content):not(.hero-content) .text-gray-500 {
  color: #4b5563 !important;
  /* Tailwind gray-600 */
}

:not(.bg-aotani-dark):not(.bg-black):not(.section-bg-dark):not(.sub-hero-content):not(.hero-content) .text-slate-600,
:not(.bg-aotani-dark):not(.bg-black):not(.section-bg-dark):not(.sub-hero-content):not(.hero-content) .text-gray-600 {
  color: #374151 !important;
  /* Tailwind gray-700 */
}

:not(.bg-aotani-dark):not(.bg-black):not(.section-bg-dark):not(.sub-hero-content):not(.hero-content) .text-slate-700,
:not(.bg-aotani-dark):not(.bg-black):not(.section-bg-dark):not(.sub-hero-content):not(.hero-content) .text-gray-700 {
  color: #1f2937 !important;
  /* Tailwind gray-800 */
}

/* Elevate light weight fonts to normal weight for better legibility on screens */
.font-light {
  font-weight: 400 !important;
}

/* ── Accessibility: Focus States ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip to content link for keyboard users */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--dark-deeper);
  padding: 12px 24px;
  z-index: 10000;
  font-weight: 700;
  border-radius: 4px;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 10px;
}

/* Ensure sufficient color contrast */
.text-slate-400,
.text-gray-400 {
  color: #6b7280 !important;
}

/* Reduce motion for users who prefer it */
@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;
  }
}

/* ── Mega Menu Height Constraint ── */
.mega-menu {
  max-height: calc(90vh - 80px + 25px);
  overflow-y: auto;
}

/* Custom scrollbar for mega menu */
.mega-menu::-webkit-scrollbar {
  width: 6px;
}

.mega-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.mega-menu::-webkit-scrollbar-thumb {
  background: rgba(197, 160, 89, 0.4);
  border-radius: 3px;
}

.mega-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(197, 160, 89, 0.6);
}
