/*
Theme Name: Metalowy Child
Template: twentytwentyfive
Description: Motyw potomny Twenty Twenty-Five dopasowany do wyglądu metalowypanel.pl. Strona główna renderowana przez front-page.php na podstawie pól ACF.
Version: 1.0.0
Text Domain: metalowy-child
*/

/*
 * Te same tokeny kolorów/fontów co w widgecie wizualizatora
 * (frontend/new_visualization/src/embed.css) - jeden spójny system designu.
 */
:root {
    --mv-color-orange: #ffd460;
    --mv-color-black: #313144;
    --mv-color-black-secondary: #303030;
    --mv-color-text: #1e1e1e;
    --mv-font-display: "Bakbak One", sans-serif;
    --mv-font-heading: "Poppins", sans-serif;
    --mv-font-body: "Inter", sans-serif;
}

body {
    font-family: var(--mv-font-body);
    color: var(--mv-color-text);
}

/* ---------- Hero ---------- */
.mv-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.mv-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(20, 30, 50, 0.75) 0%,
        rgba(20, 30, 50, 0.55) 45%,
        rgba(20, 30, 50, 0.15) 100%
    );
}

.mv-hero__inner {
    position: relative;
    z-index: 1;
    padding: 48px;
    max-width: 720px;
}

.mv-hero__title {
    font-family: var(--mv-font-display);
    font-weight: 400;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.15;
    margin: 0 0 24px;
}

.mv-hero__subtitle {
    font-size: 20px;
    line-height: 1.5;
    margin: 0 0 28px;
}

.mv-hero__cta {
    display: inline-block;
    background: var(--mv-color-orange);
    color: var(--mv-color-text);
    font-family: var(--mv-font-heading);
    font-weight: 700;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.mv-hero__cta:hover {
    background: #ffe28a;
    color: var(--mv-color-text);
}

/* ---------- Sekcja: kategorie produktów ---------- */
.mv-section {
    padding: 64px 24px;
}

.mv-section__title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--mv-color-black-secondary);
    margin: 0 0 40px;
}

.mv-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1340px;
    margin: 0 auto;
}

.mv-card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    text-decoration: none;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.mv-card__title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(184, 187, 194, 0.55);
    font-family: var(--mv-font-heading);
    font-weight: 700;
    font-size: 22px;
    padding: 14px 20px;
    margin: 0;
}

.mv-card__button {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 74, 74, 0.7);
    color: #fff;
    font-family: var(--mv-font-heading);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
}

/* ---------- Sekcja: zaufaj naszemu doświadczeniu ---------- */
.mv-trust-cta {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--mv-color-orange);
    border-radius: 12px;
    text-align: center;
    padding: 40px;
}

.mv-trust-cta__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
}

.mv-trust-cta__subtitle {
    font-size: 18px;
    color: #555;
    margin: 0 0 20px;
}

.mv-trust-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--mv-color-orange);
    color: var(--mv-color-text);
    font-family: var(--mv-font-heading);
    font-weight: 700;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
}

/* ---------- Odznaki zaufania ---------- */
.mv-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    max-width: 1340px;
    margin: 48px auto 0;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 32px;
}

.mv-badge {
    display: flex;
    gap: 16px;
}

.mv-badge__icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--mv-color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-badge__title {
    font-weight: 700;
    margin: 0 0 6px;
}

.mv-badge__desc {
    color: #555;
    margin: 0;
    font-size: 15px;
}

/* ---------- Pływający przycisk do wizualizatora ---------- */
.mv-floating-cta {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--mv-color-orange);
    color: var(--mv-color-text);
    font-family: var(--mv-font-heading);
    font-weight: 700;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
    .mv-floating-cta span {
        display: none;
    }
}
