/* ==========================================================================
   Meridian Nevada — Lobbying & Government Affairs
   Dark & bold theme with gold accents
   ========================================================================== */

:root {
  --bg: #101114;
  --bg-alt: #17181c;
  --bg-card: #1d1f24;
  --ink: #f4f2ec;
  --ink-muted: #b9b6ad;
  --gold: #c9a24b;
  --gold-bright: #e3bd63;
  --line: rgba(201, 162, 75, 0.25);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-bright); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--ink); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); letter-spacing: 0.14em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.lead { font-size: 1.2rem; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.site-header.scrolled {
  background: rgba(16, 17, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.brand:hover { color: var(--gold-bright); }

.brand-logo {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

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

.main-nav a {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-bright); border-bottom-color: var(--gold); }

.nav-cta {
  border: 1px solid var(--gold);
  padding: 10px 22px !important;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--gold); color: var(--bg) !important; }

.nav-toggle {
  display: none;
  background: rgba(16, 17, 20, 0.65);
  border: 1px solid rgba(201, 162, 75, 0.5);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  z-index: 110;
  width: 46px; height: 40px;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: all 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero with rotating time-lapse videos
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 72px;
  /* Fallback while videos load or if missing */
  background: radial-gradient(ellipse at 50% 40%, #23242b 0%, var(--bg) 70%);
  background-size: cover;
  background-position: center;
}

/* Per-page hero fallback photography (original site imagery) */
.hero--vegas   { background-image: url("../images/vegas-strip.jpg"); }
.hero--capitol { background-image: url("../images/carson-capitol.jpg"); }
.hero--reno    { background-image: url("../images/reno-skyline.jpg"); }
.hero--tahoe   { background-image: url("../images/lake-tahoe.jpg"); }

.hero-video-stack,
.hero-video-stack video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video-stack video {
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-video-stack video.is-active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(16,17,20,0.55) 0%, rgba(16,17,20,0.35) 45%, rgba(16,17,20,0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  background: rgba(12, 13, 16, 0.55);
  padding: clamp(22px, 3vw, 36px) clamp(18px, 3.5vw, 42px);
  border-radius: 6px;
  border: 1px solid rgba(201, 162, 75, 0.28);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.hero-content h1 { color: var(--ink); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
.hero-content p { color: var(--ink) !important; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7); }
.hero-content .eyebrow { color: var(--gold-bright); }
.hero-content .btn-ghost { color: var(--ink); }
.hero-content .eyebrow { margin-bottom: 1rem; }
.hero-content .hero-rule { margin: 1.4rem auto; }
.hero-content .hero-actions { margin-top: 1.8rem; }

.hero-content .eyebrow { margin-bottom: 1.6rem; }

.hero-rule {
  width: 72px; height: 2px;
  background: var(--gold);
  margin: 2rem auto;
  border: none;
}

.hero-content p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto;
}

.hero-actions { margin-top: 2.6rem; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--gold);
  font-size: 1.4rem;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* Inner-page hero (shorter, no video required) */
.hero--inner { min-height: 62vh; min-height: 62svh; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 15px 38px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-radius: 2px;
  transition: all 0.3s ease;
  border: 1px solid var(--gold);
}

.btn-solid { background: var(--gold); color: var(--bg); }
.btn-solid:hover { background: var(--gold-bright); color: var(--bg); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--gold); color: var(--bg); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
section { padding: 110px 0; }
section.alt { background: var(--bg-alt); }

.section-head { max-width: 760px; margin-bottom: 3.5rem; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.prose p + p { margin-top: 1.4rem; }
.prose p { color: var(--ink-muted); }
.prose strong { color: var(--ink); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 2px solid var(--gold);
  padding: 44px 36px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line); }

.card h3 { color: var(--gold-bright); margin-bottom: 1rem; }
.card p { color: var(--ink-muted); }

.card-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: rgba(201,162,75,0.35);
  line-height: 1;
  display: block;
  margin-bottom: 1.2rem;
}

/* Stats band */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--gold-bright);
  line-height: 1;
}
.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 10px;
}

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }

.team-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 44px 36px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.team-card .role {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 6px 0 18px;
}

.team-portrait {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  margin-bottom: 24px;
}

.team-portrait--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  background: var(--bg-alt);
}

/* Bio (about page full profiles) */
.bio { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; padding: 72px 0; }
.bio + .bio { border-top: 1px solid var(--line); }
.bio-side { position: sticky; top: 110px; }
.bio-side h2 { color: var(--ink); }
.bio-side .role { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.75rem; color: var(--gold); margin-top: 8px; }
.bio-body p { color: var(--ink-muted); }
.bio-body p + p { margin-top: 1.3rem; }
.bio-body h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  color: var(--gold-bright);
  margin: 2.4rem 0 1rem;
}
.bio-body ul { list-style: none; }
.bio-body li { color: var(--ink-muted); padding-left: 22px; position: relative; margin-bottom: 8px; }
.bio-body li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* Clients */
.client-note { text-align: center; color: var(--ink-muted); font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3rem; }

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.client-tile {
  background: #f4f2ec;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.client-tile:hover { border-color: var(--line); transform: translateY(-4px); }
.client-tile img {
  max-height: 64px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* CTA band */
.cta-band {
  text-align: center;
  background:
    linear-gradient(rgba(16,17,20,0.85), rgba(16,17,20,0.85)),
    radial-gradient(ellipse at center, #2a2417 0%, var(--bg) 75%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band h2 { max-width: 720px; margin: 0 auto 1.4rem; }
.cta-band p { color: var(--ink-muted); max-width: 620px; margin: 0 auto 2.4rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }

.contact-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 2px solid var(--gold);
  padding: 44px 36px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.contact-card h3 { margin-bottom: 4px; }
.contact-card .role { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem; color: var(--gold); margin-bottom: 18px; }
.contact-card a.email { font-size: 1rem; letter-spacing: 0.02em; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #0b0c0e;
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.2em; text-transform: uppercase; }
.footer-tag { color: var(--ink-muted); font-size: 0.95rem; margin-top: 14px; max-width: 380px; }

.footer-col h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.75rem; color: var(--gold); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--ink-muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--gold-bright); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-video-stack video { transition: none; }
  .scroll-hint { animation: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .bio { grid-template-columns: 1fr; gap: 28px; }
  .bio-side { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(11, 12, 14, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.05rem; }
  section { padding: 80px 0; }
}


/* --------------------------------------------------------------------------
   Hero sizing refinements
   -------------------------------------------------------------------------- */

/* Desktop: cap the main hero at the video's 16:9 shape so the entire
   video frame is visible — no cropping on wide screens. */
@media (min-width: 961px) {
  .hero:not(.hero--inner) {
    min-height: min(100svh, 56.25vw);
  }
}

/* Small screens: tighter, cleaner hero and sections */
@media (max-width: 480px) {
  section { padding: 64px 0; }
  .hero { padding: 96px 14px 56px; }
  .hero-content { padding: 28px 20px; }
  .hero-content h1 { letter-spacing: 0.08em; }
  .hero-actions { margin-top: 2rem; gap: 12px; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .hero-rule { margin: 1.4rem auto; }
  .scroll-hint { display: none; }
  .stats-band { gap: 28px; padding: 40px 0; }
  .card, .team-card, .contact-card { padding: 34px 26px; }
}


/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */
.contact-form { display: grid; gap: 20px; max-width: 720px; margin: 0 auto; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  transition: border-color 0.25s ease;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .btn { justify-self: center; margin-top: 6px; cursor: pointer; }
@media (max-width: 640px) { .contact-form .form-row { grid-template-columns: 1fr; } }


/* --------------------------------------------------------------------------
   Client logo marquee
   -------------------------------------------------------------------------- */
.logo-marquee {
  display: grid;
  gap: 26px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-row { overflow: hidden; }
.marquee-track {
  display: flex;
  align-items: stretch;
  gap: 26px;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}
.marquee-track--reverse { animation-direction: reverse; animation-duration: 52s; }
.marquee-row:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 13px)); }
}
.logo-marquee .client-tile {
  min-width: 260px;
  min-height: 150px;
  padding: 28px 34px;
  background: linear-gradient(165deg, #faf7f0 0%, #ece5d3 100%);
  border: 1px solid rgba(201, 162, 75, 0.4);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo-marquee .client-tile:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 162, 75, 0.6);
}
.logo-marquee .client-tile img { max-height: 88px; max-width: 200px; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track [aria-hidden="true"] { display: none; }
}
@media (max-width: 560px) {
  .logo-marquee .client-tile { min-width: 200px; min-height: 120px; padding: 20px 24px; }
  .logo-marquee .client-tile img { max-height: 68px; max-width: 150px; }
}

/* --------------------------------------------------------------------------
   Mobile header: keep the brand from being cut off by the menu button
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .header-inner { padding: 0 16px; gap: 10px; }
  .brand { font-size: 0.95rem; letter-spacing: 0.12em; gap: 8px; min-width: 0; }
  .brand-logo { height: 32px; }
}
@media (max-width: 360px) {
  .brand { font-size: 0.85rem; letter-spacing: 0.08em; }
}
