/* =============================================
   SYS — Shinrin-Yoku Sanctuary
   Palette: Forest Green + Warm Cream
   ============================================= */

:root {
  --green-deep:   #1a3a2a;
  --green-mid:    #2d5a3d;
  --green-light:  #4a7c5e;
  --green-pale:   #8db59a;
  --cream:        #f5f0e8;
  --cream-dark:   #e8e0d0;
  --gold:         #b8973a;
  --text-dark:    #1c2b20;
  --text-mid:     #3d5247;
  --text-light:   #7a9485;
  --white:        #ffffff;

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

  --radius:       4px;
  --transition:   0.3s ease;
  --max-width:    1200px;
}

/* ---- 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: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--green-deep);
}
h1 { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; }
p  { font-size: 1rem; color: var(--text-mid); max-width: 68ch; }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-primary {
  background: var(--green-mid);
  color: var(--cream);
  border-color: var(--green-mid);
}
.btn-primary:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245,240,232,0.55);
}
.btn-outline:hover { background: rgba(245,240,232,0.12); }
.btn-dark {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-mid);
}
.btn-dark:hover { background: var(--green-deep); color: var(--cream); }

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(26,58,42,0.97);
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 160px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
/* Keep text fallback hidden */
.nav-logo .logo-main,
.nav-logo .logo-sub { display: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.82);
  transition: color var(--transition);
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a.active { color: var(--cream); }
.nav-links a.active { border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.nav-links .btn { margin-left: 0.5rem; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--green-deep);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--cream);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--gold); }

/* =============================================
   HERO (shared base)
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--green-deep);
  background-image:
    radial-gradient(ellipse at 30% 60%, rgba(45,90,61,0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(26,58,42,0.8) 0%, transparent 55%);
}
.hero-bg img, .hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.72;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(26,58,42,0.2) 0%,
    rgba(26,58,42,0.1) 50%,
    rgba(26,58,42,0.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
  max-width: 860px;
}
.hero-content h1 { color: var(--cream); margin-bottom: 1.25rem; }
.hero-content p {
  color: rgba(245,240,232,0.82);
  font-size: 1.1rem;
  max-width: 58ch;
  margin: 0 auto 2rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(245,240,232,0.5);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scroll .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(245,240,232,0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(0.5); opacity: 1; }
}

/* =============================================
   SECTIONS (shared)
   ============================================= */
.section { padding: 6rem 2.5rem; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-header { margin-bottom: 3.5rem; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0.75rem auto 0; }
.section-header p { margin-top: 0.75rem; }

.section-light  { background: var(--cream); }
.section-dark   { background: var(--green-deep); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-dark p  { color: rgba(245,240,232,0.72); }
.section-dark .section-label { color: var(--gold); }
.section-mid    { background: var(--cream-dark); }
.section-forest { background: var(--green-mid); }
.section-forest h2, .section-forest h3, .section-forest h4 { color: var(--cream); }
.section-forest p { color: rgba(245,240,232,0.78); }

/* =============================================
   CARD GRID
   ============================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(26,58,42,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(26,58,42,0.14);
}
.card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--green-pale); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card-body p  { font-size: 0.92rem; }

/* =============================================
   MASONRY GALLERY
   ============================================= */
.masonry {
  column-count: 3;
  column-gap: 1rem;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--green-mid);
}
.masonry-item img,
.masonry-item video {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.masonry-item:hover img,
.masonry-item:hover video { transform: scale(1.03); }
.masonry-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,58,42,0.7) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.masonry-item:hover .overlay { opacity: 1; }
.masonry-item .overlay span {
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Sound toggle button on video tiles */
.sound-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(26,58,42,0.72);
  border: 1px solid rgba(245,240,232,0.25);
  color: var(--cream);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
  backdrop-filter: blur(4px);
  line-height: 1;
}
.masonry-item:hover .sound-btn { opacity: 1; }
.sound-btn:hover { background: rgba(26,58,42,0.95); }

/* Video badge */
.video-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: rgba(26,58,42,0.72);
  color: var(--cream);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  border: 1px solid rgba(245,240,232,0.2);
  backdrop-filter: blur(4px);
  z-index: 3;
  opacity: 0;
  transition: opacity var(--transition);
}
.masonry-item:hover .video-badge { opacity: 1; }

.masonry-placeholder {
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,240,232,0.4);
  font-size: 2rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,20,14,0.95);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}
.lightbox-content img { max-height: 90vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute;
  top: -2.5rem; right: 0;
  background: none; border: none;
  color: var(--cream); font-size: 1.8rem;
  cursor: pointer; opacity: 0.7;
  transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }

/* =============================================
   TWO-COLUMN SPLIT
   ============================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.split.reverse .split-img { order: -1; }
.split-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--green-pale); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-text { display: flex; flex-direction: column; gap: 1.25rem; }
.split-text p { font-size: 1.05rem; }

/* =============================================
   STATS ROW
   ============================================= */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; text-align: center; }
.stat-num { font-family: var(--font-serif); font-size: 3.5rem; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-light); margin-top: 0.4rem; }

/* =============================================
   QUOTE / TESTIMONIAL
   ============================================= */
.quote-block {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--green-deep);
}
.quote-block blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--cream);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.5;
}
.quote-block cite {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px;
  background: var(--green-mid);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-item h4 { font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.2rem; }
.contact-item p { font-size: 0.95rem; max-width: none; }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); font-weight: 600; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.85rem 1rem;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(74,124,94,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.map-embed { border-radius: var(--radius); overflow: hidden; margin-top: 2rem; }
.map-embed iframe { width: 100%; height: 340px; border: none; display: block; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--green-deep);
  color: rgba(245,240,232,0.65);
  padding: 4rem 2.5rem 2rem;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo-main { display: none; }
.footer-brand .logo-sub { display: none; }
.footer-brand img { height: 200px; width: auto; display: block; margin-bottom: 0.5rem; filter: brightness(0) invert(1); }
.footer-brand p { margin-top: 0.85rem; font-size: 0.88rem; line-height: 1.65; color: rgba(245,240,232,0.55); max-width: 26ch; }
.footer-col h4 { font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-pale); margin-bottom: 1rem; font-weight: 600; }
.footer-col a { display: block; font-size: 0.88rem; color: rgba(245,240,232,0.6); margin-bottom: 0.5rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(245,240,232,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; }
.social-links { display: flex; gap: 1rem; }
.social-links a { color: rgba(245,240,232,0.5); transition: color var(--transition); font-size: 1.1rem; }
.social-links a:hover { color: var(--cream); }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  height: 50vh;
  min-height: 380px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 4rem 2.5rem;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: var(--green-deep);
}
.page-hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(26,58,42,0.85) 0%, rgba(26,58,42,0.3) 100%);
}
.page-hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.page-hero-content h1 { color: var(--cream); font-size: clamp(2rem, 5vw, 3.5rem); }
.page-hero-content p { color: rgba(245,240,232,0.75); font-size: 1.05rem; margin-top: 0.75rem; max-width: 52ch; }

/* =============================================
   SERVICES
   ============================================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 2px 16px rgba(26,58,42,0.07);
  border-top: 3px solid var(--green-light);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(26,58,42,0.13); }
.service-icon { font-size: 2.2rem; }
.service-card h3 { font-size: 1.4rem; }
.service-card p { font-size: 0.93rem; flex: 1; }
.service-price { font-family: var(--font-serif); font-size: 1.6rem; color: var(--gold); }
.service-price span { font-family: var(--font-sans); font-size: 0.78rem; color: var(--text-light); margin-left: 0.3rem; }

/* =============================================
   ABOUT TIMELINE
   ============================================= */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 80px 1fr; gap: 2rem; padding-bottom: 2.5rem; position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 39px; top: 28px; bottom: 0;
  width: 1px;
  background: var(--green-pale);
}
.timeline-item:last-child::before { display: none; }
.timeline-year { font-family: var(--font-serif); font-size: 1.3rem; color: var(--gold); padding-top: 0.2rem; }
.timeline-dot {
  position: absolute;
  left: 33px; top: 10px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--green-mid);
  border: 2px solid var(--green-pale);
}
.timeline-body h4 { font-family: var(--font-sans); font-weight: 600; color: var(--green-deep); margin-bottom: 0.4rem; font-size: 1rem; }
.timeline-body p { font-size: 0.93rem; }

/* =============================================
   TEAM
   ============================================= */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.team-card { text-align: center; }
.team-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--green-pale);
  margin: 0 auto 1.25rem;
  overflow: hidden;
  border: 3px solid var(--cream-dark);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.2rem; }
.team-card .role { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 0.25rem; }
.team-card p { font-size: 0.88rem; margin-top: 0.75rem; }

/* =============================================
   GALLERY FILTERS
   ============================================= */
.gallery-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--cream-dark);
  border-radius: 99px;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--green-mid);
  color: var(--cream);
  border-color: var(--green-mid);
}

/* =============================================
   UPLOAD ZONE (Gallery)
   ============================================= */
.upload-zone {
  border: 2px dashed var(--green-pale);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--green-mid);
  background: rgba(45,90,61,0.05);
}
.upload-zone .upload-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.upload-zone p { font-size: 0.9rem; max-width: none; }
.upload-zone input[type="file"] { display: none; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.reverse .split-img { order: 0; }
  .split-img { aspect-ratio: 16/9; }
  .masonry { column-count: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .masonry { column-count: 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .section { padding: 4rem 1.25rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: none; }
