/* ============================================
   KIZUNA CABINS — Global Styles
   Brand: Luxury Japan meets American Comfort
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500&family=Noto+Serif+JP:wght@300;400&display=swap');

/* ── Design Tokens ─────────────────────────── */
:root {
  --ink:          #0d0d0d;
  --charcoal:     #1c1c1c;
  --stone:        #3d3835;
  --warm-gray:    #8b8680;
  --cream:        #f4efe6;
  --parchment:    #eae4d8;
  --forest-deep:  #111e14;
  --forest:       #1f3325;
  --moss:         #3a5438;
  --gold:         #c4a25a;
  --gold-light:   #e8d5a3;
  --white:        #ffffff;

  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;

  --nav-h:        100px;
  --transition:   0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }

/* ── Site Header ────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 90px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header--scrolled {
  background: rgba(244, 239, 230, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  border-bottom-color: rgba(0,0,0,0.07);
}

/* ── Logo Section (left) ── */
.header-logo-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px 0 48px;
  overflow: hidden;
}

.header-logo {
  width: 210px;
  height: auto;
  flex-shrink: 0;
  filter: invert(1) brightness(2);
  transition: filter var(--transition);
}

.site-header--scrolled .header-logo {
  filter: none;
}

/* ── Nav Links Section (right) ── */
.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 48px;
}

.header-nav__links {
  display: flex;
  align-items: center;
  gap: 44px;
  list-style: none;
}

.header-nav__links a {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: opacity var(--transition), color var(--transition);
}

.site-header--scrolled .header-nav__links a {
  color: var(--charcoal);
}

.header-nav__links a:hover { opacity: 0.55; }

.header-nav__book {
  padding: 9px 24px !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
  border-radius: 2px;
  color: var(--white) !important;
  transition: background var(--transition), border-color var(--transition), color var(--transition) !important;
}

.header-nav__book:hover {
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.9) !important;
  opacity: 1 !important;
}

.site-header--scrolled .header-nav__book {
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}

.site-header--scrolled .header-nav__book:hover {
  background: var(--ink) !important;
  color: var(--white) !important;
  opacity: 1 !important;
}

/* ── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  z-index: 0;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--forest-deep);
}

/* Photo placeholder — swap src on .hero__bg when you have a photo */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      to bottom,
      rgba(10,20,12,0.55) 0%,
      rgba(10,20,12,0.3) 40%,
      rgba(10,20,12,0.65) 100%
    ),
    /* ⬇ REPLACE with your hero cabin/landscape photo */
    url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

/* Fallback gradient when no photo */
.hero__bg--fallback {
  background-image:
    linear-gradient(160deg, #0a1a0c 0%, #1a3020 35%, #0f2318 65%, #08120a 100%);
}

/* Subtle noise texture overlay */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.6;
  pointer-events: none;
}

.hero__kanji {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  opacity: 0.1;
  filter: invert(1) brightness(2);
  pointer-events: none;
  user-select: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding: 0 7% 0 7%;
  max-width: 52%;
}

.hero__logo {
  width: 240px;
  filter: invert(1) brightness(2);
  opacity: 0.95;
}

.hero__divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5), transparent);
}

.hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 0.02em;
  max-width: 560px;
}

.hero__tagline em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.hero__cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 36px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  transition: background var(--transition), border-color var(--transition);
}

.hero__cta:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
}

.hero__cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.hero__scroll:hover { opacity: 1; }

.hero__scroll-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: var(--white);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50%       { transform: scaleY(0.5); opacity: 1; }
}

/* ── Brand Strip ────────────────────────────── */
.brand-strip {
  background: var(--ink);
  color: var(--cream);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  overflow: hidden;
}

.brand-strip__text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  white-space: nowrap;
}

.brand-strip__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── Section Utility ────────────────────────── */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.15;
}

/* ── Cabins Section ─────────────────────────── */
.cabins {
  background: var(--cream);
  padding: 96px 0 80px;
}

.cabins__header {
  text-align: center;
  padding: 0 48px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cabins__title {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--ink);
}

.cabins__intro {
  max-width: 520px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.7;
  margin-top: 8px;
}

/* Two-column grid */
.cabins__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* ── Cabin Card ─────────────────────────────── */
.cabin-card {
  position: relative;
  height: 88vh;
  min-height: 580px;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.cabin-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cabin-card:hover .cabin-card__bg {
  transform: scale(1.0);
}

/* Sawa fallback gradient — misty water, wetland greens */
.cabin-card--sawa .cabin-card__bg {
  background-image:
    linear-gradient(160deg, #0d1f18 0%, #1a3528 40%, #0e2820 70%, #091510 100%);
  /* ⬇ REPLACE: url('../images/sawa-cabin.jpg') */
}

/* Tani fallback gradient — deep gorge, stone, earth */
.cabin-card--tani .cabin-card__bg {
  background-image:
    linear-gradient(160deg, #141008 0%, #2a2015 40%, #1a1a0e 70%, #0d0d08 100%);
  /* ⬇ REPLACE: url('../images/tani-cabin.jpg') */
}

.cabin-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.35) 50%,
    rgba(0,0,0,0.15) 100%
  );
  transition: background var(--transition);
}

.cabin-card:hover .cabin-card__overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.78) 0%,
    rgba(0,0,0,0.28) 50%,
    rgba(0,0,0,0.1) 100%
  );
}

/* Large watermark kanji behind content */
.cabin-card__kanji-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 320px;
  opacity: 0.07;
  filter: invert(1) brightness(2);
  pointer-events: none;
  user-select: none;
  transition: opacity var(--transition), transform var(--transition);
}

.cabin-card:hover .cabin-card__kanji-bg {
  opacity: 0.12;
  transform: translate(-50%, -52%);
}

/* Content at bottom */
.cabin-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 44px 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(0);
  transition: transform var(--transition);
}

.cabin-card__kanji {
  width: 56px;
  height: auto;
  filter: invert(1) brightness(2);
  opacity: 0.85;
  margin-bottom: 4px;
}

.cabin-card__label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.cabin-card__name {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.cabin-card__desc {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  max-width: 340px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.45s ease;
}

.cabin-card:hover .cabin-card__desc {
  max-height: 120px;
  opacity: 1;
}

.cabin-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(196, 162, 90, 0.4);
  width: fit-content;
  transition: gap var(--transition), border-color var(--transition), color var(--transition);
}

.cabin-card:hover .cabin-card__cta {
  gap: 16px;
  border-color: var(--gold);
  color: var(--gold);
}

.cabin-card__cta-arrow {
  width: 18px;
  height: 1px;
  background: currentColor;
  position: relative;
  flex-shrink: 0;
}

.cabin-card__cta-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(40deg);
  width: 6px;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
  transform: rotate(40deg) translateY(-1px);
}

/* Divider between cards */
.cabin-card + .cabin-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: rgba(255,255,255,0.1);
  z-index: 5;
}

/* ── Philosophy Section ─────────────────────── */
.philosophy {
  background: var(--ink);
  color: var(--cream);
  padding: 120px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.philosophy__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.philosophy__kanji-main {
  width: 260px;
  filter: invert(0) brightness(0) invert(1);
  opacity: 0.15;
  position: absolute;
}

.philosophy__logo {
  width: 120px;
  filter: invert(1) brightness(2);
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.philosophy__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.philosophy__title {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.2;
}

.philosophy__title span {
  color: var(--gold);
  font-style: italic;
}

.philosophy__body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(244,239,230,0.72);
  line-height: 1.85;
}

.philosophy__pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.philosophy__pillar {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.philosophy__pillar-num {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.1em;
  padding-top: 3px;
  flex-shrink: 0;
}

.philosophy__pillar-body {}

.pillar-kanji {
  font-family: 'Noto Serif JP', 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--gold);
  vertical-align: middle;
}

.pillar-english {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.06em;
  color: rgba(244,239,230,0.45);
  vertical-align: middle;
}

.philosophy__pillar-name {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 4px;
}

.philosophy__pillar-desc {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(244,239,230,0.6);
  line-height: 1.65;
  font-style: italic;
}

/* ── Location Section ───────────────────────── */
.location {
  background: var(--parchment);
  padding: 96px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.location__title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--ink);
}

.location__body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--stone);
  max-width: 620px;
  line-height: 1.85;
  margin-top: 8px;
}

.location__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.location__tag {
  padding: 8px 18px;
  border: 1px solid rgba(61,56,53,0.2);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ── Footer ─────────────────────────────────── */
.footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 64px 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.footer__logo {
  width: 140px;
  filter: invert(1) brightness(2);
  opacity: 0.85;
  margin-bottom: 16px;
}

.footer__tagline {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(244,239,230,0.6);
  line-height: 1.7;
  max-width: 260px;
}

.footer__col-title {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: rgba(244,239,230,0.65);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--cream); }

.footer__contact-item {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: rgba(244,239,230,0.65);
  line-height: 1.6;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__copy {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: rgba(244,239,230,0.35);
  letter-spacing: 0.08em;
}

.footer__kanji {
  width: 32px;
  filter: invert(1) brightness(2);
  opacity: 0.2;
}

/* ── Scroll-in Animations ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ── Language Toggle ────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.2);
}

.site-header--scrolled .lang-toggle {
  border-left-color: rgba(0,0,0,0.12);
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 4px 0;
  transition: color var(--transition), opacity var(--transition);
  line-height: 1;
}

.lang-btn--active {
  color: rgba(255,255,255,0.95) !important;
  border-bottom: 1px solid rgba(255,255,255,0.6);
}

.site-header--scrolled .lang-btn {
  color: rgba(0,0,0,0.35);
}

.site-header--scrolled .lang-btn--active {
  color: var(--ink) !important;
  border-bottom-color: var(--ink);
}

.lang-btn:hover { opacity: 0.8; }

.lang-divider {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.25);
  pointer-events: none;
  line-height: 1;
}

.site-header--scrolled .lang-divider {
  color: rgba(0,0,0,0.2);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav__links { gap: 24px; }

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

  .cabin-card { height: 70vh; }

  .cabin-card + .cabin-card::before { display: none; }

  .philosophy {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 80px 24px;
  }

  .philosophy__visual { display: none; }

  .footer__top { grid-template-columns: 1fr; gap: 32px; }

  .brand-strip { flex-direction: column; gap: 16px; text-align: center; }
  .brand-strip__dot { display: none; }
}

@media (max-width: 600px) {
  .site-header { height: 70px; }
  .header-logo-bar { padding: 0 16px 0 20px; }
  .header-logo { width: 140px; }
  .header-nav { padding: 0 20px; }
  .header-nav__links { gap: 0; }
  .header-nav__links li { display: none; }
  .header-nav__links li.lang-toggle { display: flex; }
  .hero__content {
    max-width: 100%;
    padding: 0 24px;
    text-align: center;
    align-items: center;
  }
  .hero__tagline { font-size: 2rem; }
  .hero__logo { width: 180px; }
  .hero__kanji { width: 200px; opacity: 0.07; }
  .cabin-card__content { padding: 28px; }
  .location { padding: 64px 24px; }
}
