/* ==========================================================================
   myscreenverse — Site layout: header, mobile nav, footer, hero, page banners
   ========================================================================== */

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: var(--header-gap);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - (var(--header-gap) * 2));
  max-width: var(--container);
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: top 0.3s ease, width 0.3s ease, max-width 0.3s ease,
    border-radius 0.3s ease, background 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.site-header.is-scrolled {
  top: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  border-bottom: 1px solid var(--mist);
}

.site-header .container-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  height: 44px;
  width: auto;
  transition: height 0.3s ease;
}

.site-header.is-scrolled .brand img {
  height: 38px;
}

.brand-logo-icon {
  display: none;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.15s ease;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.main-nav a.active {
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--ink);
  flex-shrink: 0;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* ---------- Mobile nav overlay ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  top: calc(var(--header-h) + var(--header-gap) * 2);
  background: var(--white);
  z-index: 190;
  padding: 28px 24px;
  transform: translateX(100%);
  transition: transform 0.25s ease, visibility 0.25s ease;
  overflow-y: auto;
  visibility: hidden;
}

.mobile-nav.open {
  visibility: visible;
  transform: translateX(0);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.mobile-nav a {
  display: block;
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 500;
  text-align: center;
  border-bottom: 1px solid var(--cream);
}

.mobile-nav a.active {
  color: var(--primary);
  font-weight: 700;
}

/* ---------- Hero (home only) ---------- */
.hero {
  position: relative;
  padding: 200px 0 100px;
  display: flex;
  align-items: center;
  min-height: 100vh;
  /* min-height: calc(100vh - (var(--header-h) + var(--header-gap) * 2));
  min-height: calc(100svh - (var(--header-h) + var(--header-gap) * 2)); */
  overflow: hidden;
}

.hero .container-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy,
.hero-media {
  min-width: 0;
}

.hero-copy h1 {
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero-copy h1 span {
  color: var(--primary);
}

.hero-copy .lede {
  font-size: 18px;
  color: var(--taupe);
  max-width: 540px;
  margin-bottom: 12px;
}

.hero-copy .lede-sub {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--taupe);
}

.hero-trust svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

.hero-media {
  position: relative;
}

.hero-media .media-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 11;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 260px;
}

.hero-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(30, 125, 79, 0.15);
}

.hero-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
}

.hero-badge span {
  font-size: 12.5px;
  color: var(--taupe);
}

/* ---------- Page intro banner (all sub-pages) ---------- */
.page-intro {
  position: relative;
  padding: 120px 0;
  /* background: linear-gradient(160deg, var(--dark) 0%, var(--secondary) 100%); */
  /* color: var(--white); */
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.page-intro .container-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.page-intro .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary-subtle);
}

.page-intro h1 {
  /* color: var(--white); */
  font-size: 40px;
  margin-bottom: 14px;
}

.page-intro p {
  /* color: var(--mist); */
  font-size: 16px;
  /* max-width: 480px; */
}

.page-intro-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 10;
}

.page-intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Page intro — full-bleed photo banner variant (About page) ---------- */
.page-intro--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-intro-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(43, 10, 22, 0.88) 0%, rgba(74, 15, 29, 0.82) 55%, rgba(43, 10, 22, 0.75) 100%);
  z-index: 1;
}

.page-intro--photo .container-inner {
  display: block;
}

.page-intro-copy {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.page-intro--photo .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: var(--secondary-subtle);
}

.page-intro--photo h1 {
  color: var(--white);
}

.page-intro--photo p {
  color: var(--mist);
}

/* ---------- Trust bar (home only) ---------- */
.trust-bar {
  padding: 44px 0;
  background: var(--dark);
  color: var(--white);
}

.trust-bar .container-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}

.trust-stat {
  display: flex;
  flex-direction: column;
}

.trust-stat strong {
  font-family: var(--font-heading);
  font-size: 26px;
}

.trust-stat span {
  font-size: 13px;
  color: var(--secondary-subtle);
}

.trust-chips {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.trust-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.trust-chip strong {
  font-family: var(--font-heading);
  font-size: 14px;
}

.trust-chip span {
  font-size: 12px;
  color: var(--secondary-subtle);
}

.trust-chip.is-link {
  transition: border-color 0.15s ease, background 0.15s ease;
}

.trust-chip.is-link:hover {
  border-color: var(--secondary-subtle);
  background: rgba(255, 255, 255, 0.09);
}

/* ---------- Final CTA banner ---------- */
.final-cta {
  position: relative;
  padding: 96px 0;
  text-align: center;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: -20px;
  background-image: url('../images/restaurant-menu-board.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: blur(9px) saturate(1.1) brightness(0.75);
  transform: scale(1.08);
  z-index: 0;
  pointer-events: none;
}

.final-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, rgba(107, 25, 48, 0.92) 100%, rgba(26, 5, 9, 0.93) 100%);
  z-index: 1;
  pointer-events: none;
}

.final-cta .container-inner {
  position: relative;
  z-index: 2;
}

.final-cta h2 {
  color: var(--white);
  font-size: 40px;
  line-height: 1.2;
  max-width: 640px;
  margin: 0 auto 16px;
}

.final-cta p {
  color: var(--secondary-subtle);
  font-size: 17px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 36px;
}

.final-cta .hero-actions {
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--mist);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--secondary-subtle);
  margin: 14px 0 18px;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.footer-social svg { width: 15px; height: 15px; }

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--secondary-subtle);
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--secondary-subtle);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero .container-inner { gap: 40px; }
  .hero-copy h1 { font-size: 42px; }
  .page-intro { min-height: 65vh; }
  .page-intro h1 { font-size: 32px; }
  .final-cta h2 { font-size: 34px; }
  .header-controls { display: flex; align-items: center; }

  /* Nav has 7 items (incl. Home) — switch to the hamburger a bit earlier
     than the 900px component breakpoint so it never gets squeezed on
     tablet-landscape widths. */
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }

  /* Mobile/tablet: show the icon-only mark instead of the full
     icon + wordmark lockup, which reads as illegible at header height. */
  .brand-logo-full { display: none; }
  .brand-logo-icon { display: block; }

  /* Full-width, edge-to-edge header on mobile/tablet (no floating pill). */
  .site-header {
    top: 0;
    width: 100%;
    border-radius: 0;
    background-color: var(--white);
  }

  .site-header.is-scrolled {
    width: 100%;
    border-radius: 0;
  }

  /* Header sits flush at the top now, so the dropdown only needs to
     clear its height — not the floating-pill's extra top gap. */
  .mobile-nav {
    top: var(--header-h);
  }
}

@media (max-width: 900px) {
  .hero .container-inner,
  .page-intro .container-inner {
    grid-template-columns: 1fr;
  }

  .hero-media { order: -1; }
  .hero-badge { position: static; margin-top: 16px; max-width: 100%; }
  .page-intro-media { order: -1; }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 64px; }
  .hero-copy h1 { font-size: 32px; }
  .hero-copy .lede { font-size: 15.5px; }

  .page-intro { padding: 72px 0; min-height: 100vh; }
  .page-intro h1 { font-size: 27px; }

  .trust-bar .container-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .final-cta { padding: 64px 0; }
  .final-cta h2 { font-size: 27px; }
  .final-cta p { font-size: 15.5px; }
  .final-cta .hero-actions .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  /* Keep the logo, Sign In + Start Free, and the hamburger all on one
     line without overflow on the smallest phone widths. */
  .site-header .container-inner { gap: 8px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-sm { padding: 8px 10px; font-size: 12px; }
  .nav-toggle { padding: 6px; }
}
