/* MODiVIN Landing Page Styles */

/* ===== VARIABLES ===== */
:root {
    --color-salmon: #fa8072;
    --color-salmon-dark: #e0706a;
    --color-cream: #FDF7EC;
    --color-cream-light: #FBF1DE;
    --color-dark-brown: #330D01;
    --color-text: #606060;
    --color-white: #ffffff;
    --color-border: #E5E4E3;

    --font-heading: 'Gilda Display', serif;
    --font-body: 'Nunito Sans', sans-serif;

    --max-width: 1200px;
    --header-height: 80px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-dark-brown);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ===== LAYOUT ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

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

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

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

.btn--primary:hover {
    background: var(--color-salmon-dark);
    box-shadow: 0 4px 20px rgba(250, 128, 114, 0.4);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn--outline:hover {
    background: var(--color-white);
    color: var(--color-dark-brown);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
}

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

.header__logo img {
    height: 40px;
    width: auto;
}

.header__nav {
    display: flex;
    gap: 2.5rem;
}

.header__link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark-brown);
    transition: color 0.3s ease;
    position: relative;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-salmon);
    transition: width 0.3s ease;
}

.header__link:hover::after {
    width: 100%;
}

.header__cta {
    padding: 0.7rem 1.8rem;
    font-size: 0.9rem;
}

.header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.header__hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-dark-brown);
    transition: all 0.3s ease;
}

.header__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    padding-top: calc(var(--header-height) + 6rem);
    padding-bottom: 6rem;
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-white) 100%);
    text-align: center;
}

.hero__inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__cta {
    font-size: 1.1rem;
    padding: 1.1rem 3rem;
}

.hero__clients {
    margin-top: 4rem;
}

.hero__clients-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero__clients-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.hero__clients-logos:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.hero__clients-logos img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

/* ===== FEATURES ===== */
.feature {
    padding: 6rem 0;
}

.feature__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature--reverse .feature__content {
    order: 2;
}

.feature--reverse .feature__visual {
    order: 1;
}

.feature__label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-salmon);
    margin-bottom: 1rem;
}

.feature__title {
    margin-bottom: 1.5rem;
}

.feature__description {
    margin-bottom: 1.5rem;
}

.feature__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
}

.feature__list li i {
    color: var(--color-salmon);
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.feature__visual {
    background: var(--color-cream-light);
    border-radius: 16px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.feature__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.feature__visual--placeholder {
    color: var(--color-dark-brown);
    font-size: 5rem;
    background: transparent;
    box-shadow: none;
    aspect-ratio: auto;
}

/* ===== ECO-SCORE (DARK) ===== */
.feature--dark {
    background: var(--color-dark-brown);
    padding: 6rem 0;
}

.feature--dark .feature__label {
    color: var(--color-salmon);
}

.feature--dark .feature__title {
    color: var(--color-white);
}

.feature--dark .feature__description {
    color: var(--color-cream);
}

.feature--dark .feature__list li {
    color: var(--color-cream);
}

.feature--dark .feature__visual {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.feature--dark .feature__visual--placeholder {
    color: var(--color-salmon);
    background: transparent;
    box-shadow: none;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 6rem 0;
    background: var(--color-cream);
    text-align: center;
}

.testimonials__title {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.testimonials__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.testimonials__logos img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.testimonials__card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--color-salmon);
    text-align: left;
    position: relative;
}

.testimonials__quote-mark {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-salmon);
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.testimonials__quote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonials__author {
    font-weight: 700;
    color: var(--color-dark-brown);
}

.testimonials__role {
    font-size: 0.9rem;
    color: var(--color-text);
}

/* ===== CTA FINAL ===== */
.cta-final {
    background: var(--color-dark-brown);
    padding: 6rem 0;
    text-align: center;
}

.cta-final__title {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}

.cta-final__subtitle {
    color: var(--color-cream);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-final .btn--primary {
    font-size: 1.1rem;
    padding: 1.1rem 3rem;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(250, 128, 114, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(250, 128, 114, 0); }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-dark-brown);
    border-top: 1px solid rgba(253, 247, 236, 0.15);
    padding: 3rem 0 1.5rem;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__brand p {
    color: var(--color-cream);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

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

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-self: center;
}

.footer__links a {
    color: var(--color-cream);
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer__links a:hover {
    opacity: 1;
    color: var(--color-salmon);
}

.footer__social {
    display: flex;
    gap: 1.5rem;
    justify-self: end;
    align-items: flex-start;
}

.footer__social a {
    color: var(--color-white);
    font-size: 1.2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer__social a:hover {
    opacity: 1;
    color: var(--color-salmon);
}

.footer__bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(253, 247, 236, 0.1);
}

.footer__bottom p {
    color: var(--color-cream);
    font-size: 0.8rem;
    opacity: 0.5;
}

.footer__bottom a {
    color: var(--color-cream);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    margin-left: 0.5rem;
}

.footer__bottom a:hover {
    opacity: 1;
    color: var(--color-salmon);
}

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 1024px) {
    .feature__inner {
        gap: 2.5rem;
    }

    .hero {
        padding-top: calc(var(--header-height) + 4rem);
    }

    .section {
        padding: 4rem 0;
    }

    .feature {
        padding: 4rem 0;
    }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav--open {
        right: 0;
    }

    .header__cta {
        display: none;
    }

    .header__hamburger {
        display: flex;
    }

    .hero {
        padding-top: calc(var(--header-height) + 3rem);
        padding-bottom: 3rem;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    .hero__subtitle {
        font-size: 1.05rem;
    }

    .hero__clients-logos {
        gap: 1.5rem;
    }

    .hero__clients-logos img {
        height: 25px;
    }

    .feature__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature--reverse .feature__content {
        order: 0;
    }

    .feature--reverse .feature__visual {
        order: 0;
    }

    .feature__visual {
        aspect-ratio: 16/9;
    }

    .feature {
        padding: 3rem 0;
    }

    .feature--dark {
        padding: 3rem 0;
    }

    .testimonials {
        padding: 3rem 0;
    }

    .testimonials__logos {
        gap: 2rem;
    }

    .testimonials__logos img {
        height: 30px;
    }

    .testimonials__card {
        padding: 2rem 1.5rem;
    }

    .cta-final {
        padding: 4rem 0;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer__links {
        justify-self: center;
    }

    .footer__social {
        justify-self: center;
    }
}