/* ==========================================================================
   Metamodul - Global Styles v2 — Immersive Design
   Brand: Montserrat + Inter | #2077BD #004F71 #0C191C #FFFFFF
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--mm-dark);
    background-color: var(--mm-white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--mm-light-blue); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--mm-indigo); }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--mm-dark);
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p + p { margin-top: 1em; }

.mm-overline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--mm-light-blue);
    margin-bottom: 1rem;
    display: inline-block;
}

/* --- Layout --- */
.mm-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.mm-section { padding: 100px 0; }
.mm-section--dark { background-color: var(--mm-dark); color: var(--mm-white); }
.mm-section--dark h2, .mm-section--dark h3, .mm-section--dark h4 { color: var(--mm-white); }
.mm-section--gray { background-color: #f7f8fa; }
.mm-section__header { max-width: 700px; margin-bottom: 56px; }
.mm-section__header--center { text-align: center; margin-left: auto; margin-right: auto; }

@media (max-width: 640px) { .mm-section { padding: 64px 0; } }

/* --- Grid --- */
.mm-grid { display: grid; gap: 32px; }
.mm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.mm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mm-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .mm-grid--4, .mm-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .mm-grid--4, .mm-grid--3, .mm-grid--2 { grid-template-columns: 1fr; } }

/* --- Buttons --- */
.mm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 14px 32px;
    border-radius: 0;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .3s ease;
    text-decoration: none;
    line-height: 1;
}

.mm-btn--primary {
    background: linear-gradient(90deg, #006089 0%, #2077BD 100%);
    color: var(--mm-white);
    border-color: transparent;
}
.mm-btn--primary:hover {
    background: linear-gradient(90deg, #004F71 0%, #1a6aaa 100%);
    border-color: transparent;
    color: var(--mm-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--mm-light-blue-rgb), 0.3);
}

.mm-btn--outline {
    background: transparent;
    color: var(--mm-white);
    border-color: rgba(255,255,255,.35);
}
.mm-btn--outline:hover {
    background: var(--mm-white);
    color: var(--mm-dark);
    border-color: var(--mm-white);
}

.mm-btn--outline-dark {
    background: transparent;
    color: var(--mm-dark);
    border-color: rgba(0,0,0,.15);
}
.mm-btn--outline-dark:hover {
    background: var(--mm-dark);
    color: var(--mm-white);
    border-color: var(--mm-dark);
}

.mm-btn--lg { padding: 18px 40px; font-size: 0.875rem; }
.mm-btn .mm-icon { width: 18px; height: 18px; transition: transform .3s ease; }
.mm-btn:hover .mm-icon { transform: translateX(4px); }

/* ==========================================================================
   HEADER — Transparent overlay, glass on scroll
   ========================================================================== */
.mm-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 20px;
    transition: all .4s cubic-bezier(.4,0,.2,1);
}

.mm-header--scrolled {
    background: rgba(var(--mm-dark-rgb), 0.85);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 32px rgba(0,0,0,.12);
}

.mm-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    transition: height .4s ease;
}

.mm-header--scrolled .mm-header__inner { height: 64px; }

/* Logo */
.mm-header__logo-img { height: 36px; width: auto; transition: all .35s ease; }
.mm-header__logo-img--dark { display: none; }
.mm-header__logo-img--white { display: block; }
.mm-header--scrolled .mm-header__logo-img { height: 30px; }

/* Nav links */
.mm-nav__list { display: flex; align-items: center; gap: 2px; }
.mm-nav__list li { position: relative; }

.mm-nav__list a {
    display: block;
    padding: 10px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255,255,255,.8);
    transition: color .25s ease;
    letter-spacing: 0.4px;
}

.mm-nav__list a:hover,
.mm-nav__list .current-menu-item > a { color: #fff; }

.mm-nav__list .current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--mm-light-blue);
    border-radius: 0;
}

/* Submenu */
.mm-nav__list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(var(--mm-dark-rgb), 0.95);
    backdrop-filter: blur(16px);
    border-radius: 0;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .25s ease;
    padding: 8px 0;
    margin-top: 8px;
}
.mm-nav__list li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mm-nav__list .sub-menu a { padding: 12px 20px; font-size: .8rem; }

/* Phone */
.mm-header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.75);
    font-family: 'Montserrat', sans-serif;
    font-size: .8rem;
    font-weight: 600;
    transition: color .25s ease;
}
.mm-header__phone .mm-icon { width: 15px; height: 15px; }
.mm-header__phone:hover { color: #fff; }

/* Header CTA */
.mm-header__cta { padding: 10px 24px; font-size: .75rem; }

.mm-header__actions { display: flex; align-items: center; gap: 20px; }

/* Hamburger */
.mm-header__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mm-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.mm-hamburger span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 0;
    transition: all .35s cubic-bezier(.4,0,.2,1);
}

.mm-hamburger span:nth-child(2) { width: 16px; }

/* Hamburger active */
.mm-header__toggle[aria-expanded="true"] .mm-hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mm-header__toggle[aria-expanded="true"] .mm-hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
.mm-header__toggle[aria-expanded="true"] .mm-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Fullscreen Mobile Nav ---- */
.mm-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--mm-dark);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mm-mobile-nav--open { opacity: 1; visibility: visible; }

.mm-mobile-nav__inner {
    text-align: center;
    padding: 24px;
    width: 100%;
    max-width: 400px;
}

.mm-mobile-nav__list { margin-bottom: 40px; }

.mm-mobile-nav__list a {
    display: block;
    padding: 16px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mm-white);
    transition: color .25s ease;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.mm-mobile-nav__list a:hover { color: var(--mm-light-blue); }

.mm-mobile-nav__contact {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mm-mobile-nav__contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.6);
    font-size: .875rem;
}
.mm-mobile-nav__contact .mm-icon { width: 16px; height: 16px; }

@media (max-width: 1024px) {
    .mm-header__toggle { display: block; }
    .mm-nav { display: none; }
    .mm-header__cta, .mm-header__phone { display: none; }
}

/* ==========================================================================
   FOOTER — Modern dark
   ========================================================================== */

/* Pre-footer CTA */
.mm-prefooter {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    text-align: center;
    color: var(--mm-white);
}
.mm-prefooter__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.mm-prefooter__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mm-prefooter__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(var(--mm-dark-rgb),.88), rgba(var(--mm-indigo-rgb),.75));
}
.mm-prefooter__content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    margin: 0 auto;
}
.mm-prefooter__content h2 { color: #fff; margin-bottom: 16px; }
.mm-prefooter__content p { color: rgba(255,255,255,.7); font-size: 1.125rem; margin-bottom: 36px; }
.mm-prefooter__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Footer Main */
.mm-footer {
    background: var(--mm-dark);
    color: rgba(255,255,255,.6);
}
.mm-footer__main { padding: 72px 0 48px; }
.mm-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 48px;
}

.mm-footer__brand p {
    font-size: .8125rem;
    line-height: 1.75;
    margin: 20px 0;
    max-width: 280px;
}

.mm-footer__logo img { height: 32px; width: auto; }

.mm-footer__social { display: flex; gap: 10px; }
.mm-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 0;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.5);
    transition: all .25s ease;
}
.mm-footer__social a:hover { background: var(--mm-gradient); color: #fff; }
.mm-footer__social .mm-icon { width: 16px; height: 16px; }

.mm-footer__col h4 {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,.35);
    margin-bottom: 20px;
}
.mm-footer__col ul li { margin-bottom: 10px; }
.mm-footer__col ul a {
    font-size: .8125rem;
    color: rgba(255,255,255,.55);
    transition: color .25s ease;
}
.mm-footer__col ul a:hover { color: #fff; }

.mm-footer__contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: .8125rem;
}
.mm-footer__contact-list .mm-icon {
    width: 15px;
    height: 15px;
    color: var(--mm-light-blue);
    flex-shrink: 0;
}
.mm-footer__contact-list a { color: rgba(255,255,255,.55); }
.mm-footer__contact-list a:hover { color: #fff; }

/* Bottom bar */
.mm-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 20px 0;
}
.mm-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mm-footer__bottom p { font-size: .75rem; color: rgba(255,255,255,.3); }
.mm-footer__legal {
    display: flex;
    gap: 24px;
}
.mm-footer__legal a {
    font-size: .75rem;
    color: rgba(255,255,255,.35);
    transition: color .25s ease;
}
.mm-footer__legal a:hover { color: #fff; }
.mm-footer__credit a { color: var(--mm-light-blue); }
.mm-footer__credit a:hover { color: #fff; }

@media (max-width: 1024px) {
    .mm-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .mm-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .mm-prefooter { padding: 80px 24px; }
    .mm-prefooter__actions { flex-direction: column; width: 100%; }
    .mm-prefooter__actions .mm-btn { width: 100%; justify-content: center; }
    .mm-footer__bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* ==========================================================================
   SHARED COMPONENTS
   ========================================================================== */

/* --- Hero (for inner pages) --- */
.mm-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: var(--mm-dark);
    overflow: hidden;
}
.mm-hero__bg { position: absolute; inset: 0; z-index: 1; }
.mm-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.mm-hero__overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(135deg, rgba(var(--mm-dark-rgb),.85) 0%, rgba(var(--mm-dark-rgb),.5) 50%, rgba(var(--mm-indigo-rgb),.4) 100%);
}
.mm-hero__content { position: relative; z-index: 3; max-width: 720px; padding-top: 88px; }
.mm-hero__title { color: #fff; margin-bottom: 16px; }
.mm-hero__subtitle { font-size: clamp(1rem,2vw,1.2rem); color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 32px; }

/* --- Cards --- */
.mm-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    transition: transform .35s ease, box-shadow .35s ease;
}
.mm-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.1); }
.mm-card__image { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.mm-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mm-card:hover .mm-card__image img { transform: scale(1.05); }
.mm-card__body { padding: 24px; }
.mm-card__title { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.mm-card__excerpt { font-size: .875rem; color: #666; line-height: 1.6; margin-bottom: 16px; }
.mm-card__link {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Montserrat', sans-serif; font-size: .8rem; font-weight: 600;
    color: var(--mm-light-blue); transition: gap .25s ease;
}
.mm-card__link:hover { gap: 10px; color: var(--mm-indigo); }
.mm-card__link .mm-icon { width: 16px; height: 16px; }

/* --- Icon Box --- */
.mm-icon-box { padding: 32px; text-align: center; }
.mm-icon-box__icon {
    width: 64px; height: 64px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 0; background: rgba(var(--mm-light-blue-rgb),.06); color: var(--mm-light-blue);
}
.mm-icon-box__icon .mm-icon { width: 28px; height: 28px; }
.mm-icon-box h3 { font-size: 1.125rem; margin-bottom: 10px; }
.mm-icon-box p { font-size: .875rem; color: #666; line-height: 1.7; }

/* --- Steps --- */
.mm-step { display: flex; gap: 24px; padding: 32px 0; border-bottom: 1px solid #eee; }
.mm-step:last-child { border-bottom: none; }
.mm-step__number {
    flex-shrink: 0; width: 56px; height: 56px; border-radius: 0;
    background: var(--mm-gradient);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.25rem;
}
.mm-step__content h3 { margin-bottom: 8px; }
.mm-step__content p { color: #555; font-size: .9375rem; }

/* --- Specs Table --- */
.mm-specs-table { width: 100%; border-collapse: collapse; }
.mm-specs-table tr { border-bottom: 1px solid #eee; }
.mm-specs-table td { padding: 14px 0; font-size: .9375rem; }
.mm-specs-table td:first-child { font-weight: 600; color: var(--mm-dark); width: 40%; }
.mm-specs-table td:last-child { color: #555; }

/* --- Features List --- */
.mm-features-list { columns: 2; gap: 16px; }
.mm-features-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; break-inside: avoid; font-size: .9375rem; }
.mm-features-list .mm-icon { width: 20px; height: 20px; color: var(--mm-light-blue); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 640px) { .mm-features-list { columns: 1; } }

/* --- Gallery --- */
.mm-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.mm-gallery__item { aspect-ratio: 4/3; overflow: hidden; border-radius: 0; cursor: pointer; }
.mm-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mm-gallery__item:hover img { transform: scale(1.08); }
@media (max-width: 640px) { .mm-gallery { grid-template-columns: repeat(2,1fr); } }

/* --- CTA Section --- */
.mm-cta-section {
    background: var(--mm-gradient);
    padding: 100px 0; text-align: center; color: #fff;
}
.mm-cta-section h2 { color: #fff; margin-bottom: 16px; }
.mm-cta-section p { font-size: 1.125rem; opacity: .9; max-width: 600px; margin: 0 auto 36px; }

/* --- Scroll Animations --- */
.mm-reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.mm-reveal--visible { opacity: 1; transform: translateY(0); }
.mm-reveal--delay-1 { transition-delay: .1s; }
.mm-reveal--delay-2 { transition-delay: .2s; }
.mm-reveal--delay-3 { transition-delay: .3s; }
.mm-reveal--delay-4 { transition-delay: .4s; }

/* Directional reveals */
.mm-reveal--left { opacity: 0; transform: translateX(-50px); transition: opacity .8s ease, transform .8s cubic-bezier(.4, 0, .2, 1); }
.mm-reveal--right { opacity: 0; transform: translateX(50px); transition: opacity .8s ease, transform .8s cubic-bezier(.4, 0, .2, 1); }
.mm-reveal--scale { opacity: 0; transform: scale(.88); transition: opacity .8s ease, transform .8s cubic-bezier(.4, 0, .2, 1); }
.mm-reveal--left.mm-reveal--visible,
.mm-reveal--right.mm-reveal--visible,
.mm-reveal--scale.mm-reveal--visible { opacity: 1; transform: none; }

/* --- Utility --- */
.mm-text-center { text-align: center; }
.mm-text-white { color: #fff; }
.mm-main { padding-top: 88px; }

/* ==========================================================================
   FAQ ACCORDION — generic, used wherever .mm-faq markup appears
   (homepage, family templates, ...)
   ========================================================================== */
.mm-faq-wrap {
    display: grid;
    grid-template-columns: .85fr 1fr;
    gap: 72px;
    align-items: start;
}
.mm-faq-header h2 { margin-bottom: 16px; }
.mm-faq-header p {
    color: #555;
    line-height: 1.85;
    font-size: 1rem;
}
.mm-faq__item {
    border-bottom: 1px solid #eee;
}
.mm-faq__item:first-child {
    border-top: 1px solid #eee;
}
.mm-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 22px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--mm-dark);
    transition: color .25s ease;
}
.mm-faq__question:hover {
    color: var(--mm-light-blue);
}
.mm-faq__question::after {
    content: '+';
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.375rem;
    font-weight: 300;
    color: #bbb;
    transition: color .25s ease;
    line-height: 1;
}
.mm-faq__item--open .mm-faq__question::after {
    content: '\2212';
    color: var(--mm-light-blue);
}
.mm-faq__item--open .mm-faq__question span {
    color: var(--mm-light-blue);
}
.mm-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
}
.mm-faq__item--open .mm-faq__answer {
    max-height: 600px;
}
.mm-faq__answer p {
    padding-bottom: 22px;
    font-size: .9rem;
    color: #555;
    line-height: 1.85;
}

@media (max-width: 1024px) {
    .mm-faq-wrap { grid-template-columns: 1fr; gap: 40px; }
}
