/* 
  Montifertili - Official Premium Style (Restored & Absolute Fix)
  This style is strictly mapped to the .mf- class hierarchy in index.html.
*/

@font-face {
    font-family: 'MadInk';
    src: url('./assets/font/madink-2025-08-11-21-23-08-utc/MadInk.woff2') format('woff2'),
        url('./assets/font/madink-2025-08-11-21-23-08-utc/MadInk.woff') format('woff'),
        url('./assets/font/madink-2025-08-11-21-23-08-utc/MadInk.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinefolk';
    src: url('assets/font/pinefolk-organic-sans-2024-11-13-22-43-51-utc/Pinefolk.woff2') format('woff2'),
        url('assets/font/pinefolk-organic-sans-2024-11-13-22-43-51-utc/Pinefolk.woff') format('woff'),
        url('assets/font/pinefolk-organic-sans-2024-11-13-22-43-51-utc/Pinefolk.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --mf-brand: #1a332a;
    --mf-brand-light: #2d5244;
    --mf-accent: #d4b05a;
    --mf-text: #2c2c2c;
    --mf-muted: #6b705c;
    --mf-light: #fdfbf7;
    --mf-white: #ffffff;
    --mf-border: #e8e6e1;
    --mf-shadow: 0 10px 40px rgba(26, 51, 42, 0.12);
    --mf-transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --mf-font-logo: 'MadInk', cursive;
    --mf-font-title: 'Pinefolk', sans-serif;
    --mf-font-body: 'Inter', system-ui, sans-serif;
}

/* BASE */
body {
    font-family: var(--mf-font-body);
    color: var(--mf-text);
    background-color: var(--mf-light);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.mf-title,
.mf-hero-title {
    font-family: var(--mf-font-title);
    font-weight: normal;
    /* Font display is controlled by Pinefolk design */
}

/* NAVBAR */
.mf-nav {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--mf-border);
    z-index: 1050;
    padding: 0.5rem 0;
}

.mf-logo {
    font-family: var(--mf-font-logo);
    color: var(--mf-brand) !important;
    font-size: 2.8rem;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: none;
}

/* FOOTER */
.mf-footer {
    background-color: var(--mf-brand);
    color: rgba(255, 255, 255, 0.85);
    padding: 6rem 0 3rem;
    margin-top: 6rem;
}

.mf-footer .mf-logo {
    color: #fdfbf7 !important;
    font-size: 2.5rem;
}

.mf-footer-title {
    font-family: var(--mf-font-title);
    color: var(--mf-accent);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.mf-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mf-footer-list li {
    margin-bottom: 0.8rem;
}

.mf-footer-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--mf-transition);
}

.mf-footer-list a:hover {
    color: var(--mf-accent);
    padding-left: 5px;
}

.fs-7 {
    font-size: 0.9rem;
}

.fs-8 {
    font-size: 0.8rem;
    opacity: 0.8;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    transition: var(--mf-transition);
}

.btn-outline-light:hover {
    background: var(--mf-accent);
    border-color: var(--mf-accent);
    color: var(--mf-brand);
}

/* BUTTONS */
.btn-brand {
    background-color: var(--mf-brand);
    color: white !important;
    border-radius: 50px;
    padding: 0.8rem 2.2rem;
    font-weight: 800;
    border: none;
    transition: var(--mf-transition);
}

.btn-brand:hover {
    background-color: var(--mf-brand-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(26, 51, 42, 0.2);
}

.btn-outline-brand {
    border: 2px solid var(--mf-brand);
    color: var(--mf-brand);
    border-radius: 50px;
    padding: 0.6rem 2rem;
    font-weight: 800;
    transition: var(--mf-transition);
}

.btn-soft {
    background-color: rgba(26, 51, 42, 0.06);
    color: var(--mf-brand);
    border-radius: 50px;
    border: none;
    font-weight: 700;
    padding: 0.7rem 1.8rem;
}

/* HERO */
.mf-hero {
    background-color: #edeae2;
    border-radius: 2.5rem !important;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.mf-hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 950;
    line-height: 1;
    color: var(--mf-brand);
}

.text-brand-bg {
    background: var(--mf-accent);
    color: var(--mf-brand);
    padding: 2px 10px;
    border-radius: 12px;
    display: inline-block;
}

.mf-hero__lead {
    font-size: 1.3rem;
    color: var(--mf-muted);
    max-width: 580px;
    margin: 2.5rem 0;
    font-weight: 500;
}

.mf-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.mf-hero-media img {
    width: 100%;
    border-radius: 3rem;
    box-shadow: 0 40px 80px rgba(26, 51, 42, 0.2);
    transform: rotate(-1.5deg);
}

.mf-stamp {
    position: absolute;
    top: 15%;
    right: 5%;
    background: var(--mf-accent);
    color: var(--mf-brand);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    line-height: 1.1;
    transform: rotate(15deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.mf-ribbon {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(26, 51, 42, 0.1);
    padding-top: 2.5rem;
}

.mf-ribbon span {
    font-weight: 800;
    color: var(--mf-brand);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mf-ribbon span::before {
    content: '✓';
    color: var(--mf-accent);
    font-size: 1.2rem;
}

.mf-trustbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.mf-stars {
    color: var(--mf-accent);
    font-size: 1.2rem;
}

/* SECTIONS */
.mf-section {
    padding: 8rem 0;
}

.mf-section--tight {
    padding: 5rem 0;
}

.mf-section--alt {
    background-color: #f3f2ea;
}

.mf-container-narrow {
    max-width: 1200px;
}

.mf-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.mf-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 900;
    color: var(--mf-accent);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.mf-title {
    color: var(--mf-brand);
    font-weight: 900;
}

/* PRODUCTS */
.mf-product-card {
    background: white;
    border-radius: 2.5rem;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--mf-border);
    transition: var(--mf-transition);
    position: relative;
}

.mf-product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--mf-shadow);
    border-color: var(--mf-accent);
}

.mf-product-card--featured {
    border: 2.5px solid var(--mf-accent);
}

.mf-product-card--highlight {
    background: var(--mf-brand);
    color: white;
}

.mf-product-card--highlight .mf-product-card__title,
.mf-product-card--highlight .mf-price,
.mf-product-card--highlight .mf-product-card__sub {
    color: white;
}

.mf-product-card__flag {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mf-product-card__media {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.mf-product-card__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mf-product-card__title {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--mf-brand);
    margin-bottom: 0.5rem;
}

.mf-product-card__sub {
    font-size: 1rem;
    color: var(--mf-muted);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.mf-price {
    font-weight: 900;
    font-size: 2rem;
    color: var(--mf-brand);
}

.mf-product-card__bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mf-shop-note {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.mf-shop-note__item {
    font-weight: 600;
    color: var(--mf-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* MANIFESTO & REVIEWS */
.mf-card-manifesto {
    background: white;
    padding: 3rem 2rem;
    border-radius: 2.5rem;
    border: 1px solid var(--mf-border);
}

.mf-icon {
    font-size: 3rem;
}

.mf-card-review {
    background: white;
    padding: 3rem;
    border-radius: 2.5rem;
    border: 1px solid var(--mf-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0e8;
    color: var(--mf-brand);
    font-weight: 900;
}

/* GALLERY */
.mf-gallery__main img {
    width: 100%;
    border-radius: 2.5rem;
    box-shadow: var(--mf-shadow);
}

.mf-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.mf-thumbbtn {
    border: 4px solid transparent;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: var(--mf-transition);
    padding: 0;
}

.mf-thumbbtn.is-active {
    border-color: var(--mf-accent);
}

.mf-thumbbtn img {
    width: 100%;
    height: 90px;
    object-fit: cover;
}

/* COOKIE BANNER */
#cookieBanner {
    position: fixed;
    bottom: 40px;
    right: 40px;
    left: 40px;
    max-width: 480px;
    background: white;
    padding: 2.5rem;
    border-radius: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--mf-border);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#cookieBanner.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (min-width: 768px) {
    #cookieBanner {
        left: auto;
    }
}

/* REVEAL SYSTEM */
.reveal {
    opacity: 0;
    transform: translateY(40px);
}

.reveal.fade-up {
    transform: translateY(40px);
}

.reveal.blur-in {
    filter: blur(15px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* DELAYS */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* MOBILE FIXES */
@media (max-width: 991px) {
    .mf-hero {
        padding: 3rem 1.5rem 4rem !important;
    }

    .mf-section {
        padding: 5rem 0;
    }

    .mf-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .mf-ribbon {
        justify-content: flex-start;
    }
}