/* ============================================
   雪乃（Yukino） Design System CSS
   Version: 1.0.0
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --snow-white: #FAFAF8;
  --snow-bright: #FFFFFF;
  --kinari: #F5F0E8;
  --kinari-deep: #EDE5D8;
  --charcoal: #2C2C2C;
  --charcoal-light: #6B6B6B;
  --charcoal-muted: #9B9B9B;
  --roast-brown: #5C3D2E;
  --roast-dark: #3E2518;
  --roast-light: #8B6B5A;
  --himalaya-green: #6B8F71;
  --himalaya-green-light: #E8F0E9;
  --frost-blue: #D6E4ED;
  --frost-blue-deep: #A8C4D4;
  --error: #C75050;
  --success: #5A8A5E;

  /* Gradients */
  --gradient-snow: linear-gradient(180deg, #FAFAF8 0%, #F5F0E8 100%);
  --gradient-roast: linear-gradient(180deg, #3E2518 0%, #2C2C2C 100%);
  --overlay-frost: linear-gradient(180deg, rgba(250,250,248,0.85) 0%, rgba(250,250,248,0.2) 100%);

  /* Typography */
  --font-serif: 'Noto Serif JP', 'Georgia', serif;
  --font-sans: 'Noto Sans JP', 'Helvetica Neue', sans-serif;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-ui: 'Inter', 'Helvetica Neue', sans-serif;

  /* Font Sizes (Mobile First) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(44, 44, 44, 0.04);
  --shadow-md: 0 4px 16px rgba(44, 44, 44, 0.06);
  --shadow-lg: 0 8px 32px rgba(44, 44, 44, 0.08);

  /* Borders */
  --border-light: 1px solid #EDE5D8;
  --border-medium: 1px solid #D6D0C6;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Header/Nav Heights */
  --header-height: 56px;
  --bottom-nav-height: 64px;
}

@media (min-width: 768px) {
  :root {
    --text-2xl: 1.875rem;
    --text-3xl: 2.5rem;
    --text-4xl: 3.5rem;
    --header-height: 72px;
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--charcoal);
  background-color: var(--snow-white);
  line-height: 1.8;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
    letter-spacing: 0.05em;
  }
}

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

a {
  color: var(--roast-brown);
  text-decoration: none;
  transition: color 200ms ease;
}

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

.display-text {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.08em;
}

.section-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal-muted);
}

.section-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 400;
  text-align: center;
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--text-3xl);
  }
}

.section-subtitle {
  font-size: var(--text-sm);
  color: var(--charcoal-light);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  line-height: 2;
}

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

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-10);
  }
}

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

@media (min-width: 768px) {
  .section {
    padding: var(--space-32) 0;
  }
}

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

.section--dark {
  background: var(--gradient-roast);
  color: var(--kinari);
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(237, 229, 216, 0.5);
  transition: transform 300ms ease;
}

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

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

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .header__logo {
    font-size: 1.1rem;
  }
}

.header__logo-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .header__logo-icon {
    width: 30px;
    height: 30px;
  }
}

.header__logo span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--charcoal-muted);
  margin-left: var(--space-2);
  letter-spacing: 0.16em;
}

.header__nav {
  display: none;
}

@media (min-width: 768px) {
  .header__nav {
    display: flex;
    align-items: center;
    gap: 0;
  }
  .header__nav > a,
  .header__nav .nav-dropdown {
    position: relative;
  }
  .header__nav > a,
  .header__nav .nav-dropdown__trigger {
    font-size: var(--text-sm);
    color: var(--charcoal);
    text-decoration: none;
    padding: var(--space-3) var(--space-4);
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 200ms ease, background 200ms ease;
    border-radius: var(--radius-sm);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 300;
  }
  .header__nav > a:hover,
  .header__nav .nav-dropdown:hover .nav-dropdown__trigger {
    color: var(--roast-brown);
    background: var(--kinari);
  }
  .header__nav > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background: var(--roast-brown);
    transition: width 300ms ease;
  }
  .header__nav > a:hover::after {
    width: 60%;
  }
  /* Dropdown arrow icon */
  .nav-dropdown__arrow {
    width: 12px;
    height: 12px;
    transition: transform 250ms ease;
    opacity: 0.5;
  }
  .nav-dropdown:hover .nav-dropdown__arrow {
    transform: rotate(180deg);
    opacity: 1;
  }
  /* Mega menu panel */
  .nav-mega {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 560px;
    background: var(--snow-bright);
    border: 1px solid var(--kinari-deep);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 48px rgba(44,44,44,0.10), 0 2px 8px rgba(44,44,44,0.04);
    padding: var(--space-6);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
    z-index: 110;
    pointer-events: none;
  }
  .nav-dropdown:hover .nav-mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
  .nav-mega__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--charcoal);
    transition: background 180ms ease;
  }
  .nav-mega__item:hover {
    background: var(--kinari);
    color: var(--charcoal);
  }
  .nav-mega__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--kinari-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--snow-white);
  }
  .nav-mega__icon svg {
    width: 18px;
    height: 18px;
  }
  .nav-mega__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }
  .nav-mega__label {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.04em;
  }
  .nav-mega__desc {
    font-size: 0.7rem;
    color: var(--charcoal-muted);
    line-height: 1.4;
    letter-spacing: 0.02em;
  }
  .nav-mega__divider {
    grid-column: 1 / -1;
    height: 1px;
    background: var(--kinari-deep);
    margin: var(--space-1) 0;
  }
  /* Hover bridge to prevent menu from closing */
  .nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 8px;
  }
}

.header__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 768px) {
  .header__hamburger {
    display: none;
  }
}

.header__hamburger svg {
  width: 24px;
  height: 24px;
  color: var(--charcoal);
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
  background: var(--snow-white);
  transform: translateX(100%);
  transition: transform 300ms ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu--open {
  transform: translateX(0);
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--space-5);
  border-bottom: var(--border-light);
}

.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu__close svg {
  width: 24px;
  height: 24px;
  color: var(--charcoal);
}

.mobile-menu__links {
  padding: var(--space-8) var(--space-5);
}

.mobile-menu__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--charcoal);
  border-bottom: var(--border-light);
  text-decoration: none;
  min-height: 56px;
}

.mobile-menu__links a:last-child {
  border-bottom: none;
}

.mobile-menu__social {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-8) var(--space-5);
  border-top: var(--border-light);
}

.mobile-menu__social a {
  color: var(--charcoal-light);
  font-size: var(--text-sm);
}

/* --- Bottom Navigation (Mobile) --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--bottom-nav-height);
  background: var(--snow-white);
  border-top: 1px solid var(--kinari-deep);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--charcoal-muted);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.02em;
  transition: color 200ms ease;
}

.bottom-nav__item svg {
  width: 20px;
  height: 20px;
}

.bottom-nav__item--active,
.bottom-nav__item:active {
  color: var(--roast-brown);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--kinari);
}

.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  will-change: opacity;
}
.hero__bg-slide--active {
  opacity: 1;
}
/* Subtle Ken Burns zoom on active slide */
@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}
.hero__bg-slide--active {
  animation: kenBurns 10s ease-out forwards;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 250, 248, 0.65) 0%,
    rgba(250, 250, 248, 0.15) 25%,
    rgba(250, 250, 248, 0.05) 50%,
    rgba(250, 250, 248, 0.4) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--space-5);
}

/* --- Hero Logo (top of hero) --- */
.hero__logo-area {
  position: absolute;
  top: calc(var(--header-height) + var(--space-6));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.hero__logo-mark {
  width: 72px;
  height: 72px;
  opacity: 0.88;
  animation: logoFadeIn 1.2s ease-out;
}

@media (min-width: 768px) {
  .hero__logo-mark {
    width: 96px;
    height: 96px;
  }
  .hero__logo-area {
    top: calc(var(--header-height) + var(--space-10));
  }
}

.hero__brand-name {
  font-family: var(--font-serif);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.28em;
}

@media (min-width: 768px) {
  .hero__brand-name {
    font-size: var(--text-sm);
    letter-spacing: 0.32em;
  }
}

@keyframes logoFadeIn {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0.88; transform: translateY(0); }
}

.hero__tagline {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--snow-white);
  letter-spacing: 0.12em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .hero__tagline {
    font-size: var(--text-4xl);
  }
}

.hero__subcopy {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.16em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.1);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.6);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  animation: scrollBounce 2s infinite ease-in-out;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Intro Section --- */
.intro {
  padding: var(--space-20) var(--space-5);
  text-align: center;
}

.intro__text {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 2.2;
  color: var(--charcoal);
  max-width: 560px;
  margin: 0 auto;
  letter-spacing: 0.06em;
}

@media (min-width: 768px) {
  .intro__text {
    font-size: var(--text-xl);
    line-height: 2.4;
  }
}

/* --- Three Pillars (Horizontal Scroll) --- */
.pillars {
  padding: var(--space-16) 0;
}

.pillars__scroll {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--space-5);
  scrollbar-width: none;
}

.pillars__scroll::-webkit-scrollbar {
  display: none;
}

.pillar-card {
  flex: 0 0 280px;
  scroll-snap-align: center;
  background: var(--snow-bright);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  border: var(--border-light);
}

@media (min-width: 768px) {
  .pillars__scroll {
    justify-content: center;
    overflow: visible;
    padding: 0 var(--space-10);
  }
  .pillar-card {
    flex: 0 1 340px;
  }
}

.pillar-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
}

.pillar-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.pillar-card__text {
  font-size: var(--text-sm);
  color: var(--charcoal-light);
  line-height: 2;
}

/* --- Dots Indicator --- */
.dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

@media (min-width: 768px) {
  .dots { display: none; }
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kinari-deep);
  transition: background 200ms ease;
}

.dot--active {
  background: var(--roast-brown);
}

/* --- Story Teaser --- */
.story-teaser {
  position: relative;
  overflow: hidden;
}

.story-teaser__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.story-teaser__content {
  padding: var(--space-8) var(--space-5);
  text-align: center;
}

.story-teaser__text {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: 2.2;
  color: var(--charcoal);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .story-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: var(--space-16);
    padding: 0 var(--space-10);
  }
  .story-teaser__content {
    text-align: left;
    padding: var(--space-10) 0;
  }
}

/* --- Product Cards --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  padding: 0 var(--space-5);
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    padding: 0;
  }
}

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

.product-card {
  text-decoration: none;
  color: var(--charcoal);
  display: block;
  transition: transform 200ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
}

.product-card__image {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--kinari);
  margin-bottom: var(--space-3);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

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

.product-card__name {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-weight: 400;
  margin-bottom: var(--space-1);
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .product-card__name {
    font-size: var(--text-base);
  }
}

.product-card__badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  background: var(--kinari);
  color: var(--charcoal-light);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-1);
  letter-spacing: 0.02em;
}

.product-card__price {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

.product-card__price small {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--charcoal-muted);
}

/* --- Horizontal Scroll Products --- */
.products-scroll {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--space-5);
  scrollbar-width: none;
}

.products-scroll::-webkit-scrollbar { display: none; }

.products-scroll .product-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .products-scroll .product-card {
    flex: 0 0 220px;
  }
}

/* --- Journal Cards --- */
.journal-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: var(--border-light);
  text-decoration: none;
  color: var(--charcoal);
}

.journal-card__image {
  flex: 0 0 100px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--kinari);
}

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

.journal-card__body {
  flex: 1;
  min-width: 0;
}

.journal-card__date {
  font-size: var(--text-xs);
  color: var(--charcoal-muted);
  margin-bottom: var(--space-1);
}

.journal-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-card__category {
  font-size: 11px;
  color: var(--himalaya-green);
  margin-top: var(--space-1);
}

/* --- Gift Banner --- */
.gift-banner {
  position: relative;
  overflow: hidden;
  background: var(--kinari);
}

.gift-banner__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.7;
}

.gift-banner__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-5);
}

.gift-banner__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--charcoal);
  margin-bottom: var(--space-6);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
  min-height: 48px;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--roast-dark);
  color: var(--snow-white);
}

.btn--secondary {
  background: transparent;
  color: var(--roast-brown);
  border: 1px solid var(--roast-brown);
}

.btn--secondary:hover {
  background: var(--roast-brown);
  color: var(--snow-white);
}

.btn--text {
  background: none;
  color: var(--roast-brown);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--roast-light);
  border-radius: 0;
  font-size: var(--text-sm);
  min-height: auto;
}

.btn--text:hover {
  border-bottom-color: var(--roast-brown);
}

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

.btn--dark {
  background: var(--snow-white);
  color: var(--charcoal);
}

.btn--dark:hover {
  background: var(--kinari);
  color: var(--charcoal);
}

/* --- Newsletter --- */
.newsletter {
  background: var(--kinari);
  padding: var(--space-12) var(--space-5);
  text-align: center;
}

.newsletter__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .newsletter__form {
    flex-direction: row;
    max-width: 500px;
  }
}

.newsletter__input {
  flex: 1;
  padding: 14px 16px;
  border: var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: var(--font-sans);
  background: var(--snow-bright);
  color: var(--charcoal);
  min-height: 48px;
}

.newsletter__input:focus {
  border-color: var(--roast-brown);
  outline: none;
  box-shadow: 0 0 0 3px rgba(92, 61, 46, 0.1);
}

.newsletter__note {
  font-size: var(--text-xs);
  color: var(--charcoal-muted);
  margin-top: var(--space-3);
}

/* --- Footer --- */
.footer {
  background: var(--gradient-roast);
  color: var(--kinari);
  padding: var(--space-16) var(--space-5) var(--space-12);
}

@media (min-width: 768px) {
  .footer {
    padding: var(--space-20) var(--space-10) var(--space-12);
  }
}

.footer__logo {
  text-align: center;
  margin-bottom: var(--space-10);
}

.footer__logo-text {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--kinari);
  letter-spacing: 0.12em;
}

.footer__logo-sub {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--roast-light);
  letter-spacing: 0.16em;
  margin-top: var(--space-1);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .footer__nav {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-6);
  }
}

.footer__nav a {
  color: rgba(245, 240, 232, 0.7);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color 200ms ease;
  letter-spacing: 0.04em;
}

.footer__nav a:hover {
  color: var(--snow-white);
}

.footer__divider {
  width: 60px;
  height: 1px;
  background: rgba(245, 240, 232, 0.2);
  margin: 0 auto var(--space-8);
}

.footer__legal {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.footer__legal a {
  color: rgba(245, 240, 232, 0.5);
  font-size: var(--text-xs);
  text-decoration: none;
}

.footer__legal a:hover {
  color: rgba(245, 240, 232, 0.8);
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.footer__social a {
  color: rgba(245, 240, 232, 0.5);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color 200ms ease;
}

.footer__social a:hover {
  color: var(--snow-white);
}

.footer__copy {
  text-align: center;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(245, 240, 232, 0.3);
  letter-spacing: 0.04em;
}

.footer__spacer {
  height: calc(var(--bottom-nav-height) + 16px);
}

@media (min-width: 768px) {
  .footer__spacer { display: none; }
}

/* --- FAQ Category Headers --- */
.faq-category {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.faq-category svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  opacity: 0.7;
}

.faq-category h2 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 400;
  margin: 0;
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: var(--border-light);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--charcoal);
  text-align: left;
  line-height: 1.6;
  letter-spacing: 0.04em;
  min-height: 56px;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: var(--space-4);
  transition: transform 200ms ease;
  color: var(--charcoal-muted);
}

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

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, opacity 200ms ease;
  opacity: 0;
}

.faq-item--open .faq-item__answer {
  opacity: 1;
}

.faq-item__answer-inner {
  padding: 0 0 var(--space-6);
  font-size: var(--text-sm);
  color: var(--charcoal-light);
  line-height: 2;
}

/* --- Contact Flow Infographic --- */
.contact-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-5) 0;
}

.contact-flow::-webkit-scrollbar { display: none; }

.contact-flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  min-width: 64px;
}

.contact-flow__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--kinari-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--snow-bright);
}

.contact-flow__icon svg {
  width: 28px;
  height: 28px;
}

.contact-flow__label {
  font-size: 10px;
  color: var(--charcoal-light);
  text-align: center;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.contact-flow__arrow {
  display: flex;
  align-items: center;
  padding-top: 18px;
  opacity: 0.3;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .contact-flow {
    gap: var(--space-3);
  }
  .contact-flow__step {
    min-width: 80px;
  }
  .contact-flow__label {
    font-size: var(--text-xs);
  }
  .contact-flow__icon {
    width: 60px;
    height: 60px;
  }
  .contact-flow__icon svg {
    width: 32px;
    height: 32px;
  }
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: var(--space-2);
  letter-spacing: 0.04em;
}

.form-label .required {
  color: var(--error);
  margin-left: var(--space-1);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  border: var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: var(--font-sans);
  background: var(--snow-bright);
  color: var(--charcoal);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  min-height: 48px;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--roast-brown);
  outline: none;
  box-shadow: 0 0 0 3px rgba(92, 61, 46, 0.1);
}

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

.form-error {
  font-size: var(--text-sm);
  color: var(--error);
  margin-top: var(--space-1);
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-xs);
  color: var(--charcoal-muted);
}

.breadcrumb a {
  color: var(--charcoal-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--roast-brown);
}

.breadcrumb__sep {
  margin: 0 var(--space-2);
}

/* --- Page Header --- */
.page-header {
  padding: var(--space-16) var(--space-5) var(--space-10);
  text-align: center;
}

@media (min-width: 768px) {
  .page-header {
    padding: var(--space-20) var(--space-10) var(--space-12);
  }
}

.page-header__title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 300;
  margin-bottom: var(--space-4);
}

.page-header__lead {
  font-size: var(--text-sm);
  color: var(--charcoal-light);
  max-width: 520px;
  margin: 0 auto;
  line-height: 2;
}

/* --- Filter Pills --- */
.filter-pills {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-3) var(--space-5);
  position: sticky;
  top: var(--header-height);
  z-index: 50;
  background: var(--snow-white);
  border-bottom: var(--border-light);
}

.filter-pills::-webkit-scrollbar { display: none; }

.filter-pill {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: var(--border-light);
  font-size: var(--text-sm);
  color: var(--charcoal-light);
  background: var(--snow-bright);
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.filter-pill--active {
  background: var(--roast-brown);
  color: var(--snow-white);
  border-color: var(--roast-brown);
}

/* --- Tabs --- */
.tabs {
  display: flex;
  border-bottom: var(--border-light);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex-shrink: 0;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--charcoal-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 200ms ease;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.tab--active {
  color: var(--roast-brown);
  border-bottom-color: var(--roast-brown);
}

/* --- Sticky Buy Bar --- */
.sticky-buy-bar {
  position: fixed;
  bottom: var(--bottom-nav-height);
  left: 0;
  right: 0;
  z-index: 80;
  height: 60px;
  background: var(--snow-white);
  border-top: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 768px) {
  .sticky-buy-bar {
    bottom: 0;
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: var(--shadow-lg);
  }
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

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

.timeline__item {
  position: relative;
  padding-bottom: var(--space-10);
}

.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--space-8) + 6px);
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--roast-brown);
  border: 2px solid var(--snow-white);
}

.timeline__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.timeline__text {
  font-size: var(--text-sm);
  color: var(--charcoal-light);
  line-height: 2;
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge--organic {
  background: var(--himalaya-green-light);
  color: var(--himalaya-green);
}

.badge--roast {
  background: var(--kinari);
  color: var(--charcoal-light);
}

.badge--status {
  background: var(--frost-blue);
  color: var(--charcoal-light);
}

/* --- Process Infographic --- */
.process-infographic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-5);
}

@media (min-width: 768px) {
  .process-infographic {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-6);
    padding: 0 var(--space-10);
  }
}

.process-step {
  text-align: center;
  flex: 0 0 auto;
  width: 200px;
}

.process-step__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--kinari-deep);
  border-radius: 50%;
  background: var(--snow-bright);
}

.process-step__icon svg {
  width: 48px;
  height: 48px;
}

.process-step__num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--charcoal-muted);
  letter-spacing: 0.2em;
  margin-bottom: var(--space-1);
}

.process-step__title {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 400;
  margin-bottom: var(--space-2);
}

.process-step__text {
  font-size: var(--text-xs);
  color: var(--charcoal-light);
  line-height: 1.8;
}

.process-step__arrow {
  display: none;
}

@media (min-width: 768px) {
  .process-step__arrow {
    display: flex;
    align-items: center;
    padding-top: 36px;
    flex-shrink: 0;
    opacity: 0.35;
  }
}

/* Mobile: vertical arrows */
@media (max-width: 767px) {
  .process-step__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
    transform: rotate(90deg);
    margin: var(--space-1) 0;
  }
}

/* --- Key Numbers Infographic --- */
.key-numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  max-width: 560px;
  margin: var(--space-10) auto 0;
  padding: 0 var(--space-5);
}

@media (min-width: 768px) {
  .key-numbers {
    grid-template-columns: repeat(4, 1fr);
    max-width: 720px;
  }
}

.key-number {
  text-align: center;
  padding: var(--space-5) var(--space-3);
  border: 1px solid var(--kinari-deep);
  border-radius: var(--radius-md);
  background: var(--snow-bright);
}

.key-number__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--charcoal);
  letter-spacing: 0.04em;
  line-height: 1;
}

.key-number__unit {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--charcoal-muted);
  margin-left: 2px;
}

.key-number__label {
  display: block;
  font-size: var(--text-xs);
  color: var(--charcoal-muted);
  margin-top: var(--space-2);
  letter-spacing: 0.06em;
}

/* --- Choose Guide (Products Page) --- */
.choose-guide {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.choose-guide__label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal-muted);
  margin-bottom: var(--space-2);
}

.choose-guide__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 300;
  margin-bottom: var(--space-8);
}

.choose-guide__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

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

.choose-guide__item {
  padding: var(--space-5) var(--space-3);
  border: 1px solid var(--kinari-deep);
  border-radius: var(--radius-md);
  background: var(--snow-bright);
  transition: border-color 200ms ease;
}

.choose-guide__item:hover {
  border-color: var(--roast-light);
}

.choose-guide__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--kinari-deep);
}

.choose-guide__icon svg { width: 32px; height: 32px; }

.choose-guide__item-title {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-weight: 400;
  margin-bottom: var(--space-2);
}

.choose-guide__item-text {
  font-size: var(--text-xs);
  color: var(--charcoal-light);
  line-height: 1.8;
}

/* --- Roast Level Scale --- */
.roast-scale {
  max-width: 600px;
  margin: 0 auto;
}

.roast-scale__label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal-muted);
  margin-bottom: var(--space-3);
}

.roast-scale__bar {
  display: flex;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--kinari-deep);
}

.roast-scale__segment {
  flex: 1;
  padding: var(--space-3) var(--space-2);
  text-align: center;
  border-right: 1px solid rgba(237,229,216,0.5);
}

.roast-scale__segment:last-child {
  border-right: none;
}

.roast-scale__segment--light {
  background: rgba(44,44,44,0.02);
}

.roast-scale__segment--medium {
  background: rgba(44,44,44,0.06);
}

.roast-scale__segment--medium-dark {
  background: rgba(44,44,44,0.14);
}

.roast-scale__segment--dark {
  background: rgba(44,44,44,0.24);
}

.roast-scale__name {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.04em;
}

.roast-scale__desc {
  display: block;
  font-size: 9px;
  color: var(--charcoal-muted);
  margin-top: 2px;
}

@media (max-width: 400px) {
  .roast-scale__desc { display: none; }
}

/* --- Charcoal Line Icons (for pillar cards) --- */
.pillar-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-card__icon svg {
  width: 48px;
  height: 48px;
}

/* --- Scroll Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

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

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: var(--charcoal-muted); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
