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

:root {
  --charcoal: #2C2C2C;
  --white: #FFFFFF;
  --teal: #0891B2;
  --warm-gray: #F8F7F4;
  --beige: #E8E5DF;
  --teal-dark: #067a96;
  --text-secondary: #6B6B6B;
  --radius: 4px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--teal-dark);
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--beige);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
}

.logo span {
  color: var(--teal);
}

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

.nav-links a {
  color: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: var(--charcoal);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 80px 0;
}

.hero__content h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero__content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  border: none;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn--teal {
  background: var(--teal);
  color: var(--white);
}

.btn--teal:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

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

.btn--charcoal {
  background: var(--charcoal);
  color: var(--white);
}

.btn--charcoal:hover {
  background: #3a3a3a;
  color: var(--white);
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--warm-gray);
}

.section--beige {
  background: var(--beige);
}

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

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section__header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.section--charcoal .section__header p {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Report Cards ===== */
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.report-card {
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.report-card__tag {
  display: inline-block;
  background: var(--warm-gray);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.report-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.report-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.report-card__meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.report-card__link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== Categories ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.1);
  color: var(--charcoal);
}

.category-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.category-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.category-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ===== Newsletter CTA ===== */
.newsletter-cta {
  text-align: center;
}

.newsletter-cta h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 12px;
}

.newsletter-cta p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.newsletter-cta .inline-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-cta .inline-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

/* ===== Resource Listing ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.resource-list {
  display: grid;
  gap: 24px;
}

.resource-item {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  transition: box-shadow 0.2s;
}

.resource-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.resource-item__body {
  flex: 1;
}

.resource-item__body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.resource-item__body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.resource-item__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== Featured Reports ===== */
.featured-report {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--beige);
}

.featured-report:last-child {
  border-bottom: none;
}

.featured-report__content h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.featured-report__content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.featured-report__findings {
  background: var(--warm-gray);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.featured-report__findings h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  color: var(--teal);
}

.featured-report__findings ul {
  list-style: disc;
  padding-left: 18px;
}

.featured-report__findings li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.5;
}

.featured-report__visual {
  background: var(--warm-gray);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.featured-report__visual .doc-icon {
  text-align: center;
  color: var(--text-secondary);
}

.featured-report__visual .doc-icon svg {
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
  color: var(--teal);
}

.featured-report__visual .doc-icon p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ===== Download Modal Inline ===== */
.download-form {
  display: none;
  margin-top: 20px;
  padding: 24px;
  background: var(--warm-gray);
  border-radius: var(--radius);
  border: 1px solid var(--beige);
}

.download-form.visible {
  display: block;
}

.download-form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.download-form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.download-form input[type="email"]:focus {
  outline: none;
  border-color: var(--teal);
}

.success-msg {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  margin-top: 20px;
  color: #065f46;
  font-weight: 600;
}

.success-msg.visible {
  display: flex;
}

.success-msg svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--teal);
}

/* ===== Forms (Newsletter / About) ===== */
.form-page {
  padding: 80px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

/* ===== Blog / Insights ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s;
}

.article-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.article-card__date {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.article-card h3 a {
  color: var(--charcoal);
}

.article-card h3 a:hover {
  color: var(--teal);
}

.article-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== Blog Post ===== */
.post-header {
  padding: 64px 0 32px;
  text-align: center;
}

.post-header h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.post-header__meta {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.post-body {
  padding: 0 0 80px;
}

.post-body h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
}

.post-body h3 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
}

.post-body p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.post-body ul, .post-body ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.post-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ===== Page Header ===== */
.page-header {
  padding: 56px 0;
  background: var(--warm-gray);
  border-bottom: 1px solid var(--beige);
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
}

/* ===== Image Band ===== */
.image-band {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 40px 0;
}

/* ===== About ===== */
.about-content {
  padding: 60px 0 80px;
}

.about-content h2 {
  font-size: 1.5rem;
  margin: 36px 0 12px;
}

.about-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-content p:first-of-type {
  font-size: 1.15rem;
  color: var(--charcoal);
}

/* ===== Privacy ===== */
.legal-content {
  padding: 60px 0 80px;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
}

/* ===== 404 ===== */
.page-404 {
  text-align: center;
  padding: 120px 0;
}

.page-404 h1 {
  font-size: 5rem;
  color: var(--teal);
  margin-bottom: 16px;
}

.page-404 p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 0 32px;
  font-size: 0.9rem;
}

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

.footer-grid h4 {
  color: var(--white);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  font-size: 0.88rem;
  text-decoration: none;
}

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

.footer-brand p {
  line-height: 1.6;
  max-width: 280px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .report-grid,
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-report {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--beige);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

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

  .hero__content h1 {
    font-size: 2rem;
  }

  .hero {
    min-height: 400px;
  }

  .report-grid,
  .article-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-cta .inline-form {
    flex-direction: column;
  }

  .resource-item {
    flex-direction: column;
    gap: 12px;
  }

  .section {
    padding: 56px 0;
  }

  .section__header {
    margin-bottom: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
