/* ─────────────────────────────────────────
   THE MORNING FACTORY — v2
   Community hub. Dark. Atmospheric. Real.
───────────────────────────────────────── */

:root {
  --bg:         #0F0E0D;
  --surface:    #1C1A18;
  --border:     #2A2825;
  --text:       #FAF0E8;
  --muted:      #8A8278;
  --peach:      #E8B89A;
  --terra:      #C4825A;
  --font:       'Montserrat', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--terra); }

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

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(15,14,13,0.95);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 1px;
}

.logo-the {
  font-weight: 300;
  font-size: 0.55rem;
  letter-spacing: 0.5em;
  color: var(--peach);
  text-transform: uppercase;
}

.logo-morning {
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-transform: uppercase;
  line-height: 1;
}

.logo-factory {
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  color: var(--peach) !important;
  border: 1px solid rgba(232,184,154,0.3);
  padding: 0.5rem 1.25rem;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: var(--terra) !important;
  color: var(--bg) !important;
  border-color: var(--terra) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 2.5rem;
  overflow: hidden;
}

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.5);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15,14,13,0.92) 0%,
    rgba(15,14,13,0.7) 50%,
    rgba(15,14,13,0.3) 100%
  );
}

.hero-grain {
  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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding-top: 6rem;
}

.hero-eyebrow {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 2rem;
  display: block;
  animation: fadeUp 0.8s ease both;
}

.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease 0.15s both;
}

.ht-the {
  font-weight: 300;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  letter-spacing: 0.6em;
  color: var(--peach);
  margin-bottom: 0.3rem;
}

.ht-morning {
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 10rem);
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 0.88;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.ht-factory {
  font-weight: 300;
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  letter-spacing: 0.5em;
  color: var(--muted);
  margin-top: 0.5rem;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(250,240,232,0.6);
  line-height: 1.8;
  margin-bottom: 3rem;
  animation: fadeUp 0.8s ease 0.3s both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.45s both;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 1rem;
  animation: bounce 2s ease-in-out infinite;
  z-index: 1;
}

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

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--terra);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--peach);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(250,240,232,0.2);
}

.btn-ghost:hover {
  border-color: var(--peach);
  color: var(--peach);
}

.btn-lg { font-size: 0.8rem; padding: 1.2rem 2.5rem; }

.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ff4444;
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── TICKER ── */
.ticker {
  background: var(--terra);
  overflow: hidden;
  padding: 0.75rem 0;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-flex;
  gap: 2rem;
  animation: ticker 30s linear infinite;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
}

.ticker-inner .sep { color: rgba(15,14,13,0.4); }

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

/* ── SECTIONS ── */
.section {
  position: relative;
  padding: 8rem 0;
}

.section-dark { background: var(--bg); }

.section-img { min-height: 60vh; display: flex; align-items: center; }

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.section-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,14,13,0.75) 0%,
    rgba(15,14,13,0.55) 50%,
    rgba(15,14,13,0.85) 100%
  );
}

.section-bg-overlay.dark {
  background: rgba(15,14,13,0.82);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
  z-index: 1;
}

.container-center { text-align: center; }

.section-header {
  margin-bottom: 4rem;
}

.eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.section-header p,
.community-sub {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 0;
}

.community-sub { margin-bottom: 2.5rem; }

/* ── SCHEDULE ── */
.schedule-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(250,240,232,0.1);
}

.sched-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(250,240,232,0.08);
  transition: background 0.15s;
}

.sched-item:hover {
  background: rgba(232,184,154,0.03);
  padding-left: 1rem;
  padding-right: 1rem;
  margin: 0 -1rem;
}

.sched-day {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--peach);
  text-transform: uppercase;
}

.sched-title {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.sched-desc {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
}

.sched-badge {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  border: 1px solid var(--terra);
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85) saturate(0.8);
}

.about-img-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  height: 60%;
  border: 1px solid var(--terra);
  z-index: -1;
}

.about-text .eyebrow { margin-bottom: 1rem; }
.about-text h2 { margin-bottom: 1.5rem; }

.about-text p {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.stats {
  display: flex;
  gap: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2rem 0;
}

.stat { display: flex; flex-direction: column; gap: 0.3rem; }

.stat-n {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--peach);
  line-height: 1;
}

.stat-l {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.genre-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gtag {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra);
  border: 1px solid rgba(196,130,90,0.3);
  padding: 0.3rem 0.75rem;
}

/* ── FOOTER ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 1px;
}

.footer-copy {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-link {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-link:hover { color: var(--peach); }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-accent { display: none; }
  .about-img-wrap img { height: 300px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { padding: 1.25rem; }

  .hero { padding: 0 1.25rem; }
  .ht-morning { font-size: clamp(3.5rem, 18vw, 6rem); }

  .section { padding: 5rem 0; }
  .container { padding: 0 1.25rem; }

  .sched-item {
    grid-template-columns: 50px 1fr;
    gap: 1rem;
  }
  .sched-badge { display: none; }

  .stats { gap: 1.5rem; }
  .hero-btns { flex-direction: column; }
  .btn { justify-content: center; }

  .footer-inner { flex-direction: column; text-align: center; }
}
