/* redthirty.com — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --red: #8a2f30;
  --red-dark: #601f20;
  --red-deep: #4a1717;
  --ink: #1c1414;
  --cream: #faf6f1;
  --cream-dim: #f0e8e0;
  --gold: #c9a04f;
  --line: rgba(28, 20, 20, 0.12);
  --max: 1100px;
  --radius: 14px;
  font-size: 17px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .wordmark {
  font-family: 'Quicksand', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--red-deep);
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img {
  height: 26px;
  width: auto;
  display: block;
}

.brand-logo {
  height: 22px;
  width: auto;
  display: block;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: conic-gradient(var(--ink) 0deg 30deg, var(--red) 30deg 60deg, var(--ink) 60deg 90deg, var(--red) 90deg 120deg, var(--ink) 120deg 150deg, var(--red) 150deg 180deg, var(--ink) 180deg 210deg, var(--red) 210deg 240deg, var(--ink) 240deg 270deg, var(--red) 270deg 300deg, var(--ink) 300deg 330deg, var(--red) 330deg 360deg);
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.wordmark {
  font-size: 1.25rem;
  color: var(--red-deep);
}

.wordmark span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--red); text-decoration: none; }
.nav-links a.active { color: var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 0.9rem 1.5rem;
    border-top: 1px solid var(--line);
  }
}

/* Hero */
.hero {
  background: radial-gradient(ellipse at top right, var(--red) 0%, var(--red-dark) 55%, var(--red-deep) 100%);
  color: var(--cream);
  padding: 4.5rem 0 5rem;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 { color: #fff; }

.hero p.lead {
  font-size: 1.15rem;
  max-width: 640px;
  color: rgba(250, 246, 241, 0.88);
}

.hero-motto {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
  color: var(--gold);
  margin: 0.4rem 0 0;
}

.page-hero {
  background: linear-gradient(160deg, var(--red-deep), var(--red-dark) 70%);
  color: var(--cream);
  padding: 3.5rem 0 3rem;
}
.page-hero h1 { color: #fff; margin-bottom: 0.4rem; }
.page-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.page-hero p.lead { color: rgba(250,246,241,0.85); max-width: 620px; font-size: 1.05rem; margin: 0; }

/* Cards / grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(74, 23, 23, 0.1);
}

.card .tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--red);
  background: rgba(138, 47, 48, 0.08);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.7rem;
}

.card h3 { margin-bottom: 0.4rem; }
.card p { margin-bottom: 0.8rem; font-size: 0.95rem; color: #4a3a3a; }
.card a.more { font-weight: 600; font-size: 0.9rem; }

section { padding: 3.5rem 0; }
section.tint { background: var(--cream-dim); }

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

.callout {
  border-left: 3px solid var(--gold);
  background: #fff;
  padding: 1.1rem 1.4rem;
  border-radius: 0 10px 10px 0;
  font-size: 0.92rem;
  color: #3a2c2c;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn:hover { background: var(--red-dark); color: #fff; text-decoration: none; }
.btn.ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: #fff;
}
.btn.ghost:hover { background: rgba(255,255,255,0.12); }

.stat-row {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.stat-row .stat b {
  display: block;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.6rem;
  color: var(--gold);
}
.stat-row .stat span { font-size: 0.85rem; color: rgba(250,246,241,0.75); }

.stat-row.stat-row--single .stat b {
  font-size: clamp(3.4rem, 8vw, 5.4rem);
  line-height: 1;
}
.stat-row.stat-row--single .stat span {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* Home hero red-30 mark */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-red30 {
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  pointer-events: none;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(201, 160, 79, 0.55), 0 20px 60px rgba(0,0,0,0.4);
}
.hero-red30 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}
.hero .wrap { position: relative; z-index: 1; }

@media (max-width: 760px) {
  .hero-red30 { width: 280px; height: 280px; right: -60px; }
}

/* Project logos in page-hero */
.page-hero-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}
.page-hero-logo img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 6px 10px;
}

/* Card pursuit logos on home grid */
.card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.card-head .tag { margin-bottom: 0; }
.card .card-logo {
  height: 28px;
  width: 28px;
  max-width: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

footer {
  background: var(--ink);
  color: rgba(250, 246, 241, 0.7);
  padding: 2.5rem 0;
  font-size: 0.85rem;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer a { color: rgba(250, 246, 241, 0.85); }

.foot-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.disclaimer {
  font-size: 0.82rem;
  color: #6b5757;
  background: var(--cream-dim);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-top: 2.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.carousel {
  margin-top: 1.5rem;
  max-width: 720px;
}
.carousel-stage {
  position: relative;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--ink);
  display: block;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(28, 20, 20, 0.55);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow:hover { background: rgba(28, 20, 20, 0.8); }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-caption {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  color: #4a3a3a;
  min-height: 1.3em;
}
.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
}
.carousel-dot.active { background: var(--red); }
.carousel-empty { color: #6b5757; font-style: italic; }

.photo-album-card {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.photo-album-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(74, 23, 23, 0.1);
  text-decoration: none;
}
.photo-album-icon {
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dim);
  border-radius: 50%;
}
.photo-album-card strong {
  display: block;
  color: var(--red-deep);
  font-family: 'Quicksand', sans-serif;
  font-size: 1.05rem;
}
.photo-album-sub {
  display: block;
  font-size: 0.85rem;
  color: #6b5757;
  margin-top: 0.15rem;
}

.pill-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  color: var(--red-deep);
  font-weight: 500;
}
