@import url('https://fonts.googleapis.css2?family=Inter:wght@300;400;600&display=swap');

/* RESET & BASE VARIABLES */
:root {
    --color-bg: #0b0c0e;
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-accent: #fdea92 /*#FCDD45 #FFEA00*/;
    --color-overlay: rgba(0, 0, 0, 0.6);
    --color-border: rgba(255, 255, 255, 0.2);
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* LAYOUT HELPERS - ALWAYS FLEX */
.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.align-center {
    align-items: center;
}

.align-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

/* BUTTONS (STARLINK STYLE) */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border: 1px solid var(--color-text-primary);
    background: transparent;
    color: var(--color-text-primary);
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    border-color: var(--color-accent);
    color: var(--color-text-primary);
    background: transparent;
}

.btn-secondary {
    border: none;
    text-transform: none;
    font-size: 1rem;
    letter-spacing: normal;
    font-weight: 400;
    cursor: pointer;
    color: var(--color-text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    color: var(--color-text-primary);
    background: transparent;
}

/* SECTIONS WITH BACKGROUND IMAGES */
.bg-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex; /* keep flex */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay);
    z-index: 1;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    justify-content: center;
    align-items: flex-start;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop'); 
}

.hero .container {
    z-index: 2;
    position: relative;
    align-items: flex-start;
    text-align: left;
}

/* ANIMATIONS (Triggered by JS) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* SERVICES / CARDS SECTION */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.card {
    max-width: 554px;
    display: flex;
    flex-direction: column;
    flex: 1 1 calc(50% - 1rem); /* 2 per row for better look or 1 1 33.333% */
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    flex-grow: 1;
}

.card-link {
    margin-top: auto;
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: var(--color-text-primary);
}

/* PORTFOLIO SECTION (SLIDER) */
.sliderControl {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
}

.sliderImg {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide {
    height: 500px;
    min-width: 100%;
    background-size: cover;
    background-position: center center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem;
    position: relative;
}

.slide.champions {
    background-image: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?q=80&w=2070&auto=format&fit=crop');
}

.slide.petfinder {
    background-image: url('https://images.unsplash.com/photo-1583337130417-3346a1be7dee?q=80&w=2064&auto=format&fit=crop');
}

.setNav {
    background: none;
    border: none;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    user-select: none;
}

.setNav:hover {
    color: var(--color-text-primary);
}

.portfolio-content {
    z-index: 2;
    position: relative;
    max-width: 600px;
}

.slide .overlay {
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.slide:hover .overlay {
    background: rgba(0, 0, 0, 0.9) !important;
}

.slide h3 {
    font-size: 2rem;
    color: var(--color-text-primary);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 8px;
    border-radius: 4px;
    width: fit-content;
    transition: background-color 0.3s ease, padding 0.3s ease, color 0.3s ease;
}

.slide:hover h3 {
    background-color: transparent;
    padding: 0;
    color: var(--color-accent);
}

.slide p {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-bottom: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
}

.slide:hover p {
    opacity: 1;
    max-height: 200px;
    margin-top: 1rem;
}

/* LIST / HOW IT WORKS */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
}

.step-item {
    display: flex;
    flex-direction: column;
    padding-left: 2rem;
    border-left: 2px solid var(--color-accent);
}

.step-item h3 {
    margin-bottom: 0.5rem;
}

.step-item p {
    margin-bottom: 0;
}

/* HEADER / NAV */
header {
    display: flex;
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(11, 12, 14, 0.95) 0%, rgba(11, 12, 14, 0) 100%);
}

.header-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 100;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

nav.flex-row {
    gap: 2rem;
}

nav a,span {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--color-accent);
}

/* VIDEO BACKGROUND HELPER */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* SPLIT TEXT BLOCK & BADGES */
.split-text-block {
    background: rgba(11, 12, 14, 0.85);
    padding: 50px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    max-width: 600px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    border: 1px solid var(--color-accent);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* CTA CARD */
.cta-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 4rem;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 234, 0, 0.08) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* PRICING CARDS */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
}

.pricing-card {
    flex: 1 1 calc(33.333% - 2rem);
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    border-radius: 8px;
    min-width: 300px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pricing-features li {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: '✔';
    color: var(--color-accent);
    font-size: 0.9rem;
}

.pricing-features li.unavailable {
    opacity: 0.5;
}

.pricing-features li.unavailable::before {
    content: '—';
    color: var(--color-text-secondary);
}

.price-reference {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.strike {
    text-decoration: line-through;
    opacity: 0.7;
}

.price-launch {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.price-launch .label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.price-launch .value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* FAQ */
.faq-list {
    width: 100%;
    max-width: 800px;
}

.faq-item {
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.faq-item summary {
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    color: var(--color-text-primary);
    position: relative;
    padding-right: 1.5rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-text-secondary);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* FORM STYLES */
.contact-form {
    width: 100%;
    max-width: 600px;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid var(--color-border);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(10, 12, 14, 0.8);
    border: 1px solid var(--color-border);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    color: var(--color-text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* PORTFOLIO CARD */
.portfolio-cards-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.portfolio-card-large {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    border: 1px solid var(--color-border);
}

.portfolio-card-large .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.portfolio-card-large .overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Fundo padrão de 0.6 */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    transition: background 0.3s ease;
}

.portfolio-card-large:hover .bg-image {
    transform: scale(1.05);
}

.portfolio-card-large:hover .overlay-content {
    background: rgba(0, 0, 0, 0.9); /* Fica 0.9 no hover */
}

.portfolio-card-large h3 {
    font-size: 2rem;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
    background-color: rgba(0, 0, 0, 0.9); /* Fundo preto de 0.9 */
    padding: 8px; /* 8px de padding */
    border-radius: 4px;
    width: fit-content;
}

.portfolio-card-large .details {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-bottom: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
    color: var(--color-text-secondary);
}

.portfolio-card-large:hover h3 {
    color: var(--color-accent);
    background-color: transparent; /* Remove background no hover */
    padding: 0; /* Remove padding no hover */
}

.portfolio-card-large:hover .details {
    opacity: 1;
    max-height: 200px;
    margin-top: 1rem;
}

/* ADMIN PANEL */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: rgba(20, 20, 20, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    color: var(--color-text-primary);
}

.admin-table th {
    background: rgba(10, 10, 10, 0.8);
    color: var(--color-accent);
}

.admin-action {
    color: var(--color-text-primary);
    text-decoration: underline;
    margin-right: 1rem;
}

.admin-action:hover {
    color: var(--color-accent);
}

/* HEADER SCROLLED */
header {
    transition: background 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    background: rgba(11, 12, 14, 0.98);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

/* MENU TOGGLE HAMBURGUER */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* DROPDOWNS */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-trigger::after {
    content: '▾';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-trigger::after,
.dropdown:hover .dropdown-trigger::after {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #141518;
    min-width: 220px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 105;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -0.6rem;
    left: 0;
    width: 100%;
    height: 0.6rem;
}

.dropdown-content a {
    color: var(--color-text-secondary);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-accent);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    z-index: 1000;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* CONTACT GRID */
.contact-grid {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
    width: 100%;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    .flex-row { flex-direction: column; }
    .contact-grid { flex-direction: column; }
    .card { flex: 1 1 100%; }
    .portfolio-item { padding: 2rem; height: 50vh; }
    .hero .flex-row { flex-direction: column; }
    .logo-text { display: none; }
    .header-container { flex-direction: row !important; }
    
    .menu-toggle {
        display: flex;
    }
    
    nav.flex-row {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #0b0c0e;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 100;
        padding: 2rem;
    }
    
    nav.flex-row.active {
        display: flex;
    }
    
    .dropdown {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-content {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        display: none;
        padding-top: 0.5rem;
        transform: none;
        margin-top: 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }
    
    nav a {
        font-size: 1.2rem;
    }
}

/* COOKIE BANNER (LGPD) */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 12, 14, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-banner.show {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .cookie-banner .container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
}
