/* Variáveis de Cores - Modo Claro */
:root {
    --primary-color: #121212; /* Preto não puro - 60% */
    --secondary-color: #ffffff; /* Branco - 30% */
    --accent-color: #0056f9; /* Azul - 10% */
    --accent-color-light: #4f89ff;
    --subtle-accent: #e91e63; /* Cor sutil para detalhes */
    --background-color: #f8f9fa;
    --card-bg: #ffffff;
    --card-bg-rgb: 255, 255, 255;
    --text-color: #121212;
    --text-color-light: #4a4a4a;
    --border-color: rgba(0, 0, 0, 0.08);
    --slider-bg: #e0e0e0;
    --slider-filled: #0056f9;
    --switch-bg: #e0e0e0;
    --switch-checked: #0056f9;
    --switch-thumb: #ffffff;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --glow: 0 0 15px rgba(0, 86, 249, 0.2);
    --form-bg: #f8f9fa;
}

/* Variáveis de Cores - Modo Escuro */
[data-theme="dark"] {
    --primary-color: #ffffff; /* Invertido para modo escuro */
    --secondary-color: #151515; /* Quase preto, não puro */
    --accent-color: #3a7dff; /* Azul mais vibrante para modo escuro */
    --accent-color-light: #5b93ff; /* Azul mais saturado para hover */
    --subtle-accent: #ff4081; /* Tom mais brilhante para modo escuro */
    --background-color: #0a0a0a;
    --card-bg: #151515;
    --card-bg-rgb: 21, 21, 21;
    --text-color: #ffffff;
    --text-color-light: #b0b0b0;
    --border-color: rgba(255, 255, 255, 0.08);
    --slider-bg: #333333;
    --slider-filled: #3a7dff;
    --switch-bg: #333333;
    --switch-checked: #3a7dff;
    --switch-thumb: #ffffff;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    --glow: 0 0 15px rgba(79, 137, 255, 0.35);
    --form-bg: #2a2a2a; /* Cinza escuro para formulários no modo escuro */
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.618; /* Proporção áurea */
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 2vw, 24px);
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.618rem; /* Proporção áurea */
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-color-light);
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.2s ease;
}

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

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-scrolled {
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    background-color: rgba(var(--background-color), 0.8);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-color-light);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 50px;
    height: 24px;
    border-radius: 12px;
    background-color: var(--slider-bg);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--switch-thumb);
    transform: translateX(0);
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle.dark::before {
    transform: translateX(26px);
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    margin-bottom: 24px;
    position: relative;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(var(--accent-color), 0.05));
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glow);
    width: auto;
}

.cta-button:hover {
    background-color: var(--accent-color-light);
    transform: translateY(-2px);
    color: white;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.cta-button:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s ease;
    cursor: pointer;
    margin-left: 16px;
    font-size: 1rem;
}

.secondary-button:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Services Section */
.services {
    padding: 80px 0;
    position: relative;
}

/* Espaçamento áureo entre seções */
section {
    padding: 5rem 0;
    margin-top: calc(5rem / 1.618);
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 32px;
    transition: 0.3s ease;
    position: relative;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--accent-color);
    transition: height 0.3s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    margin-bottom: 24px;
    font-size: 32px;
    color: var(--accent-color);
}

.service-card h3 {
    margin-bottom: 16px;
    position: relative;
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background-color: var(--background-color);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.portfolio-filter {
    padding: 8px 24px;
    border-radius: 30px;
    background-color: var(--card-bg);
    color: var(--text-color-light);
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.portfolio-filter.active, .portfolio-filter:hover {
    background-color: var(--accent-color);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 250px;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-overlay h4 {
    color: white;
    margin-bottom: 8px;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.7);
}

/* Blog Section */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--accent-color);
    z-index: 9999; /* Aumentei para garantir que fique acima de tudo */
    transition: width 0.1s ease;
}

.blog {
    padding: 80px 0;
    background-color: var(--background-color);
    position: relative;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.blog-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.blog-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 2;
}

.blog-content {
    padding: 24px;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: 0.2s ease;
}

.blog-card:hover .blog-title {
    color: var(--accent-color);
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-color-light);
    margin-bottom: 16px;
}

.blog-excerpt {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-color-light);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    font-size: 0.9rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

.blog-read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.blog-read-more:hover::after {
    width: 100%;
}

.blog-cta {
    text-align: center;
    margin-top: 50px;
}

/* Calculator Section - REDESENHADO PARA MELHOR RESPONSIVIDADE */
.calculator-section {
    padding: 80px 0;
    background-color: var(--card-bg);
    position: relative;
    overflow: hidden;
}

.calculator-container {
    max-width: 840px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 40px;
    position: relative;
}

@media (max-width: 768px) {
    .calculator-container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .calculator-container {
        padding: 20px 15px;
        border-radius: 16px;
    }
}

/* Novos estilos para o display de preços */
.price-display {
    text-align: left;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 16px;
    background-color: var(--background-color);
    position: relative;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

@media (max-width: 480px) {
    .price-display {
        padding: 15px;
        border-radius: 12px;
    }
}

.price-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    position: relative;
}

.price-title {
    font-size: 1.3rem;
    margin-bottom: 0;
    color: var(--text-color);
}

@media (max-width: 480px) {
    .price-title {
        font-size: 1.1rem;
    }
}

.price-subtitle {
    font-size: 0.9rem;
    color: var(--text-color-light);
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .price-subtitle {
        font-size: 0.8rem;
    }
}

/* Estilos para a integração com WhatsApp */
.whatsapp-info {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-top: 15px;
}

@media (max-width: 480px) {
    .whatsapp-info {
        padding: 12px;
        border-radius: 10px;
    }
}

.whatsapp-badge {
    display: inline-flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 15px;
}

@media (max-width: 480px) {
    .whatsapp-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
        border-radius: 20px;
        margin-bottom: 10px;
    }
}

.whatsapp-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

@media (max-width: 480px) {
    .whatsapp-icon {
        font-size: 1rem;
        margin-right: 6px;
    }
}

.whatsapp-benefits {
    list-style: none;
    padding-left: 5px;
    margin-bottom: 0;
}

.whatsapp-benefits li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-color);
}

@media (max-width: 480px) {
    .whatsapp-benefits li {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
}

.whatsapp-button-icon {
    margin-right: 8px;
}

#quote-button {
    background-color: #25D366;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    width: 100%;
    max-width: 380px;
}

@media (max-width: 480px) {
    #quote-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

#quote-button:hover {
    background-color: #1da951;
    transform: translateY(-2px);
}

/* Calculator Grid (REESTILIZADO) */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
}

@media (max-width: 768px) {
    .calculator-grid {
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .calculator-grid {
        gap: 20px;
    }
}

/* Sliders Section */
.sliders-section {
    width: 100%;
}

.slider-container {
    position: relative;
    margin-bottom: 30px;
    padding: 10px 0;
    width: 100%;
}

@media (max-width: 480px) {
    .slider-container {
        margin-bottom: 20px;
    }
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

@media (max-width: 480px) {
    .slider-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.slider-label {
    font-weight: 500;
    color: var(--text-color);
}

.slider-value {
    display: inline-block;
    min-width: 90px;
    padding: 8px 12px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-weight: 700;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .slider-value {
        min-width: auto;
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, var(--accent-color) 0%, var(--accent-color) 50%, var(--slider-bg) 50%, var(--slider-bg) 100%);
    outline: none;
    -webkit-transition: .2s;
    transition: background .2s;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover,
.slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(var(--accent-color), 0.1);
}

.slider::-moz-range-thumb:hover,
.slider::-moz-range-thumb:active {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(var(--accent-color), 0.1);
}

/* Options Section */
.options-section {
    width: 100%;
}

.option-group {
    margin-bottom: 24px;
}

.option-group h4 {
    margin-bottom: 16px;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

@media (max-width: 480px) {
    .option-group h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
}

.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.switch-label {
    flex: 1;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--switch-bg);
    transition: .3s;
    border-radius: 24px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--switch-thumb);
    transition: .3s;
    border-radius: 50%;
}

input:checked + .switch-slider {
    background-color: var(--switch-checked);
}

input:checked + .switch-slider:before {
    transform: translateX(24px);
}

/* Format options - REDESENHADO PARA MELHOR RESPONSIVIDADE */
.format-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 480px) {
    .format-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

.format-option {
    position: relative;
    cursor: pointer;
}

.format-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.format-checkmark {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100px;
    background-color: var(--background-color);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    overflow: hidden;
}

@media (max-width: 768px) {
    .format-checkmark {
        min-height: 90px;
    }
}

@media (max-width: 480px) {
    .format-checkmark {
        min-height: 80px;
        padding: 10px 5px;
        border-radius: 8px;
    }
}

.format-checkmark::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background-color: transparent;
    transition: all 0.3s ease;
    z-index: 1;
}

@media (max-width: 480px) {
    .format-checkmark::before {
        width: 18px;
        height: 18px;
        top: 5px;
        right: 5px;
    }
}

.format-option input:checked + .format-checkmark::before {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' stroke='white' stroke-width='3' fill='none'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px;
}

.format-option input:checked + .format-checkmark {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color);
    transform: translateY(-5px);
}

.format-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(var(--accent-color), 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .format-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .format-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
        margin-bottom: 6px;
        border-radius: 8px;
    }
}

.format-option input:checked + .format-checkmark .format-icon {
    background-color: var(--accent-color);
    color: white;
}

.format-name {
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

@media (max-width: 480px) {
    .format-name {
        font-size: 0.8rem;
    }
}

.format-option input:checked + .format-checkmark .format-name {
    color: var(--accent-color);
    font-weight: 700;
}

/* Format advanced options */
.format-advanced-toggle {
    margin-top: 20px;
}

.format-advanced-btn {
    background-color: var(--background-color);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 480px) {
    .format-advanced-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

.format-advanced-btn::after {
    content: '▼';
    display: inline-block;
    margin-left: 8px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.format-advanced-btn.active::after {
    transform: rotate(180deg);
}

.format-advanced-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Format advanced options panel */
.format-advanced-options {
    padding: 20px;
    background-color: var(--background-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .format-advanced-options {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .format-advanced-options {
        padding: 10px;
        border-radius: 8px;
    }
}

.aspect-ratio-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.aspect-ratio-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.aspect-ratio-title {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--accent-color);
}

@media (max-width: 480px) {
    .aspect-ratio-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
}

.aspect-ratio-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 480px) {
    .aspect-ratio-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

.aspect-ratio-option {
    position: relative;
    cursor: pointer;
}

.aspect-ratio-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.aspect-ratio-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.aspect-ratio-checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

@media (max-width: 768px) {
    .aspect-ratio-checkmark {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .aspect-ratio-checkmark {
        padding: 6px 8px;
        border-radius: 6px;
    }
}

.aspect-ratio-option input:checked + .aspect-ratio-checkmark {
    border-color: var(--accent-color);
    background-color: rgba(var(--accent-color), 0.05);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.aspect-ratio-value {
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .aspect-ratio-value {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .aspect-ratio-value {
        font-size: 0.8rem;
    }
}

.aspect-ratio-option input:checked + .aspect-ratio-checkmark .aspect-ratio-value {
    color: var(--accent-color);
}

.aspect-ratio-help {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    background-color: var(--text-color-light);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    margin-left: 8px;
    cursor: help;
}

@media (max-width: 480px) {
    .aspect-ratio-help {
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }
}

/* Tooltip Personalizado */
.aspect-ratio-help {
    position: relative;
}

.aspect-ratio-help:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: normal;
    width: max-content;
    max-width: 220px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    z-index: 100;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
}

.aspect-ratio-help:hover::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--border-color) transparent transparent transparent;
    z-index: 101;
}

@media (max-width: 768px) {
    .aspect-ratio-help:hover::after {
        left: auto;
        right: -10px;
        transform: translateY(-100%);
        max-width: 200px;
    }
    
    .aspect-ratio-help:hover::before {
        left: auto;
        right: 4px;
    }
}

@media (max-width: 480px) {
    .aspect-ratio-help:hover::after {
        max-width: 160px;
        padding: 6px 8px;
        font-size: 0.7rem;
    }
}

/* Notes container */
.notes-container {
    margin-top: 20px;
    width: 100%;
}

.notes-container h4 {
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .notes-container h4 {
        margin-bottom: 12px;
    }
}

.notes-textarea {
    width: 100%;
    min-height: 120px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 16px;
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: 0.3s ease;
}

@media (max-width: 480px) {
    .notes-textarea {
        min-height: 100px;
        padding: 12px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

.notes-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-color), 0.15);
}

/* Calculator submit button */
.calculator-bottom {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    width: 100%;
}

@media (max-width: 480px) {
    .calculator-bottom {
        margin-top: 30px;
    }
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
    position: relative;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Garante mesma altura para todos os cards */
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 120px;
    font-family: serif;
    color: var(--accent-color);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    font-style: italic;
    flex-grow: 1; /* Isso faz o conteúdo ocupar o espaço disponível */
}

.testimonial-client {
    display: flex;
    margin-top: auto; /* Empurra para o final do card */
    /* align-items: flex-start; Alinhar à esquerda dentro do card */
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.client-info {
    display: flex;
    flex-direction: column;
}

.client-info h5 {
    margin-bottom: 5px;
}

.client-position {
    font-size: 0.9rem;
    color: var(--text-color-light);
    margin-bottom: 5px;
}

.client-rating {
    display: flex;
    gap: 4px;
    color: #FFD700;
}

/* Target Clients */
.target-clients {
    padding: 80px 0;
    background-color: var(--background-color);
    position: relative;
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.target-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 40px 32px;
    transition: 0.3s ease;
    position: relative;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.target-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.target-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.target-card:hover::before {
    transform: scaleX(1);
}

.target-icon {
    font-size: 48px;
    margin-bottom: 24px;
    color: var(--accent-color);
    display: inline-block;
    position: relative;
}

.target-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: rgba(var(--accent-color), 0.1);
    border-radius: 50%;
    z-index: -1;
    bottom: -5px;
    right: -5px;
    transform: scale(2);
}

.target-card h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    position: relative;
}

.target-card p {
    margin-bottom: 24px;
    color: var(--text-color-light);
    font-size: 1rem;
}

.target-benefits {
    margin: 20px 0 30px;
    padding-left: 20px;
}

.target-benefits li {
    color: var(--text-color-light);
    margin-bottom: 12px;
    position: relative;
    list-style-type: none;
}

.target-benefits li::before {
    content: '✓';
    position: absolute;
    left: -20px;
    color: var(--accent-color);
    font-weight: bold;
}

.target-cta {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    padding: 12px 24px;
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    background-color: var(--card-bg);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: inline-block;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 16px;
    text-decoration: none;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-column h4 {
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-color-light);
    transition: 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: 0.3s ease;
    text-decoration: none;
    font-size: 18px;
}

.social-link:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.9rem;
    color: var(--text-color-light);
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background-color: var(--accent-color);
    position: relative;
    overflow: hidden;
    color: white;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(150px, -150px);
}

.newsletter::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(-100px, 100px);
}

.newsletter-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.newsletter-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: white;
}

.newsletter-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-benefits {
    list-style: none;
    margin-bottom: 0;
}

.newsletter-benefits li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 12px;
    font-size: 0.9rem;
    font-weight: bold;
}

.newsletter-form-container {
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(168, 168, 168, 0.2);
    position: relative;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    width: 100%;
}

.newsletter-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background-color: #e8e8e8;
    color: #333333;
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-size: 1rem;
    transition: 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-color), 0.15);
}

.newsletter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background-color: var(--accent-color);
    transition: 0.3s ease;
}

.newsletter-button:hover {
    background-color: var(--accent-color-light);
}

.newsletter-icon {
    transition: transform 0.3s ease;
}

.newsletter-button:hover .newsletter-icon {
    transform: translateX(5px);
}

.newsletter-privacy {
    font-size: 0.8rem;
    text-align: center;
    color: var(--text-color-light);
    margin-top: 16px;
}

.newsletter-success {
    display: none;
    text-align: center;
    padding: 30px 20px;
}

.newsletter-success.active {
    display: block;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.newsletter-success h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.newsletter-success p {
    color: var(--text-color-light);
}

/* Aviso de Cookies */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 16px;
    display: none;
    z-index: 9998;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    max-width: 70%;
    line-height: 1.5;
    color: var(--text-color);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-accept {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s ease;
}

.cookie-essential {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s ease;
}

.cookie-accept:hover {
    background-color: var(--accent-color-light);
}

.cookie-essential:hover {
    background-color: var(--background-color);
}

/* Vídeos do portfólio */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 3;
    cursor: pointer;
}

.portfolio-item:hover .video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-play-btn:hover {
    background-color: var(--accent-color-light);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Modal de vídeo */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-container {
    background-color: var(--card-bg);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    padding: 20px;
    box-shadow: var(--shadow);
    transform: translateY(20px);
    transition: 0.3s ease;
    position: relative;
    margin: auto;
    text-align: center;
}

.modal-overlay.active .video-modal-container {
    transform: translateY(0);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color-light);
    transition: 0.3s ease;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close-btn:hover {
    color: var(--accent-color);
    background-color: rgba(0, 0, 0, 0.05);
}

/* Validação de formulários */
.invalid {
    border-color: #ff3860 !important;
    box-shadow: 0 0 0 1px #ff3860 !important;
}

.error-message {
    color: #ff3860;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

.fade-in {
    animation: fadeIn 0.6s forwards;
    opacity: 0;
}

/* Animation delays */
.animated-1 { animation-delay: 0.1s; }
.animated-2 { animation-delay: 0.3s; }
.animated-3 { animation-delay: 0.5s; }
.animated-4 { animation-delay: 0.7s; }

/* Responsividade geral */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 100;
        gap: 16px;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-background {
        width: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
        opacity: 0.05;
    }

    .services-grid,
    .target-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .portfolio-grid,
    .blog-grid {
        grid-template-columns: minmax(280px, 1fr);
    }

    .newsletter-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-content p {
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .secondary-button {
        margin-left: 0;
    }

    .service-card,
    .testimonial-card,
    .target-card {
        padding: 24px 20px;
    }

    .blog-meta {
        flex-direction: column;
        gap: 5px;
    }

    .portfolio-item {
        height: 200px;
    }

    .newsletter-title {
        font-size: 1.6rem;
    }
    
    .newsletter-description {
        font-size: 1rem;
    }

    .newsletter-form-container {
        padding: 20px;
    }

    body:not([data-theme]) {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    body[data-theme] {
        opacity: 1;
    }
}