/* ==========================================================================
   KODEX AUDIOVISUAL - SOCIAL MEDIA VIDEO BUDGET STYLES (ORCAMENTO)
   ========================================================================== */

/* Main Layout */
.orcamento-page {
    background-color: var(--bg-color);
    color: var(--color-white);
    min-height: 100vh;
}

/* Sections Global */
section {
    padding: 6rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    pointer-events: none;
    z-index: 1;
}

#home::after { background: var(--glow-warm); }
#portfolio::after { background: var(--glow-teal); }
#planos::after { background: var(--glow-warm); }

/* Ensure content sits above glow */
.container {
    position: relative;
    z-index: 2;
}

/* 1. HERO RE-STYLING (Adapting main hero for Proposal Page) */
#home.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 6rem;
}

.hero-video-bg {
    filter: brightness(0.3);
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.95) 100%);
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-orange);
    display: inline-block;
    margin-bottom: 1rem;
    position: relative;
}

.hero-tagline::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--color-orange);
    margin-left: 10px;
    vertical-align: middle;
}

/* 2. DIFERENCIAIS CARDS */
.diferenciais-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 576px) {
    .diferenciais-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .diferenciais-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.diferencial-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.diferencial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-red), var(--color-orange));
    opacity: 0;
    transition: var(--transition-fast);
}

.diferencial-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(232, 99, 58, 0.05);
}

.diferencial-card:hover::before {
    opacity: 1;
}

.diferencial-icon {
    font-size: 2rem;
    color: var(--color-orange);
    margin-bottom: 1.5rem;
}

.diferencial-card h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.diferencial-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* 3. REELS/PORTFOLIO VIDEO GRID */
.reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Mobile-optimized grid on screens smaller than 576px (horizontal scroll list) */
@media (max-width: 575px) {
    .reels-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 1.5rem;
        scroll-snap-type: x mandatory;
        gap: 1.2rem;
        scrollbar-width: thin;
    }
    
    .reel-card {
        flex: 0 0 260px;
        scroll-snap-align: center;
    }
}

.reel-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
}

.reel-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 35px rgba(232, 99, 58, 0.1);
}

.reel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16; /* Reels vertical aspect ratio */
    background-color: #050505;
    overflow: hidden;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-card:hover .reel-video {
    transform: scale(1.04);
}

.reel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    z-index: 3;
    transition: var(--transition-normal);
}

.play-btn-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(232, 99, 58, 0.9);
    color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    align-self: flex-end;
    opacity: 0.8;
    transform: scale(0.9);
    transition: var(--transition-normal);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.reel-card:hover .play-btn-circle {
    opacity: 1;
    transform: scale(1.05);
    background-color: var(--color-orange);
    box-shadow: 0 0 15px rgba(232, 99, 58, 0.4);
}

.reel-info {
    color: var(--color-white);
}

.reel-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-yellow);
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
}

.reel-info h4 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.reel-info p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* Bastidores Photos Section */
.bastidores-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 680px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .bastidores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bastidores-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.bastidores-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.02);
}

.bastidores-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    max-height: 480px;
    overflow: hidden;
    cursor: pointer;
}

.bastidores-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bastidores-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.view-btn {
    padding: 0.6rem 1.2rem;
    background-color: var(--color-orange);
    color: var(--color-white);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    transform: translateY(10px);
    transition: var(--transition-normal);
}

.bastidores-card:hover .bastidores-img {
    transform: scale(1.05);
}

.bastidores-card:hover .bastidores-hover {
    opacity: 1;
}

.bastidores-card:hover .view-btn {
    transform: translateY(0);
}

.bastidores-info {
    padding: 1.5rem;
}

.bastidores-info h4 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.bastidores-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

/* 4. INTERACTIVE PRICING CALCULATOR */
.calculator-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto 5rem auto;
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.01);
}

.calculator-header {
    text-align: center;
    margin-bottom: 3rem;
}

.calculator-header h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.calculator-header p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.calculator-slider-container {
    margin: 0 auto 3.5rem auto;
    position: relative;
    max-width: 600px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.slider-label-item {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
}

.slider-label-item small {
    font-size: 0.7rem;
    opacity: 0.7;
}

.slider-label-item.active {
    color: var(--color-orange);
    font-weight: 700;
    transform: scale(1.05);
}

.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

/* Slider thumb styling */
.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-orange);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(232, 99, 58, 0.8);
    transition: transform 0.1s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-orange);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(232, 99, 58, 0.8);
    transition: transform 0.1s ease;
}

.calc-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Stats metrics details */
.calculator-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

@media (min-width: 576px) {
    .calculator-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .calculator-details {
        grid-template-columns: repeat(4, 1fr);
    }
}

.calc-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: var(--transition-normal);
}

.calc-metric:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.metric-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

.metric-val {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-white);
}

.metric-val.highlight {
    color: var(--color-yellow);
}

.economy-metric {
    border-color: rgba(26, 122, 110, 0.3);
    background-color: rgba(26, 122, 110, 0.03);
}

.metric-val.economy {
    color: var(--color-sage);
}

/* 5. PACKAGES PRICING CARDS */
.planos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .planos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 992px) {
    .planos-grid {
        gap: 2.5rem;
    }
}

.plano-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-normal);
}

.plano-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
}

.plano-card h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.plano-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.plano-price .currency {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-orange);
    margin-right: 0.2rem;
}

.plano-price .value {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 3rem;
    line-height: 1;
    color: var(--color-white);
}

.plano-price .period {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 0.3rem;
}

.plano-total-price {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.plano-economy {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: rgba(232, 99, 58, 0.1);
    color: var(--color-orange);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.plano-features {
    list-style: none;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.plano-features li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.plano-features li i {
    color: var(--color-orange);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.plano-card .btn {
    margin-top: auto;
}

/* Featured / Essentials Card Styling */
.plano-card.featured {
    border-color: var(--color-orange);
    box-shadow: 0 10px 40px rgba(232, 99, 58, 0.08);
    background: linear-gradient(180deg, #0b0705 0%, #080808 100%);
    transform: scale(1.02);
}

@media (max-width: 767px) {
    .plano-card.featured {
        transform: scale(1);
    }
}

.plano-card.featured .plano-badge {
    background-color: var(--color-orange);
    color: var(--color-white);
    border-color: var(--color-orange);
}

.plano-card.featured .plano-features li i {
    color: var(--color-yellow);
}

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

.plano-card.featured:hover {
    border-color: var(--color-orange);
    box-shadow: 0 15px 45px rgba(232, 99, 58, 0.15);
}

.plano-note {
    margin-top: 4rem;
    display: flex;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px dashed var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.plano-note i {
    color: var(--color-yellow);
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

.plano-note span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* 6. TIMELINE PROCESSO / PASSOS */
.passos-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.passos-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 1px;
    background-color: var(--border-color);
}

.passo-item {
    display: flex;
    gap: 2rem;
    position: relative;
}

.passo-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #0d0d0d;
    border: 1px solid var(--border-color);
    color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    z-index: 2;
    transition: var(--transition-normal);
}

.passo-item:hover .passo-number {
    background-color: var(--color-orange);
    border-color: var(--color-orange);
    color: var(--color-white);
    box-shadow: 0 0 15px rgba(232, 99, 58, 0.4);
}

.passo-content {
    padding-top: 0.4rem;
}

.passo-content h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.passo-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* 7. CONTACT / APPROVAL FORM INTS */
.btn-whatsapp {
    background-color: #25D366;
    color: var(--color-white) !important;
    border: none;
    transition: var(--transition-normal);
}

.btn-whatsapp:hover {
    background-color: #1ebd59;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

.direct-whatsapp-box {
    background-color: rgba(37, 211, 102, 0.03);
    border: 1px dashed rgba(37, 211, 102, 0.25);
    padding: 2rem;
    border-radius: 8px;
}

.direct-whatsapp-box h4 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.direct-whatsapp-box p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.contact-form-panel {
    border-color: var(--border-color);
}

/* Form selected state highlight classes */
.calc-selected-plan-essentials {
    box-shadow: 0 0 20px rgba(232, 99, 58, 0.15) !important;
    border-color: var(--color-orange) !important;
}

.calc-selected-plan-growth {
    box-shadow: 0 0 20px rgba(26, 122, 110, 0.15) !important;
    border-color: var(--color-teal) !important;
}

/* Pre-loader adjustments */
#preloader {
    background-color: var(--color-black);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reel-card {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reel-card:nth-child(1) { animation-delay: 0.1s; }
.reel-card:nth-child(2) { animation-delay: 0.15s; }
.reel-card:nth-child(3) { animation-delay: 0.2s; }
.reel-card:nth-child(4) { animation-delay: 0.25s; }
.reel-card:nth-child(5) { animation-delay: 0.3s; }
.reel-card:nth-child(6) { animation-delay: 0.35s; }
.reel-card:nth-child(7) { animation-delay: 0.4s; }
.reel-card:nth-child(8) { animation-delay: 0.45s; }
