/* ----------------------------------------------------------------------------
   TVLDays · Layout
   Nav, footer, section wrappers, grid, responsive.
   Load last in the CSS chain.
   ---------------------------------------------------------------------------- */

/* ============================================================================
   PAGE STRUCTURE
   ============================================================================ */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page__main {
  flex: 1;
}

/* ============================================================================
   CONTAINER + SECTION
   ============================================================================ */

.container {
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (max-width: 768px) {
  .container {
    padding-inline: var(--gutter-mobile);
  }
}

.section {
  padding-block: var(--s-10);
  position: relative;
}

.section--tight { padding-block: var(--s-9); }
.section--generous { padding-block: var(--s-11); }

.section--bg        { background: var(--bg); }
.section--bg-lift   { background: var(--bg-lift); }
.section--bg-deep   { background: var(--bg-deep); }
.section--espresso  { background: var(--espresso); color: var(--bg); }

@media (max-width: 768px) {
  .section             { padding-block: var(--s-9); }
  .section--tight      { padding-block: var(--s-8); }
  .section--generous   { padding-block: var(--s-10); }
}

/* ============================================================================
   12-COLUMN GRID
   ============================================================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
}

/* Column span utilities */
.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

@media (max-width: 768px) {
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    grid-column: span 1;
  }
}

/* ============================================================================
   NAV
   Sticky top bar. Shrinks on scroll (toggled by JS via .is-sticky).
   ============================================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  transition: height var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}

.nav.is-sticky {
  height: var(--nav-h-sticky);
  box-shadow: 0 1px 4px rgba(42, 35, 29, 0.04);
}

.nav__inner {
  max-width: var(--max-content);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}

@media (max-width: 768px) {
  .nav__inner {
    padding-inline: var(--gutter-mobile);
  }
}

.nav__logo {
  display: flex;
  align-items: center;
  height: 36px;
}

.nav__logo img {
  height: 100%;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.nav__link {
  position: relative;
  font-size: 15px;
  color: var(--text-soft);
  font-weight: 500;
  padding-block: 4px;
  transition: color var(--t-fast) var(--ease-out);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--marquee);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-normal) var(--ease-out);
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

/* Hide center menu on mobile; show hamburger */
.nav__menu--center { }
.nav__hamburger { display: none; }

@media (max-width: 900px) {
  .nav__menu--center { display: none; }
  .nav__actions .btn { display: none; }
  .nav__actions .nav__hamburger { display: inline-flex; }
  .nav__actions .nav__login { display: none; }
}

/* Hamburger button */
.nav__hamburger {
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: var(--text);
}

.nav__hamburger:hover {
  background: var(--bg-lift);
}

.nav__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav__hamburger span::before,
.nav__hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.nav__hamburger span::before { top: -6px; }
.nav__hamburger span::after  { top: 6px; }

/* Mobile overlay menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  display: none;
  flex-direction: column;
  padding: var(--gutter);
}

.nav-overlay.is-open {
  display: flex;
}

.nav-overlay__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-h);
}

.nav-overlay__menu {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  margin-top: var(--s-8);
}

.nav-overlay__link {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: var(--ls-display-m);
  color: var(--text);
  transform: skewX(-6deg);
  display: inline-block;
  transform-origin: left center;
}

.nav-overlay__cta {
  margin-top: var(--s-7);
}

/* ============================================================================
   FOOTER — the one full-dark moment on every page.
   ============================================================================ */

.footer {
  background: var(--espresso);
  color: var(--bg);
  padding-block: var(--s-9) var(--s-8);
  margin-top: auto;
}

.footer__inner {
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (max-width: 768px) {
  .footer__inner { padding-inline: var(--gutter-mobile); }
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: var(--s-8);
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-7);
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.footer__logo {
  height: 44px;
  width: auto;
}

.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.4;
  color: var(--bg);
  max-width: 28ch;
}

.footer__copyright {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0;
  margin-top: auto;
}

.footer__col h6 {
  font-size: 11px;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-weight: 500;
  margin-bottom: var(--s-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.footer__links a {
  color: var(--bg);
  font-size: 14px;
  transition: color var(--t-fast) var(--ease-out);
}

.footer__links a:hover {
  color: var(--marquee-glow);
}

.footer__newsletter-label {
  font-size: 13px;
  color: var(--bg);
  margin-bottom: var(--s-3);
  font-family: var(--font-serif);
  font-style: italic;
}

.footer__newsletter {
  display: flex;
  gap: var(--s-2);
}

.footer__newsletter input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  background: rgba(245, 239, 226, 0.08);
  border: 1px solid rgba(245, 239, 226, 0.2);
  border-radius: var(--r-md);
  color: var(--bg);
  font-size: 14px;
}

.footer__newsletter input:focus {
  outline: none;
  border-color: var(--marquee-glow);
}

.footer__newsletter input::placeholder {
  color: rgba(245, 239, 226, 0.4);
}

.footer__newsletter button {
  padding: 0 14px;
  height: 40px;
  background: var(--marquee);
  color: var(--bg);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
}

.footer__newsletter button:hover {
  background: var(--marquee-light);
}

.footer__rule {
  height: 2px;
  background: var(--marquee);
  margin-block: var(--s-7) var(--s-5);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
  font-size: 12px;
  color: var(--text-dim);
}

.footer__legal {
  display: flex;
  gap: var(--s-5);
}

.footer__legal a {
  color: var(--text-dim);
  transition: color var(--t-fast) var(--ease-out);
}

.footer__legal a:hover {
  color: var(--bg);
}

@media (max-width: 560px) {
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

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

.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mt-8 { margin-top: var(--s-8); }

.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-7 { margin-bottom: var(--s-7); }
.mb-8 { margin-bottom: var(--s-8); }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); }
.gap-6 { gap: var(--s-6); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
