/* ================================================================
   Torqueenginebench — style.css
   Main stylesheet for the home page
   ================================================================ */

/* ── DESIGN TOKENS ────────────────────────────────────────────── */
:root {
  /* Core palette (5 colours) */
  --color-bg:       #F5F0EB; /* warm washi paper         */
  --color-text:     #1C1C1C; /* sumi ink black            */
  --color-accent:   #BE3A34; /* torii vermillion          */
  --color-muted:    #7A7A7A; /* weathered stone           */
  --color-dark:     #0D0D0D; /* deep night ink            */

  /* Derived surfaces (tints/shades of the 5 above) */
  --color-surface:  #EDE8E2;
  --color-border:   #D9D3CB;
  --color-dark-fg:  #F5F0EB; /* text on dark bg          */

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-w:      1200px;
  --max-w-wide: 1440px;
  --radius:     2px;
}

/* ── RESET ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { background-color: var(--color-bg); scroll-behavior: smooth; }
body  { font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--color-text); background-color: var(--color-bg); }
img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
ul, ol{ list-style: none; }
address { font-style: normal; }

/* ── CONTAINERS ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.container-full {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── SECTION HELPERS ──────────────────────────────────────────── */
.section          { padding: 5.5rem 0; }
.section-dark     { background-color: var(--color-dark); color: var(--color-dark-fg); }
.section-surface  { background-color: var(--color-surface); }

.section-dark h2,
.section-dark h3  { color: var(--color-dark-fg); }
.section-dark p   { color: rgba(245,240,235,.6); }
.section-dark .section-label { color: var(--color-accent); }
.section-dark .section-desc  { color: rgba(245,240,235,.55); }

.section-header          { margin-bottom: 3rem; }
.section-header.centered { text-align: center; max-width: 900px; margin-left: auto; margin-right: auto; }

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .75rem;
}

.section-desc {
  color: var(--color-muted);
  max-width: 560px;
  margin-top: .75rem;
  font-size: .9375rem;
}
.section-header.centered .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
}
h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
h2 { font-size: clamp(1.875rem, 4vw, 3.125rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.0625rem; font-family: var(--font-body); font-weight: 500; }
em { font-style: italic; color: var(--color-accent); }

p  { line-height: 1.75; color: var(--color-muted); font-size: .9375rem; }

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .9rem 2.25rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius);
}
.btn-primary  { background-color: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-outline  { background-color: transparent; color: var(--color-text); border-color: var(--color-text); }
.btn-outline-light { background-color: transparent; color: var(--color-dark-fg); border-color: var(--color-dark-fg); }
.btn-sm       { padding: .625rem 1.375rem; font-size: .6875rem; }

/* ── LOGO ─────────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.logo-icon  { width: 42px; height: 42px; flex-shrink: 0; }
.logo-name  {
  font-family: var(--font-heading);
  font-size: 1.3125rem;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--color-text);
  white-space: nowrap;
}
.logo-footer .logo-name { color: var(--color-dark-fg); }

/* ── PLACEHOLDER IMAGES ───────────────────────────────────────── */
.ph {
  background-color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 6px,
      rgba(0,0,0,.04) 6px,
      rgba(0,0,0,.04) 7px
    );
}
.ph-label {
  position: relative;
  z-index: 1;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-muted);
  background-color: rgba(245,240,235,.8);
  padding: .25rem .6rem;
}

/* ── SITE HEADER ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 1.125rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-contact {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--color-muted);
}
.header-contact a {
  color: var(--color-muted);
  text-decoration: none;
}
.header-contact a:hover { color: var(--color-accent); }

/* ================================================================
   BLOCK 1 — HERO
   ================================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100svh - 73px);
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem 6rem 0;
  max-width: 640px;
  margin-left: auto;
}
.hero-eyebrow {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.625rem;
}
.hero-title {
  font-size: clamp(3rem, 6.5vw, 5.75rem);
  line-height: 1.04;
  margin-bottom: 1.625rem;
}
.hero-subtitle {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-muted);
  max-width: 420px;
  margin-bottom: 2.5rem;
}
.hero-ph { min-height: 100%; }

/* ================================================================
   BLOCK 2 — INTRODUCTION (centered)
   ================================================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin: 0 auto;
  max-width: 1200px;
}
.intro-text {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.intro-text h2 { margin-bottom: 1.375rem; }
.intro-text p  { margin-bottom: 1rem; }
.intro-text .btn { margin-top: 1.25rem; display: inline-block; }
.intro-img {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 100%;
}

/* ================================================================
   BLOCK 3 — FEATURED DESTINATIONS
   ================================================================ */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.dest-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.dest-img {
  aspect-ratio: 3 / 4;
  width: 100%;
}
.dest-body { padding: 1.25rem; }
.dest-body h3 {
  color: var(--color-dark-fg);
  margin-bottom: .5rem;
  font-size: 1.375rem;
}
.dest-body p { font-size: .875rem; color: rgba(245,240,235,.58); }

/* ================================================================
   BLOCK 4 — WHY JAPAN
   ================================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
}
.feature { display: flex; flex-direction: column; gap: 1.125rem; }
.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature h3 { font-size: 1.5rem; }
.feature p  { font-size: .9375rem; }

/* ================================================================
   BLOCK 5 — LOCAL EXPERIENCES (centered)
   ================================================================ */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  max-width: 1440px;
  margin: 0 auto;
}
.exp-img  { min-height: 600px; }
.exp-body {
  padding: 5.5rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--color-surface);
  text-align: center;
}
.exp-body h2 { margin-bottom: 1.25rem; text-align: center; }
.exp-body > p { margin-bottom: 1.75rem; text-align: center; }
.exp-list {
  margin-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.exp-list li {
  padding: .625rem 0 .625rem 1.5rem;
  position: relative;
  font-size: .9375rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.exp-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* ================================================================
   BLOCK 6 — TRAVEL GUIDES
   ================================================================ */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.guide-card {
  background-color: #fff;
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.guide-img  { aspect-ratio: 16 / 9; width: 100%; }
.guide-body { padding: 1.625rem; }
.guide-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .625rem;
}
.guide-body h3 { font-size: 1.25rem; margin-bottom: .625rem; color: var(--color-text); }
.guide-body p  { font-size: .875rem; }

/* ================================================================
   BLOCK 7 — SEASONS
   ================================================================ */
.seasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.season-card { border: 1px solid var(--color-border); overflow: hidden; }
.season-img  { aspect-ratio: 3 / 4; width: 100%; }
.season-body { padding: 1.25rem; }
.season-body h3 { font-size: 1.375rem; margin-bottom: .5rem; }
.season-body p  { font-size: .875rem; }

/* ================================================================
   BLOCK 8 — TRAVEL TIPS
   ================================================================ */
.tips-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5.5rem;
  align-items: start;
}
.tips-heading h2   { margin-bottom: 1rem; }
.tips-list         { display: flex; flex-direction: column; }
.tips-list li {
  display: flex;
  gap: 1.75rem;
  padding: 1.625rem 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
  align-items: flex-start;
}
.tip-num {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 300;
  color: var(--color-accent);
  line-height: 1;
  min-width: 56px;
}
.tip-text h4 { color: var(--color-dark-fg); margin-bottom: .375rem; font-size: 1rem; }
.tip-text p  { font-size: .875rem; color: rgba(245,240,235,.6); }

/* ================================================================
   BLOCK 9 — TRAVEL PACKAGES (Product Block)
   ================================================================ */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.pkg-card {
  border: 1px solid var(--color-border);
  overflow: hidden;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}
.pkg-img  { aspect-ratio: 4 / 3; width: 100%; }
.pkg-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pkg-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .5rem;
}
.pkg-body h3 { font-size: 1.25rem; margin-bottom: .625rem; color: var(--color-text); }
.pkg-body p  { font-size: .875rem; flex: 1; margin-bottom: 1rem; }
.pkg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}
.pkg-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ================================================================
   BLOCK 10 — CONTACTS
   ================================================================ */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3.5rem;
}
.contact-item {
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
}
.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}
.contact-detail { display: flex; flex-direction: column; gap: .3rem; }
.contact-label  {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.contact-detail a,
.contact-detail address {
  font-size: .9375rem;
  color: var(--color-text);
  line-height: 1.55;
}
.contact-detail a:hover { color: var(--color-accent); }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background-color: var(--color-dark);
  color: var(--color-dark-fg);
  padding: 5rem 0 2.25rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2rem;
}
.footer-tagline {
  margin-top: .875rem;
  font-size: .875rem;
  color: rgba(245,240,235,.45);
  line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-dark-fg);
  margin-bottom: 1.125rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a  { font-size: .875rem; color: rgba(245,240,235,.55); }
.footer-col a:hover { color: var(--color-accent); }
.footer-col p  { font-size: .875rem; color: rgba(245,240,235,.55); line-height: 1.6; margin-bottom: .35rem; }
.footer-bottom { text-align: center; }
.footer-bottom p { font-size: .75rem; color: rgba(245,240,235,.28); }

/* ================================================================
   COOKIE BANNER & MODAL
   ================================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background-color: var(--color-dark);
  color: var(--color-dark-fg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.cookie-banner.active {
  max-height: 240px;
  opacity: 1;
}
.cookie-banner-content {
  flex: 1;
  font-size: .875rem;
  line-height: 1.5;
}
.cookie-banner-content a {
  color: var(--color-accent);
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
}
.cookie-banner .btn {
  padding: .625rem 1.375rem;
  font-size: .6875rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--radius);
}
.btn-cookie-accept  {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-cookie-reject {
  background-color: transparent;
  color: var(--color-dark-fg);
  border-color: var(--color-dark-fg);
}
.btn-cookie-customize {
  background-color: transparent;
  color: var(--color-dark-fg);
  border-color: var(--color-dark-fg);
}
.btn-cookie-accept:hover  { opacity: 0.9; }
.btn-cookie-reject:hover,
.btn-cookie-customize:hover { opacity: 0.8; }

/* ── COOKIE MODAL ────────────────────────────────────────────── */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 400;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13,13,13,.8);
  padding: 2rem;
  overflow-y: auto;
}
.cookie-modal.active {
  display: block;
}
.modal-content {
  background-color: var(--color-bg);
  margin: auto;
  padding: 3rem 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  margin-top: 5vh;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.modal-header h2 {
  margin: 0;
  font-size: 1.75rem;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  color: var(--color-accent);
}

/* ── COOKIE OPTIONS ─────────────────────────────────────────── */
.cookie-options {
  margin-bottom: 2rem;
}
.cookie-option {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.cookie-option:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.cookie-option-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .75rem;
}
.cookie-checkbox {
  margin-top: .25rem;
  cursor: pointer;
  min-width: 20px;
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent);
}
.cookie-checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.cookie-option-label {
  font-weight: 500;
  display: block;
  cursor: pointer;
}
.cookie-option-desc {
  font-size: .875rem;
  color: var(--color-muted);
  margin-top: .35rem;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}
.btn-cookie-save {
  flex: 1;
  padding: .875rem 1.75rem;
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  text-align: center;
}
.btn-cookie-save:hover {
  opacity: 0.9;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .packages-grid       { grid-template-columns: repeat(2, 1fr); }
  .destinations-grid   { grid-template-columns: repeat(2, 1fr); }
  .seasons-grid        { grid-template-columns: repeat(2, 1fr); }
  .footer-grid         { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    max-height: none;
  }
  .cookie-banner.active {
    max-height: none;
  }
  .cookie-banner-content {
    font-size: .8125rem;
  }
  .cookie-banner-actions {
    width: 100%;
    flex-direction: column;
  }
  .cookie-banner .btn {
    width: 100%;
    text-align: center;
  }

  .modal-content {
    padding: 2rem 1.5rem;
    margin-top: 20vh;
  }
  .modal-header {
    flex-direction: column;
  }
  .modal-header h2 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
  }
  .modal-footer {
    flex-direction: column;
  }
  .btn-cookie-save {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .hero              { grid-template-columns: 1fr; min-height: auto; }
  .hero-content      { padding: 5rem 0; max-width: 100%; margin: 0; }
  .hero-ph           { min-height: 55vw; }

  .intro-grid        { grid-template-columns: 1fr; gap: 2.5rem; }

  .features-grid     { grid-template-columns: 1fr; gap: 2.5rem; }

  .exp-grid          { grid-template-columns: 1fr; }
  .exp-img           { min-height: 340px; }
  .exp-body          { padding: 3.5rem 2rem; }

  .guides-grid       { grid-template-columns: 1fr 1fr; }

  .tips-layout       { grid-template-columns: 1fr; gap: 2rem; }

  .contacts-grid     { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 680px) {
  .container         { padding: 0 1.25rem; }
  .section           { padding: 4rem 0; }
  .destinations-grid { grid-template-columns: 1fr; }
  .packages-grid     { grid-template-columns: 1fr; }
  .guides-grid       { grid-template-columns: 1fr; }
  .seasons-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-grid       { grid-template-columns: 1fr; gap: 2rem; }
  .hero-content      { padding: 3.5rem 0; }
}
