/* Maghreb Modernist homepage */

.mm-hero {
    position: relative;
    min-height: 600px;
    height: calc(100vh - 5rem);
    max-height: 921px;
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px 5rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .mm-hero {
        padding-inline: 64px;
        padding-bottom: 8rem;
    }
}

.mm-hero-bg,
.mm-hero-overlay {
    position: absolute;
    inset: 0;
}

.mm-hero-bg {
    background-size: cover;
    background-position: center;
}

.mm-hero-overlay {
    background: linear-gradient(
        to top,
        rgba(20, 28, 26, 0.88) 0%,
        rgba(20, 28, 26, 0.45) 42%,
        rgba(20, 28, 26, 0.28) 70%,
        rgba(20, 28, 26, 0.18) 100%
    );
}

.mm-hero-copy {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 56rem;
    color: #fff;
}

.mm-hero-copy h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.mm-hero-copy h1 .text-accent {
    color: var(--secondary-fixed);
}

.mm-hero-copy p {
    margin: 1.25rem auto 0;
    max-width: 36rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #f6f3f2;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.mm-search {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1280px;
    margin-top: 3rem;
    transform: translateY(2.5rem);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(191, 201, 195, 0.2);
    border-radius: 1.25rem;
    box-shadow: 0 40px 80px -20px rgba(0, 80, 69, 0.15);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .mm-search {
        flex-direction: row;
        align-items: stretch;
        padding: 1rem;
        gap: 1rem;
        transform: translateY(4rem);
    }
}

.mm-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface-container-low);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid transparent;
    margin: 0;
}

.mm-search-field:focus-within {
    border-bottom-color: var(--secondary);
}

.mm-search-field .material-symbols-outlined {
    color: var(--outline);
}

.mm-search-field select {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--on-surface);
    outline: none;
    font-size: 0.95rem;
    text-overflow: ellipsis;
}

.mm-search-split {
    display: none;
}

@media (min-width: 768px) {
    .mm-search-split {
        display: block;
        width: 1px;
        background: rgba(191, 201, 195, 0.3);
        align-self: center;
        height: 2.5rem;
    }
}

.mm-search-submit {
    min-height: 56px;
    padding: 0 2rem;
    border: 0;
    border-radius: 0.75rem;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mm-search-submit:hover {
    background: #003d35;
}

.mm-section {
    padding: 6rem 0;
}

@media (min-width: 768px) {
    .mm-section {
        padding: 7.5rem 0;
    }
}

.mm-band {
    padding: 6rem 0;
    background: var(--surface-container-low);
    border-top: 1px solid rgba(191, 201, 195, 0.2);
    border-bottom: 1px solid rgba(191, 201, 195, 0.2);
}

.mm-section-head {
    margin-bottom: 3rem;
}

.mm-section-head h2,
.mm-band h2,
.mm-newsletter h2 {
    font-size: clamp(1.75rem, 3vw, 2rem);
    line-height: 1.3;
}

.mm-section-head p {
    margin: 0.5rem auto 0;
    max-width: 36rem;
    color: var(--on-surface-variant);
}

.mm-section-head-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
}

.mm-section-head-row p {
    margin-inline: 0;
}

.mm-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.15rem;
}

.mm-text-link:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.mm-text-link .material-symbols-outlined {
    font-size: 1rem;
}

.mm-destination {
    position: relative;
    display: block;
    height: 400px;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(191, 201, 195, 0.2);
    box-shadow: 0 30px 60px -15px rgba(0, 80, 69, 0.06);
}

.mm-destination img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.mm-destination:hover img {
    transform: scale(1.05);
}

.mm-destination-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(20, 28, 26, 0.92) 0%,
        rgba(20, 28, 26, 0.45) 45%,
        rgba(20, 28, 26, 0.12) 100%
    );
}

.mm-destination-copy {
    position: absolute;
    inset-inline: 1.5rem;
    bottom: 1.5rem;
    color: #fff;
    z-index: 1;
}

.mm-destination-copy h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.mm-destination-copy p {
    margin: 0;
    color: #f6f3f2;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.mm-bento {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .mm-bento {
        grid-template-columns: 7fr 5fr;
        min-height: 600px;
    }
}

.mm-bento-hero {
    position: relative;
    display: block;
    min-height: 400px;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(191, 201, 195, 0.2);
}

.mm-bento-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.mm-bento-hero:hover img {
    transform: scale(1.05);
}

.mm-bento-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(20, 28, 26, 0.92) 0%,
        rgba(20, 28, 26, 0.4) 50%,
        rgba(20, 28, 26, 0.08) 100%
    );
}

.mm-bento-pills {
    position: absolute;
    top: 1.5rem;
    inset-inline-start: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1;
}

.mm-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mm-pill .material-symbols-outlined {
    font-size: 0.9rem;
}

.mm-pill-light {
    background: #fff;
    color: var(--primary-color);
}

.mm-pill-primary {
    background: var(--primary-color);
    color: #fff;
}

.mm-bento-hero-copy {
    position: absolute;
    inset-inline: 1.5rem;
    bottom: 1.5rem;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    color: #fff;
}

.mm-bento-hero-copy h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.mm-bento-hero-copy p,
.mm-guide {
    margin: 0;
    color: #f6f3f2;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mm-bento-hero-copy .material-symbols-outlined {
    font-size: 1rem;
}

.mm-bento-hero-copy strong {
    color: var(--secondary-fixed);
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.mm-bento-hero-copy small {
    font-size: 0.9rem;
    font-weight: 400;
    color: #f6f3f2;
}

.mm-bento-stack {
    display: grid;
    gap: 1.5rem;
}

.mm-bento-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(191, 201, 195, 0.2);
    text-decoration: none;
    color: inherit;
    min-height: 180px;
}

@media (min-width: 576px) {
    .mm-bento-card {
        flex-direction: row;
    }
}

.mm-bento-card-media {
    width: 100%;
    height: 12rem;
    overflow: hidden;
}

@media (min-width: 576px) {
    .mm-bento-card-media {
        width: 40%;
        height: auto;
    }
}

.mm-bento-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.mm-bento-card:hover img {
    transform: scale(1.08);
}

.mm-bento-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.mm-bento-card-body span {
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.mm-bento-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.mm-bento-card-body p {
    margin: 0 0 1rem;
    color: var(--on-surface-variant);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mm-bento-card-body .material-symbols-outlined {
    font-size: 1rem;
}

.mm-bento-card-body strong {
    margin-top: auto;
    color: var(--primary-color);
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.mm-partner {
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
    padding: 2.5rem;
    background: var(--surface-container-low);
    border: 1px solid rgba(191, 201, 195, 0.3);
    border-radius: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.mm-partner h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.mm-partner p {
    margin: 0;
    color: var(--on-surface-variant);
    font-size: 1.125rem;
    max-width: 36rem;
}

.mm-btn-gold {
    background: var(--secondary);
    border: 2px solid var(--secondary);
    color: #fff;
    border-radius: 999px;
    padding: 1rem 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
}

.mm-btn-gold:hover {
    background: #643e19;
    border-color: #643e19;
    color: #fff;
}

.mm-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mm-stat .material-symbols-outlined {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.mm-stat strong {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

.mm-stat span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
}

.mm-service {
    background: #fff;
    border: 1px solid rgba(191, 201, 195, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
}

.mm-service .material-symbols-outlined {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.mm-service h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.mm-service p {
    margin: 0;
    color: var(--on-surface-variant);
}

.mm-insight {
    display: block;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(191, 201, 195, 0.2);
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.mm-insight-media {
    height: 12rem;
    overflow: hidden;
}

.mm-insight-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.mm-insight:hover img {
    transform: scale(1.05);
}

.mm-insight-body {
    padding: 1.5rem;
}

.mm-insight-body span {
    display: block;
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.mm-insight-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.mm-insight-body p {
    margin: 0;
    color: var(--on-surface-variant);
    font-size: 0.95rem;
    line-height: 1.6;
    unicode-bidi: plaintext;
}

.mm-quote {
    position: relative;
    background: #fff;
    border: 1px solid rgba(191, 201, 195, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    text-align: start;
    height: 100%;
}

.mm-quote-mark {
    position: absolute;
    top: 1.5rem;
    inset-inline-end: 1.5rem;
    font-size: 2.5rem;
    color: rgba(127, 85, 46, 0.2);
}

.mm-quote p {
    font-size: 1.125rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--on-surface-variant);
    margin-bottom: 1.5rem;
}

.mm-quote-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mm-insight-body p {
    margin: 0;
    color: var(--on-surface-variant);
    font-size: 0.95rem;
    line-height: 1.6;
    unicode-bidi: plaintext;
}

.mm-quote-author > span {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: var(--surface-dim);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    color: var(--primary-color);
    font-weight: 700;
    direction: ltr;
    unicode-bidi: isolate;
}

.mm-quote-author strong {
    display: block;
}

.mm-quote-author small {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
}

.mm-newsletter {
    background: var(--primary-color);
    color: #fff;
    padding: 6rem 0;
    text-align: center;
}

.mm-newsletter-icon {
    font-size: 2.5rem;
    color: var(--secondary-fixed);
    margin-bottom: 1rem;
}

.mm-newsletter h2 .text-accent {
    color: var(--secondary-fixed);
}

.mm-newsletter p {
    max-width: 36rem;
    margin: 1rem auto 2rem;
    color: #f6f3f2;
    font-size: 1.125rem;
}

.mm-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 28rem;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .mm-newsletter-form {
        flex-direction: row;
    }
}

.mm-newsletter-form input[type="email"] {
    flex: 1;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    outline: none;
}

.mm-newsletter-form button {
    border: 0;
    border-radius: 999px;
    background: var(--secondary);
    color: #fff;
    padding: 0.85rem 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
}

.mm-newsletter-form button:hover {
    background: #6a4524;
}

@media (max-width: 767.98px) {
    .mm-hero {
        margin-top: 4.5rem;
        height: auto;
        min-height: 560px;
        padding-bottom: 4rem;
    }

    .mm-search {
        transform: translateY(1.5rem);
    }

    .mm-bento-hero-copy {
        flex-direction: column;
        align-items: flex-start;
    }

    .mm-bento-hero-copy .text-end {
        text-align: start !important;
    }
}
