/* ============================================
   Zen Escapes Japan - Design System
   Calm, centered, zen-inspired
   ============================================ */

/* --- CSS Variables --- */
:root {
  --stone: #7a7269;
  --moss: #5a6e4a;
  --sand: #e8e0d0;
  --charcoal: #3d3832;
  --bamboo: #8faa3c;
  --clay: #b87050;
  --white: #ffffff;

  --font-heading: "Spectral", Georgia, serif;
  --font-body: "Karla", system-ui, sans-serif;

  --radius: 12px;
  --shadow-soft: 0 4px 20px rgba(61, 56, 50, 0.08);
  --shadow-medium: 0 8px 32px rgba(61, 56, 50, 0.12);
  --max-width: 720px;
  --section-gap: 200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--charcoal);
  background-color: var(--sand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

a {
  color: var(--clay);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
  letter-spacing: -0.5px;
}

h1 {
  font-size: clamp(28px, 5vw, 48px);
}

h2 {
  font-size: clamp(24px, 4vw, 32px);
}

h3 {
  font-size: clamp(20px, 3vw, 24px);
}

.label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--stone);
}

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

.container-wide {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.centered {
  text-align: center;
}

.centered-block {
  margin-left: auto;
  margin-right: auto;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(232, 224, 208, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(122, 114, 105, 0.1);
  transition: background 0.3s ease;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--stone);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: var(--clay);
  opacity: 1;
}

/* --- Mobile Nav --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 1px;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(232, 224, 208, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(122, 114, 105, 0.1);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
}

/* --- Hero --- */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: radial-gradient(ellipse at center, var(--sand) 0%, var(--stone) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0px,
    transparent 20px,
    rgba(122, 114, 105, 0.03) 20px,
    rgba(122, 114, 105, 0.03) 22px
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
}

.hero h1 {
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--stone);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-align: center;
}

.btn-primary {
  background: var(--stone);
  color: var(--sand);
}

.btn-primary:hover {
  background: var(--charcoal);
  opacity: 1;
}

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

.btn-secondary:hover {
  background: var(--stone);
  color: var(--sand);
  opacity: 1;
}

.btn-clay {
  background: var(--clay);
  color: var(--white);
}

.btn-clay:hover {
  background: var(--charcoal);
  opacity: 1;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card-body {
  padding: 24px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 8px;
}

.card-text {
  font-size: 14px;
  color: var(--stone);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--stone);
}

.card-price {
  font-weight: 600;
  color: var(--moss);
}

/* --- Retreat Cards (vertical stack) --- */
.retreat-card {
  max-width: 600px;
  margin: 0 auto 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.retreat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.retreat-card:last-child {
  margin-bottom: 0;
}

.retreat-card-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.retreat-card-body {
  padding: 28px 32px;
}

.retreat-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 4px;
}

.retreat-card-location {
  font-size: 13px;
  color: var(--stone);
  margin-bottom: 12px;
}

.retreat-card-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.retreat-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.retreat-card-price {
  font-weight: 600;
  color: var(--moss);
  font-size: 15px;
}

.retreat-card-rating {
  font-size: 13px;
  color: var(--stone);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.badge-moss {
  background: rgba(90, 110, 74, 0.1);
  color: var(--moss);
}

.badge-clay {
  background: rgba(184, 112, 80, 0.1);
  color: var(--clay);
}

/* --- Experience Cards --- */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.exp-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 32px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.exp-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.exp-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.exp-card p {
  font-size: 14px;
  color: var(--stone);
  line-height: 1.6;
}

/* --- Quote Section --- */
.quote-section {
  background: var(--stone);
  color: var(--sand);
  padding: 100px 24px;
  text-align: center;
}

.quote-section blockquote {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 32px);
  font-style: italic;
  max-width: var(--max-width);
  margin: 0 auto 16px;
  line-height: 1.4;
}

.quote-section cite {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: normal;
  opacity: 0.8;
}

/* --- Footer --- */
.footer {
  background: var(--charcoal);
  color: var(--sand);
  padding: 60px 24px 40px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  color: var(--sand);
}

.footer-tagline {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
}

.footer-links a {
  color: var(--sand);
  font-size: 13px;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-contact {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 16px;
  line-height: 1.8;
}

.footer-disclaimer {
  font-size: 11px;
  opacity: 0.5;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Cookie Banner --- */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--charcoal);
  color: var(--sand);
  padding: 14px 24px;
  z-index: 10000;
  display: none;
  text-align: center;
  font-size: 13px;
  font-family: var(--font-body);
}

.cookie-notice a {
  color: var(--clay);
  text-decoration: underline;
}

.cookie-accept {
  background: var(--stone);
  color: var(--sand);
  border: none;
  padding: 6px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-body);
  margin-left: 12px;
  transition: background 0.2s ease;
}

.cookie-accept:hover {
  background: var(--moss);
}

@media (max-width: 480px) {
  .cookie-notice {
    padding: 12px 16px;
    font-size: 12px;
  }
  .cookie-accept {
    margin-left: 0;
    margin-top: 8px;
    display: block;
    width: 100%;
  }
}

/* --- Page Header --- */
.page-header {
  padding: 140px 24px 60px;
  text-align: center;
  background: var(--sand);
}

.page-header h1 {
  font-size: clamp(32px, 6vw, 40px);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--stone);
  font-size: 16px;
}

/* --- Filters --- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  padding: 0 24px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--stone);
  background: transparent;
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--stone);
  color: var(--sand);
}

/* --- Retreat Detail Page --- */
.retreat-hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 60px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.retreat-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(61, 56, 50, 0.5);
}

.retreat-hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.retreat-hero h1 {
  color: var(--white);
  margin-bottom: 8px;
}

.retreat-hero-location {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.retreat-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.retreat-section {
  margin-bottom: 48px;
}

.retreat-section h2 {
  margin-bottom: 16px;
}

.retreat-section p,
.retreat-section li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--charcoal);
}

.retreat-section ul {
  padding-left: 20px;
}

.retreat-section ul li {
  list-style: disc;
  margin-bottom: 6px;
}

.retreat-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.retreat-meta-item {
  background: rgba(122, 114, 105, 0.05);
  padding: 20px;
  border-radius: var(--radius);
}

.retreat-meta-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--stone);
  margin-bottom: 4px;
}

.retreat-meta-value {
  font-size: 15px;
  color: var(--charcoal);
}

/* --- Map Container --- */
.map-container {
  width: 100%;
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
}

/* --- Experience Detail Page --- */
.exp-hero {
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 60px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.exp-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(61, 56, 50, 0.5);
}

.exp-hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.exp-hero h1 {
  color: var(--white);
  margin-bottom: 8px;
}

.exp-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.exp-section {
  margin-bottom: 48px;
}

.exp-section h2 {
  margin-bottom: 16px;
}

.exp-section p,
.exp-section li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--charcoal);
}

/* --- About Page --- */
.about-story {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.about-story p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  max-width: 800px;
  margin: 40px auto 0;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  text-align: center;
}

.team-card h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 4px;
}

.team-card-role {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--clay);
  margin-bottom: 12px;
}

.team-card p {
  font-size: 14px;
  color: var(--stone);
  line-height: 1.6;
}

/* --- Contact Page --- */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--stone);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(122, 114, 105, 0.3);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charcoal);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--stone);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  text-align: center;
  margin-top: 60px;
  padding: 0 24px;
}

.contact-info p {
  font-size: 14px;
  color: var(--stone);
  line-height: 2;
}

/* --- Legal Pages --- */
.legal-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.legal-body h2 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 22px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--charcoal);
}

.legal-body ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-body ul li {
  list-style: disc;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 6px;
  color: var(--charcoal);
}

.legal-date {
  font-size: 13px;
  color: var(--stone);
  margin-top: 40px;
  font-style: italic;
}

/* --- Related Retreats --- */
.related-retreats {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
}

.related-retreats h3 {
  text-align: center;
  margin-bottom: 32px;
}

/* --- Introduction Section --- */
.intro-section {
  background: var(--sand);
  padding: 100px 24px;
  text-align: center;
}

.intro-section .container {
  max-width: 600px;
}

.intro-section h2 {
  margin-bottom: 16px;
}

.intro-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.intro-section a {
  color: var(--clay);
  font-weight: 600;
}

/* --- Featured Section --- */
.featured-section {
  background: var(--sand);
  padding: 100px 24px;
}

.featured-section h2 {
  text-align: center;
  margin-bottom: 48px;
}

/* --- Experience Types Section --- */
.exp-types-section {
  background: var(--sand);
  padding: 100px 24px;
}

.exp-types-section h2 {
  text-align: center;
  margin-bottom: 48px;
}

/* --- Link Arrow --- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* --- Section Divider --- */
.section-divider {
  max-width: 60px;
  height: 1px;
  background: var(--stone);
  margin: 0 auto 40px;
  opacity: 0.4;
}

/* --- Retreat Detail: CTA Section --- */
.retreat-cta {
  background: var(--stone);
  color: var(--sand);
  padding: 60px 24px;
  text-align: center;
  margin-top: 40px;
}

.retreat-cta h3 {
  color: var(--sand);
  margin-bottom: 16px;
}

.retreat-cta p {
  margin-bottom: 24px;
  opacity: 0.9;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    min-height: 70vh;
    padding: 100px 24px 60px;
  }

  .retreat-card-image {
    height: 200px;
  }

  .retreat-card-body {
    padding: 20px 24px;
  }

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

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

  .map-container {
    height: 280px;
  }

  .filters {
    gap: 8px;
  }

  .filter-btn {
    font-size: 12px;
    padding: 6px 14px;
  }
}

/* --- Utility Classes --- */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 40px; }
.hidden { display: none !important; }

/* --- Favicon inline SVG fallback --- */
.favicon-enso {
  width: 32px;
  height: 32px;
}

/* --- Smooth scroll offset for fixed nav --- */
[id] {
  scroll-margin-top: 80px;
}

/* --- Print styles --- */
@media print {
  .nav,
  .cookie-notice,
  .footer {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}
