:root {
    --nav: #2a2231;
    --accent: #b18a98;
    --text: #241b27;
    --muted: #5b4e60;
    --radius: 18px;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: #fdfbf8;
    line-height: 1.6;
}

main { padding-top: 88px; }
a { color: inherit; text-decoration: none; }

.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 22px;
    background: rgba(144, 26, 66, 0.9);
    color: #fff;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    backdrop-filter: blur(6px);
}

.navbar-inner {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    justify-content: flex-start;
    flex-shrink: 0;
}

.nav-logo {
    height: 96px;
    width: auto;
    display: block;
}

.nav-brand { display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:0.3px; justify-content:flex-start; }
.nav-logo { height:130px; width:auto; display:block;}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex: 1;
}

.nav-menu nav { flex: 1; }

.navbar ul {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.navbar a { color: #f7f1f5; font-weight: 500; letter-spacing: 0.2px; }
.nav-toggle { display:none; justify-self:end; align-items:center; justify-content:center; padding:10px; border-radius:12px; background: transparent; color: #fff; border:1px solid rgba(255,255,255,0.3); cursor:pointer; transition: background .2s ease, border-color .2s ease; }
.nav-toggle:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.nav-toggle-icon { display:flex; flex-direction:column; gap:4px; width:22px; }
.nav-toggle-icon span { display:block; width:100%; height:2px; border-radius:999px; background:#fff; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open .nav-toggle-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open .nav-toggle-icon span:nth-child(2) { opacity:0; }
.nav-toggle.open .nav-toggle-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    text-align: center;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0,0,0,0.12); }
.btn.accent { background: rgb(218, 121, 153); color: #fff; }
.btn.ghost { background: rgba(255,255,255,0.9); border-color: #d3c3cb; color: var(--nav); box-shadow: 0 10px 20px rgba(0,0,0,0.06); }
.btn.ghost:hover { background: #fff; border-color: #c5b0bb; }
.btn.light { background: #fff; color: var(--nav); border-color: #f1e8ed; }

.hero,
.section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    padding: 110px clamp(18px, 4vw, 48px);
    align-items: center;
    justify-items: center;
    text-align: center;
    width: 100%;
}

.hero { min-height: 80vh; }

.eyebrow { letter-spacing: 1.8px; font-size: 13px; text-transform: uppercase; color: #7a6c82; font-weight: 800; }
.hero h1,
.section h2 { font-weight: 800; letter-spacing: -0.2px; line-height: 1.2; }

.hero h1 { font-size: clamp(32px, 4vw, 50px); margin: 12px 0; }
.section h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 12px 0; }

.hero .subtitle { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-image img { width:100%; max-width: 420px; border-radius: 30px; box-shadow: 0 22px 38px rgba(0,0,0,0.08), 0 0 36px rgba(177,138,152,0.24); object-fit: cover; }

.section.column { grid-template-columns: 1fr; text-align: center; }
.section p { font-size: 17px; color: #3a2f3f; }
.section-image img { width:100%; max-width: 420px; border-radius: var(--radius); box-shadow: 0 22px 38px rgba(0,0,0,0.08), 0 0 36px rgba(177,138,152,0.24); object-fit: cover; }
.section-text, .hero-text { max-width: 640px; text-align: center; margin: 0 auto; }
.hero-text { display:flex; flex-direction:column; align-items:center; gap:12px; }
.section.reversed { grid-template-areas: "text image"; }
.section.reversed .section-text { grid-area: text; }
.section.reversed .section-image { grid-area: image; }
.wide { max-width: 820px; margin: 0 auto; color:#4b4051; font-size: 18px; }

.pill { display:inline-block; padding:12px 16px; border-radius: 14px; background: rgba(31,24,37,0.1); font-weight:700; margin-top:12px; color: #3d2e3b; }
.pill.highlight { background: #f2e7e7; color:#684d5a; }
.pill.dark { background: rgba(0,0,0,0.18); color:#fff; }

.benefits { list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.benefits li { background: rgba(255,255,255,0.75); padding:12px 16px; border-radius: var(--radius); font-weight:600; color:#2f2430; box-shadow: 0 8px 16px rgba(0,0,0,0.05); }

.cta-group { display:flex; gap:12px; flex-wrap: nowrap; margin-top:16px; justify-content: center; align-items:center; }

.tree-section {
    background: #fdfbf7 url('../img/backgorund-arvoredavida.jpeg') center/cover no-repeat;
}

.contact-form { background:#fff; padding:28px; border-radius:20px; box-shadow:0 14px 30px rgba(0,0,0,0.08); max-width:900px; width:100%; margin:0 auto; }
.contact-form label { display:block; font-weight:700; color:#2f2433; font-size:15px; }
.contact-form input, .contact-form textarea { width:100%; padding:12px; border-radius:12px; border:1px solid #e3d9df; margin-top:6px; margin-bottom:14px; font-size:16px; background:#fbf9f7; }
.contact-form input:focus, .contact-form textarea:focus { outline:2px solid #d7c1c9; border-color: #d7c1c9; }
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:14px; }

.alert { padding:12px 16px; border-radius:12px; margin-bottom:16px; font-weight:700; }
.alert.success { background:#d9f0e4; color:#256241; }

.footer { background: linear-gradient(135deg, #1e1623, #2a1c30); color:#f2ebf4; padding:32px clamp(18px, 4vw, 36px); }
.footer-content { display:flex; gap:12px; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.footer .social { display:flex; gap:12px; flex-wrap: wrap; justify-content:center; }
.footer .social a { display:flex; align-items:center; gap:10px; font-weight:700; color:#f3e8ee; padding:10px 14px; border-radius:14px; background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.07); box-shadow: 0 10px 20px rgba(0,0,0,0.16); }
.footer .social svg { width:18px; height:18px; fill:#f3e8ee; opacity:0.92; }
.footer .social a:hover { transform: translateY(-1px); background: rgba(255,255,255,0.14); }
.footer-subtitle { margin: 0; font-weight: 700; color: #e6dbe7; }
.footer-note { margin:0; margin-top:8px; font-size:14px; color:#cdbfd5; }

.resource-links { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:18px; }
.resource-links .btn { border-color: rgba(31,24,37,0.1); background:#fff; color: var(--nav); box-shadow: 0 10px 24px rgba(0,0,0,0.06); }
.resource-links .btn:hover { background: #f7f1f5; }

.card { background:#fff; padding:20px; border-radius:16px; box-shadow:0 10px 20px rgba(0,0,0,0.05); }

.muted { color: #5b4e60; }

.auth-page { background:#f6f2ed; min-height:100vh; display:flex; align-items:center; justify-content:center; padding:32px; }
.auth-shell { width:min(1080px, 100%); margin:0 auto; display:flex; flex-direction:column; gap:18px; align-items:center; text-align:center; }
.auth-header h1 { margin:6px 0; font-size: clamp(26px, 3vw, 36px); }
.auth-card { background:#fff; padding:26px; border-radius:18px; box-shadow:0 18px 42px rgba(0,0,0,0.08); width:100%; max-width:520px; text-align:left; }
.auth-form { display:flex; flex-direction:column; gap:12px; }
.auth-form label { font-weight:700; color:#2f2433; }
.auth-form input { width:100%; padding:12px; border-radius:12px; border:1px solid #e3d9df; margin-top:6px; font-size:16px; background:#fbf9f7; }
.auth-form input:focus { outline:2px solid #d7c1c9; border-color:#d7c1c9; }
.inline-form { margin:0; }

.dashboard-shell { align-items:stretch; text-align:left; }
.auth-header { width:100%; display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.panel-card { background:#fff; padding:20px; border-radius:16px; box-shadow:0 10px 24px rgba(0,0,0,0.06); }
.table-wrapper { overflow:auto; max-height:440px; }
.data-table { width:100%; border-collapse:collapse; }
.data-table th, .data-table td { padding:10px; border-bottom:1px solid #eee; text-align:left; }
.data-table th { background:#f9f4f7; font-weight:800; }
.data-table td { color:#2f2433; }

.admin-page { background:#f7f4f0; }
.admin-shell { width:min(1200px, 100%); margin:0 auto; padding:32px 22px 40px; display:flex; flex-direction:column; gap:18px; }
.admin-header { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.admin-actions { display:flex; gap:10px; flex-wrap:wrap; }
.admin-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap:18px; align-items:start; }
.panel-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; }
.admin-editor { width:100%; min-height:360px; font-family: monospace; padding:14px; border-radius:14px; border:1px solid #e3d9df; background:#fbf9f7; margin:12px 0; }
.user-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap:16px; }
.card.subdued { box-shadow:none; background:#faf6f4; }
.card.subdued.alt { background:#f4eeeb; }
.user-row { padding:12px 0; border-bottom:1px solid #e9dfe4; display:flex; justify-content:space-between; align-items:center; gap:10px; }
.user-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.tag { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:12px; background:#f2e7ed; color:#5b4e60; font-weight:700; font-size:13px; }

@media (max-width: 900px) {
    .navbar-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        row-gap: 12px;
        column-gap: 12px;
        justify-content: space-between;
    }
    .navbar { padding: 14px 18px; }
    .nav-brand { align-items: center; }
    .nav-toggle { display: inline-flex; justify-self: end; margin-left: 0; }
    .nav-menu { grid-column: 1 / -1; width: 100%; flex-direction: column; align-items: center; gap: 14px; overflow: hidden; max-height: 0; opacity: 0; transform: translateY(-10px); transition: max-height .38s ease, opacity .32s ease, transform .38s ease, padding .25s ease; pointer-events: none; background: rgba(42,34,49,0.96); border-radius: 16px; padding: 0 14px; box-shadow: 0 16px 38px rgba(0,0,0,0.26); }
    .nav-menu.open { max-height: 420px; opacity: 1; transform: translateY(0); pointer-events: auto; padding: 14px; }
    .nav-menu { display: none; width: 100%; flex-direction: column; align-items: center; gap: 14px; }
    .nav-menu.open { display: flex; }
    .navbar ul { flex-direction: column; align-items: center; gap: 10px; }
    .btn.ghost { background: rgba(255,255,255,0.9); border-color: #d3c3cb; color: var(--nav); box-shadow: 0 10px 20px rgba(0,0,0,0.06); }
    .nav-cta { width: 100%; max-width: 260px; }
    main { padding-top: 120px; }
}

@media (max-width: 640px) {
    .hero, .section { padding: 80px 18px; }
    .hero { min-height: auto; }
    .navbar { padding: 14px 18px; }
    .nav-logo { height: 90px; }
    .hero-image img, .section-image img { max-width: 100%; }
    .section.reversed { grid-template-areas: "text" "image"; }
    .cta-group { flex-wrap: wrap; }
}
