/* Si Acepto Costa Rica — light flexbox redesign */
:root {
  --color-bg: #ffffff;
  --color-surface: #f2f2f2;
  --color-text: #1a1a1a;
  --color-muted: #555555;
  --color-accent: #00aeef;
  --color-accent-dark: #0088bb;
  --color-cta: #e91e8c;
  --color-cta-hover: #c41775;
  --color-success: #61ce70;
  --color-border: #e0e0e0;
  --font-display: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1100px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

.site-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.site-logo-text:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--color-text);
  border-radius: 4px;
  padding: 0.35rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

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

.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
}

.site-nav > ul > li {
  position: relative;
}

.site-nav a,
.site-nav .nav-label {
  display: block;
  padding: 0.55rem 0.75rem;
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav .nav-label:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.site-nav .has-children > .nav-label::after {
  content: " ▾";
  font-size: 0.75em;
  opacity: 0.7;
}

.site-nav .submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  z-index: 50;
}

.site-nav .has-children:hover > .submenu,
.site-nav .has-children:focus-within > .submenu {
  display: block;
}

.site-nav .submenu a {
  white-space: normal;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
}

.site-nav .nav-donate > a {
  background: var(--color-cta);
  color: #fff !important;
  border-radius: 4px;
  margin-left: 0.35rem;
}

.site-nav .nav-donate > a:hover {
  background: var(--color-cta-hover);
}

.header-social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-social a {
  display: flex;
}

.header-social img {
  width: 28px;
  height: 28px;
}

.site-main {
  flex: 1;
  width: 100%;
}

.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.page-header {
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--color-accent);
}

.page-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Homepage */
.hero {
  background: linear-gradient(135deg, #f2f2f2 0%, #e8f7fc 50%, #fce8f3 100%);
  padding: 3rem 1.25rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.hero-copy {
  flex: 1 1 280px;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-copy .lead {
  font-size: 1.15rem;
  color: var(--color-muted);
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  flex: 1 1 240px;
  max-width: 360px;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  background: var(--color-accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 4px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

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

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

.btn-cta:hover {
  background: var(--color-cta-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent-dark) !important;
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff !important;
}

.section {
  padding: 2.5rem 1.25rem;
}

.section-alt {
  background: var(--color-surface);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 1.25rem;
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--color-text);
  border-left: 4px solid var(--color-accent);
  padding-left: 0.75rem;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.card {
  flex: 1 1 260px;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

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

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

.card .meta {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  flex: 1;
}

.content-body h2,
.content-body h3,
.content-body h4 {
  margin: 1.5rem 0 0.6rem;
  line-height: 1.3;
}

.content-body p {
  margin: 0 0 1rem;
}

.content-body ul,
.content-body ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.content-body li {
  margin-bottom: 0.35rem;
}

.content-body img {
  margin: 1rem 0;
  border-radius: 4px;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 1.25rem 0;
  aspect-ratio: 16 / 9;
}

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

.content-body .btn {
  margin: 0.35rem 0.5rem 0.35rem 0;
}

.form-simple {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 520px;
}

.form-simple label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-simple input,
.form-simple select,
.form-simple textarea {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.form-simple textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row-check {
  flex-direction: row !important;
  align-items: center;
  font-weight: 500 !important;
}

.form-row-check input {
  width: auto;
}

.blog-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.blog-card {
  flex: 1 1 280px;
  border: 1px solid var(--color-border);
  padding: 1.25rem;
  background: #fff;
}

.blog-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.blog-preview p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.site-footer {
  background: #1a1a1a;
  color: #ddd;
  padding: 2rem 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-brand {
  flex: 1 1 200px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social img {
  width: 32px;
  height: 32px;
}

.footer-copy {
  width: 100%;
  border-top: 1px solid #333;
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #888;
}

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

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
  }

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

  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav .submenu {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    padding-left: 0.75rem;
    background: transparent;
  }

  .site-nav .nav-donate > a {
    margin-left: 0;
    text-align: center;
  }

  .header-social {
    margin-left: auto;
  }
}
