/* Landing Page - Apple Style Design System */
@import 'carousel.css';

:root {
    --primary-color: #0071e3;
    /* Apple Blue */
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bg-light: #fbfbfd;
    --bg-white: #ffffff;
    --spacing-section: 80px;
    --radius-card: 24px;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --header-height: 60px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    padding-top: var(--header-height);
    /* Space for fixed header */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

/* Header */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.header-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    height: 32px;
    width: auto;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-link {
    font-size: 12px;
    color: var(--text-primary);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.header-link:hover {
    opacity: 1;
    color: var(--primary-color);
}

.header-btn {
    background: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #0077ed;
    transform: scale(1.02);
}

/* Typography */
.hero-headline {
    font-size: 56px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subheadline {
    font-size: 24px;
    line-height: 1.23333;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.section-headline {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -0.003em;
    margin-bottom: 60px;
    text-align: center;
}

.text-large {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
}

/* Layout */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--spacing-section) 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Components */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 980px;
    /* Pill shape */
    font-size: 17px;
    line-height: 1.17648;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #0077ed;
    transform: scale(1.02);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(0, 113, 227, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: calc(-1 * var(--header-height));
    overflow: hidden;
    /* Ensure slides don't overflow */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    /* Fast snappy transition */
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Ensure first slide is visible immediately even before JS loads */
.hero-slide:first-child {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Darken image for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    padding-top: var(--header-height);
}

.hero-headline {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subheadline {
    color: rgba(255, 255, 255, 0.9);
}

/* Social Proof Strip */
.social-proof {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}

.social-proof p {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

/* Cards */
.feature-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

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

.feature-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 17px;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    padding: 50px 40px;
    border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: var(--primary-color);
}

.pricing-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.pricing-unit {
    font-size: 17px;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-features {
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    display: flex;
    align-items: center;
}

.pricing-features i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 14px;
}

.pricing-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

.pricing-actions .btn {
    width: 100%;
    max-width: 300px;
    /* Prevent them from being too wide on large screens */
}

/* Partners Section */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    opacity: 0.6;
}

.partner-logo {
    height: 40px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
}

/* Form Section */
.form-section {
    background-color: var(--bg-light);
}

.form-container {
    background: white;
    padding: 60px;
    border-radius: var(--radius-card);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-input,
.form-select {
    width: 100%;
    padding: 16px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 17px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid #d2d2d7;
    padding: 24px 0;
}

.faq-question {
    font-size: 19px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 17px;
    display: none;
    /* JS toggle needed */
}

.faq-answer.active {
    display: block;
}

/* Footer */
.landing-footer {
    background: #f5f5f7;
    padding: 40px 0;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.footer-links a {
    margin: 0 10px;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 40px;
    }

    .grid-3,
    .grid-2,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-container {
        padding: 30px;
    }

    .section {
        padding: 60px 0;
    }

    .header-link {
        display: none;
        /* Hide link on mobile, keep button */
    }


}

/* Animations */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-200px * 5));
    }
}

/* Services & Guarantees */
.service-list li {
    margin-bottom: 12px;
    font-size: 17px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
}

.service-list i {
    color: var(--primary-color);
    margin-right: 12px;
    margin-top: 4px;
}

.guarantee-box {
    background: #f0f8ff;
    /* Light Alice Blue */
    border: 1px solid #dbeafe;
    border-radius: var(--radius-card);
    padding: 40px;
    margin-top: 60px;
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.guarantee-item h4 {
    font-size: 19px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.guarantee-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.guarantee-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* CTA Contact Section */
.cta-contact-section {
    position: relative;
    overflow: hidden;
}

.cta-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 113, 227, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.btn-whatsapp:hover {
    background: #20BA5A !important;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
}

.btn-phone:hover {
    background: #0077ed !important;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4) !important;
}

/* CTA Find Staff Section */
.cta-find-staff {
    position: relative;
}

.btn-cta-apple {
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
}

.btn-cta-apple:hover {
    background: #0077ed !important;
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.btn-cta-apple:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .guarantee-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Mobile Hero Fix: Replace first image with hero6 */
    .hero-slide:first-child {
        background-image: url('/assets/images/hero6.avif') !important;
    }
    
    .cta-contact-section .btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    
    .cta-contact-section .btn span {
        flex: 1;
        text-align: center;
    }
    
    .cta-find-staff .section-headline {
        font-size: 36px !important;
    }
    
    .cta-find-staff .text-large {
        font-size: 18px !important;
    }
    
    .btn-cta-primary {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
}
