@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Open+Sans:wght@400;600;700&display=swap');

/* ── Variables ── */
:root {
  --blue: #2B3A8C;
  --blue-light: rgba(43, 58, 140, 0.06);
  --bg: #ffffff;
  --surface: #f4f6f7;   /* matches logo background exactly */
  --text: #1A1A2E;
  --muted: #555566;
  --border: #E2E0DB;
  --max: 1100px;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Open Sans', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: var(--sans); }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface); /* always matches logo background */
  transition: box-shadow 0.25s;
}
.nav.scrolled {
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo img { height: 38px; }
.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.lang-toggle {
  background: none;
  border: 1.5px solid var(--border);
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: all 0.2s;
  line-height: 1.5;
}
.lang-toggle:hover { border-color: var(--blue); color: var(--blue); }

/* ── Sun animation ── */
@keyframes spin-sun {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hero-sun {
  width: 180px;
  height: 180px;
  animation: spin-sun 14s linear infinite;
}
@media (max-width: 768px) {
  .hero-sun { width: 110px; height: 110px; }
}

/* ── Hero CTA ── */
.hero-cta {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.9rem 2.25rem;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.hero-cta:hover { opacity: 0.88; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--blue);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 2rem;
  width: 100%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  line-height: 1.08;
  font-weight: 400;
  color: var(--text);
  max-width: 14ch;
  margin-bottom: 1.75rem;
}
.hero p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.75;
}

/* ── Generic Section ── */
.section { padding: 6rem 2rem; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section--surface { background: var(--surface); }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.section-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 2.5rem;
}

/* ── About (2-col) ── */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.about-body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--muted);
}
.edge-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.edge-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.edge-list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}
.edge-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: var(--bg);
  padding: 2.25rem 2rem;
}
.section--surface .service-card { background: var(--surface); }
.service-card h3 {
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.service-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── Team List (vertical rows) ── */
.team-list { display: flex; flex-direction: column; }
.team-row {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.team-row:last-child { border-bottom: 1px solid var(--border); }
@media (max-width: 640px) {
  .team-row { flex-direction: column; gap: 1.5rem; padding: 2.25rem 0; }
}
.team-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .team-avatar { width: 100px; height: 100px; }
}
.team-content { flex: 1; min-width: 0; }
.team-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}
.team-role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.team-bio {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--muted);
}
.team-bio p { margin-bottom: 0.75rem; }
.team-bio p:last-child { margin-bottom: 0; }
.team-bio a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ── Press ── */
.press-loading {
  color: var(--muted);
  font-size: 0.9375rem;
  padding: 2rem 0;
}
.press-clients { display: flex; flex-direction: column; gap: 4rem; }
.press-client-name {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .press-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .press-grid { grid-template-columns: 1fr; } }

.press-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.18s, border-color 0.18s;
  overflow: hidden;
}
.press-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(43, 58, 140, 0.09);
}
.press-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--surface);
}
.press-card-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.press-card-placeholder span {
  font-family: var(--serif);
  font-size: clamp(0.875rem, 2vw, 1.1rem);
  color: var(--blue);
  text-align: center;
  line-height: 1.3;
  opacity: 0.85;
}
.press-card-body { padding: 1rem 1.125rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.press-card-outlet {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.press-card-title {
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
}

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--surface);
  padding: 5rem 2rem 4rem;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--blue);
}
.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.page-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.75;
}

/* ── Footer ── */
.footer {
  background: var(--text);
  color: #ccc;
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-wordmark {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.footer-contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.5rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-size: 0.8rem;
  color: #666;
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid #2e2e3e;
  margin-top: 0.5rem;
}
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Mobile nav ── */
@media (max-width: 540px) {
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.75rem; }
}
