/* =========================================================
   Centro Comunitário Sonho Real — Stylesheet
   Matches the real site: warm cream/peach backgrounds,
   olive-green buttons, orange promo bar, serif content type
   paired with a bold sans for nav/hero/buttons.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Poppins:wght@400;500;600;700;800&display=swap');

:root{
  /* Backgrounds */
  --bg-a:      #FDF3E3;   /* base page background */
  --bg-b:      #FBE8D1;   /* deeper peach, alternate sections */
  --bg-gold:   #EFDA9E;   /* golden-tan accent section */
  --white:     #FFFFFF;

  /* Text */
  --ink:       #201A12;   /* near-black headings */
  --navy:      #1F2A44;   /* navy body copy variant */
  --brown:     #8B5A34;   /* warm brown body copy variant */
  --muted:     #6b5f4d;

  /* Accents */
  --olive:      #A7C155;
  --olive-dark: #8CAE3E;
  --orange:     #EE7A34;
  --maroon:     #6B2E28;

  /* Type */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-w: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 6px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--bg-a);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{
  font-family: var(--font-serif);
  line-height: 1.18;
  margin: 0 0 0.55em;
  font-weight: 600;
  color: var(--ink);
}
h1{ font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
h2{ font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3{ font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
p{ margin: 0 0 1em; }
.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

:focus-visible{
  outline: 3px solid var(--olive-dark);
  outline-offset: 3px;
}

/* ---------- Eyebrow / label utility ---------- */
.eyebrow{
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.4em;
}

/* ---------- Body copy color variants ---------- */
.copy-brown p, p.copy-brown{ color: var(--brown); }
.copy-navy p, p.copy-navy{ color: var(--navy); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.75em 1.6em;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color .2s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{
  background: var(--olive);
  color: var(--ink);
}
.btn-primary:hover{ background: var(--olive-dark); }
.btn-outline{
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover{ background: var(--ink); color: var(--white); }
.btn-light{
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}
.btn-light:hover{ background: var(--bg-a); }
.btn-outline-light{
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #FFFDF8;
}
.btn-outline-light:hover{ background: #FFFDF8; color: #16213E; }

/* ---------- Top notice bar ---------- */
.notice-bar{
  background: var(--orange);
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6em calc(var(--gutter) + 2rem);
  position: relative;
  text-align: center;
}
.notice-bar a{ text-decoration: underline; text-underline-offset: 3px; }
.notice-close{
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  color: var(--orange);
  border: none;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notice-bar.is-hidden{ display: none; }

/* ---------- Header ---------- */
.site-header{
  background: var(--bg-a);
  border-top: 3px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: uppercase;
}
.brand img{ width: 34px; height: 34px; display: block; }

.main-nav{
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.main-nav a{
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 0.3em 0;
}
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--olive-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after{ transform: scaleX(1); }

/* Program temporarily hidden from nav/footer — remove this rule to bring it back */
.main-nav a[href$="program.html"],
.footer-nav a[href$="program.html"]{ display: none; }

.header-actions{
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
.header-phone{
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}
.nav-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: all .2s ease;
}
.nav-toggle span::before{ position: absolute; top: -7px; }
.nav-toggle span::after{ position: absolute; top: 7px; }

/* ---------- Hero (full-bleed illustration, home) ---------- */
.hero-illustrated{
  position: relative;
  color: var(--white);
  background-size: cover;
  background-position: center;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.hero-illustrated::before{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,20,10,0.55) 0%, rgba(20,20,10,0.15) 45%, transparent 70%);
}
.hero-illustrated .container{ position: relative; z-index: 1; width: 100%; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.hero-illustrated h1{
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--white);
  max-width: 24ch;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  text-shadow: 0 2px 18px rgba(0,0,0,0.25);
}
.hero-illustrated .btn{ margin-top: 1.5rem; }

.hero-watercolor{
  background-color: var(--bg-b);
  text-align: center;
  min-height: 45rem;
}
.hero-watercolor::before{ background: rgba(0,0,0,0.43); }
.hero-watercolor .container{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 50rem;
  gap: 2.5rem;
}
.hero-watercolor h1{ max-width: none; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Simple text hero (interior pages) ---------- */
.hero-simple{
  padding-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-bottom: clamp(1.6rem, 4vw, 2.4rem);
  text-align: center;
}
.hero-simple .container{ max-width: 900px; }
.hero-simple h1{ font-weight: 600; }

/* ---------- Section spacing ---------- */
section{ padding: clamp(2.6rem, 6vw, 4.2rem) 0; }
.section-tight{ padding: clamp(1.6rem, 3vw, 2.4rem) 0; }
.section-soft{ background: var(--bg-b); }
.section-gold{ background: var(--bg-gold); }
.section-cream{ background: var(--bg-a); }
.section-causes{ height: auto; }
.section-empty{
  height: auto;
  background-image:
    linear-gradient(rgba(251, 232, 209, 0.63), rgba(251, 232, 209, 0.63)),
    url('../assets/images/hands-banner.png');
  background-size: cover;
  background-position: center;
}
.section-contact{ height: auto; }
.section-vision{ height: auto; }
.section-roots{ height: auto; }
.section-nutrition{ background: #FDF3E3; }

/* ---------- Split (image + text) ---------- */
.split{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse{
  grid-template-columns: 1.1fr 0.9fr;
}
.split.reverse .split-media{ order: 2; }
.split-media img{
  border-radius: 22px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.split-body{ text-align: left; }
.split-body h2{ text-align: left; margin-bottom: 0.6em; }
.split-body .btn{ margin-top: 1rem; }
.split-heading-block{ text-align: center; margin-bottom: 2rem; }

/* ---------- Gallery ---------- */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.gallery-grid img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 0px;
}
.gallery-item a{ display: block; }
.gallery-caption{
  font-size: 0.95rem;
  color: var(--brown);
  margin-top: 0.6rem;
}
.gallery-wrap{ position: relative; }
.gallery-nav{ display: none; }

/* ---------- Feature rows (program page) ---------- */
.feature-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4.5vw, 3rem) 0;
}
.feature-row.reverse .feature-media{ order: 2; }
.feature-media img{ border-radius: 18px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.feature-kicker{
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

/* ---------- Cards (past causes) ---------- */
.card-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.card-grid-2{ grid-template-columns: repeat(2, 1fr); }
.card{
  display: flex;
  flex-direction: column;
}
.card img{ width: 100%; height: 190px; object-fit: cover; border-radius: 0px; margin-bottom: 1.1rem; }
.card-body{ display: flex; flex-direction: column; flex: 1; }
.card-body h3{ margin-bottom: 0.5rem; }
.card-body p{ font-size: 0.96rem; color: var(--brown); flex: 1; }
.card-body .btn{ align-self: flex-start; margin-top: 0.8rem; }

/* ---------- Cause / fundraising blocks ---------- */
.cause-block{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4.5vw, 3rem) 0;
}
.cause-block.reverse .cause-media{ order: 2; }
.cause-media img{ border-radius: 18px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.cause-stats{
  display: flex;
  gap: 3rem;
  margin-top: 1.3rem;
}
.cause-stats div h4{
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.2em;
}
.cause-stats div p{
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--olive-dark);
  margin: 0;
}

/* ---------- CTA callout (centered heading + button) ---------- */
.cta-callout{
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.cta-callout .btn{ margin-top: 1rem; }

.cta-banner{
  background: #B94E26;
  color: #FFFDF8;
  border-radius: var(--radius);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.12), transparent 45%);
}
.cta-banner h2{ color: #FFFDF8; margin-bottom: 0.3rem; }
.cta-banner p{ color: rgba(255,255,255,0.85); margin: 0; }

/* ---------- Committee / involvement list ---------- */
.option-list{
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.option-list li{
  padding-left: 1.2em;
  position: relative;
  color: var(--navy);
}
.option-list li::before{
  content: "•";
  position: absolute;
  left: 0;
  color: var(--olive-dark);
  font-weight: 700;
}
.option-list strong{ color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.contact-cards{ display: grid; gap: 1.2rem; }
.contact-card{
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border-width: 1px;
  border-style: solid;
  border-color: var(--bg-b);
  border-radius: 8px;
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.15);
}
.contact-icon{
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-b);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card h3{ margin-bottom: 0.2rem; font-size: 1.02rem; }
.contact-card p{ margin: 0; font-size: 0.94rem; color: var(--brown); }

.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .full{ grid-column: 1 / -1; }
.field{ display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label{ font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea{
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.8em 0.9em;
  border: 1.5px solid rgba(32,26,18,0.2);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field textarea:focus{
  outline: none;
  border-color: var(--olive-dark);
}
.field textarea{ resize: vertical; min-height: 120px; }
.form-note{
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.6rem;
}
#form-status{
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.8rem;
  min-height: 1.2em;
}
#form-status.success{ color: var(--olive-dark); }
#form-status.error{ color: var(--orange); }

/* ---------- Team empty state ---------- */
.empty-state{
  text-align: center;
  padding: clamp(2.4rem, 6vw, 4rem) var(--gutter);
  max-width: 620px;
  margin: 0 auto;
}
.empty-state .glyph{
  width: 60px; height: 60px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: var(--bg-b);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--bg-b);
  padding-left: 10px;
  padding-right: 10px;
}
.footer-top{
  padding: clamp(1.2rem, 2.5vw, 1.6rem) 0 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brandrow{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.9rem;
}
.footer-logo{ display: flex; align-items: center; gap: 0.6rem; }
.footer-logo img{ width: 42px; height: 42px; display: block; flex-shrink: 0; }
.footer-logo h1{
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: uppercase;
  margin: 0;
}
.footer-social{ display: flex; flex-wrap: wrap; gap: 0.6rem; }
.footer-social a{
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.footer-social a svg{ width: 16px; height: 16px; }
.footer-social a:hover{ background: var(--ink); }
.footer-links{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2rem;
  flex: 1 1 320px;
  min-width: 0;
  max-width: 100%;
}
.footer-nav{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
}
.footer-info{
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: clamp(2.5rem, 8vw, 6rem);
  text-align: left;
  flex-wrap: wrap;
}
.footer-info h4{
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.footer-info p{ margin: 0 0 0.2rem; font-size: 0.92rem; color: var(--navy); }
.footer-info a{ color: var(--navy); }
.footer-bottom{
  border-top: 1px solid rgba(32,26,18,0.12);
  padding: 1.2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--font-sans);
}
.footer-bottom a{ color: var(--muted); }
.footer-bottom a:hover{ color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .main-nav{
    position: fixed;
    inset: 60px 0 0 0;
    background: var(--bg-a);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem var(--gutter);
    gap: 1.4rem;
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .main-nav.open{ transform: translateX(0); }
  .nav-toggle{ display: block; }
  .header-phone{ display: none; }
  .split, .split.reverse{ grid-template-columns: 1fr; }
  .split.reverse .split-media{ order: 0; }
  .feature-row, .feature-row.reverse{ grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media{ order: 0; }
  .cause-block, .cause-block.reverse{ grid-template-columns: 1fr; }
  .cause-block.reverse .cause-media{ order: 0; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  .card-grid, .card-grid-2{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
  .cta-banner{ flex-direction: column; align-items: flex-start; }
  .footer-top{ flex-direction: column; }
  .footer-brandrow{ flex-direction: column; gap: 1rem; align-items: flex-start; }
  .footer-links{ width: 100%; }
  .footer-nav{ gap: 1.2rem; }
  .footer-info{ flex-direction: column; gap: 1.4rem; text-align: left; }
}

/* Gallery carousel — phones only; tablet/desktop keep the grid above */
@media (max-width: 640px){
  .gallery-grid{
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .gallery-grid::-webkit-scrollbar{ display: none; }
  .gallery-grid .gallery-item{
    flex: 0 0 100%;
    scroll-snap-align: center;
  }
  .gallery-nav{
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 120px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(32,26,18,0.55);
    color: var(--white);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
  }
  .gallery-nav:hover{ background: rgba(32,26,18,0.8); }
  .gallery-nav.prev{ left: 0.4rem; }
  .gallery-nav.next{ right: 0.4rem; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Image placeholders (temporary, until real photos are added) ---------- */
.img-placeholder{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--bg-b), var(--bg-b) 12px,
    var(--bg-a) 12px, var(--bg-a) 24px
  );
  border: 2px dashed var(--olive-dark);
  color: var(--brown);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 1rem;
  line-height: 1.4;
}
.img-placeholder span{ max-width: 22ch; }