/* =========================================================
   ECO-MODERN THEME | style.css
   Requer: Bulma 0.9.4
   Fonte Principal: Rubik (texto) | Manrope (títulos)
   ========================================================= */

/* ---------- 1. CORE VARIABLES & GLOBAL RESETS ---------- */
:root {
    /* Paleta Gradiente (Eco-Minimal) */
    --gradient-start: #8BC34A;        /* verde lima */
    --gradient-end:   #00B894;        /* verde esmeralda */
    --primary-800:    #00695C;        /* verde escuro */
    --primary-600:    #009688;
    --primary-400:    #26A69A;
    --accent-500:     #FFB74D;        /* laranja suave */
    --accent-700:     #FF8F00;
    --gray-900:       #222222;
    --gray-700:       #4B4B4B;
    --gray-200:       #F4F4F4;
    --white:          #FFFFFF;

    /* Spacing & Radius */
    --radius: 8px;
    --transition: .35s cubic-bezier(.4,0,.2,1);
}

/* Reset extra spacing from Bulma helpers */
html,
body {
    scroll-behavior: smooth;
    font-family: 'Rubik', sans-serif;
    color: var(--gray-900);
    background-color: var(--white);
}

/* ---------- 2. TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6,
.title, .subtitle {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    text-align: center;
}

p, a, li, label, input, textarea, button {
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

a {
    color: var(--primary-600);
    transition: color var(--transition);
}

a:hover { color: var(--primary-800); }

/* ---------- 3. GLOBAL BUTTON STYLES ---------- */
.btn,
button,
input[type='submit'] {
    display: inline-block;
    padding: .75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    background-image: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    text-shadow: 0 1px 3px rgba(0,0,0,.25);
}

.btn:hover,
button:hover,
input[type='submit']:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,.15);
}

.btn:active,
button:active,
input[type='submit']:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

/* ---------- 4. NAVBAR ---------- */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,.72);
}

.navbar.is-transparent {
    background: rgba(0,0,0,0);
}

.navbar-item,
.navbar-burger span {
    color: var(--gray-900);
}

.navbar-burger:hover { color: var(--primary-800); }

/* ---------- 5. HERO SECTION ---------- */
.hero {
    position: relative;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.3));
    z-index: 0;
}

.hero .hero-body {
    position: relative;
    z-index: 1;
}

.hero .title,
.hero .subtitle {
    color: var(--white);
}

/* ---------- 6. SECTION UTILITIES ---------- */
.section-gradient {
    background-image: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
}

.section-gradient h2 {
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0,0,0,.35);
}

.has-background-light {
    background-color: var(--gray-200);
}

/* Padding fix for privacy & terms pages */
.page-offset-top { padding-top: 100px; }

/* ---------- 7. CARDS & FLEX CENTERING ---------- */
.card,
.item,
.testimonial,
.team-member,
.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    background-color: var(--white);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover,
.item:hover,
.testimonial:hover,
.team-member:hover,
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.card-image,
.image-container {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.card-image img,
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
}

/* ---------- 8. CAROUSEL (Testimonials) ---------- */
.carousel {
    display: grid;
    grid-auto-flow: column;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.carousel .card {
    min-width: 280px;
    scroll-snap-align: center;
}

/* ---------- 9. SWITCHES ---------- */
.switch input:checked + .check {
    background-color: var(--primary-600);
}
.switch .check {
    transition: background var(--transition);
}

/* ----------10. READ MORE LINKS ---------- */
.read-more {
    font-weight: 600;
    color: var(--accent-700);
    position: relative;
}
.read-more::after {
    content: '→';
    margin-left: .25rem;
    transition: transform var(--transition);
}
.read-more:hover::after {
    transform: translateX(4px);
}

/* ----------11. SOCIAL TEXT LINKS ---------- */
.social-link {
    font-weight: 500;
}
.social-link:hover { color: var(--accent-500); }

/* ----------12. FOOTER ---------- */
.footer {
    padding: 2rem 1rem;
}
.footer a {
    color: var(--white);
    margin: 0 .25rem;
    transition: color var(--transition);
}
.footer a:hover { color: var(--accent-500); }

/* ----------13. SUCCESS PAGE ---------- */
.success-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
}

/* ----------14. PARALLAX EFFECT (Optional Sections) ---------- */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* ----------15. GLASSMORPHISM ---------- */
.glass {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.18);
}

/* ----------16. DRAWN ANIMATIONS ---------- */
@keyframes scribbleIn {
    0% { stroke-dashoffset: 1200; }
    100% { stroke-dashoffset: 0; }
}
.hand-drawn path {
    stroke: var(--accent-700);
    stroke-width: 2;
    stroke-dasharray: 1200;
    animation: scribbleIn 3s ease forwards;
}

/* ----------17. IMAGE BACKGROUND SHARED RULES ---------- */
.bg-cover {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* ----------18. FORM ELEMENTS ---------- */
input.input,
textarea.textarea {
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}
input.input:focus,
textarea.textarea:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 2px rgba(0,150,136,.25);
}

/* ----------19. COOKIE POPUP ---------- */
#cookiePopup {
    font-size: 0.9rem;
}
#cookiePopup .button {
    background: var(--accent-700);
    color: var(--white);
}
#cookiePopup .button:hover {
    background: var(--accent-500);
}

/* ----------20. MEDIA QUERIES ---------- */
@media (max-width: 768px) {
    .navbar-menu { backdrop-filter:none; }
    .card-image, .image-container { height: 180px; }
}