/*
Theme Name: BSB61 Lab
Theme URI: https://bsb61.com.br
Author: BSB61 Laboratório de Inovação
Author URI: https://bsb61.com.br
Description: Tema institucional do BSB61 — Laboratório de Inovação em Políticas Públicas. Design Civic Elegance com tipografia Playfair Display + Source Sans 3, paleta verde floresta, azul petróleo e dourado.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bsb61
Tags: one-page, custom-menu, featured-images, translation-ready
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --forest: #1a3a2a;
  --forest-light: #2d5a3f;
  --forest-dark: #0a1a0f;
  --petrol: #1a3a4a;
  --gold: #b8860b;
  --gold-light: #d4a017;
  --cream: #f8f6f0;
  --warm-white: #faf9f6;
  --border-color: #e8e5de;
  --text-primary: #1a1a18;
  --text-secondary: rgba(26, 26, 24, 0.7);
  --text-muted: rgba(26, 26, 24, 0.55);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--warm-white);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; max-width: 1280px; }
}

/* ============================================
   NAVIGATION / HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* WP admin bar offset */
body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  transition: color 0.4s ease;
  z-index: 10;
}

.site-logo img {
  max-height: 50px;
  width: auto;
}

.site-header.scrolled .site-logo {
  color: var(--text-primary);
}

.main-nav {
  display: none;
  list-style: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }
}

.main-nav > li > a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.main-nav > li > a:hover {
  color: var(--gold);
}

.site-header.scrolled .main-nav > li > a {
  color: var(--text-secondary);
}

.site-header.scrolled .main-nav > li > a:hover {
  color: var(--forest);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: -1rem;
  min-width: 280px;
  background: white;
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0;
  z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.625rem 1.5rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-secondary) !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover {
  background-color: var(--cream);
  color: var(--forest) !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle { display: none; }
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
}

.site-header.scrolled .mobile-menu-toggle span {
  background-color: var(--text-primary);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  padding: 2rem 1.5rem;
  z-index: 999;
  overflow-y: auto;
}

body.admin-bar .mobile-nav {
  top: 126px;
}

@media (max-width: 782px) {
  body.admin-bar .mobile-nav {
    top: 126px;
  }
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav a:hover {
  color: var(--forest);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 26, 15, 0.3) 0%,
    rgba(10, 26, 15, 0.55) 40%,
    rgba(10, 26, 15, 0.85) 100%
  );
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-label {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184, 134, 11, 0.4);
  padding: 0.5rem 1.25rem;
  margin-bottom: 2rem;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-title { font-size: 3rem; }
}

@media (min-width: 768px) {
  .hero-title { font-size: 3.5rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4rem; }
}

.hero-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .hero-text { font-size: 1.125rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-gold {
  background-color: var(--gold);
  color: white;
  font-size: 0.8125rem;
  padding: 1rem 2rem;
}

.btn-gold:hover {
  background-color: var(--gold-light);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  font-size: 0.8125rem;
  padding: 0.875rem 1.75rem;
  border: 2px solid var(--forest);
}

.btn-outline:hover {
  background-color: var(--forest);
  color: white;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

@media (min-width: 640px) {
  .btn-full { width: auto; }
}

/* ============================================
   SECTION SHARED STYLES
   ============================================ */
.section-label {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  color: var(--text-primary);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .section-title { font-size: 2rem; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 2.25rem; }
}

.section-header-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header-center .section-title {
  margin-top: 0.5rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.section-about {
  padding: 5rem 0;
  background-color: var(--warm-white);
}

@media (min-width: 1024px) {
  .section-about { padding: 7rem 0; }
}

.about-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
    align-items: start;
  }
}

.about-image-col {
  position: relative;
}

.about-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .about-image { aspect-ratio: 3 / 4; }
}

.about-accent-block {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 26, 15, 0.9), transparent);
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.about-accent-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
}

.about-accent-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.about-text-col .section-label {
  margin-bottom: 0.25rem;
}

.about-text-col .section-title {
  margin-bottom: 1.5rem;
}

.about-text-col .section-title em {
  font-style: italic;
}

.about-paragraph {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .about-stats-row { grid-template-columns: repeat(3, 1fr); }
}

.about-stat {
  padding: 1rem;
  border-left: 3px solid var(--gold);
}

.about-stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest);
  display: block;
}

.about-stat-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: block;
}

/* ============================================
   SOLUTIONS SECTION
   ============================================ */
.section-solutions {
  padding: 5rem 0;
  background-color: var(--cream);
}

@media (min-width: 1024px) {
  .section-solutions { padding: 7rem 0; }
}

.solution-card {
  display: grid;
  gap: 1.5rem;
  background: white;
  border: 1px solid var(--border-color);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

@media (min-width: 768px) {
  .solution-card {
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
  }
}

.solution-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.solution-card-alt {
  background: var(--warm-white);
}

.solution-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(26, 58, 42, 0.08);
  flex-shrink: 0;
}

.solution-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--forest);
}

.solution-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.solution-desc {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.solution-items {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: grid;
  gap: 0.375rem;
}

@media (min-width: 640px) {
  .solution-items { grid-template-columns: repeat(2, 1fr); }
}

.solution-items li {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.solution-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  background-color: var(--gold);
  transform: translateY(-50%);
}

/* ============================================
   SECTORS
   ============================================ */
.sectors-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.sectors-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.sectors-subtitle {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .sectors-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .sectors-grid { grid-template-columns: repeat(5, 1fr); }
}

.sector-chip {
  background: white;
  border: 1px solid var(--border-color);
  padding: 0.875rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sector-chip:hover {
  border-color: var(--forest);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sector-name {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sector-cases {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.6875rem;
  color: var(--gold);
  margin-top: 0.125rem;
}

/* ============================================
   CASES SECTION
   ============================================ */
.section-cases {
  padding: 5rem 0;
  background-color: var(--warm-white);
}

@media (min-width: 1024px) {
  .section-cases { padding: 7rem 0; }
}

.cases-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Case Card */
.case-card {
  display: block;
  background: white;
  border: 1px solid rgba(232, 229, 222, 0.5);
  overflow: hidden;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.case-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.case-card-image {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .case-card-image { height: 220px; }
}

.case-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
}

.case-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  padding: 0.375rem 0.75rem;
  z-index: 2;
}

.case-tag-gold { background-color: var(--gold); }
.case-tag-red { background-color: #dc2626; }
.case-tag-blue { background-color: #1d4ed8; }
.case-tag-amber { background-color: #d97706; }
.case-tag-green { background-color: var(--forest); }
.case-tag-teal { background-color: #0d9488; }
.case-tag-purple { background-color: #7c3aed; }

.case-card-body {
  padding: 1.5rem;
}

.case-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.case-card-subtitle {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.case-card-metrics {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.case-card-metric .metric-value {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--forest);
}

.case-card-metric .metric-label {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.case-card-cta {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--forest);
  transition: color 0.3s ease;
}

.case-card:hover .case-card-cta {
  color: var(--gold);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.section-contact {
  padding: 5rem 0;
  background-color: var(--cream);
}

@media (min-width: 1024px) {
  .section-contact { padding: 7rem 0; }
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 4fr 8fr;
    gap: 4rem;
  }
}

.contact-info-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--forest);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-info-item strong {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
}

.contact-info-item a,
.contact-info-item div {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-info-item a:hover {
  color: var(--forest);
}

.contact-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background-color: rgba(26, 58, 42, 0.08);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--forest);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-social .social-link:hover {
  background-color: var(--forest);
  color: white;
}

.contact-success {
  background-color: rgba(26, 58, 42, 0.08);
  border-left: 4px solid var(--forest);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.contact-success p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  color: var(--forest);
}

/* Form */
.contact-form label {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-color);
  padding: 0.75rem 0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--forest);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
}

.form-group {
  margin-bottom: 1.5rem;
}

.btn-submit,
.section-contact .btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--forest);
  color: white;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover,
.section-contact .btn-gold:hover {
  background-color: var(--forest-light);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--forest-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.footer-brand-desc {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  margin-top: 1rem;
  line-height: 1.7;
}

.footer-powered {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 1rem;
}

.footer-heading {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-info p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-info a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: white;
}

.footer-social svg {
  width: 1rem;
  height: 1rem;
}

/* ============================================
   CASE STUDY SINGLE PAGE
   ============================================ */
.case-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 4rem 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.case-hero .case-hero-overlay {
  position: absolute;
  inset: 0;
}

.case-hero .case-hero-content {
  position: relative;
  z-index: 2;
}

.case-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.case-back-link:hover {
  color: white;
}

.case-hero-tag {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  padding: 0.375rem 0.75rem;
  margin-bottom: 1rem;
}

.case-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .case-hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .case-hero-title { font-size: 3.5rem; }
}

.case-hero-subtitle {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 700px;
}

/* Metrics Bar */
.case-metrics-bar {
  background-color: var(--forest);
}

.case-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
}

@media (min-width: 768px) {
  .case-metrics-grid { grid-template-columns: repeat(4, 1fr); }
}

.case-metrics-grid[data-count="5"],
.case-metrics-grid[data-count="6"] {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .case-metrics-grid[data-count="5"] { grid-template-columns: repeat(5, 1fr); }
  .case-metrics-grid[data-count="6"] { grid-template-columns: repeat(3, 1fr); }
  .case-metrics-grid[data-count="8"] { grid-template-columns: repeat(4, 1fr); }
}

.case-metric-item {
  background-color: rgba(26, 58, 42, 0.9);
  padding: 1.25rem 1rem;
  text-align: center;
}

.case-metric-item .case-metric-value {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: white;
}

.case-metric-item .case-metric-label {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

/* Case Content */
.case-content {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .case-content { padding: 5rem 0; }
}

.case-container {
  max-width: 860px;
}

.case-section {
  margin-bottom: 3rem;
}

.case-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
}

@media (min-width: 1024px) {
  .case-section-title { font-size: 1.75rem; }
}

.case-section-text p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.case-editor-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.case-editor-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.case-editor-content p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.case-editor-content ul,
.case-editor-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.case-editor-content li {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

/* Case Connection */
.case-connection {
  background-color: var(--cream);
  padding: 2rem;
  border-left: 4px solid var(--gold);
  margin-bottom: 3rem;
}

.case-connection-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.case-connection-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Case CTA */
.case-cta {
  background-color: var(--forest);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 2rem;
}

.case-cta h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.case-cta p {
  font-family: 'Source Sans 3', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.alignwide {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ============================================
   ARCHIVE CASES PAGE
   ============================================ */
.archive-hero {
  background-color: var(--forest);
  padding: 8rem 0 4rem;
  text-align: center;
}

.archive-hero h1 {
  color: white;
  font-size: 2.5rem;
}

.archive-hero p {
  font-family: 'Source Sans 3', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  margin-top: 0.75rem;
}

.archive-content {
  padding: 4rem 0;
}

.archive-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 0 4rem;
}

.error-404 h1 {
  font-size: 6rem;
  color: var(--forest);
  margin-bottom: 1rem;
}

.error-404 p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ============================================
   UTILITY: PRINT
   ============================================ */
@media print {
  .site-header,
  .mobile-nav,
  .site-footer,
  .case-cta,
  .contact-form {
    display: none !important;
  }
}
