/* The Station — warm, earthy tones; community feel */

:root {
  --color-dark: #1f1b18;
  --color-dark-card: #2c2622;
  --color-accent: #b85c38;
  --color-accent-hover: #9a4d2e;
  --color-white: #ffffff;
  --color-warm-bg: #faf8f5;
  --color-warm-bg-alt: #f5f1eb;
  --color-text: #2c2420;
  --color-text-muted: #6b5d54;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --max-width: 56rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-soft: 1rem;
  --header-height: 5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-warm-bg);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header — sticky, transparent over hero; solid when scrolled */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.header-scrolled {
  background: rgba(250, 248, 245, 0.98);
  box-shadow: 0 1px 0 rgba(44, 36, 32, 0.06);
}

.site-header.header-scrolled .logo-station img {
  filter: brightness(0);
}

.site-header.header-scrolled .nav a {
  color: var(--color-text);
}

.site-header.header-scrolled .nav a:hover {
  color: var(--color-text);
  opacity: 0.85;
}

.site-header.header-scrolled .nav a.btn-nav,
.site-header.header-scrolled .btn-nav {
  color: var(--color-white);
  background: var(--color-accent);
  border-color: transparent;
}

.site-header.header-scrolled .nav a.btn-nav:hover,
.site-header.header-scrolled .btn-nav:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  opacity: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.logo-station {
  display: inline-block;
  line-height: 0;
}

.logo-station img {
  height: 2rem;
  width: auto;
  display: block;
  transition: filter 0.2s ease;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

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

.btn-nav {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-nav:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Hero — video background, warm overlay */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-dark);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(31, 27, 24, 0.65) 0%, rgba(31, 27, 24, 0.78) 60%, rgba(31, 27, 24, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-2xl) var(--space-md);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-title {
    opacity: 0;
    animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero-tagline {
    animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-tagline { opacity: 1; }
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.hero-highlight {
  color: #e8b896;
}

.hero-tagline {
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 var(--space-lg);
  letter-spacing: 0.02em;
  max-width: 28rem;
  opacity: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184, 92, 56, 0.3);
}

.btn-arrow {
  flex-shrink: 0;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

/* Sections */
.section {
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-2xl);
}

.section-light {
  background: var(--color-warm-bg);
}

.section-warm {
  background: var(--color-warm-bg-alt);
}

.section-pretitle {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-sm);
  text-align: center;
}

.section-pretitle-dark {
  color: rgba(255, 255, 255, 0.92);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 var(--space-md);
  color: var(--color-text);
  text-align: center;
  letter-spacing: -0.02em;
}

.section-title .title-bold {
  font-weight: 700;
}

.cta-section .section-title,
.cta-section-title {
  color: var(--color-white);
}

.section-intro-block {
  margin: 0 auto var(--space-xl);
  max-width: 42rem;
  text-align: center;
}

.section-intro-block .section-intro {
  margin-bottom: var(--space-md);
}

.section-intro-block .section-intro:last-child {
  margin-bottom: 0;
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin: 0 auto var(--space-xl);
  max-width: 42rem;
  text-align: center;
  line-height: 1.75;
}

/* Value cards — Community, Bible & faith, NYC */
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

@media (max-width: 48rem) {
  .values {
    grid-template-columns: 1fr;
  }
}

.value-card {
  text-align: center;
  padding: var(--space-lg);
  background: var(--color-white);
  border: 1px solid rgba(44, 36, 32, 0.08);
  border-radius: var(--radius-soft);
  box-shadow: 0 2px 16px rgba(44, 36, 32, 0.05);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.value-card:hover {
  box-shadow: 0 12px 32px rgba(44, 36, 32, 0.08);
  border-color: rgba(184, 92, 56, 0.2);
  transform: translateY(-2px);
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-soft);
  background: rgba(184, 92, 56, 0.12);
  color: var(--color-accent);
}

.value-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.value-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* CTA section — warm dark */
.section-dark {
  position: relative;
  color: var(--color-white);
  padding: var(--space-2xl) 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: var(--color-dark) url("https://images.unsplash.com/photo-1496442226666-8d4d0e62e6e9?w=1600") center/cover no-repeat;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 27, 24, 0.75) 0%, rgba(31, 27, 24, 0.88) 50%, rgba(31, 27, 24, 0.95) 100%);
}

.cta-section .container {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.cta-inner {
  text-align: center;
}

.cta-section .section-title,
.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 var(--space-md);
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.cta-intro {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 var(--space-xl);
  line-height: 1.65;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 999px;
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(184, 92, 56, 0.3);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(184, 92, 56, 0.35);
  transform: translateY(-1px);
}

.cta-footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: var(--space-lg) 0 0;
  letter-spacing: 0.02em;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 0;
    transform: none;
    transition: opacity 0.3s ease;
  }
  .reveal.visible {
    opacity: 1;
  }
}

.values .value-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.values .value-card.reveal:nth-child(2) { transition-delay: 0.12s; }
.values .value-card.reveal:nth-child(3) { transition-delay: 0.19s; }

/* Community section — loneliness stat callout */
.community-stat {
  margin: var(--space-xl) auto 0;
  max-width: 28rem;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-soft);
  border: 1px solid rgba(44, 36, 32, 0.08);
  box-shadow: 0 2px 16px rgba(44, 36, 32, 0.05);
}

.community-stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.community-stat-label {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Focus styles */
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.cta-section .btn-cta:focus-visible {
  outline-color: var(--color-white);
  outline-offset: 3px;
}

/* Photo sections — full-bleed image, soft overlay, single line of copy */
.photo-section {
  position: relative;
  padding: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.photo-section-inner {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-section-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-section-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(31, 27, 24, 0.25) 0%,
    rgba(31, 27, 24, 0.5) 50%,
    rgba(31, 27, 24, 0.65) 100%
  );
  pointer-events: none;
}

.photo-section-caption {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--color-white);
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
  padding: 0 var(--space-md);
  max-width: 24ch;
}

.photo-section-alt .photo-section-overlay {
  background: linear-gradient(
    180deg,
    rgba(31, 27, 24, 0.35) 0%,
    rgba(31, 27, 24, 0.55) 50%,
    rgba(31, 27, 24, 0.7) 100%
  );
}

#about,
#community,
#connect,
#life,
#city,
#meet,
#instagram {
  scroll-margin-top: var(--header-height);
}

/* Where we meet section */
.meet-photo {
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-soft);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(44, 36, 32, 0.08);
}

.meet-photo-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  max-height: 50vh;
}

.meet-details {
  max-width: 36rem;
  margin: 0 auto;
}

.meet-card {
  background: var(--color-white);
  border: 1px solid rgba(44, 36, 32, 0.08);
  border-radius: var(--radius-soft);
  box-shadow: 0 2px 16px rgba(44, 36, 32, 0.05);
  padding: var(--space-xl);
  text-align: left;
}

.meet-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.meet-detail:last-of-type {
  margin-bottom: var(--space-xl);
}

.meet-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: rgba(184, 92, 56, 0.12);
  color: var(--color-accent);
}

.meet-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.meet-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.5;
}

.btn-meet {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-meet:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(184, 92, 56, 0.3);
}

/* Instagram feed section — hidden until a live feed is embedded */
#instagram {
  display: none;
}

/* Instagram feed section */
.instagram-embed-wrapper {
  margin-top: var(--space-xl);
  text-align: center;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 24rem;
  margin: 0 auto var(--space-lg);
}

.instagram-tile {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-warm-bg-alt);
  border-radius: var(--radius);
  border: 1px solid rgba(44, 36, 32, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.instagram-tile:hover {
  background: rgba(184, 92, 56, 0.08);
  border-color: rgba(184, 92, 56, 0.25);
  transform: scale(1.02);
}

.instagram-tile-icon {
  color: var(--color-text-muted);
  opacity: 0.6;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.instagram-tile:hover .instagram-tile-icon {
  color: var(--color-accent);
  opacity: 1;
}

.instagram-follow-btn {
  display: inline-flex;
  margin: 0 auto;
}

/* When a real Instagram widget is embedded, replace the grid with it */
.instagram-embed-wrapper iframe {
  border-radius: var(--radius-soft);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}
