/* ==========================================================
   Sítio Ecológico Espaço Verde — style.css
   1. Tokens  2. Base  3. Layout  4. Header  5. Hero
   6. Seções  7. Galeria/Vídeos  8. Formulário  9. Footer
   10. Utilitários / Responsivo
   ========================================================== */

/* 1. TOKENS */
:root {
  --green-900: #123a17;
  --green-700: #1f6b27;
  --green-500: #2e7d32;
  --lime: #c5e063;
  --sand: #f6f1e7;
  --white: #fff;
  --ink: #1d261a;
  --muted: #5a6654;
  --escola: #2e7d32;
  --igreja: #2f7fd1;
  --familia: #c0562a;
  --empresa: #8e4cb3;
  --font-title: 'Oswald', Impact, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .12);
  --header-h: 72px;
}

/* 2. BASE */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-title); text-transform: uppercase; line-height: 1.15; letter-spacing: .4px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; z-index: 100; background: var(--lime); padding: 12px 20px; font-weight: 700; }
.skip:focus { left: 0; top: 0; }

/* 3. LAYOUT */
.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.section { padding: 96px 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--green-900); color: var(--white); }
.title { margin-bottom: 40px; }
.title--center { text-align: center; }
.eyebrow { display: block; font-size: .8rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--green-500); margin-bottom: 8px; }
.section--dark .eyebrow { color: var(--lime); }
.title h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--green-900); }
.section--dark .title h2 { color: var(--white); }
.title h2::after { content: ""; display: block; width: 64px; height: 4px; background: var(--lime); margin-top: 14px; border-radius: 2px; }
.title--center h2::after { margin-inline: auto; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.btn { display: inline-block; padding: 14px 30px; border-radius: 999px; border: 2px solid var(--lime); background: var(--lime); color: var(--green-900); font-family: var(--font-title); font-size: 1rem; letter-spacing: .6px; text-transform: uppercase; text-decoration: none; transition: transform .25s, box-shadow .25s, background .25s, color .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--green-900); }
.btn--block { width: 100%; }

/* 4. HEADER */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: var(--white); transition: background .3s, box-shadow .3s, color .3s; }
.header.is-solid { background: var(--white); color: var(--green-900); box-shadow: 0 2px 16px rgba(0, 0, 0, .1); }
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--font-title); font-size: 1.25rem; text-transform: uppercase; text-decoration: none; letter-spacing: .5px; line-height: 1.1; }
.brand small { display: block; font-size: .65rem; letter-spacing: 3px; color: var(--lime); }
.header.is-solid .brand small { color: var(--green-500); }
.nav ul { display: flex; gap: 28px; list-style: none; padding: 0; }
.nav a { text-decoration: none; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .25s; }
.nav a:hover { border-color: var(--lime); }
.menu-toggle { display: none; background: none; border: 0; color: inherit; font-size: 1.8rem; line-height: 1; }

/* 5. HERO */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--white); background: var(--green-900) url(../img/piscina-de-longe.jpeg) center / cover; overflow: hidden; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(10, 40, 12, .78)); }
.hero .container { position: relative; z-index: 1; padding-top: var(--header-h); }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero h1 span { color: var(--lime); }
.hero p { max-width: 560px; margin: 18px 0 32px; font-size: 1.2rem; }
.hero .btn + .btn { margin-left: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pills li { list-style: none; font-size: .8rem; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .3); }

/* 6. SEÇÕES */
.frame { position: relative; }
.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; z-index: 1; }
.frame::before { content: ""; position: absolute; inset: 20px -20px -20px 20px; border: 3px solid var(--lime); border-radius: var(--radius); }

.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.checks li { background: var(--white); border-radius: 8px; padding: 14px 18px 14px 48px; position: relative; font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.checks li::before { content: "✓"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--green-500); color: var(--white); font-size: .8rem; display: grid; place-items: center; }
.checks--opt li::before { background: var(--familia); content: "+"; }
.subtitle { font-size: 1.2rem; color: var(--familia); margin: 40px 0 14px; }

.audiences { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.aud { position: relative; min-height: 440px; border-radius: var(--radius); overflow: hidden; color: var(--white); display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.aud img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.aud:hover img { transform: scale(1.06); }
.aud::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 25%, rgba(0, 0, 0, .88)); }
.aud div { position: relative; z-index: 1; padding: 24px; border-bottom: 6px solid var(--c); width: 100%; }
.aud h3 { font-size: 1.7rem; margin-bottom: 6px; }
.aud p { font-size: .92rem; }

.band { position: relative; text-align: center; color: var(--white); padding: 110px 0; background: var(--green-900) url(../img/piscina.jpeg) center / cover fixed; }
.band::before { content: ""; position: absolute; inset: 0; background: rgba(10, 40, 12, .82); }
.band .container { position: relative; }
.band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.band p { max-width: 560px; margin: 0 auto 28px; }

/* 7. GALERIA / VÍDEOS */
.gallery { columns: 3 260px; column-gap: 14px; }
.gallery button { display: block; width: 100%; padding: 0; margin-bottom: 14px; border: 0; background: none; border-radius: 10px; overflow: hidden; break-inside: avoid; }
.gallery img { width: 100%; transition: transform .4s, filter .4s; }
.gallery button:hover img { transform: scale(1.04); filter: brightness(.9); }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.videos figure { background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.videos video { width: 100%; aspect-ratio: 16 / 9; background: #111; }
.videos figcaption { background: var(--green-700); color: var(--white); padding: 10px 16px; font-size: .9rem; }

.lightbox { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .93); padding: 20px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 6px; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .15); color: var(--white); border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; }
.lightbox button:hover { background: rgba(255, 255, 255, .3); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* 8. FORMULÁRIO */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact address { font-style: normal; margin-top: 24px; display: grid; gap: 10px; }
.contact address a { color: var(--lime); font-family: var(--font-title); font-size: 1.5rem; text-decoration: none; }
.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1.5px solid #cfd8c8; border-radius: 8px; background: #fbfdf9; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(46, 125, 50, .2); }

/* 9. FOOTER */
.footer { background: #0b2610; color: #b9cbb3; padding: 56px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--lime); }
.copy { text-align: center; padding-top: 20px; font-size: .8rem; }
.zap { position: fixed; right: 18px; bottom: 18px; z-index: 40; background: #25d366; color: var(--white); padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); transition: transform .25s; }
.zap:hover { transform: scale(1.06); }

/* 10. UTILITÁRIOS / RESPONSIVO */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .split, .contact, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .band { background-attachment: scroll; }
  .section { padding: 72px 0; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--green-900); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 12px 20px 20px; }
  .nav a { display: block; padding: 12px 0; color: var(--white); }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .hero .btn + .btn { margin: 10px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
