/* 
  MARUMORI-SAUNA Design System CSS
  Variables and Base Styles
*/

:root {
  /* Brand Colors (Earthy & Natural) */
  --color-base: #F7F4F0;
  --color-warm: #EDE8E1;
  --color-text: #3A3632;
  --color-accent: #7D6B5D;
  /* Muted brown */
  --color-highlight: #C27A59;
  /* Muted terracotta */
  --color-water: #6A8A96;
  /* Muted gray-blue */
  --color-green: #7D8F75;
  /* Muted sage */

  /* Layout Constants */
  --max-width: 600px;
  --padding-x: 20px;

  /* Typography */
  --font-base: 'Noto Sans JP', sans-serif;
  --font-heading: 'Shippori Mincho', serif;
}

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

html {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-base);
  font-size: 14px;
  line-height: 1.8;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  :root {
    --max-width: 800px;
    --padding-x: 40px;
  }

  html {
    font-size: 15px;
  }
}

@media (min-width: 1024px) {
  :root {
    --max-width: 1000px;
  }
}

body {
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 40px;
  text-align: center;
  color: var(--color-accent);
  letter-spacing: 0.1em;
}

/* Buttons */
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 16px 24px;
  border-radius: 4px;
  font-weight: 500;
  transition: opacity 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  letter-spacing: 0.05em;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-outline {
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
}

.btn-subtle {
  background: transparent;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  max-width: auto;
  display: inline-flex;
}

/* Placeholder Utility */
.placeholder-illustration,
.placeholder-map,
.placeholder-bbq-rain,
.placeholder-bbq-visual,
.placeholder-stay-img {
  background-color: rgba(139, 111, 78, 0.1);
  border: 1px dashed var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 0.9rem;
  text-align: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.section-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  /* Temp background */
  background: linear-gradient(135deg, #a6b8a6, #E0D8CC);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(247, 244, 240, 0.6);
  /* Soft overlay to blend with base color */
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--padding-x);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 2s ease-out forwards;
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-label {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 32px;
  letter-spacing: 0.1em;
}

.hero-desc {
  margin-bottom: 40px;
}

.hero-note {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Timeline Section
   ========================================================================== */
.timeline-intro {
  text-align: center;
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.timeline-container {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  padding-left: 20px;
}

.timeline-line {
  position: absolute;
  left: 26px;
  /* 20 + 6 (half dot width) */
  top: 10px;
  bottom: 0px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent) 0%, var(--color-highlight) 30%, var(--color-water) 60%, var(--color-green) 100%);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  display: flex;
  align-items: flex-start;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 24px;
  position: relative;
  z-index: 2;
  margin-top: 6px;
  flex-shrink: 0;
}

.dot-accent {
  background-color: var(--color-accent);
}

.dot-orange {
  background-color: var(--color-highlight);
}

.dot-water {
  background-color: var(--color-water);
}

.dot-green {
  background-color: var(--color-green);
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.timeline-content p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.section-spending-time {
  background-color: var(--color-warm);
  padding: 80px 0 120px;
}

.scenes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 600px) {
  .scenes-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
    row-gap: 40px;
  }
}

.scene {
  background: var(--color-base);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.01);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease, box-shadow 0.3s ease;
}

.scene:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05);
  transform: translateY(-4px);
  /* Slight lift on hover */
}

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

.scene-illustration {
  width: 100%;
  max-width: 300px;
  height: 250px;
  margin-bottom: 32px;
  background-color: transparent;
  border: none;
  position: relative;
}

/* Temp styling for illustrations before assets are provided */
.scene-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene-caption {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--color-text);
  margin-top: 16px;
}

/* Changing colors based on scene as per spec */
.scene-1 .scene-caption {
  color: var(--color-accent);
}

.scene-2 .scene-caption {
  color: var(--color-highlight);
}

.scene-3 .scene-caption {
  color: var(--color-water);
}

.scene-4 .scene-caption {
  color: var(--color-green);
}

.scene-5 .scene-caption {
  color: var(--color-highlight);
}

.scene-6 .scene-caption {
  color: var(--color-accent);
}

/* ==========================================================================
   Checklist Section
   ========================================================================== */
.checklist-category {
  margin-bottom: 48px;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.title-highlight {
  color: var(--color-highlight);
  border-bottom-color: var(--color-highlight);
}

.title-green {
  color: var(--color-green);
  border-bottom-color: var(--color-green);
}

.title-water {
  color: var(--color-water);
  border-bottom-color: var(--color-water);
}

/* Custom Checkbox styles */
.check-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  cursor: pointer;
  padding: 16px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  /* Soft UI shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.01);
}

.check-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05);
  /* Enhanced hover shadow */
}

.check-item input[type="checkbox"] {
  display: none;
  /* Hide default */
}

.custom-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-text);
  border-radius: 4px;
  margin-right: 16px;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

/* Checkmark effect using CSS */
.custom-checkbox::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s;
}

.check-highlight input:checked~.custom-checkbox {
  background-color: var(--color-highlight);
  border-color: var(--color-highlight);
}

.check-green input:checked~.custom-checkbox {
  background-color: var(--color-green);
  border-color: var(--color-green);
}

input:checked~.custom-checkbox::after {
  opacity: 1;
}

.item-text {
  flex-grow: 1;
}

.item-name {
  display: block;
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.check-highlight .item-name {
  font-size: 1.3rem;
  /* Make Swimwear stand out */
}

input:checked~.item-text .item-name {
  opacity: 0.6;
  text-decoration: line-through;
}

.item-desc {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* Provided List */
.provided-list {
  list-style: none;
  background: #fff;
  border-radius: 8px;
  padding: 8px 16px;
}

.provided-list li {
  padding: 16px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.provided-list li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Access & How To
   ========================================================================== */
.access-info {
  background: #fff;
  padding: 32px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.01);
}

.access-info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px 8px;
}

.access-info dt {
  font-weight: 500;
  color: var(--color-accent);
}

.placeholder-map {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  margin-bottom: 24px;
}

/* ==========================================================================
   Rainy Day Section
   ========================================================================== */
.section-rain {
  background-color: #E2E8EB;
  /* Soft blue-gray */
}

/* ==========================================================================
   BBQ Section
   ========================================================================== */
.section-bbq {
  background-color: var(--color-warm);
}

.bbq-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
}

.bbq-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 600px) {
  .bbq-cards {
    flex-direction: row;
    align-items: flex-start;
  }
}

.bbq-card {
  flex: 1;
  border-radius: 12px;
  padding: 32px 24px;
}

/* Primary Card (What to bring) - Pops out more */
.primary-card {
  background-color: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.primary-card .card-title {
  color: var(--color-highlight);
}

/* Secondary Card (Provided items) - More subdued */
.secondary-card {
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.secondary-card .card-title {
  color: var(--color-water);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  letter-spacing: 0.05em;
}

.bbq-list {
  list-style: none;
}

.bbq-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.5;
}

.bbq-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.5;
}

.bbq-list li small {
  display: block;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 4px;
}

.bbq-sub-block {
  background-color: var(--color-base);
  border: 1px dashed rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.sub-block-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 12px;
}

.sub-block-text {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* ==========================================================================
   STAY Section & Footer
   ========================================================================== */
.section-notes {
  font-size: 0.85rem;
  opacity: 0.8;
}

.notes-list {
  padding-left: 20px;
}

.notes-list li {
  margin-bottom: 12px;
}

/* ==========================================================================
   MARUMORI-STAY Banner Section
   ========================================================================== */
.section-stay {
  padding: 0;
  margin-top: 80px;
}

.stay-banner {
  width: 100vw;
  max-width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.stay-cta {
  background-color: var(--color-base);
  text-align: center;
  padding: 80px 0 120px;
}

.stay-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 32px;
  letter-spacing: 0.1em;
}

.stay-desc {
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 48px;
  opacity: 0.9;
}

.stay-link {
  display: inline-block;
  font-size: 1.05rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: opacity 0.3s ease;
}

.stay-link:hover {
  opacity: 0.7;
}

.footer {
  text-align: center;
  padding: 60px 0;
  background: #2a2825;
  color: #fff;
}

.footer-logo {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.footer-contact {
  font-size: 0.85rem;
  opacity: 0.7;
}