/* Main Stylesheet - Fidèle Agency */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    /* Brand Colors */
    --primary: #0B1F3A;
    /* Deep Navy */
    --primary-light: #162d50;
    --bg: #F7F6F2;
    /* Off-white */
    --surface: #FFFFFF;
    /* Pure white for cards */
    --neutral: #AEB4BE;
    /* Soft Gray */
    --neutral-light: #E2E4E8;
    --accent: #B59A7A;
    /* Warm Sand */
    --accent-dark: #9A8265;
    --text-main: #0B1F3A;
    --text-muted: #546072;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(11, 31, 58, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(11, 31, 58, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(11, 31, 58, 0.1);
    --shadow-premium: 0 20px 40px -10px rgba(11, 31, 58, 0.15);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1.display-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

p.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 60ch;
    margin-bottom: 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent);
}

.bg-primary {
    background-color: var(--primary);
    color: white;
}

.bg-light {
    background-color: var(--surface);
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media(min-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.section {
    padding: var(--spacing-xl) 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 100px;
    /* Pill shape */
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-accent {
    background-color: var(--accent);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
}


/* Logo Sizing */
.logo-nav {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.logo-footer {
    height: 70px;
    width: auto;
    object-fit: contain;
    margin-bottom: 3rem;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(247, 246, 242, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand img {
    height: 40px;
    /* Placeholder height */
}

.nav-brand-text {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: clamp(3rem, 10vw, 6rem) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(181, 154, 122, 0.15) 0%, rgba(247, 246, 242, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-visual {
    margin-top: 3rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    padding: 2rem;
    border: 1px solid var(--neutral-light);
    min-height: 400px;
    /* Placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral);
    font-style: italic;
    position: relative;
}

/* Trust Badges */
.trust-badges {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.trust-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: -0.02em;
    font-family: 'Outfit', sans-serif;
}

/* Feature Cards */
.card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--neutral-light);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.card-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Language Switcher */
.lang-switch {
    position: relative;
    cursor: pointer;
    font-weight: 500;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
    min-width: 120px;
    display: none;
    z-index: 100;
}

.lang-switch:hover .lang-dropdown {
    display: block;
}

.lang-option {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--primary-light);
    color: white;
}

/* Pricing 3D Flip */
.pricing-section {
    background: var(--primary);
    color: white;
}

.pricing-section .section-title {
    color: white;
}

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    perspective: 1000px;
}

.price-card-wrapper {
    background-color: transparent;
    width: 320px;
    height: 480px;
    perspective: 1000px;
}

.price-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.price-card-wrapper.flipped .price-card-inner {
    transform: rotateY(180deg);
}

.price-card-front,
.price-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
}

.price-card-front {
    background-color: var(--surface);
    color: var(--text-main);
}

.price-card-front.popular {
    border: 2px solid var(--accent);
    position: relative;
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
}

.price-card-back {
    background-color: var(--primary-light);
    color: white;
    transform: rotateY(180deg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.price-amount span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.price-card-back ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 3rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--neutral-light);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--primary);
}

.comparison-table th {
    background: var(--bg);
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 4rem 0 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}


/* Forms */
.contact-form {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
    background-color: #fafafa;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.1);
    background-color: white;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Responsive */
@media (max-width: 900px) {

    /* Navbar Mobile */
    .mobile-menu-btn {
        display: block;
        order: 3;
        margin-left: auto;
        z-index: 1001;
        /* Ensure above nav-links (999) */
        position: relative;
    }

    .nav-actions {
        display: none !important;
        /* Hide desktop actions on mobile to prevent crowding */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
        display: flex;
    }

    /* Mobile Menu Items */
    .nav-link {
        font-size: 1.5rem;
    }

    .nav-link.mobile-only {
        display: block !important;
        color: var(--primary);
        font-weight: 700;
        margin-top: 1rem;
    }

    /* Inject Mobile CTA in Menu via JS or duplicate in HTML (we'll rely on HTML structure update) */

    /* Typography Scale Down */
    h1.display-title {
        font-size: 2.5rem;
    }

    h2.section-title {
        font-size: 2rem;
    }

    /* Spacing */
    .section {
        padding: var(--spacing-md) 0;
    }

    /* Hero */
    .hero-content {
        padding: 0 var(--spacing-sm);
    }

    .trust-badges {
        gap: 1.5rem;
    }

    .trust-text {
        font-size: 1.1rem;
    }

    /* Pricing Carousel */
    .pricing-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 2rem 5vw;
        /* Use vw for dynamic padding */
        gap: 1.5rem;
        /* Increased gap for better separation */
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        /* Full bleed container */
        scrollbar-width: none;
        /* Hide scrollbar for aesthetics */
    }

    .pricing-container::-webkit-scrollbar {
        display: none;
    }

    .pricing-container::after {
        content: '';
        min-width: 5vw;
        /* Spacer at the end */
    }

    .price-card-wrapper {
        scroll-snap-align: center;
        min-width: 75vw;
        /* Reduced from 85vw to show preview of next card */
        width: 75vw;
        max-width: 320px;
        flex-shrink: 0;
        /* Prevent shrinking */
    }

    /* Comparison Table Scroll */
    .comparison-table {
        min-width: 600px;
        /* Force scroll */
    }

    /* Carousel Dots */
    .carousel-dots {
        display: flex !important;
    }

    .dot {
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transition: all 0.3s;
    }

    .dot.active {
        background: white;
        transform: scale(1.2);
    }
}