/* Shared Styles for Avenue Public Affairs */

:root {
  --navy: #0d1b2a;
  --charcoal: #1b263b;
  --blue: #223a5e;
  --purple: #593b94;
  --purple-dark: #482d7a;
  --gold: #593b94;
  --gold-dark: #482d7a;
  --cream: #f8f5ef;
  --light: #f5f7fa;
  --white: #ffffff;
  --text: #243044;
  --muted: #657083;
  --border: rgba(13, 27, 42, 0.12);
  --shadow: 0 24px 60px rgba(13, 27, 42, 0.14);
  --radius: 22px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--purple);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--purple);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.12;
  color: var(--navy);
}

h1 {
  font-size: clamp(3rem, 7vw, 6.4rem);
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.1rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
  font-size: 1.02rem;
}

.lead {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: rgba(255,255,255,0.82);
  max-width: 720px;
  margin-top: 26px;
}

.section-lead {
  max-width: 760px;
  margin-top: 18px;
  font-size: 1.12rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 18px 36px rgba(89, 59, 148, 0.3);
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  transition: 0.25s ease;
}

.site-header.scrolled {
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.14);
}

.nav {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(89, 59, 148, 0.55);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--purple);
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-links a {
  opacity: 0.88;
  transition: 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--purple);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero.dark {
  background: linear-gradient(90deg, rgba(13,27,42,0.94) 0%, rgba(13,27,42,0.74) 48%, rgba(13,27,42,0.34) 100%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=2400&q=80") center/cover no-repeat;
  color: var(--white);
}

.hero.video-bg {
  background: none;
  color: var(--white);
}

.hero.video-bg video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero.video-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 27, 42, 0.55);
  z-index: 2;
}

.hero.video-bg .hero-content {
  z-index: 3;
}

.hero.video-bg h1 {
  color: var(--cream);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero.dark h1 {
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(0deg, var(--white), transparent);
  opacity: 0.16;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 160px 0 110px;
  max-width: 930px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.hero-note {
  margin-top: 46px;
  padding-left: 22px;
  border-left: 2px solid var(--purple);
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  font-size: 0.98rem;
}

.stats {
  margin-top: -70px;
  position: relative;
  z-index: 5;
}

.stats-grid {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
}

.stat {
  padding: 34px 28px;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 10px;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

section {
  padding: 110px 0;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255,255,255,0.72);
}

.services-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  min-height: 295px;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: 0.25s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.25s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--purple-dark);
  font-weight: 900;
  margin-bottom: 26px;
}

.service-card p {
  margin-top: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.image-panel {
  min-height: 520px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(13,27,42,0.1), rgba(13,27,42,0.42)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1400&q=80") center/cover no-repeat;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.image-badge {
  position: absolute;
  left: 28px;
  bottom: 28px;
  right: 28px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.55);
}

.image-badge strong {
  color: var(--navy);
  display: block;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.feature-list {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}

.feature {
  padding: 24px;
  border-radius: 18px;
  background: var(--light);
  border: 1px solid var(--border);
}

.feature strong {
  display: block;
  color: var(--navy);
  margin-bottom: 6px;
}

.industry-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.industry {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  color: var(--navy);
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.industry-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.industry-icon {
  width: 28px;
  height: 28px;
  background: var(--light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--purple-dark);
  font-size: 0.85rem;
}

.case-study-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.case-study-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.case-study-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.case-study-image {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
}

.case-study-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.case-study-tag {
  display: inline-block;
  background: var(--cream);
  color: var(--purple-dark);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  width: fit-content;
}

.case-study-title {
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: 12px;
  font-family: "Libre Baskerville", Georgia, serif;
}

.case-study-description {
  color: var(--muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.case-study-cta {
  color: var(--purple);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.team-member {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: 0.25s ease;
}

.team-member:hover {
  box-shadow: var(--shadow);
}

.team-header {
  padding: 32px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--light);
  transition: 0.25s ease;
}

.team-member.open .team-header {
  background: var(--cream);
}

.team-info h3 {
  margin-bottom: 6px;
}

.team-title {
  color: var(--purple-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.team-toggle {
  color: var(--purple);
  font-size: 1.5rem;
  transition: 0.25s ease;
}

.team-member.open .team-toggle {
  transform: rotate(180deg);
}

.team-bio {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.team-member.open .team-bio {
  max-height: 500px;
}

.team-bio-content {
  padding: 0 32px 32px;
  border-top: 1px solid var(--border);
}

.team-bio-content p {
  margin-bottom: 12px;
}

.team-bio-content p:last-child {
  margin-bottom: 0;
}

.contact {
  background: linear-gradient(135deg, var(--navy), var(--charcoal));
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  margin-top: 48px;
}

.contact-card, .form-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(13, 27, 42, 0.42);
  padding: 42px;
  backdrop-filter: blur(10px);
}

.contact-card a {
  color: var(--purple);
  font-weight: 800;
}

.contact-row {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row h3 {
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-row p {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
}

form {
  display: grid;
  gap: 14px;
}

input, textarea, select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: 0.25s ease;
}

input:focus, textarea:focus, select:focus {
  background: rgba(255,255,255,0.18);
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(89, 59, 148, 0.1);
}

input::placeholder, textarea::placeholder {
  color: rgba(255,255,255,0.64);
}

select {
  color: rgba(255,255,255,0.85);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.footer {
  background: #07111f;
  color: rgba(255,255,255,0.72);
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 34px;
}

.footer strong {
  color: var(--white);
  display: block;
  margin-bottom: 12px;
}

.footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255,255,255,0.72);
}

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

.copyright {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.48);
}

/* Responsive */
@media (max-width: 1200px) {
  .case-study-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 50px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(13,27,42,0.96);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    padding: 24px;
  }

  .nav-links.open {
    display: flex;
  }

  .stats-grid,
  .services-grid,
  .industry-grid,
  .split,
  .team-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .case-study-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  section {
    padding: 80px 0;
  }

  .hero-content {
    padding-top: 140px;
  }

  .image-panel {
    min-height: 420px;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .nav-links {
    gap: 16px;
  }
}
