/* ==========================================================================
   Dark Zen Design System — Kanpai Navi EN
   Inspired by Nobu Restaurant + Hoshinoya
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Backgrounds */
  --dz-bg-black:      #0A0A0A;
  --dz-bg-charcoal:   #1A1A1A;
  --dz-bg-washi:      #F5F0E8;
  --dz-bg-kinari:     #FAF5ED;

  /* Accents */
  --dz-gold:          #86754D;
  --dz-gold-hover:    #A89470;
  --dz-gold-pressed:  #6B5D3D;

  /* Text */
  --dz-text-white:    #FFFFFF;
  --dz-text-gray:     #999999;
  --dz-text-dark:     #262626;
  --dz-text-muted:    #555555;

  /* Functional */
  --dz-star:          #F6A429;
  --dz-success:       #2E9E7B;
  --dz-error:         #DE2A2A;

  /* Borders */
  --dz-border-dark:   #333333;
  --dz-border-light:  #DCDCDC;

  /* Typography */
  --font-heading:     'Cormorant Garamond', serif;
  --font-body:        'Noto Sans', sans-serif;
  --font-jp:          'Shippori Mincho B1', serif;

  /* Spacing */
  --section-gap:      80px;
  --section-gap-m:    48px;
  --container:        1200px;
  --content-width:    800px;

  /* Misc */
  --radius:           2px;
  --shadow:           0 1px 1px rgba(0,0,0,0.3);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.71;
  color: var(--dz-text-dark);
  background-color: var(--dz-bg-washi);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.25;
}

h1 { font-size: 50px; font-weight: 600; }
h2 { font-size: 44px; }
h3 { font-size: 32px; }
h4 { font-size: 24px; }

.jp-text {
  font-family: var(--font-jp);
  font-weight: 400;
}

.label-text {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}

/* ---------- Layout Utilities ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ---------- Section Backgrounds ---------- */
.section {
  padding: var(--section-gap) 0;
}

.section--dark {
  background-color: var(--dz-bg-black);
  color: var(--dz-text-white);
}

.section--charcoal {
  background-color: var(--dz-bg-charcoal);
  color: var(--dz-text-white);
}

.section--washi {
  background-color: var(--dz-bg-washi);
  color: var(--dz-text-dark);
}

.section--kinari {
  background-color: var(--dz-bg-kinari);
  color: var(--dz-text-dark);
}

/* Washi texture — front page only */
.home .section--washi {
  position: relative;
}

.home .section--washi::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/washi-texture-2.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  pointer-events: none;
}

.home .section--washi::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(180, 165, 140, 0.015) 2px,
      rgba(180, 165, 140, 0.015) 4px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(160, 145, 120, 0.01) 3px,
      rgba(160, 145, 120, 0.01) 6px
    );
  pointer-events: none;
}

.home .section--washi > * {
  position: relative;
  z-index: 1;
}

/* ---------- Section Headings ---------- */
.section__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  color: var(--dz-gold);
}

.section__title {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.section__subtitle {
  font-size: 16px;
  line-height: 1.71;
  max-width: 640px;
}

.section--dark .section__subtitle,
.section--charcoal .section__subtitle {
  color: var(--dz-text-gray);
}

/* ---------- Gold Decorative Line ---------- */
.gold-line {
  width: 60px;
  height: 1px;
  background-color: var(--dz-gold);
  margin: 20px auto;
}

.gold-line--left {
  margin: 20px 0;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: var(--section-gap-m);
  }

  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 26px; }
  h4 { font-size: 20px; }

  .section__title { font-size: 28px; }

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

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

  .grid-2 {
    grid-template-columns: repeat(2, 1fr); gap: 16px;
  }

  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
}

@media (max-width: 480px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .grid-3 .card-pillar__title,
  .grid-4 .card__title {
    font-size: 13px;
    line-height: 1.3;
  }

  .grid-3 .card-pillar__desc,
  .grid-4 .card__excerpt {
    font-size: 11px;
    line-height: 1.4;
  }

  .grid-3 img,
  .grid-4 img {
    max-height: 120px;
    object-fit: cover;
  }

  .grid-3 .card-pillar,
  .grid-4 .card {
    padding: 0;
  }
}
