/* =========================
   1. Design tokens
   ========================= */
:root {
  --bg: #efeae1;
  --surface: #f8f6f1;
  --surface-soft: #e9e3db;
  --surface-tag: #dde3de;
  --text: #12233d;
  --text-soft: #4a5f7a;
  --accent: #cf722c;
  --accent-dark: #a95c20;
  --accent-green: #25684d;
  --border: rgba(18, 35, 61, 0.12);
  --shadow: 0 20px 45px rgba(18, 35, 61, 0.08);
  --container: 1180px;
  --section-gap: 2rem;
  --card-padding: 2rem;
}

/* =========================
   2. Base reset
   ========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

/* =========================
   3. Layout helpers
   ========================= */
.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 2rem 0;
}

.section-flat,
.content-card,
.program-card,
.video-shell,
.site-footer {
  background: var(--surface);
}

.content-card,
.program-card,
.video-shell {
  padding: var(--card-padding);
  box-shadow: var(--shadow);
}

.content-stack,
.labor-stack {
  display: grid;
  gap: 1.5rem;
}

/* =========================
   4. Header and navigation
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 241, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: auto;
  height: 160px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  padding: 0.8rem 1rem;
  font-weight: 700;
  color: #566273;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav .nav-cta {
  background: var(--accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
}

/* =========================
   5. Hero section
   ========================= */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-home {
  min-height: calc(100vh - 84px);
}

.hero-bg-image,
.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-backdrop {
  background: linear-gradient(90deg, rgba(18, 35, 61, 0.62) 0%, rgba(18, 35, 61, 0.34) 42%, rgba(18, 35, 61, 0.12) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
}

.hero-grid-overlay {
  min-height: calc(100vh - 84px);
}

.hero-copy {
  max-width: 880px;
}

.hero-copy-center,
.hero-copy-overlay {
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 700;
}

.hero-lead {
  margin: 1rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #ffe7d5;
}

.hero-text {
  max-width: 760px;
  margin: 1rem auto 0;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: rgba(255, 255, 255, 0.96);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-actions-center {
  justify-content: center;
}

/* =========================
   6. Buttons and labels
   ========================= */
.button,
.text-button,
.report-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.95rem 1.45rem;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.text-button {
  background: var(--accent);
  color: #fff;
}

.text-button:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.section-title {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  background: var(--surface-tag);
  color: var(--text);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-subtitle {
  margin: 0 0 1.4rem;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-soft);
}

/* =========================
   7. Home sections
   ========================= */
.split-showcase,
.labor-home-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
}

.labor-home-copy {
  padding: 1rem 0;
}

.video-frame {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   8. Slideshow
   ========================= */
.slideshow {
  position: relative;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.slides-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.slide {
  display: none;
  position: absolute;
  inset: 0;
}

.slide.is-active {
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 1.6rem;
  transform: translateY(-50%);
}

.slideshow-prev {
  left: 12px;
}

.slideshow-next {
  right: 12px;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem;
}

.slideshow-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1px solid rgba(18, 35, 61, 0.14);
  border-radius: 999px;
  background: #d8d2ca;
}

.slideshow-dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

/* =========================
   9. Page titles and text blocks
   ========================= */
.page-title-strip {
  padding: 2.4rem 0 0.85rem;
}

.page-title-strip.clean-title .container {
  text-align: center;
}

.page-title-strip h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.long-copy {
  max-width: 78ch;
}

.long-copy-wide,
.wide-copy-card .section-heading,
.report-copy p {
  max-width: none;
}

.content-subheading {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-soft);
}

/* =========================
   10. Lists and objectives
   ========================= */
.feature-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.legacy-list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1.15rem 1.15rem 1.15rem 1rem;
  background: var(--surface-soft);
  border-radius: 22px;
}

.legacy-list li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: #e7e3d8;
  color: var(--accent-green);
  font-weight: 800;
}

/* =========================
   11. Reports section
   ========================= */
.reports-card-split {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 360px);
  align-items: center;
}

.report-copy {
  padding-right: 3.5rem;
}

.reports-intro {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.report-links {
  display: grid;
  gap: 0.95rem;
  justify-self: end;
  width: 100%;
  max-width: 320px;
  margin-right: 1.25rem;
}

.report-pill {
  width: 100%;
  border-color: rgba(18, 35, 61, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--text-soft);
}

.report-pill.disabled {
  opacity: 1;
  pointer-events: none;
}

/* =========================
   12. Team / Conócenos
   ========================= */
.team-card-match {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  align-items: center;
}

.team-media-match {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Conócenos image size:
   change width / max-width here if you want the image bigger or smaller later. */
.team-image-smaller {
  width: min(100%, 145px);
  max-width: 290px;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
}

.team-copy-match .role {
  margin: 0 0 0.9rem;
  color: var(--accent-dark);
  font-weight: 700;
}

.team-copy-match p:last-of-type {
  margin-bottom: 0;
}

/* =========================
   13. Program cards
   ========================= */
.program-card {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center;
}

.program-card.reverse {
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
}

.program-card.reverse .program-copy {
  order: 2;
}

.program-card.reverse .program-media {
  order: 1;
}

.program-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* =========================
   14. Contact page
   ========================= */
.contact-grid-match {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: start;
}

.donation-card-match,
.contact-card-match {
  padding: 1.9rem;
}

.contact-visual {
  margin-bottom: 1.5rem;
}

.contact-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.bank-box,
.contact-cards-list li {
  padding: 1rem 1.2rem;
  background: var(--surface-soft);
}

.bank-box {
  display: grid;
  gap: 0.2rem;
  margin-top: 1rem;
}

.contact-cards-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-cards-list span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.contact-cards-list strong,
.contact-cards-list a {
  font-size: 1.08rem;
}

.hidden-actions {
  display: none;
}

/* =========================
   15. Footer
   based on the original public site:
   centered logo + direct contact details + copyright line.
   ========================= */

.site-footer {
  padding: 64px 0;
  background: var(--color-surface, #f3f2ed);
  border-top: 1px solid rgba(15, 44, 90, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo {
  width: 150px;
  height: auto;
  display: block;
}

/* Footer contact info */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-contact p {
  margin: 0;
  color: var(--color-heading, #0d2c5a);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--color-accent, #d9792b);
}

/* Right footer section */
.footer-about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-heading {
  margin: 0 0 20px;
  color: var(--color-heading, #0d2c5a);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
}

/* Social icons */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.social-link {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 44, 90, 0.1);
  background: #ffffff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-link i {
  font-size: 1.35rem;
  line-height: 1;
}

.social-x {
  color: #111111;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 44, 90, 0.08);
  border-color: transparent;
}

/* Brand colors */
.social-facebook {
  color: #1877f2;
}

.social-twitter {
  color: #111111;
}

.social-instagram {
  color: #e1306c;
}

.social-whatsapp {
  color: #25d366;
}

.social-youtube {
  color: #ff0000;
}

/* =========================
   FOOTER RESPONSIVE
========================= */

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 48px 0;
  }

  .footer-logo {
    width: 130px;
  }

  .social-link {
    width: 48px;
    height: 48px;
  }
}

/* =========================
   16. Responsive rules
   ========================= */
@media (max-width: 960px) {
  .split-showcase,
  .labor-home-grid,
  .reports-card-split,
  .team-card-match,
  .program-card,
  .program-card.reverse,
  .contact-grid-match {
    grid-template-columns: 1fr;
  }

  .program-card.reverse .program-copy,
  .program-card.reverse .program-media {
    order: initial;
  }

  .report-copy {
    padding-right: 0;
  }

  .report-links {
    justify-self: start;
    max-width: 360px;
    margin-right: 0;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav .nav-cta {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 1.2rem));
  }

  .content-card,
  .program-card,
  .video-shell {
    padding: 1.25rem;
  }

  .hero-home,
  .hero-grid-overlay {
    min-height: calc(82vh - 84px);
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 4.2rem);
  }

  .section-title {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .section-subtitle {
    font-size: 1.35rem;
  }

  .slideshow-arrow {
    width: 40px;
    height: 40px;
  }

  .legacy-list li {
    border-radius: 18px;
  }

  .footer-brand img {
    height: 62px;
  }
}
