/* 
  MODEOM B2C Landing Page Styles 
  Colors: Primary #F29422, Anthracite Grey, White, Light Grey
*/

:root {
    --primary: #F29422;
    --primary-hover: #e08216;
    --text-dark: #2a2d34;
    --text-muted: #5f6368;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #191b1f;
    --container-max: 1200px;
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 700;
}

h1 {
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

a {
    text-decoration: none;
}

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

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(25, 27, 31, 0.6) 0%, rgba(25, 27, 31, 0.1) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
}

.navbar {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    max-height: 80px; /* Adjust based on preference, gives it good presence in the header */
    width: auto;
}

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

.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 650px;
    padding-bottom: 4rem;
}

.hero-content h1 {
    color: white;
}

.hero-content p {
    color: #e2e4e8;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-align: center;
    transition: var(--transition-fast);
    box-shadow: 0 4px 14px rgba(242, 148, 34, 0.4);
    width: fit-content;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 148, 34, 0.5);
}

/* ================= REASSURANCE SECTION ================= */
.reassurance {
    background-color: var(--primary);
    padding: 1.5rem 0;
    color: white;
    position: relative;
    z-index: 3;
    margin-top: -3rem; /* overlap effect */
    border-radius: 0.5rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.feature-icon {
    width: 32px;
    height: 32px;
}

.feature-item span {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ================= RANGE SECTION ================= */
.range-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.range-card {
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.range-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.card-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.range-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.text-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
}

.text-link:hover {
    color: var(--primary-hover);
    transform: translateX(4px);
}

/* ================= STEPS SECTION ================= */
.steps-section {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background-color: var(--bg-light);
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(242, 148, 34, 0.1);
    border-color: rgba(242, 148, 34, 0.2);
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(242, 148, 34, 0.4);
    z-index: 2;
}

/* Arrows between steps */
@media (min-width: 993px) {
    .step-card:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -1.75rem;
        width: 1.5rem;
        height: 1.5rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F29422'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        transform: translateY(-50%);
        z-index: 10;
        pointer-events: none;
    }
}
@media (min-width: 769px) and (max-width: 992px) {
    .step-card:nth-child(1)::after,
    .step-card:nth-child(3)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -1.75rem; 
        width: 1.5rem;
        height: 1.5rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F29422'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        transform: translateY(-50%);
        z-index: 10;
        pointer-events: none;
    }
}
@media (max-width: 768px) {
    .steps-grid {
        gap: 3.5rem;
    }
    .step-card:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: -2.5rem;
        left: 50%;
        width: 1.5rem;
        height: 1.5rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F29422'%3E%3Cpath d='M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        transform: translateX(-50%);
        z-index: 10;
        pointer-events: none;
    }
}

.step-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(242, 148, 34, 0.1); /* Light Orange background */
    color: var(--primary); /* Orange Icon */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.step-icon svg {
    width: 32px;
    height: 32px;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ================= EXPERTISE SECTION ================= */
.expertise-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

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

.expertise-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--text-muted);
}

.expertise-text strong {
    color: var(--text-dark);
}

/* ================= SOCIAL PROOF ================= */
.social-proof-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stars {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.25rem;
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--text-muted);
}

/* ================= FOOTER & FORM ================= */
.footer-cta {
    background-color: var(--bg-dark);
    color: white;
    padding: 6rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem 4rem;
    align-items: start;
}

.footer-text {
    grid-column: 1;
    grid-row: 1;
}

.footer-cta .form-wrapper {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
}

.footer-logo {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
}

.footer-text h2 {
    color: white;
    text-align: left;
    margin-bottom: 1.5rem;
}

.footer-text p {
    color: #a0aab2;
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.footer-logo {
    opacity: 0.8;
}

.form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #e2e4e8;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(242, 148, 34, 0.2);
}

.submit-button {
    width: 100%;
    background-color: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 1rem;
    box-shadow: 0 4px 14px rgba(242, 148, 34, 0.3);
}

.submit-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 148, 34, 0.4);
}

.form-disclaimer {
    font-size: 0.75rem;
    color: #8c9097;
    text-align: center;
    margin-top: 1rem;
}

/* ================= CUSTOM CONFIGURATOR ================= */
.custom-section {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.custom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.custom-card {
    background-color: var(--bg-light);
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(242, 148, 34, 0.1);
    border-color: rgba(242, 148, 34, 0.2);
}

.custom-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(242, 148, 34, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.custom-icon svg {
    width: 32px;
    height: 32px;
}

.custom-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.custom-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.configurator-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px dashed rgba(0,0,0,0.1);
}

.size-dot {
    background-color: var(--primary);
    border-radius: 4px;
}
.size-dot.small { width: 16px; height: 16px; }
.size-dot.medium { width: 24px; height: 24px; }
.size-dot.large { width: 32px; height: 32px; }

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge {
    background-color: rgba(42, 45, 52, 0.05);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.1);
}

/* ================= MEDIA QUERIES (Mobile First approach adapted for Desktop-First structure) ================= */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        grid-template-rows: unset;
        gap: 2rem;
    }

    .footer-text,
    .footer-cta .form-wrapper,
    .footer-logo {
        grid-column: unset;
        grid-row: unset;
    }

    .footer-logo {
        order: 3;
        margin-top: 1rem;
    }
    
    .cards-grid,
    .testimonials-grid,
    .feature-grid,
    .steps-grid,
    .custom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-item:last-child {
        grid-column: span 2;
    }
    
    .reassurance {
        margin: -2rem 1.5rem 0;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .cards-grid,
    .steps-grid,
    .custom-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-item:last-child {
        grid-column: span 2;
    }
    
    .hero-content {
        padding-top: 4rem;
    }
    
    /* Fix hero background on mobile (fixed attachment causes zoom/pixelation) */
    .hero {
        background-attachment: scroll;
        background-position: center center;
    }
    
    .form-wrapper {
        padding: 2rem;
    }
    
    /* Social Proof Slider for Mobile */
    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding-bottom: 2rem;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        margin: 0 -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Hide scrollbar for a cleaner look */
    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }
    .testimonials-grid {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    .testimonial-card {
        flex: 0 0 85vw;
        scroll-snap-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        background-color: var(--primary);
        padding: 1.5rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 15px rgba(242, 148, 34, 0.3);
    }
    
    .feature-item:last-child {
        grid-column: auto;
    }
    
    .reassurance {
        margin: -3rem 1rem 0;
        padding: 0;
        background-color: transparent;
        box-shadow: none;
    }
    
    .cta-button {
        width: 100%;
        padding: 1.2rem;
    }

    .desktop-only-text {
        display: none;
    }
}
