/* Clover Farm site: shared styles. Bilingual text uses .pt / .en pairs; the <html lang> picks which one shows. */
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka.ttf") format("truetype"); font-weight: 300 700;
             font-display: swap; }

:root {
  --green: #4fae45; --green-dark: #2f7f2c; --green-soft: #e9f8dc; --wood: #c98a4a; --wood-dark: #8a5a2b;
  --cream: #fbf6ea; --paper: #fffdf7; --ink: #3a2a1a; --muted: #6f5d48; --line: #e6d9bd; --sky: #bfe6ff;
  --radius: 22px; --shadow: 0 10px 30px rgba(58, 42, 26, .12);
}
html[lang="en"] .pt, html[lang="pt-BR"] .en { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink);
       background: var(--cream); line-height: 1.6; }
h1, h2, h3, .brand, .btn { font-family: "Fredoka", system-ui, sans-serif; }
h1, h2, h3 { line-height: 1.15; color: var(--green-dark); margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
a { color: var(--green-dark); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 246, 234, .92); backdrop-filter: blur(8px);
       border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.3rem; color: var(--green-dark);
         text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.top nav { display: flex; gap: 20px; }
.top nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.top nav a:hover { color: var(--green-dark); }
.lang { display: flex; border: 2px solid var(--green); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; padding: 4px 10px; font-weight: 700; color: var(--green-dark);
               cursor: pointer; font-size: .85rem; }
html[lang="pt-BR"] .lang [data-lang="pt-BR"], html[lang="en"] .lang [data-lang="en"] { background: var(--green);
               color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
       font-weight: 600; font-size: 1.1rem; text-decoration: none; border: 0; cursor: pointer;
       transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-play { background: #1d1d1d; color: #fff; box-shadow: var(--shadow); }
.btn-play svg { width: 26px; height: 26px; }
.btn-play small { display: block; font-size: .7rem; font-weight: 400; opacity: .8; line-height: 1; }
.btn-play span { line-height: 1.1; text-align: left; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 4px 0 var(--green-dark); }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff;
        background: linear-gradient(90deg, rgba(34, 70, 20, .78) 0%, rgba(34, 70, 20, .35) 55%, rgba(0, 0, 0, 0) 100%),
                    url("/img/hero.jpg") center / cover no-repeat; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 24px;
              min-height: min(78vh, 640px); padding-block: 48px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 4.6rem); text-shadow: 0 3px 0 var(--green-dark),
           0 6px 18px rgba(0, 0, 0, .35); }
.hero p.lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); max-width: 34em; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.hero .note { font-size: .9rem; opacity: .9; margin-top: 10px; }
.hero .clovy { justify-self: center; width: min(300px, 70%); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35));
               animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .hero .clovy { animation: none; } html { scroll-behavior: auto; } }

/* sections */
section { padding: 72px 0; }
.intro { text-align: center; max-width: 720px; margin: 0 auto 40px; color: var(--muted); font-size: 1.1rem; }
.alt { background: var(--paper); border-block: 1px solid var(--line); }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
        border: 1px solid var(--line); }
.card .emoji { font-size: 2.2rem; line-height: 1; }
.card h3 { margin: 12px 0 6px; font-size: 1.3rem; }
.card p { margin: 0; color: var(--muted); }

/* gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 560px); gap: 18px; overflow-x: auto;
           scroll-snap-type: x mandatory; padding: 4px 4px 18px; }
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.gallery img { border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.gallery figcaption { text-align: center; font-weight: 600; margin-top: 8px; color: var(--muted); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; }
dialog.lightbox::backdrop { background: rgba(20, 30, 10, .85); }
dialog.lightbox img { max-height: 90vh; border-radius: 12px; }

/* friends */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img.shot { border-radius: var(--radius); box-shadow: var(--shadow); }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { padding-left: 34px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: "🍀"; position: absolute; left: 0; }

/* faq */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px;
               margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; font-family: "Fredoka", system-ui, sans-serif; font-size: 1.1rem;
               color: var(--green-dark); }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* call to action */
.cta { text-align: center; background: linear-gradient(var(--sky), var(--green-soft)); }
.cta img { width: 160px; margin: 0 auto 12px; }

/* footer */
footer.site { background: #2b3b1e; color: #dfe8d2; padding: 40px 0 28px; font-size: .95rem; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
footer.site h3 { color: #fff; font-size: 1.1rem; }
footer.site a { color: #cfe9b8; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 6px; }
footer.site .legal { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 28px; padding-top: 16px;
                     font-size: .85rem; opacity: .8; }

/* text pages (privacy, delete account) */
.doc { max-width: 780px; padding-block: 40px 64px; }
.doc h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.doc h2 { font-size: 1.5rem; margin-top: 1.8em; }

@media (max-width: 860px) {
  .top nav { display: none; }
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero .wrap { text-align: center; }
  .hero .actions { justify-content: center; }
  .hero .clovy { width: 180px; order: -1; }
  .hero { background: linear-gradient(rgba(34, 70, 20, .55), rgba(34, 70, 20, .7)),
                      url("/img/hero.jpg") center / cover no-repeat; }
  footer.site .cols { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}
