/* ============================================
   株式会社きんえい — Design System
   Warm Earth Organic Theme
   ============================================ */

/* --- Google Fonts imported in HTML --- */

:root {
  /* Colors */
  --color-bg: #FAF7F2;
  --color-bg-alt: #F3EDE4;
  --color-surface: #FFFFFF;
  --color-surface-warm: #F7F0E8;
  --color-primary: #C4714A;
  --color-primary-dark: #A85D3A;
  --color-primary-light: #D4896A;
  --color-secondary: #6B4226;
  --color-secondary-light: #8B6240;
  --color-accent: #8FAF8F;
  --color-accent-dark: #6E946E;
  --color-accent-light: #A8C4A8;
  --color-text: #3B2F2F;
  --color-text-light: #6B5B5B;
  --color-text-muted: #9B8B8B;
  --color-border: #E0D5C8;
  --color-border-light: #EDE6DC;
  --color-white: #FFFFFF;
  --color-error: #C44A4A;
  --color-success: #4A8F4A;

  /* Typography */
  --font-heading: 'Noto Serif JP', serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --fs-display: clamp(2.25rem, 5vw, 3.5rem);
  --fs-h1: clamp(1.75rem, 4vw, 2.75rem);
  --fs-h2: clamp(1.375rem, 2.5vw, 2rem);
  --fs-h3: clamp(1.125rem, 2vw, 1.5rem);
  --fs-h4: clamp(1rem, 1.5vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.8125rem;
  --lh-heading: 1.4;
  --lh-body: 1.8;

  /* Spacing (8px grid) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Shadows (warm-toned) */
  --shadow-sm: 0 1px 3px rgba(100, 60, 20, 0.06);
  --shadow-md: 0 4px 16px rgba(100, 60, 20, 0.08);
  --shadow-lg: 0 8px 32px rgba(100, 60, 20, 0.10);
  --shadow-xl: 0 16px 48px rgba(100, 60, 20, 0.12);

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-blob: 30% 70% 70% 30% / 30% 30% 70% 70%;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 800px;
  --header-height: 80px;

  /* Modern CSS Features */
  --blur-sm: blur(4px);
  --blur-md: blur(8px);
  --blur-lg: blur(16px);

  /* Container queries support */
  --container-xs: 20rem;
  --container-sm: 24rem;
  --container-md: 28rem;
  --container-lg: 32rem;
  --container-xl: 36rem;
  --container-2xl: 42rem;

  /* Fluid spacing */
  --space-fluid-sm: clamp(1rem, 2vw, 2rem);
  --space-fluid-md: clamp(2rem, 4vw, 4rem);
  --space-fluid-lg: clamp(3rem, 6vw, 6rem);
  --space-fluid-xl: clamp(4rem, 8vw, 8rem);

  /* Dark mode support */
  --color-scheme: light;
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
  :root {
    --color-scheme: dark;
    --color-bg: #2B1F1A;
    --color-bg-alt: #362620;
    --color-surface: #3D2E28;
    --color-surface-warm: #4A3831;
    --color-text: #E8DDD4;
    --color-text-light: #C8B8A8;
    --color-text-muted: #9B8570;
    --color-border: #5A453A;
    --color-border-light: #4A3831;
  }
}
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: var(--color-scheme);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  color: var(--color-secondary);
  font-weight: 600;
}

h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p + p { margin-top: var(--space-md); }

/* ============================================
   Noise Texture Overlay
   ============================================ */
.noise-overlay {
  position: relative;
}

.noise-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
  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: 128px 128px;
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--warm {
  background-color: var(--color-surface-warm);
}

.section--dark {
  background-color: var(--color-secondary);
  color: var(--color-bg);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-bg);
}

/* ============================================
   Section Heading
   ============================================ */
.section-heading {
  text-align: center;
  padding-bottom: var(--space-2xl);
}

.section-heading__en {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section-heading__title {
  font-size: var(--fs-h2);
  position: relative;
  display: inline-block;
}

.section-heading__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--color-primary);
  margin: var(--space-md) auto 0;
  border-radius: 2px;
}

.section-heading__desc {
  margin-top: var(--space-md);
  color: var(--color-text-light);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
  border-bottom: 1px solid transparent;
}

.header--scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--color-border-light);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-icon {
  width: 40px;
  height: 40px;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.05em;
}

.header__logo-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  margin-top: -2px;
}

/* Desktop Nav */
.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding: var(--space-sm) 0;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-primary);
}

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

/* Dropdown */
.nav__item--dropdown {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  border: 1px solid var(--color-border-light);
}

.nav__item--dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
}

.nav__dropdown-link {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--fs-small);
  color: var(--color-text);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.nav__dropdown-link:hover {
  background-color: var(--color-surface-warm);
  color: var(--color-primary);
}

/* CTA Button in Nav */
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 24px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: var(--fs-small);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background-color var(--transition-base), transform var(--transition-base);
  cursor: pointer;
  border: none;
}

.nav__cta:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  gap: 5px;
  z-index: 1001;
}

.menu-toggle__line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-secondary);
  transition: transform var(--transition-base), opacity var(--transition-base);
  border-radius: 1px;
}

.menu-toggle--active .menu-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle--active .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle--active .menu-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--color-white);
  z-index: 999;
  padding: calc(var(--header-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
  transition: right var(--transition-slow);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.mobile-nav--open {
  right: 0;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav__link {
  display: block;
  padding: var(--space-md) 0;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-light);
  transition: color var(--transition-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link--active {
  color: var(--color-primary);
}

.mobile-nav__sub {
  padding-left: var(--space-lg);
}

.mobile-nav__sub-link {
  display: block;
  padding: var(--space-sm) 0;
  font-size: var(--fs-small);
  color: var(--color-text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-nav__sub-link:hover {
  color: var(--color-primary);
}

.mobile-nav__cta {
  display: block;
  margin-top: var(--space-xl);
  text-align: center;
  padding: 14px var(--space-lg);
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background-color var(--transition-base);
}

.mobile-nav__cta:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(59, 47, 47, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.mobile-overlay--visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-4xl);
  overflow: hidden;
}

.hero--home {
  min-height: 85vh;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 47, 47, 0.7) 0%, rgba(107, 66, 38, 0.5) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero--center .hero__content {
  text-align: center;
  margin: 0 auto;
}

.hero__label {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-accent-light);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.hero__desc {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero--center .hero__actions {
  justify-content: center;
}

/* Page Hero (sub-pages) */
.page-hero {
  padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
  background-color: var(--color-secondary);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: var(--radius-blob);
  background-color: rgba(196, 113, 74, 0.1);
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: rgba(250, 247, 242, 0.6);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.page-hero__breadcrumb a {
  color: rgba(250, 247, 242, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.page-hero__breadcrumb a:hover {
  color: var(--color-bg);
}

.page-hero__breadcrumb-sep {
  font-size: var(--fs-xs);
}

.page-hero__title {
  font-size: var(--fs-h1);
  color: var(--color-bg);
  font-weight: 700;
}

.page-hero__desc {
  margin-top: var(--space-md);
  color: rgba(250, 247, 242, 0.8);
  max-width: 600px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 48px;
  padding: 12px 32px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn--outline:hover {
  background-color: var(--color-white);
  color: var(--color-secondary);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

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

.btn--secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn--secondary:hover {
  background-color: var(--color-secondary-light);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--sm {
  min-height: 40px;
  padding: 8px 20px;
  font-size: var(--fs-small);
}

.btn--lg {
  min-height: 56px;
  padding: 16px 40px;
  font-size: 1.125rem;
}

.btn--block {
  width: 100%;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.card__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-primary);
  background-color: rgba(196, 113, 74, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  align-self: flex-start;
}

.card__title {
  font-size: var(--fs-h4);
  color: var(--color-secondary);
}

.card__desc {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: 1.7;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap var(--transition-base);
}

.card__link:hover {
  gap: var(--space-md);
}

/* Icon Card */
.icon-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

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

.icon-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(196, 113, 74, 0.1);
  color: var(--color-primary);
  flex-shrink: 0;
}

.icon-card__icon svg {
  width: 28px;
  height: 28px;
}

.icon-card__title {
  font-size: var(--fs-h4);
  color: var(--color-secondary);
}

.icon-card__desc {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   Grid Layouts
   ============================================ */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

/* ============================================
   Stats
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.stat {
  text-align: center;
  padding: var(--space-lg);
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat__number span {
  font-size: 0.5em;
  font-weight: 400;
}

.stat__label {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  margin-top: var(--space-sm);
}

/* ============================================
   Flow / Steps
   ============================================ */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-border);
}

.flow-step {
  display: flex;
  gap: var(--space-lg);
  position: relative;
}

.flow-step__number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  z-index: 1;
}

.flow-step__content {
  flex: 1;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.flow-step__title {
  font-size: var(--fs-h4);
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.flow-step__desc {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.faq-item + .faq-item {
  margin-top: var(--space-md);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--color-secondary);
  gap: var(--space-md);
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--color-primary);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
}

.faq-item--open .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item__answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group + .form-group {
  margin-top: var(--space-lg);
}

.form-label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-secondary);
}

.form-label .required {
  color: var(--color-error);
  font-size: var(--fs-xs);
  margin-left: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px var(--space-md);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-body);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(196, 113, 74, 0.15);
}

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

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B5B5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-check label {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  cursor: pointer;
}

/* ============================================
   Tables
   ============================================ */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--fs-small);
  vertical-align: top;
}

.info-table th {
  width: 160px;
  font-weight: 600;
  color: var(--color-secondary);
  background-color: var(--color-surface-warm);
  white-space: nowrap;
}

.info-table td {
  color: var(--color-text);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--color-secondary);
  color: rgba(250, 247, 242, 0.8);
  padding: var(--space-3xl) 0 0;
}

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

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-bg);
}

.footer__brand-desc {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: rgba(250, 247, 242, 0.6);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--color-bg);
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--fs-small);
  color: rgba(250, 247, 242, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-bg);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: rgba(250, 247, 242, 0.6);
  margin-bottom: var(--space-sm);
}

.footer__contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  padding: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.footer__bottom-link {
  font-size: var(--fs-xs);
  color: rgba(250, 247, 242, 0.4);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__bottom-link:hover {
  color: var(--color-bg);
}

.footer__copyright {
  font-size: var(--fs-xs);
  color: rgba(250, 247, 242, 0.4);
  text-align: center;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: var(--radius-blob);
  background-color: rgba(255, 255, 255, 0.05);
}

.cta-section__title {
  font-size: var(--fs-h2);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.cta-section__desc {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  position: relative;
  z-index: 1;
}

/* ============================================
   Policy / Legal Content
   ============================================ */
.legal-content {
  padding: var(--space-2xl) 0;
}

.legal-content h2 {
  font-size: var(--fs-h3);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border-light);
}

.legal-content h3 {
  font-size: var(--fs-h4);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-content p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
  line-height: 2;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
  line-height: 1.8;
}

.legal-content .last-updated {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

/* ============================================
   Two Column Layout
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.two-col--reverse .two-col__media {
  order: -1;
}

.two-col__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.two-col__label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.two-col__title {
  font-size: var(--fs-h2);
  color: var(--color-secondary);
}

.two-col__desc {
  color: var(--color-text-light);
  line-height: 1.8;
}

.two-col__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.two-col__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--color-text-light);
}

.two-col__list-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-accent);
}

.two-col__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.two-col__media img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Feature List
   ============================================ */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.feature-item:hover {
  box-shadow: var(--shadow-md);
}

.feature-item__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(196, 113, 74, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.feature-item__icon svg {
  width: 24px;
  height: 24px;
}

.feature-item__content {
  flex: 1;
}

.feature-item__title {
  font-size: var(--fs-h4);
  color: var(--color-secondary);
  margin-bottom: var(--space-xs);
}

.feature-item__desc {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.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;
}

.word-break {
  word-break: break-word;
}

/* ============================================
   Advanced Scroll Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Staggered animation delays for multiple elements */
.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 100ms; }
.reveal:nth-child(3) { transition-delay: 200ms; }
.reveal:nth-child(4) { transition-delay: 300ms; }
.reveal:nth-child(5) { transition-delay: 400ms; }

/* Parallax-like effect for images */
.parallax-element {
  transform: translateY(0);
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Micro-interactions */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(196, 113, 74, 0.3);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(196, 113, 74, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 2s ease-in-out infinite;
}

/* Button hover effects with modern transforms */
.btn--modern {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.btn--modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn--modern:hover::before {
  left: 100%;
}

/* ============================================
   Modern Image Optimization
   ============================================ */
.lazy-image {
  opacity: 0;
  transition: opacity 0.6s ease;
  background-color: var(--color-bg-alt);
}

.lazy-image.loaded {
  opacity: 1;
}

.lazy-image[loading="lazy"] {
  filter: blur(5px);
  transform: scale(1.1);
  transition: filter 0.6s ease, transform 0.6s ease, opacity 0.6s ease;
}

.lazy-image.loaded[loading="lazy"] {
  filter: blur(0px);
  transform: scale(1);
}

/* Image placeholder with skeleton effect */
.image-placeholder {
  background: linear-gradient(
    90deg,
    var(--color-bg-alt),
    var(--color-border-light),
    var(--color-bg-alt)
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Progressive image enhancement */
.progressive-img {
  position: relative;
  overflow: hidden;
}

.progressive-img__placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-alt);
  transition: opacity 0.5s ease;
}

.progressive-img__full {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.progressive-img__full.loaded {
  opacity: 1;
}

.progressive-img.loaded .progressive-img__placeholder {
  opacity: 0;
}

/* ============================================
   SVG Section Divider
   ============================================ */
.section-divider {
  position: relative;
  height: 60px;
  overflow: hidden;
}

.section-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================
   Responsive
   ============================================ */

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

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

  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .info-table th {
    width: 200px;
  }

  .page-hero {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  }
}

/* Desktop (1024px) */
@media (min-width: 1024px) {
  .nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

/* Large Desktop (1440px) */
@media (min-width: 1440px) {
  :root {
    --fs-body: 1.0625rem;
  }

  .section {
    padding: 8rem 0;
  }
}

/* Ultra-wide Desktop (2560px+) */
@media (min-width: 2560px) {
  :root {
    --container-max: 1600px;
    --fs-body: 1.125rem;
    --fs-h1: clamp(2rem, 4vw, 4rem);
    --fs-h2: clamp(1.5rem, 3vw, 3rem);
  }
}

/* Container Queries for Card Components */
@container (min-width: 300px) {
  .card {
    padding: var(--space-lg);
  }
}

@container (min-width: 400px) {
  .card {
    padding: var(--space-xl);
  }

  .card__icon {
    width: 64px;
    height: 64px;
  }
}

/* Advanced responsive typography */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }
}

/* Responsive spacing with modern techniques */
@supports (margin: clamp(1rem, 4vw, 3rem)) {
  .section {
    padding: clamp(3rem, 8vw, 6rem) 0;
  }

  .container {
    padding: 0 clamp(1rem, 4vw, 3rem);
  }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .hero {
    background-image: url('https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?w=3840&q=80');
  }
}

/* Responsive grid with CSS Grid Level 2 */
.responsive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-lg);
}

/* Modern responsive cards */
.modern-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(250px, 30vw, 350px), 1fr));
  gap: var(--space-fluid-md);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .icon-card:hover {
    transform: none;
  }
}
