/**
 * Landing Page Specific Styles
 * Untitled UI Inspired Components
 * 
 * @package ConexCordy
 */

/* ==========================================
   SITE HEADER (Floating)
   ========================================== */

.floating-header {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.container--header {
    max-width: var(--container-max);
}

.header-inner {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-2xl);
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.header-logo img {
    height: 55px;
    width: auto;
}

.logo-fallback {
    font-weight: var(--font-bold);
    font-size: var(--text-xl);
    color: var(--color-primary-600);
}

.header-nav {
    display: none;
    /* Hidden on mobile by default */
}

@media (min-width: 1024px) {
    .header-nav {
        display: flex;
        align-items: center;
        gap: var(--space-8);
    }
}

.header-menu {
    list-style: none;
    display: flex;
    gap: var(--space-8);
    margin: 0;
    padding: 0;
}

.header-menu a {
    color: var(--color-gray-700);
    font-weight: var(--font-medium);
    font-size: var(--text-base);
    transition: color var(--transition-fast);
}

.header-menu a:hover {
    color: var(--color-primary-600);
}

.header-cta {
    display: none;
    /* Hidden on mobile by default */
}

.header-wp-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.header-wp-btn .btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    z-index: 1100;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-gray-900);
    border-radius: 2px;
    transition: all var(--transition-base);
}

@media (min-width: 1024px) {
    .header-nav {
        display: flex;
    }

    .header-cta {
        display: block;
    }

    .mobile-nav-toggle {
        display: none;
    }
}

@media (max-width: 1023px) {
    .header-inner {
        padding: var(--space-3) var(--space-4);
        margin: 0 var(--space-2);
    }

    .header-logo img {
        height: 32px;
    }

    /* Mobile menu visible when active */
    .menu-active .header-nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        margin-top: var(--space-2);
        padding: var(--space-6);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-xl);
        z-index: 1000;
        animation: fadeInUp 0.3s ease-out;
    }

    .menu-active .header-menu {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .menu-active .header-cta {
        display: block;
        margin-top: var(--space-6);
        text-align: center;
        width: 100%;
    }

    .menu-active .header-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Hamburger Animation */
    .menu-active .mobile-nav-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

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

    .no-scroll {
        overflow: hidden;
    }
}

/* ==========================================
   SECTION 1: HERO
   ========================================== */

.hero-section {
    background: #000000;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlay removed as per user request */
.hero-overlay {
    display: none;
}

/* Background gradient filter removed as per user request */
.hero-section::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
}

.hero-content .microtag {
    animation: fadeInUp 0.6s ease-out;
    color: var(--color-primary-300);
    /* Lighter blue for dark background */
}

.hero-content h1 {
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
    margin-bottom: var(--space-6);
    color: #ffffff;
}

.hero-content .subheadline {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: var(--space-8);
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-content .btn-group {
    justify-content: center;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

/* ==========================================
   SECTION 2: TRUST & COMPLIANCE
   ========================================== */

.trust-section {
    background-color: #ffffff;
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
    text-align: center;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-6);
    margin: var(--space-8) 0;
    font-size: var(--text-lg);
    color: var(--color-gray-700);
    font-weight: var(--font-medium);
}

.badges-container .badge-item {
    padding: var(--space-3) var(--space-6);
    background-color: var(--color-gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-base);
}

.badges-container .badge-item:hover {
    background-color: var(--color-primary-50);
    border-color: var(--color-primary-200);
    transform: translateY(-2px);
}

.trust-phrase {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
    max-width: 700px;
    margin: var(--space-6) auto;
}

/* ==========================================
   SECTION 3-7: CONTENT SECTIONS
   ========================================== */

.content-section {
    background-color: #ffffff;
}

.content-section:nth-child(even) {
    background-color: var(--color-gray-50);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-12) auto;
}

.section-intro {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
    max-width: 700px;
    margin: 0 auto var(--space-8) auto;
}

.cards-grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
    .cards-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .cards-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.section-footer {
    text-align: center;
    margin-top: var(--space-10);
}

.microcopy-text {
    font-size: var(--text-base);
    color: var(--color-gray-600);
    text-align: center;
    max-width: 700px;
    margin: var(--space-10) auto var(--space-6) auto;
}

/* ==========================================
   SECTION 5: PRODUCTS WITH CAROUSEL
   ========================================== */

.products-grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

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

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

.product-card {
    display: flex;
    flex-direction: column;
}

.product-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--color-gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-4);
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.carousel-slide:first-child,
.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reference-tag {
    position: absolute;
    bottom: var(--space-3);
    left: var(--space-3);
    background-color: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
    letter-spacing: 0.025em;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    color: var(--color-gray-700);
    opacity: 0.7;
    z-index: 2;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-md);
    opacity: 1;
}

.carousel-btn--prev {
    left: var(--space-2);
}

.carousel-btn--next {
    right: var(--space-2);
}

.carousel-dots {
    position: absolute;
    bottom: var(--space-3);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-2);
    z-index: 2;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.75);
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: #ffffff;
    width: 24px;
    border-radius: 4px;
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

.product-card .card__description {
    font-size: var(--text-sm);
    flex: 1;
}

/* ==========================================
   SECTION 6: PROCESS STEPS
   ========================================== */

.process-container {
    display: grid;
    gap: var(--space-10);
    align-items: start;
}

@media (min-width: 1024px) {
    .process-container {
        grid-template-columns: 2fr 1fr;
        /* 8/12 + 4/12 approximation */
    }
}

.process-steps {
    position: relative;
}

.process-step {
    display: flex;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    position: relative;
    align-items: flex-start;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
}

.step-content {
    flex: 1;
    padding-top: var(--space-1);
}

.step-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-2);
}

.step-description {
    font-size: var(--text-base);
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* Connecting line between steps */
.process-step:not(:last-child) .step-number::after {
    content: '';
    position: absolute;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + var(--space-8));
    background: linear-gradient(to bottom, var(--color-primary-300), var(--color-gray-200));
}

.process-cta {
    margin-top: var(--space-8);
}

.process-image {
    position: sticky;
    top: var(--space-6);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background-color: var(--color-gray-100);
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1023px) {
    .process-container {
        grid-template-columns: 1fr;
    }

    .process-image {
        order: -1;
        /* Image on top for mobile */
        position: relative;
        max-height: 400px;
    }
}

@media (max-width: 767px) {
    .step-number {
        width: 48px;
        height: 48px;
        font-size: var(--text-xl);
    }

    .process-image {
        max-height: 300px;
    }
}

/* ==========================================
   SECTION 8: REVIEWS/TESTIMONIALS
   ========================================== */

.reviews-section {
    background: linear-gradient(135deg, var(--color-primary-50) 0%, #ffffff 100%);
    text-align: center;
}

.trustindex-container {
    margin-top: var(--space-8);
    padding: var(--space-8);
    background-color: #ffffff;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   SECTION 9: FAQ
   ========================================== */

.faq-section {
    background-color: #ffffff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--color-primary-300);
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: var(--space-6);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-gray-900);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    background-color: var(--color-gray-50);
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: var(--color-primary-50);
}

.faq-question::after {
    content: '+';
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-primary-600);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--space-6);
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item.active .faq-answer {
    padding: var(--space-6);
    max-height: 500px;
}

.faq-answer p {
    font-size: var(--text-base);
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================
   SECTION 10: FORM
   ========================================== */

.form-section {
    background: linear-gradient(135deg, var(--color-gray-50) 0%, #ffffff 100%);
}

.form-container {
    display: grid;
    gap: var(--space-10);
    align-items: start;
}

@media (min-width: 1024px) {
    .form-container {
        grid-template-columns: 1fr 1.5fr;
    }
}

@media (min-width: 1024px) {
    .form-copy {
        position: sticky;
        top: var(--space-6);
    }
}

.form-copy h2 {
    margin-bottom: var(--space-4);
}

.form-copy .intro-text {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
    margin-bottom: var(--space-6);
}

.form-copy ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.form-copy ul li {
    padding: var(--space-3) 0 var(--space-3) var(--space-8);
    position: relative;
    color: var(--color-gray-700);
    font-size: var(--text-base);
}

.form-copy ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary-600);
    font-weight: var(--font-bold);
    font-size: var(--text-xl);
}

.contact-form {
    background-color: #ffffff;
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-gray-200);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0 var(--space-6);
    }
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-gray-700);
    margin-bottom: var(--space-2);
}

.form-label.required::after {
    content: ' *';
    color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    font-family: var(--font-sans);
    color: var(--color-gray-900);
    background-color: #ffffff;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

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

.form-file {
    font-size: var(--text-sm);
}

.form-lgpd {
    font-size: var(--text-xs);
    color: var(--color-gray-500);
    line-height: 1.5;
    margin-top: var(--space-4);
    padding: var(--space-3);
    background-color: var(--color-gray-50);
    border-radius: var(--radius-md);
}

.form-submit {
    width: 100%;
}

/* ==========================================
   SECTION 11: FINAL CTA
   ========================================== */

.final-cta-section {
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-800));
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    pointer-events: none;
}

.final-cta-section h2,
.final-cta-section p {
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.final-cta-section .btn-group {
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
    background-color: var(--color-gray-900);
    color: var(--color-gray-300);
    padding: var(--space-12) 0 var(--space-6) 0;
}

.footer-content {
    display: grid;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

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

.footer-section h3 {
    color: #ffffff;
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

.footer-section p {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
    line-height: 1.6;
    margin-bottom: var(--space-2);
}

.footer-section a {
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--color-primary-400);
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-800);
    padding-top: var(--space-6);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

.footer-bottom a {
    color: var(--color-gray-500);
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: var(--color-primary-400);
}

/* ==========================================
   RESPONSIVE UTILITIES
   ========================================== */

@media (max-width: 767px) {
    .section {
        padding: var(--space-12) 0;
    }

    .hero-section {
        padding: 140px 0 var(--space-12) 0;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}