/* 
   ========================================
   Base & Variables
   ======================================== 
*/
:root {
    --primary-red: #D31225;
    /* Premium Corporate Red */
    --hover-red: #B00E1E;
    --pure-white: #FFFFFF;
    --off-white: #F8F9FA;
    --dark-bg: #111111;
    --dark-card: #1A1A1A;
    --text-main: #2D3748;
    --text-muted: #718096;
    --border-color: #E2E8F0;

    --font-main: 'Outfit', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--pure-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
strong {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.text-white {
    color: var(--pure-white);
}

.text-muted {
    color: var(--text-muted);
}

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

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

.bg-dark {
    background-color: var(--dark-bg);
    color: var(--pure-white);
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.hidden {
    display: none !important;
}

/* 
   ========================================
   Components (Buttons, Badges, Glass)
   ======================================== 
*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--pure-white);
    box-shadow: 0 4px 15px rgba(211, 18, 37, 0.3);
}

.btn-primary:hover {
    background-color: var(--hover-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 18, 37, 0.4);
}

.btn-secondary {
    background-color: var(--pure-white);
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-outline:hover {
    background-color: var(--primary-red);
    color: var(--pure-white);
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(211, 18, 37, 0.1);
    color: var(--primary-red);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.glass-dark {
    background: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}


/* 
   ========================================
   Navigation
   ======================================== 
*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-bg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.nav-links a:not(.btn):hover {
    color: var(--primary-red);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-bg);
    transition: var(--transition);
}


/* 
   ========================================
   Hero Section
   ======================================== 
*/
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--off-white) 0%, #FFFFFF 100%);
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(211, 18, 37, 0.05) 0%, rgba(211, 18, 37, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
}

.trust-indicators {
    display: flex;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.stat strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-red);
}

.stat span {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    padding: 10px;
    z-index: 2;
}

.image-wrapper img {
    border-radius: 16px;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/5;
    box-shadow: var(--shadow-md);
}

/* 
   ========================================
   Products Grid Modifications
   ======================================== 
*/
.product-sub-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
}

.product-sub-list li {
    margin-bottom: 12px;
}

.product-sub-list a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.product-sub-list a::before {
    content: "›";
    color: var(--primary-red);
    margin-right: 8px;
    font-size: 1.4rem;
    font-weight: 800;
}

.product-sub-list a:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

/* 
   ========================================
   Partners Section
   ======================================== 
*/
.partners {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.partner-logos a {
    opacity: 0.7;
    filter: grayscale(100%);
    transition: var(--transition);
    display: inline-block;
}

.partner-logos a:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-5px);
}

.partner-logo {
    max-height: 40px;
    object-fit: contain;
}

/* 
   ========================================
   About Section
   ======================================== 
*/
.about {
    padding: 120px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-list {
    margin: 30px 0;
}

.features-list li {
    padding: 10px 0;
    font-weight: 500;
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    gap: 10px;
}

.portrait-wrapper {
    position: relative;
}

.portrait {
    border-radius: 20px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 3/4;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.experience-badge strong {
    font-size: 2.5rem;
    color: var(--primary-red);
}

.experience-badge span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-bg);
    text-transform: uppercase;
}

/* 
   ========================================
   Quote Section (Form)
   ======================================== 
*/
.quote {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(211, 18, 37, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.quote-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.phone-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    display: inline-block;
    margin-top: 10px;
}

.quote-form-wrapper {
    padding: 40px;
    position: relative;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--border-color);
}

input[type="text"],
input[type="tel"],
input[type="date"],
select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: var(--pure-white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-red);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(211, 18, 37, 0.2);
}

select option {
    background-color: var(--dark-card);
    color: var(--pure-white);
}

.radio-group {
    margin-top: 10px;
}

.radio-options {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    color: var(--pure-white);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: var(--transition);
}

.radio-label input[type="radio"]:checked+.radio-custom {
    border-color: var(--primary-red);
}

.radio-label input[type="radio"]:checked+.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary-red);
    border-radius: 50%;
}

.form-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.form-success {
    text-align: center;
    padding: 30px 0;
}

/* 
   ========================================
   Footer
   ======================================== 
*/
.footer {
    background-color: var(--pure-white);
    padding: 80px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer h3 {
    margin-bottom: 24px;
    font-size: 1.25rem;
}

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

.footer-links a:hover {
    color: var(--primary-red);
}

.footer-contact p {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.active.fade-in,
.active.slide-in-left,
.active.slide-in-right {
    opacity: 1;
    transform: translate(0);
}

/* 
   ========================================
   Responsive Breakpoints
   ======================================== 
*/
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-container,
    .about-container,
    .quote-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-container {
        text-align: center;
    }

    .features-list li {
        justify-content: center;
    }

    .experience-badge {
        bottom: 20px;
        right: 0;
        left: 0;
        margin: 0 auto;
        width: max-content;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--pure-white);
        flex-direction: column;
        justify-content: center;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero {
        padding: 120px 0 60px;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .trust-indicators {
        justify-content: center;
    }

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

    .partner-logos {
        gap: 40px;
    }
}

/* Language Toggle and Branding */
.brand-logo {
    max-height: 45px;
    width: auto;
}

.lang-item {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.lang-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .lang-item {
        margin: 15px 0;
    }
}

/* Fact Finder Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.modal-content {
    background-color: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 35px 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    color: var(--pure-white);
}

.modal-content h2 {
    color: var(--pure-white);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.ranking-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.ranking-numbers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rank-num {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1.1rem;
}

.ranking-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.ranked-list-wrapper {
    flex: 1;
    position: relative;
}

.ranking-placeholders {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.placeholder-box {
    height: 48px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
}

.ranked-list {
    position: relative;
    z-index: 2;
    min-height: 280px;
    /* 5 items * 48px + 4 gaps * 10px = 280px */
}

.ranking-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0 15px;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--pure-white);
    font-weight: 500;
    cursor: grab;
    transition: background 0.2s, box-shadow 0.2s;
    user-select: none;
}

.ranking-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.ranking-item:active {
    cursor: grabbing;
}

.ranking-item.sortable-ghost {
    opacity: 0.4;
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.drag-handle {
    color: var(--text-muted);
    cursor: grab;
    font-size: 1.2rem;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}