/* ============================================================
   Clubinho Literario Site — style.css
   Paleta: laranja #E8813A, verde #4CAF50, bege #FFF8F0
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

:root {
  --orange:  #E8813A;
  --orange2: #F59B4F;
  --green:   #4CAF50;
  --green2:  #66BB6A;
  --brown:   #7a3e2b;
  --bege:    #FFF8F0;
  --bege2:   #FFF0E0;
  --text:    #2D2D2D;
  --muted:   #6B6B6B;
  --white:   #ffffff;
  --shadow:  0 4px 24px rgba(0,0,0,.1);
  --radius:  16px;
  --radius-sm: 8px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-title { font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 800; color: var(--text); margin-bottom: .5rem; }
.section-subtitle { color: var(--muted); font-size: 1rem; margin-bottom: 2.5rem; }
.highlight { color: var(--orange); }
.badge { display: inline-flex; align-items: center; gap: .3rem; background: var(--bege2); color: var(--orange); font-size: .78rem; font-weight: 700; padding: .3rem .8rem; border-radius: 99px; border: 1px solid var(--orange2); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.75rem; border-radius: 99px; font-weight: 700; font-size: .95rem; transition: var(--transition); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 16px rgba(232,129,58,.35); }
.btn-primary:hover { background: #d4702a; transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--text); color: var(--text); }
.btn-outline:hover { background: var(--text); color: #fff; transform: translateY(-2px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #3e9e42; transform: translateY(-2px); }
.btn-sm { padding: .5rem 1.25rem; font-size: .85rem; }

/* ── NAVBAR ── */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.navbar-logo { display: flex; align-items: center; gap: .75rem; }
.navbar-logo img { width: 44px; height: 44px; border-radius: 50%; }
.navbar-logo span { font-weight: 800; font-size: 1rem; color: var(--orange); line-height: 1.2; max-width: 160px; }
.navbar-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.navbar-links a { font-weight: 700; font-size: .88rem; color: var(--text); transition: color var(--transition); position: relative; }
.navbar-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform var(--transition); border-radius: 1px; }
.navbar-links a:hover, .navbar-links a.active { color: var(--orange); }
.navbar-links a:hover::after, .navbar-links a.active::after { transform: scaleX(1); }
.navbar-actions { display: flex; align-items: center; gap: .75rem; }
.navbar-wa { display: flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700; color: var(--green); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; padding: .5rem; }
.hamburger span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ── HERO ── */
.hero { padding: 120px 0 60px; background: var(--bege); overflow: hidden; position: relative; }
.hero::before { content: ''; position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(232,129,58,.12) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-tag { color: var(--orange); font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: .4rem; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2rem,5vw,3.2rem); font-weight: 900; line-height: 1.15; margin-bottom: 1.25rem; }
.hero-title em { font-style: normal; color: var(--orange); font-family: 'Playfair Display', serif; }
.hero-desc { color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem; max-width: 480px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2rem; }
.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 900; color: var(--orange); }
.hero-stat span { font-size: .8rem; color: var(--muted); }
.hero-image { position: relative; }
.hero-image img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.hero-badge { position: absolute; top: 1.5rem; right: -1rem; background: #fff; border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow); text-align: center; font-size: .78rem; font-weight: 700; max-width: 130px; line-height: 1.3; color: var(--brown); border: 2px solid var(--bege2); }
.hero-badge-2 { position: absolute; bottom: 1.5rem; left: -1rem; background: var(--orange); color: #fff; border-radius: var(--radius); padding: .75rem 1rem; box-shadow: var(--shadow); font-size: .78rem; font-weight: 700; max-width: 150px; line-height: 1.4; }
.hero-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1rem; }
.hero-thumbs img { border-radius: var(--radius-sm); height: 90px; object-fit: cover; width: 100%; }

/* ── VIDEO SECTION ── */
.video-section { padding: 4rem 0; background: #fff; }
.video-wrapper { position: relative; padding-bottom: 56.25%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── SERVICES ── */
.services { padding: 5rem 0; background: var(--bege); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.service-card { background: #fff; border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; box-shadow: 0 2px 16px rgba(0,0,0,.06); transition: var(--transition); border: 2px solid transparent; cursor: pointer; }
.service-card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(232,129,58,.15); }
.service-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; background: var(--bege2); }
.service-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: .5rem; color: var(--orange); }
.service-card p { font-size: .85rem; color: var(--muted); line-height: 1.55; margin-bottom: 1rem; }

/* ── STATS ── */
.stats { padding: 4rem 0; background: var(--orange); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-number { font-size: 2.8rem; font-weight: 900; display: block; }
.stat-label { font-size: .88rem; opacity: .88; }

/* ── EVENTOS ── */
.eventos { padding: 5rem 0; background: #fff; }
.eventos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.evento-card { border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.07); transition: var(--transition); }
.evento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.evento-card img { width: 100%; height: 200px; object-fit: cover; }
.evento-body { padding: 1.25rem; }
.evento-date { font-size: .78rem; font-weight: 700; color: var(--orange); margin-bottom: .4rem; display: flex; align-items: center; gap: .3rem; }
.evento-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .5rem; }
.evento-card p { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.evento-footer { display: flex; justify-content: space-between; align-items: center; margin-top: .75rem; }
.vagas-badge { font-size: .75rem; font-weight: 700; color: var(--green); background: #e8f5e9; padding: .25rem .6rem; border-radius: 99px; }

/* ── GALERIA ── */
.galeria { padding: 5rem 0; background: var(--bege); }
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.galeria-item { border-radius: var(--radius-sm); overflow: hidden; position: relative; cursor: pointer; }
.galeria-item img { width: 100%; height: 200px; object-fit: cover; transition: transform .3s; }
.galeria-item:hover img { transform: scale(1.06); }
.galeria-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.galeria-item:hover .galeria-overlay { opacity: 1; }
.galeria-overlay span { color: #fff; font-size: 1.5rem; }

/* ── AMALIA SECTION ── */
.amalia-section { padding: 5rem 0; background: #fff; }
.amalia-grid { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: center; }
.amalia-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.amalia-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.amalia-content h2 { margin-bottom: 1rem; }
.amalia-content p { color: var(--muted); margin-bottom: 1rem; }

/* ── NEWSLETTER ── */
.newsletter { padding: 4rem 0; background: linear-gradient(135deg, var(--orange) 0%, var(--orange2) 100%); color: #fff; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.newsletter h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: .5rem; }
.newsletter p { opacity: .9; }
.newsletter-form { display: flex; gap: .5rem; }
.newsletter-form input { flex: 1; padding: .85rem 1.25rem; border-radius: 99px; border: none; font-size: .95rem; font-family: inherit; outline: none; }
.newsletter-form input::placeholder { color: #aaa; }
.newsletter-form button { background: var(--text); color: #fff; padding: .85rem 1.5rem; border-radius: 99px; font-weight: 700; font-size: .9rem; white-space: nowrap; transition: var(--transition); }
.newsletter-form button:hover { background: #444; }

/* ── INSCRICAO FORM ── */
.inscricao { padding: 5rem 0; background: var(--bege); }
.form-card { background: #fff; border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); max-width: 600px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .4rem; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid #e0e0e0; border-radius: var(--radius-sm);
  font-size: .95rem; font-family: inherit; transition: border-color var(--transition); outline: none; color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,129,58,.12); }
.form-group textarea { resize: vertical; min-height: 100px; }
.radio-group { display: flex; gap: 1.5rem; }
.radio-group label { display: flex; align-items: center; gap: .4rem; font-weight: 600; cursor: pointer; }

/* ── FOOTER ── */
.footer { background: #1a1a1a; color: #fff; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand p { color: #aaa; font-size: .88rem; margin-top: .75rem; max-width: 260px; }
.footer h4 { font-size: .9rem; font-weight: 800; margin-bottom: 1rem; color: var(--orange); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer ul a { color: #bbb; font-size: .88rem; transition: color var(--transition); }
.footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333; padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: .82rem; color: #777; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: #333; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .9rem; transition: background var(--transition); }
.footer-social a:hover { background: var(--orange); }

/* ── ALERTS ── */
.alert { padding: .9rem 1.25rem; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .5rem; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error { background: #fce4ec; color: #c62828; border: 1px solid #f48fb1; }

/* ── LIGHTBOX ── */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 9999; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-sm); }
.lightbox-close { position: absolute; top: 1rem; right: 1.5rem; color: #fff; font-size: 2rem; cursor: pointer; }

/* ── RESPONSIVE ── */
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .amalia-grid { grid-template-columns: 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .navbar-links, .navbar-actions .btn { display: none; }
  .hamburger { display: flex; }
  .navbar-links.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: #fff; padding: 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,.1); z-index: 999; }
  .hero { padding: 90px 0 40px; }
  .hero-btns { flex-direction: column; }
  .hero-stats { gap: 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
