/* =========================================
   VARIABLES & RESET
========================================== */
:root {
    /* Colors - Kudos Brown Emphasis */
    --color-primary: #967259;
    --color-primary-dark: #755541;
    --color-text: #1F2937;
    --color-text-light: #4B5563;
    --color-white: #ffffff;
    --color-light: #F3F6F8;

    /* Spacing & Layout */
    --font-sans: 'Inter', sans-serif;
    --container-width: 1200px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.5;
    background-color: #fff;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn--primary {
    background-color: var(--color-primary);
    color: white;
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* =========================================
   HEADER (Floating Island)
========================================== */
.header {
    position: absolute;
    /* Floats over content */
    top: 40px;
    /* Offset from top */
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    /* No full-width background */
    box-shadow: none;
    pointer-events: none;
    /* Let clicks pass through outside the bar */
}

/* Remove Old Top Bar Styles if not needed, or style them floating too */
.header__top {
    display: none;
}

/* Main Nav - The White "Island" */
.header__main {
    padding: 0;
    background: transparent;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 80px;

    /* The Island Look */
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0 30px;
    pointer-events: auto;
    width: 100%;
    /* Force full width within max-width */
    max-width: 1400px;
    margin: 0 auto;
}

/* Override container class when used with nav */
.nav.container {
    width: 100%;
    /* Force full width */
    max-width: 1400px;
    padding: 0 30px;
}

/* Logo - Centered in nav */
.nav__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    /* Box Styling for Logo */
    background: var(--color-white);
    padding: 12px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);

    /* Size - smaller to fit better */
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.nav__logo img {
    width: 100%;
    height: auto;
}

/* Menu - Left */
.nav__menu {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: flex-start;
    padding-right: 60px;
    /* Reduced specific padding */
    /* Space for centered logo */
}

.nav__item {
    position: static;
}

/* Anchor dropdowns */
.nav__link {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    padding: 8px 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    /* Prevent wrapping */
}

.nav__link:hover {
    color: var(--color-primary);
}

.nav__arrow {
    font-size: 10px;
    opacity: 0.6;
}

/* Mega Menu Styles */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-white);
    padding: 30px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    z-index: 90;
    transform-origin: top;
    animation: fadeIn 0.2s ease;
}

@media (min-width: 993px) {
    .mega-menu {
        left: -30px;
        width: calc(100% + 60px);
    }
}

/* Bridge to prevent hover gap issue */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Show on Hover */
.nav__item.has-dropdown:hover .mega-menu {
    display: block;
}

.mega-menu__inner {
    display: flex;
    gap: 60px;
}

.mega-menu__title {
    color: var(--color-primary);
    /* Brown */
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.mega-menu__columns {
    display: flex;
    gap: 40px;
}

.mega-menu__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu__list li {
    margin-bottom: 12px;
}

.mega-menu__list a {
    color: var(--color-text);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.mega-menu__list a:hover {
    color: var(--color-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Actions - Right */
.nav__actions {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    padding-left: 60px;
    /* Reduced specific padding - match menu */
}

.nav__info {
    text-align: right;
    font-size: 13px;
    line-height: 1.3;
}

.nav__info strong {
    display: block;
    color: var(--color-text);
    font-weight: 700;
}

.nav__info span {
    color: var(--color-text-light);
}

/* Menu - Left */


.nav__link {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text);
    padding: 8px 0;
    position: relative;
}

.nav__link.active {
    color: var(--color-primary);
}

.nav__link:hover {
    color: var(--color-primary);
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
}

.lang-dropdown {
    position: relative;
    margin-right: 20px;
}

/* Admin Link - Subtle and Minimalist */
.admin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #9CA3AF;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.admin-link:hover {
    opacity: 1;
    color: var(--color-primary);
    background: rgba(150, 114, 89, 0.1);
}

.admin-link svg {
    width: 16px;
    height: 16px;
}

.lang-dropdown__trigger {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.lang-dropdown__trigger:hover {
    background: rgba(150, 114, 89, 0.1);
    color: var(--color-primary);
}

.lang-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.lang-dropdown:hover .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown__menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 80px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
}

.lang-dropdown:hover .lang-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.lang-dropdown__item {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s;
}

.lang-dropdown__item:hover {
    background: rgba(150, 114, 89, 0.1);
    color: var(--color-primary);
}

.lang-dropdown__item.active {
    color: var(--color-primary);
    background: rgba(150, 114, 89, 0.05);
}

/* =========================================
   HERO (Floating Form)
========================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: flex-start;
    padding-top: 180px;
    padding-bottom: 60px;
    color: white;
}

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

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

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero__container {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero__title {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
}

.text-highlight {
    color: var(--color-primary);
}

.hero__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 550px;
}

/* Floating Form Card */
.hero__form-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    color: var(--color-text);
    width: 100%;
    max-width: 450px;
    margin-left: auto;
}

.form-title {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

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

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #D1D5DB;
    border-radius: var(--radius-md);
    background: #FFFFFF;
    font-family: inherit;
    font-size: 14px;
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

/* Custom Select Arrow */
select.form-input {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    cursor: pointer;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(150, 114, 89, 0.2);
    /* Soft brown ring */
    background-color: white;
}

.form-input::placeholder {
    color: #9CA3AF;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-light);
}

/* Form Enhancements */
.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row .form-group {
    margin-bottom: 0;
    flex: 1;
}

.form-radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.radio-label input[type="radio"] {
    accent-color: var(--color-primary);
    width: 18px;
    height: 18px;
}

/* =========================================
   SECTIONS & GRIDS
========================================== */
.section {
    padding: 80px 0;
    position: relative;
}

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

.section__header {
    margin-bottom: 48px;
}

.section__header.center {
    text-align: center;
}

.section__title {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 12px;
}

/* Why Grid 2x2 */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.why-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    /* Soft square icon bg */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.why-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.why-content p {
    font-size: 15px;
    color: var(--color-text-light);
}


/* Services Grid (Image Cards) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border: 1px solid #F3F4F6;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-img {
    height: 220px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

/* Testimonials Split Section */
/* Testimonials Split Section */
.testimonials-split {
    background-color: var(--color-primary);
    /* Kudos Brown */
    color: white;
    overflow: hidden;
}



.testi__container {
    display: flex;
    min-height: 280px;
    /* Larger, more balanced size */
    max-height: 280px;
}

.testi__image {
    width: 50%;
    position: relative;
}

.testi__image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    background: linear-gradient(to right, transparent, var(--color-primary));
    pointer-events: none;
}

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

.testi__content {
    width: 50%;
    padding: 40px 6%;
    /* Better spacing */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testi__title {
    font-size: 28px;
    /* Larger title */
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.testi__text {
    font-size: 16px;
    /* Larger, more readable */
    line-height: 1.6;
    color: #F3F4F6;
    /* Lighter for better contrast */
    font-style: italic;
    margin-bottom: 20px;
}

/* Testimonial Slider Transitions */
.testi__slider {
    position: relative;
    overflow: hidden;
}

.testi__item {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testi__item.active {
    display: block;
    opacity: 1;
}

.testi__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    /* Better spacing */
}

.testi__author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testi__logo-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testi__info strong {
    display: block;
    font-size: 16px;
    color: white;
}

.testi__info span {
    font-size: 14px;
    color: #F3F4F6;
    /* Lighter for brown bg */
}

.testi__nav {
    display: flex;
    gap: 12px;
}

.testi__arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.testi__arrow:hover {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

/* Responsive Testimonials */
@media (max-width: 900px) {
    .testi__container {
        flex-direction: column;
    }

    .testi__image,
    .testi__content {
        width: 100%;
    }

    .testi__image {
        height: 300px;
    }

    .testi__content {
        padding: 40px 20px;
    }
}

.service-body {
    padding: 24px;
}

.service-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-body p {
    margin-bottom: 16px;
    color: var(--color-text-light);
    font-size: 15px;
}

.service-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Center Actions */
.center-actions {
    text-align: center;
    margin-top: 48px;
}

/* =========================================
   FOOTER
========================================== */
.footer {
    background: #111827;
    color: white;
    padding: 80px 0 24px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer__logo {
    height: 40px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.footer h4 {
    margin-bottom: 20px;
    color: var(--color-primary);
}

.footer__links li,
.footer__contact li {
    margin-bottom: 12px;
    color: #9CA3AF;
    font-size: 14px;
}

.footer__bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
    color: #6B7280;
    font-size: 13px;
}

/* =========================================
   RESPONSIVE
========================================== */
@media (max-width: 992px) {
    .header__top {
        display: none;
    }

    /* Header positioning on mobile - full width */
    .header {
        top: 0;
        padding: 12px 16px;
    }

    /* Navigation bar styling for mobile */
    .nav {
        background: var(--color-white);
        border-radius: 12px;
        padding: 12px 20px;
        min-height: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    /* Logo - clean and simple on mobile */
    .nav__logo {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: auto;
        height: auto;
        padding-left: 10px;
        box-shadow: none;
        background: transparent;
        display: flex;
        align-items: center;
    }

    .nav__logo img {
        height: 35px;
        width: auto;
    }

    /* Mobile Menu Active State */
    .nav__menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        width: 100%;
        background: white;
        padding: 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-radius: 12px;
        z-index: 100;
        align-items: center;
        gap: 16px;
    }

    .nav__menu.active .nav__item {
        width: 100%;
        text-align: center;
    }

    .nav__menu.active .nav__link {
        display: block;
        padding: 12px;
        font-size: 16px;
    }

    .nav__menu.active+.nav__actions {
        display: none;
    }

    .nav__menu,
    .nav__actions {
        display: none;
    }

    /* Mobile toggle button */
    .nav__toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        position: relative;
        right: auto;
        width: 36px;
        height: 36px;
        background: rgba(150, 114, 89, 0.08);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.2s;
    }

    .nav__toggle:hover {
        background: rgba(150, 114, 89, 0.15);
    }

    .nav__toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--color-primary);
        border-radius: 2px;
        margin: 0;
        transition: all 0.3s;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__content {
        text-align: center;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================
   SUCCESS MODAL
========================================= */
.status-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.status-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.status-modal {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.status-modal-overlay.active .status-modal {
    transform: scale(1);
}

.status-icon-circle {
    width: 80px;
    height: 80px;
    background: #D1FAE5;
    /* Green Light */
    color: #059669;
    /* Green Dark */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.status-icon-circle.error {
    background: #FEE2E2;
    color: #DC2626;
}

.status-icon-circle svg {
    width: 40px;
    height: 40px;
}

.status-modal h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 12px;
}

.status-modal p {
    color: #6B7280;
    margin-bottom: 32px;
    line-height: 1.6;
}

.status-btn {
    background: #967259;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.status-btn:hover {
    background: #755541;
}

/* Footer Services Split Column */
.footer__links.split-columns {
    column-count: 2;
    column-gap: 40px;
}

.footer__links.split-columns li {
    break-inside: avoid;
    /* Prevent splitting items */
}

@media (max-width: 768px) {
    .footer__links.split-columns {
        column-count: 1;
    }
}

/* Footer Spacing Refinement */
.footer__col--entreprise {
    padding-left: 60px;
}

@media (max-width: 992px) {
    .footer__col--entreprise {
        padding-left: 0;
    }
}

/* =========================================
   FORM VALIDATION STYLES
========================================== */
.input-error {
    border-color: #EF4444 !important;
    /* Red-500 */
    background-color: #FEF2F2;
    /* Red-50 */
}

.error-message {
    color: #EF4444;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   DESKTOP LOGO ADJUSTMENTS
========================================== */
@media (min-width: 993px) {

    /* Bigger Logo Box on Desktop */
    .nav__logo {
        width: 120px;
        height: 120px;
        background: var(--color-primary);
        /* Brown Background */
    }

    /* Make the black logo white using filter */
    .nav__logo img {
        filter: brightness(0) invert(1);
    }

    /* Adjust spacing around the larger centered logo */
    .nav__menu {
        padding-right: 80px;
        /* Increased from 60px */
    }

    .nav__actions {
        padding-left: 80px;
        /* Increased from 60px */
    }
}