/* ============================================================
   FLAT TRAIL COMMUNITY — style.css
   Trail Butter inspired: editorial, airy, nature-first
   ============================================================ */

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

:root {
  --cream:      #f5f2ec;
  --off-white:  #faf8f4;
  --charcoal:   #1e1e1b;
  --mid-gray:   #6b6b68;
  --light-gray: #c8c6bf;
  --forest:     #3a4f3a;
  --moss:       #5c7a4e;
  --clay:       #9b7e5e;
  --font-en: 'Outfit', 'Space Grotesk', sans-serif;
  --font-jp: 'M PLUS Rounded 1c', sans-serif;
  --font-ui: 'Space Grotesk', 'Outfit', sans-serif;
  --max-w: 1200px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--off-white);
  color: var(--charcoal);
  font-family: var(--font-jp);
  font-weight: 400;
  line-height: 1.9;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.site-header.scrolled {
  background: rgba(245, 242, 236, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #fff;
  transition: color 0.4s;
}

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

.nav-desktop {
  display: flex;
  gap: 40px;
}

.nav-desktop a {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s, opacity 0.3s;
}

.nav-desktop a:hover { color: #fff; }

.site-header.scrolled .nav-desktop a { color: var(--mid-gray); }
.site-header.scrolled .nav-desktop a:hover { color: var(--charcoal); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: background 0.4s, transform 0.3s;
}

.site-header.scrolled .hamburger span { background: var(--charcoal); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--cream);
  padding: 20px 48px 32px;
  border-top: 1px solid var(--light-gray);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: heroZoom 12s var(--ease) forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0);  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.32) 50%,
    rgba(0,0,0,0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 48px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-sub {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-en);
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 800;
  font-style: normal;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-family: var(--font-jp);
  font-size: clamp(0.92rem, 2vw, 1.15rem);
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  margin-bottom: 48px;
  letter-spacing: 0.08em;
}

/* Scroll cue */
.hero-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.4);
  margin-left: 16px;
  animation: scrollPulse 2s ease-in-out infinite;
}

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

.scroll-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl;
  margin-left: 10px;
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker-wrap {
  background: var(--forest);
  overflow: hidden;
  padding: 12px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  padding: 0 32px;
}

.ticker-sep {
  color: rgba(255,255,255,0.3);
  padding: 0 8px;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section { position: relative; }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 48px;
}

.section-inner.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-inner.two-col.reverse { direction: rtl; }
.section-inner.two-col.reverse > * { direction: ltr; }

.section-label {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 20px;
  display: block;
}

.section-label.light { color: rgba(255,255,255,0.55); }

.section-heading {
  font-family: var(--font-jp);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  font-style: normal;
  line-height: 1.4;
  color: var(--charcoal);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

.section-heading.light { color: #fff; }

/* English section headings keep Outfit */
.hero-title,
.statement-heading {
  font-family: var(--font-en) !important;
}

.body-text {
  font-size: 0.93rem;
  line-height: 2.1;
  color: var(--mid-gray);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.body-text.emphasis {
  color: var(--charcoal);
  font-weight: 700;
  border-left: 3px solid var(--clay);
  padding-left: 16px;
  margin-top: 28px;
}

/* Images */
.image-wrap {
  overflow: hidden;
  aspect-ratio: 3/4;
}

.image-wrap img {
  transition: transform 0.8s var(--ease);
}

.image-wrap:hover img { transform: scale(1.03); }

/* ============================================================
   CONCEPT
   ============================================================ */
.concept { background: var(--off-white); }

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.parallax-bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
}

.parallax-img {
  width: 100%;
  height: 100%;
  will-change: transform;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 20, 0.78);
}

.philosophy .section-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.philosophy-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.philosophy-body p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 2.2;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.04em;
}

.philosophy-accent {
  font-family: var(--font-jp);
  font-size: 1.08rem !important;
  color: #fff !important;
  font-weight: 700;
  border-left: 3px solid rgba(255,255,255,0.45);
  padding-left: 20px;
  margin: 8px 0;
}

/* ============================================================
   WHAT WE DO
   ============================================================ */
.what-we-do { background: var(--cream); }

.what-we-do .section-heading {
  max-width: 640px;
  margin-bottom: 60px;
}

/* What We Do — photo-only layout */
.what-we-do-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.wwd-photo {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.wwd-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.wwd-photo:hover img { transform: scale(1.03); }

.wwd-coming-soon {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--light-gray);
  text-align: center;
  padding: 8px 0;
}

@media (max-width: 600px) {
  .what-we-do-photos {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   THREE VALUES
   ============================================================ */
.values { background: var(--off-white); }

.values-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
}

.value-item {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding: 48px 0;
  border-bottom: 1px solid var(--light-gray);
}

.value-item:first-child { border-top: 1px solid var(--light-gray); }

.value-num {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 900;
  font-style: normal;
  color: var(--light-gray);
  min-width: 80px;
  line-height: 1;
  padding-top: 4px;
}

.value-content { flex: 1; }

.value-title {
  font-family: var(--font-jp);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.value-subtitle {
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 700;
  font-style: normal;
  color: var(--clay);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.value-text {
  font-size: 0.88rem;
  line-height: 2;
  color: var(--mid-gray);
}

/* Value item photo */
.value-img {
  width: 200px;
  flex-shrink: 0;
  aspect-ratio: 3/4;
  overflow: hidden;
  align-self: center;
}

.value-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.value-item:hover .value-img img { transform: scale(1.04); }

@media (max-width: 900px) {
  .value-img { display: none; }
}

/* ============================================================
   FOR YOU
   ============================================================ */
.for-you {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.for-you-bg {
  position: absolute;
  inset: 0;
}

.for-you-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 10, 0.70);
}

.for-you .section-inner {
  position: relative;
  z-index: 1;
}

.for-you-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.for-you-list li {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.04em;
  line-height: 1.7;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  gap: 20px;
}

.for-you-list li::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--clay);
  flex-shrink: 0;
}

/* ============================================================
   INSTRUCTOR
   ============================================================ */
.instructor { background: var(--cream); }

.instructor-name {
  font-family: var(--font-jp);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.instructor-sub {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  font-style: normal;
  color: var(--clay);
  margin-bottom: 32px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.results {
  margin: 28px 0 36px;
  padding: 24px 28px;
  background: var(--off-white);
  border-left: 2px solid var(--moss);
}

.results-label {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 14px;
}

.results-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.results-list li {
  font-size: 0.82rem;
  color: var(--mid-gray);
  line-height: 1.6;
  padding-left: 12px;
  position: relative;
}

.results-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--light-gray);
}

/* Instructor 2-photo layout */
.instructor-images {
  position: relative;
  height: 100%;
}

.instructor-img-main {
  aspect-ratio: 3/4;
  width: 100%;
}

.instructor-img-sub {
  position: absolute;
  bottom: -32px;
  right: -24px;
  width: 48%;
  aspect-ratio: 1/1;
  border: 6px solid var(--cream);
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

@media (max-width: 900px) {
  .instructor-img-sub {
    display: none;
  }
  .instructor-img-main { aspect-ratio: 4/3; }
}

/* Buttons */
.btn-outline {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
  padding: 14px 32px;
  transition: background 0.3s, color 0.3s;
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--off-white);
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--cream);
  padding: 18px 48px;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   STATEMENT
   ============================================================ */
.statement {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.statement-bg {
  position: absolute;
  inset: 0;
}

.statement-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 8, 0.72);
}

.statement .section-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.statement-heading {
  font-family: var(--font-en);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  font-style: normal;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 48px;
  letter-spacing: -0.03em;
}

.statement-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 56px;
}

.statement-body p {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  line-height: 2;
  letter-spacing: 0.05em;
}

.statement-cta-text {
  font-size: clamp(1rem, 2vw, 1.2rem) !important;
  color: rgba(255,255,255,0.95) !important;
  font-weight: 700;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--charcoal);
  padding: 72px 48px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #fff;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
}

.footer-nav a {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: color 0.3s;
}

.footer-nav a:hover { color: rgba(255,255,255,0.85); }

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-info p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

.footer-copy {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.08em;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.reveal-right {
  transform: translateX(30px);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .site-header { padding: 0 24px; }

  .nav-desktop { display: none; }
  .hamburger { display: flex; }

  .section-inner { padding: 72px 24px; }
  .section-inner.two-col {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .section-inner.two-col.reverse { direction: ltr; }

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

  .hero-content { padding: 0 24px 64px; }

  .value-item {
    gap: 24px;
    padding: 36px 0;
  }

  .value-num {
    font-size: 2.2rem;
    min-width: 56px;
  }

  .site-footer { padding: 56px 24px; }
  .nav-mobile { padding: 20px 24px 32px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .statement-heading { font-size: 2.6rem; }
  .philosophy-body p { font-size: 0.88rem; }
  .sp-br { display: inline; }
}

@media (min-width: 481px) {
  .sp-br { display: none; }
}
