/* ========================================
   TABI SEASONS JAPAN - THEMATIC DESIGN SYSTEM
   Rooted in Japanese seasonal aesthetics (Kisetsu)
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;600;700&family=Sawarabi+Mincho&family=Shippori+Mincho:wght@400;500;600&display=swap');

:root {
  /* Core palette - washi paper & ink */
  --bg: #F7F4ED;
  --bg-warm: #F4F0E6;
  --surface: #FFFBF3;
  --surface-2: #F1EDE3;
  --text: #2C2924;
  --text-muted: #5C564E;
  --text-light: #8A8175;
  --indigo: #1E3A5F;
  --indigo-light: #3D5C7F;
  --accent-line: #C9BEB0;

  /* Season accents - refined */
  --spring: #C17A7A;
  --spring-light: #E8B5B5;
  --spring-deep: #8F5454;
  --summer: #5C8A4F;
  --summer-light: #A3C69A;
  --summer-deep: #3F5F36;
  --autumn: #B36B3A;
  --autumn-light: #D9A57A;
  --autumn-deep: #7A4A28;
  --winter: #4F6B82;
  --winter-light: #8FA9C0;
  --winter-deep: #334555;

  /* Spacing */
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 72px;

  /* Typography */
  --font-serif: "Sawarabi Mincho", "Shippori Mincho", "Noto Serif JP", serif;
  --font-body: "Noto Serif JP", "Yu Mincho", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.78;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

/* Seasonal body classes for deep theming */
body.spring { --accent: var(--spring); --accent-light: var(--spring-light); --accent-deep: var(--spring-deep); }
body.summer { --accent: var(--summer); --accent-light: var(--summer-light); --accent-deep: var(--summer-deep); }
body.autumn { --accent: var(--autumn); --accent-light: var(--autumn-light); --accent-deep: var(--autumn-deep); }
body.winter { --accent: var(--winter); --accent-light: var(--winter-light); --accent-deep: var(--winter-deep); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--indigo);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--indigo-light);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
}

/* ========================================
   TYPOGRAPHY - Literary Japanese feel
   ======================================== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.28;
  color: var(--indigo);
}

h1 { font-size: 42px; letter-spacing: -0.3px; }
h2 { font-size: 28px; letter-spacing: -0.2px; margin-bottom: 14px; }
h3 { font-size: 21px; margin-bottom: 10px; }
h4 { font-size: 17px; }

p {
  margin-bottom: 18px;
}

.lead {
  font-size: 18px;
  line-height: 1.72;
  color: var(--text-muted);
  max-width: 66ch;
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header.centered {
  text-align: center;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-weight: 500;
}

.section-header h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.section-header p {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--text-muted);
}

/* ========================================
   HEADER & NAVIGATION - Quiet elegance
   ======================================== */
header {
  background: rgba(255, 251, 243, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--accent-line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo svg {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--indigo);
  line-height: 1.05;
  letter-spacing: 0.5px;
}

.logo-text span {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2.5px;
  display: block;
  margin-top: 1px;
  color: var(--text-light);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--indigo);
  position: relative;
  padding: 4px 0;
}

nav a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--indigo);
  transition: width 0.25s cubic-bezier(0.23, 1.0, 0.32, 1);
}

nav a:hover:after {
  width: 100%;
}

.season-nav {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}

.season-nav a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(0,0,0,0.08);
}

.season-nav a:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.season-nav .spring { background: var(--spring); }
.season-nav .summer { background: var(--summer); }
.season-nav .autumn { background: var(--autumn); }
.season-nav .winter { background: var(--winter); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--indigo);
  cursor: pointer;
  padding: 4px 8px;
}

/* ========================================
   HERO - Contemplative, image-first
   ======================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: white;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 58, 95, 0.35) 0%,
    rgba(30, 58, 95, 0.52) 55%,
    rgba(30, 58, 95, 0.68) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
  padding: 0 24px;
}

.hero h1 {
  font-size: 56px;
  color: white;
  margin-bottom: 18px;
  line-height: 1.15;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}

.hero .subtitle {
  font-size: 19px;
  max-width: 620px;
  margin: 0 auto 42px;
  opacity: 0.95;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1.0, 0.32, 1);
  text-decoration: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: white;
  color: var(--indigo);
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0,0,0,0.18);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.75);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
}

/* Season-specific hero accents */
body.spring .hero { background-image: linear-gradient(rgba(30,58,95,0.32), rgba(30,58,95,0.48)), url('images/spring-hero.webp'); }
body.summer .hero { background-image: linear-gradient(rgba(30,58,95,0.38), rgba(30,58,95,0.52)), url('images/summer-hero.webp'); }
body.autumn .hero { background-image: linear-gradient(rgba(30,58,95,0.32), rgba(30,58,95,0.48)), url('images/autumn-hero.webp'); }
body.winter .hero { background-image: linear-gradient(rgba(30,58,95,0.42), rgba(30,58,95,0.55)), url('images/winter-hero.webp'); }

/* ========================================
   SEASONAL JOURNEY GRID - Index signature
   ======================================== */
.season-journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: var(--space-2xl) 0;
}

.season-tile {
  position: relative;
  height: 380px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.5s cubic-bezier(0.23, 1.0, 0.32, 1), box-shadow 0.4s ease;
  text-decoration: none;
  display: block;
}

.season-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0,0,0,0.14);
}

.season-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.season-tile:hover img {
  transform: scale(1.06);
}

.season-tile .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 30%,
    rgba(30,58,95,0.82) 72%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 22px 24px;
  color: white;
}

.season-tile .season-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}

.season-tile h3 {
  color: white;
  font-size: 23px;
  margin-bottom: 4px;
}

.season-tile .period {
  font-size: 13px;
  opacity: 0.8;
}

/* ========================================
   CARDS & BLOCKS - Thoughtful reading
   ======================================== */
.card {
  background: var(--surface);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--accent-line);
}

.card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.card img {
  width: 100%;
  height: 198px;
  object-fit: cover;
}

.card-body {
  padding: 22px 24px 26px;
}

.card-body h3 {
  font-size: 19px;
  margin-bottom: 9px;
}

.card-body p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.card-meta {
  font-size: 12.5px;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--accent-line);
}

.card-meta a {
  font-weight: 600;
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}

/* ========================================
   FEATURED STORY BLOCKS
   ======================================== */
.story-block {
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-radius: 5px;
  padding: 32px;
  margin-bottom: 18px;
}

.story-block h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.story-block .story-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.story-block p {
  color: var(--text-muted);
}

/* ========================================
   SEASON BAR - Page identity
   ======================================== */
.season-bar {
  background: var(--accent);
  color: white;
  padding: 11px 0;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.season-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ========================================
   TWO COLUMN & ASYMMETRIC LAYOUTS
   ======================================== */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 42px;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.list-item {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--accent-line);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item img {
  width: 92px;
  height: 92px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.list-item-content h4 {
  margin-bottom: 4px;
  font-size: 16px;
}

.list-item-content p {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text-muted);
}

/* ========================================
   PHILOSOPHY / DEEP CONTENT BLOCKS
   ======================================== */
.philosophy {
  background: var(--surface-2);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--accent-line);
  border-bottom: 1px solid var(--accent-line);
}

.philosophy .container {
  max-width: 820px;
}

.quote {
  font-size: 19px;
  line-height: 1.65;
  font-family: var(--font-serif);
  color: var(--indigo);
  padding: 0 0 0 22px;
  border-left: 3px solid var(--accent);
  margin: 22px 0;
}

/* ========================================
   PRACTICAL SECTIONS - Tables as definition lists
   ======================================== */
.practical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.practical-item {
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-radius: 5px;
  padding: 22px 24px;
}

.practical-item h4 {
  color: var(--accent-deep);
  font-size: 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.practical-item h4::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: var(--indigo);
  color: #C5C9D0;
  padding: 62px 0 38px;
  font-size: 13.5px;
  margin-top: var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-col h4 {
  color: white;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: #A5ABB6;
  margin-bottom: 7px;
  font-size: 13.5px;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 58px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 12px;
  color: #8A919E;
}

/* ========================================
   FORMS
   ======================================== */
.form {
  background: var(--surface);
  padding: 36px;
  border-radius: 6px;
  border: 1px solid var(--accent-line);
  max-width: 620px;
}

.form label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-weight: 500;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  background: white;
  margin-bottom: 16px;
  transition: border 0.2s;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--indigo);
}

.form textarea {
  min-height: 138px;
  resize: vertical;
}

/* ========================================
   ANIMATIONS - Subtle & thematic
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.23, 1.0, 0.32, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Very light seasonal particle hints - only on specific pages */
.petal-container,
.leaf-container,
.snow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* ========================================
   RESPONSIVE - Mobile first, thorough
   ======================================== */
@media (max-width: 992px) {
  .season-journey {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 34px; }
  h2 { font-size: 24px; }
  
  .nav-container {
    padding: 14px 0;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--surface);
    flex-direction: column;
    padding: 18px 0;
    box-shadow: 0 10px 24px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--accent-line);
    gap: 2px;
  }
  
  nav ul.active {
    display: flex;
  }
  
  nav ul li {
    padding: 9px 0;
    text-align: center;
    width: 100%;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .season-journey {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .season-tile {
    height: 320px;
  }
  
  .hero {
    min-height: 78vh;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero .subtitle {
    font-size: 16.5px;
  }
  
  .two-col {
    gap: 26px;
  }
  
  .list-item {
    flex-direction: column;
  }
  
  .list-item img {
    width: 100%;
    height: 168px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .section-header h2 {
    font-size: 26px;
  }
  
  .card-body {
    padding: 18px 18px 22px;
  }
  
  .form {
    padding: 26px 20px;
  }
  
  .story-block {
    padding: 24px 20px;
  }
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* Subtle divider */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-line), transparent);
  margin: var(--space-xl) 0;
}
/* Touch-target fix (WCAG 2.5.5: min 24px) */
@media (max-width: 768px) {
  .card-meta a { min-height: 24px; display: inline-flex; align-items: center; }
  .footer-col a { min-height: 24px; display: inline-flex; align-items: center; padding: 4px 0; }
}
