/* ===== Hispanic American Artist Group — styles ===== */

:root {
  --red:    #ec2f14;
  --green:  #74bf16;
  --yellow: #fbc400;
  --cyan:   #12b0ec;
  --blue:   #2e57a6;

  --ink:     #20223a;
  --ink-soft:#4a4d68;
  --white:   #ffffff;
  --tint:    #f4f9fd;
  --tint-2:  #fff7e8;
  --dark:    #181a30;

  --maxw: 1180px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -18px rgba(32,34,58,.28);
  --shadow-lg: 0 30px 60px -22px rgba(32,34,58,.4);

  --font-head: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 104px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 22px -8px rgba(236,47,20,.7); }
.btn-primary:hover { background: #d72810; box-shadow: 0 16px 30px -10px rgba(236,47,20,.8); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-block { width: 100%; }
.btn-donate {
  background: var(--cyan); color: #fff; padding: 10px 20px; font-size: .95rem;
  box-shadow: 0 8px 18px -8px rgba(18,176,236,.8);
}
.btn-donate:hover { background: #0c9bd1; transform: translateY(-3px); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eef1f5;
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 28px -20px rgba(32,34,58,.5); }
.header-inner { display: flex; align-items: center; gap: 18px; padding: 8px 22px; }
.brand img { height: 76px; width: auto; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  color: var(--ink); padding: 8px 12px; border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--tint); color: var(--cyan); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  background: var(--tint); border: 1px solid #e3e9ef; color: var(--ink-soft);
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  transition: background .15s ease;
}
.lang-toggle:hover { background: #e8f1f8; }
.lang-toggle .lang-opt.active { color: var(--cyan); }
.lang-sep { opacity: .4; margin: 0 3px; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 24px; height: 3px; background: var(--ink); border-radius: 3px; transition: transform .25s ease, opacity .2s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url('/assets/hero.webp') center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { to { transform: scale(1.16); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(110deg, rgba(20,22,46,.93) 0%, rgba(20,22,46,.62) 48%, rgba(18,176,236,.34) 100%);
}
.hero-content { padding: 118px 22px 150px; max-width: 760px; }
.badge {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { color: #fff; margin-bottom: 18px; text-shadow: 0 4px 24px rgba(0,0,0,.3); }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #eaf3f8; margin-bottom: 30px; max-width: 600px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: 90px; }
.hero-wave path { fill: var(--white); }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.section-sub { color: var(--ink-soft); font-size: 1.08rem; margin-top: 10px; }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px; margin-bottom: 14px;
}
.eyebrow-red    { color: var(--red);    background: rgba(236,47,20,.1); }
.eyebrow-green  { color: #5c9a10;       background: rgba(116,191,22,.16); }
.eyebrow-cyan   { color: #0c8fc0;       background: rgba(18,176,236,.13); }
.eyebrow-yellow { color: #b98c00;       background: rgba(251,196,0,.2); }

/* ===== Split layout ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-text h2 { margin-bottom: 16px; }
.split-text p { color: var(--ink-soft); margin-bottom: 14px; }
.split-reverse .split-media { order: 2; }

.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  position: relative; z-index: 2; width: 100%;
  aspect-ratio: 1/1; object-fit: cover;
}
.media-blob { position: absolute; border-radius: 50%; z-index: 1; filter: blur(2px); opacity: .85; }
.blob-cyan   { width: 130px; height: 130px; background: var(--cyan);   top: -28px; left: -28px; }
.blob-yellow { width: 90px;  height: 90px;  background: var(--yellow); bottom: -26px; right: -22px; }
.blob-red    { width: 120px; height: 120px; background: var(--red);    bottom: -30px; left: -26px; }
.blob-green  { width: 96px;  height: 96px;  background: var(--green);  top: -26px; right: -22px; }

.check-list { list-style: none; margin-top: 18px; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 10px; font-weight: 600; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

.quote-card {
  margin-top: 24px; padding: 22px 24px; background: #fff;
  border-left: 5px solid var(--yellow); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); font-style: italic; color: var(--ink-soft);
}

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow); border: 1px solid #eef1f5;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 60px; height: 60px; border-radius: 16px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 30px; height: 30px; }
.icon-red    { background: rgba(236,47,20,.12);  color: var(--red); }
.icon-cyan   { background: rgba(18,176,236,.12); color: var(--cyan); }
.icon-yellow { background: rgba(251,196,0,.18);  color: #c79700; }
.icon-green  { background: rgba(116,191,22,.16); color: #5c9a10; }
.icon-red svg, .icon-yellow svg { fill: currentColor; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); }

.help-card { position: relative; }
.help-donate { border: 2px dashed var(--cyan); }
.soon-tag {
  display: inline-block; margin-top: 14px; font-family: var(--font-head);
  font-weight: 700; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase;
  color: #0c8fc0; background: rgba(18,176,236,.12); padding: 5px 12px; border-radius: 999px;
}
.help-cta { text-align: center; margin-top: 42px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ein-note { color: var(--ink-soft); font-size: .92rem; }

/* ===== Achievements (dark) ===== */
.section-dark { background: var(--dark); color: #eef0f6; }
.section-dark h2 { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 52px; }
.stat {
  text-align: center; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); padding: 30px 16px;
}
.stat-num {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1;
  background: linear-gradient(120deg, var(--cyan), var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat:nth-child(2) .stat-num { background: linear-gradient(120deg, var(--yellow), var(--red)); -webkit-background-clip: text; background-clip: text; }
.stat:nth-child(3) .stat-num { background: linear-gradient(120deg, var(--red), var(--yellow)); -webkit-background-clip: text; background-clip: text; }
.stat:nth-child(4) .stat-num { background: linear-gradient(120deg, var(--green), var(--cyan)); -webkit-background-clip: text; background-clip: text; }
.stat-label { display: block; margin-top: 8px; color: #b9bdd0; font-size: .96rem; }

.achievement-media { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; }
.achievement-media figure { background: rgba(255,255,255,.05); border-radius: var(--radius); overflow: hidden; }
.achievement-media img { width: 100%; height: 300px; object-fit: cover; }
.achievement-media figcaption { padding: 14px 18px; color: #b9bdd0; font-size: .92rem; }

/* ===== Challenge ===== */
.section-challenge {
  background:
    radial-gradient(circle at 12% 20%, rgba(251,196,0,.16), transparent 45%),
    radial-gradient(circle at 88% 80%, rgba(236,47,20,.14), transparent 45%),
    var(--tint-2);
}
.challenge-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: #fff; border-radius: var(--radius); padding: 48px 44px;
  box-shadow: var(--shadow-lg); border-top: 6px solid var(--red);
}
.challenge-card h2 { margin-bottom: 16px; }
.challenge-card p { color: var(--ink-soft); margin-bottom: 14px; }
.challenge-card .btn { margin-top: 12px; }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  border: 0; padding: 0; cursor: pointer; background: #eee;
  border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1/1;
  box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center;
  background: rgba(15,16,30,.92); padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 84vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.14); color: #fff;
  border: 0; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  font-size: 1.6rem; line-height: 1; transition: background .15s ease;
}
.lb-btn:hover { background: rgba(255,255,255,.3); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ===== Contact ===== */
.contact-list { list-style: none; margin-top: 22px; }
.contact-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-weight: 600; }
.contact-ico {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(18,176,236,.12); color: var(--cyan);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-form { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 12px 14px; border: 1.5px solid #e3e9ef; border-radius: var(--radius-sm);
  background: var(--tint); transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); background: #fff;
}
.field textarea { resize: vertical; }
.form-note { text-align: center; color: var(--ink-soft); font-size: .85rem; margin-top: 12px; }
.form-status { text-align: center; font-weight: 700; margin-top: 12px; }
.form-status.ok { color: #5c9a10; }
.form-status.err { color: var(--red); }

/* ===== Footer ===== */
.site-footer { background: var(--dark); color: #c7cadb; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; padding: 50px 22px 36px; flex-wrap: wrap; }
.footer-brand { max-width: 340px; }
.footer-brand img { height: 56px; width: auto; background: #fff; border-radius: 12px; padding: 6px 10px; margin-bottom: 14px; }
.footer-brand p { font-size: .95rem; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: #c7cadb; font-family: var(--font-head); font-weight: 600; }
.footer-nav a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .86rem; color: #8e92a8; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.cards .card:nth-child(2).reveal { transition-delay: .12s; }
.cards .card:nth-child(3).reveal { transition-delay: .24s; }
.stats .stat:nth-child(2).reveal { transition-delay: .1s; }
.stats .stat:nth-child(3).reveal { transition-delay: .2s; }
.stats .stat:nth-child(4).reveal { transition-delay: .3s; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid #eef1f5; padding: 10px 22px 18px;
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 8px; border-radius: 8px; }
  .nav-burger { display: flex; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse .split-media { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .achievement-media { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding: 80px 22px 120px; }
  .section { padding: 62px 0; }
  .challenge-card { padding: 36px 26px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 26px; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
  .header-inner { gap: 10px; }
  .brand img { height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
