/* ==========================================================================
   TechFest Alabama 2026 - Landing page styles
   Palette pulled from the 2026 flyer: deep blue (#1F3D8F), orange gradient
   for accents, off-white for content sections.
   ========================================================================== */

:root {
  --blue-deep: #1F3D8F;
  --blue-dark: #16307C;
  --blue-ink: #0F1E4D;
  --orange: #F58535;
  --orange-warm: #EC7A17;
  --orange-deep: #D95F00;
  --cream: #FBF9F3;
  --ink: #131321;
  --text: #1D1D1F;
  --text-2: #4B4B54;
  --text-3: #7A7883;
  --rule: rgba(0, 0, 0, 0.09);
  --rule-strong: rgba(0, 0, 0, 0.16);
  --shadow-soft: 0 8px 30px rgba(15, 30, 77, 0.08);
  --shadow-lift: 0 12px 40px rgba(15, 30, 77, 0.16);

  --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Oswald', 'Roboto', sans-serif;

  --wrap: 1180px;
  --gutter-x: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }

.container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter-x);
  padding-right: var(--gutter-x);
}

/* ============ Sticky CTA bar ============ */
.sticky-cta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transform: translateY(-100%);
  transition: transform 0.32s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.7rem var(--gutter-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.sticky-cta-meta {
  font-size: 0.9rem;
  color: var(--text-2);
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.sticky-cta-meta strong { color: var(--text); font-weight: 600; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(217, 95, 0, 0.28);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(217, 95, 0, 0.38);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }
.btn-large {
  padding: 1.35rem 2.5rem;
  font-size: 1.25rem;
  border-radius: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.btn-secondary {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.6rem 0.25rem;
  letter-spacing: 0.02em;
}
.btn-secondary:hover { color: #fff; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-deep);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 30, 77, 0.55) 0%, rgba(15, 30, 77, 0.75) 60%, rgba(15, 30, 77, 0.85) 100%),
    linear-gradient(90deg, rgba(15, 30, 77, 0.4) 0%, rgba(15, 30, 77, 0.15) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  /* Kept tight so the primary CTA sits above the fold on 768-900px viewports */
  padding: 3rem var(--gutter-x) 2.5rem;
  width: 100%;
}

/* Text wordmark that sits above the eyebrow. Keeps a brand presence
   without the vertical cost of the full logo image, which now has a
   proper home lower on the page. */
.hero-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.5rem;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 1rem;
}
/* Real display headline in the hero. Oswald 700 uppercase, tight leading,
   the front half in white and the closing beat in orange for punch. */
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  max-width: 900px;
}
.hero-title-accent {
  color: var(--orange);
  display: block;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  margin: 1.25rem 0 1.5rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem 1.5rem;
  max-width: 900px;
  margin: 0 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-meta strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-meta span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.hero-scroll-link {
  display: inline-block;
}
.hero-proof {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.15rem 0.75rem 1rem;
  background: rgba(217, 95, 0, 0.12);
  border-left: 4px solid var(--orange);
  border-radius: 4px;
}
.hero-proof strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.4vw, 2.75rem);
  line-height: 1;
  color: var(--orange);
  letter-spacing: 0;
}
.hero-proof-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: var(--font-display);
  color: #fff;
  line-height: 1.15;
}
.hero-proof-label .hero-proof-lead {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.hero-proof-label .hero-proof-main {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

/* ============ Section shell ============ */
.section {
  padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
}
.section-demos { background: #fff; }
.section-why { background: var(--cream); }
.section-photos { background: #fff; padding-bottom: 0; }
.section-essentials { background: var(--cream); }
.section-partners { background: #fff; }
.section-close {
  background: var(--blue-deep);
  color: #fff;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin: 0 0 0.85rem;
}
.section-close .eyebrow { color: var(--orange); }

.rule {
  border: none;
  border-top: 1px solid var(--rule-strong);
  margin: 0 0 2rem;
}
.section-close .rule { border-color: rgba(255, 255, 255, 0.18); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0.008em;
  text-transform: uppercase;
  color: var(--text);
  text-wrap: balance;
  margin: 0 0 1rem;
  max-width: 820px;
}
.section-close .section-title,
.close-title {
  color: #fff;
}
.section-lede {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 700px;
  margin: 0 0 3rem;
}

/* ============ Demo grid ============ */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.demo {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.25rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease;
}
.demo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--orange);
}
.demo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--rule-strong);
}
.demo-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--orange-deep);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
.demo-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.demo ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.demo li {
  font-size: 0.95rem;
  color: var(--text-2);
  padding: 0.15rem 0;
  line-height: 1.45;
}

/* ============ Why grid ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem 2.5rem;
  margin-top: 2rem;
}
.why-grid h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}
.why-grid p {
  font-size: 1.02rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}

/* ============ Photo strip ============ */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2rem var(--gutter-x) 3rem;
}
.photo-strip img {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}
.photo-strip img:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

/* ============ Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 35, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
}
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

/* ============ Essentials ============ */
.essentials-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.essentials-info dl {
  display: grid;
  grid-template-columns: minmax(140px, 22%) 1fr;
  gap: 0.9rem 2rem;
  margin: 0 0 2.5rem;
}
.essentials-info dt {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--orange-deep);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 0.25rem;
}
.essentials-info dd {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.55;
}
.essentials-venue img {
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  width: 100%;
}
.essentials-logo {
  display: block;
  margin-bottom: 1.25rem;
}
.essentials-logo img {
  box-shadow: none;
  border-radius: 8px;
}
.venue-caption {
  font-size: 0.85rem;
  color: var(--text-3);
  margin: 0.75rem 0 0;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ============ Partners ============ */
.partners-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}
.partners-list li {
  height: 110px;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.partners-list li:hover {
  border-color: var(--orange);
  color: var(--orange-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.partner-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-2);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.partners-more {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--text-3);
  font-style: italic;
  text-align: center;
}
.partners-scroll { position: relative; }
/* Clones are only shown as part of the mobile marquee loop; hidden on desktop. */
.partner-clone { display: none; }

@media (max-width: 720px) {
  .partners-scroll {
    overflow: hidden;
    /* Fade the left/right edges so logos flow out of view rather than clip hard. */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    margin-top: 1.5rem;
  }
  .partners-list {
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.9rem;
    width: max-content;
    animation: partners-scroll 55s linear infinite;
    will-change: transform;
  }
  .partners-list li {
    flex: 0 0 auto;
    width: 150px;
    height: 88px;
    padding: 0.9rem 1.1rem;
  }
  .partner-clone { display: flex; }
  /* Pause on touch so users can inspect a logo they're interested in. */
  .partners-scroll:active .partners-list,
  .partners-scroll:hover .partners-list { animation-play-state: paused; }
}

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

/* Accessibility: users who opted out of motion get a static wrapped grid. */
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .partners-scroll {
    overflow: visible;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .partners-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: auto;
    animation: none;
  }
  .partners-list li { width: auto; height: 80px; }
  .partner-clone { display: none; }
}

/* ============ Close ============ */
.close-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
  margin: 0 auto 2.5rem;
  max-width: 780px;
}
.close-meta {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 2rem 0 0;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--blue-ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 1.75rem 0;
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.footer-brand a:hover { color: var(--orange); }
.footer-contact {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
}
.footer-contact a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.footer-contact a:hover { color: var(--orange); }

/* ============ Small screens ============ */
@media (max-width: 980px) {
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .essentials-grid { grid-template-columns: 1fr; }
  .essentials-info dl { grid-template-columns: 1fr; gap: 0.15rem 0; }
  .essentials-info dt { padding-top: 1rem; }
  /* Top-align the hero so content starts near the top (no deadspace) and the
     CTA rises above the fold on load. */
  .hero { align-items: flex-start; }
  .hero-inner { padding-top: 1.75rem; padding-bottom: 2.5rem; }
  .hero-meta {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 1.25rem;
    padding: 0.85rem 0;
    margin-bottom: 1.25rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .hero-cta .btn-primary { justify-content: center; width: 100%; }
  .hero-cta .btn-secondary { text-align: center; }
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip img { height: 240px; }
  .sticky-cta-inner { padding: 0.55rem var(--gutter-x); }
  .sticky-cta-meta { font-size: 0.8rem; }
  .sticky-cta .btn { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
}
