/*
Theme Name: Monasabati App Theme
Theme URI: https://monasabati.qa
Author: OpenAI Codex
Description: Arabic-first landing theme for the Monasabati app.
Version: 1.0.1
Text Domain: monasabati-app-theme
*/

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #650242;
    --primary-dark: #3f0129;
    --accent: #b7885a;
    --accent-soft: #efe2d2;
    --surface: #f6efe6;
    --surface-strong: #fffaf4;
    --surface-muted: #f1e7da;
    --text: #241318;
    --text-soft: #6f6167;
    --line: rgba(101, 2, 66, 0.12);
    --shadow: 0 18px 45px rgba(57, 6, 39, 0.14);
    --radius-lg: 32px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --shell: min(1120px, calc(100vw - 32px));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    direction: rtl;
    background: var(--surface);
    color: var(--text);
    font-family: 'Tajawal', sans-serif;
    line-height: 1.75;
}

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

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

.site-shell {
    width: var(--shell);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(16px);
    background: rgba(246, 239, 230, 0.94);
    border-bottom: 1px solid rgba(101, 2, 66, 0.08);
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-mark img {
    width: 86px;
    height: auto;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    color: var(--primary);
    font-family: 'Poppins', 'Tajawal', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 0.98rem;
    color: var(--text-soft);
}

.primary-nav a {
    position: relative;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.24s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--primary);
}

.hero-section,
.content-section {
    padding: 84px 0;
}

.hero-grid,
.value-grid,
.cta-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(183, 136, 90, 0.14);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
}

.hero-copy h1,
.section-heading h2,
.value-grid h2,
.cta-shell h2,
.inner-page-heading h1 {
    margin: 18px 0 16px;
    color: var(--primary-dark);
    line-height: 1.15;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 4vw, 4.6rem);
    letter-spacing: -0.03em;
}

.hero-copy p,
.section-heading p,
.value-grid p,
.cta-shell p,
.feature-card p,
.journey-card p,
.highlight-grid p,
.faq-list p,
.footer-shell p,
.inner-page-content {
    color: var(--text-soft);
    font-size: 1.02rem;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0 18px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    font-family: inherit;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.75);
    color: var(--primary);
    border: 1px solid var(--line);
}

.button-disabled {
    opacity: 0.85;
    cursor: default;
}

.store-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.store-card {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    box-shadow: 0 14px 32px rgba(63, 1, 41, 0.08);
}

.store-card strong {
    color: var(--primary-dark);
    font-size: 1rem;
}

.store-card span {
    color: var(--text-soft);
    font-size: 0.94rem;
}

.store-card-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.store-card-primary strong,
.store-card-primary span {
    color: #fff;
}

.store-card-muted {
    background: var(--surface-strong);
}

.store-badge {
    width: 168px;
    max-width: 100%;
    margin-top: 8px;
}

.hero-points {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text);
}

.hero-points li {
    position: relative;
    padding-right: 28px;
}

.hero-points li::before {
    content: '•';
    position: absolute;
    right: 8px;
    top: 0;
    color: var(--accent);
    font-size: 1.4rem;
}

.hero-panel {
    position: relative;
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: 30px -20px -26px 56px;
    background: rgba(101, 2, 66, 0.08);
    border-radius: 40px;
    filter: blur(12px);
}

.device-card {
    position: relative;
    border-radius: 38px;
    padding: 22px;
    background: #fbf5ee;
    border: 1px solid rgba(101, 2, 66, 0.08);
    box-shadow: var(--shadow);
}

.device-top {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.device-top span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(101, 2, 66, 0.22);
}

.device-body {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: min(100%, 360px);
    padding: 14px;
    border-radius: 34px;
    background: #3f0129;
    box-shadow: 0 26px 45px rgba(24, 11, 16, 0.3);
}

.phone-notch {
    width: 34%;
    height: 24px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.phone-screen {
    display: block;
    overflow: hidden;
    min-height: 520px;
    padding: 0;
    border-radius: 26px;
    background: #f6efe6;
}

.phone-preview-shot {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    object-position: top center;
}

.screen-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: var(--surface-strong);
}

.screen-top img {
    width: 52px;
    height: auto;
}

.screen-top strong {
    color: var(--primary-dark);
}

.screen-top span {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.screen-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 22px;
    background: var(--surface-strong);
    border: 1px solid rgba(101, 2, 66, 0.08);
}

.screen-card span,
.screen-card strong,
.highlight-grid strong,
.feature-card h3,
.journey-card h3,
.value-list strong,
.faq-list summary,
.footer-shell h2 {
    display: block;
    color: var(--primary-dark);
}

.screen-card-accent {
    background: var(--surface-muted);
}

.screen-card-dark {
    background: var(--primary);
}

.screen-card-dark span,
.screen-card-dark strong {
    color: #fff;
}

.highlight-strip {
    padding: 0 0 24px;
}

.highlight-grid,
.feature-grid,
.journey-grid,
.value-list {
    display: grid;
    gap: 22px;
}

.highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.highlight-grid article,
.feature-card,
.journey-card,
.inner-page-card {
    padding: 28px;
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(36, 19, 24, 0.06);
}

.section-heading {
    max-width: 700px;
    margin-bottom: 34px;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journey-section {
    background: var(--surface-muted);
}

.journey-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.journey-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: var(--primary);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.value-section {
    padding-top: 40px;
}

.value-list {
    grid-template-columns: 1fr;
}

.value-list div {
    padding: 24px 26px;
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    border: 1px solid var(--line);
}

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-list details {
    padding: 22px 24px;
    border-radius: var(--radius-sm);
    background: var(--surface-strong);
    border: 1px solid var(--line);
}

.faq-list summary {
    cursor: pointer;
    font-size: 1.08rem;
    font-weight: 800;
}

.faq-list p {
    margin: 14px 0 0;
}

.cta-section {
    padding-top: 24px;
    padding-bottom: 100px;
}

.cta-shell {
    padding: 34px;
    border-radius: var(--radius-lg);
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow);
}

.cta-shell h2,
.cta-shell p,
.cta-shell .eyebrow {
    color: inherit;
}

.cta-shell .eyebrow {
    background: rgba(255, 255, 255, 0.16);
}

.cta-shell .button-primary {
    background: #fff;
    color: var(--primary);
}

.cta-shell .button-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.24);
}

.inner-page-section {
    min-height: 60vh;
}

.inner-page-shell {
    max-width: 860px;
}

.inner-page-card {
    background: var(--surface-strong);
}

.inner-page-content h2,
.inner-page-content h3,
.inner-page-content h4 {
    color: var(--primary-dark);
}

.inner-page-content a {
    color: var(--primary);
}

.designs-preview-shell {
    max-width: 1120px;
}

.designs-preview-heading {
    max-width: 760px;
}

.designs-category-block {
    display: grid;
    gap: 24px;
    margin-top: 34px;
}

.designs-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.designs-category-copy h2 {
    margin: 0;
    color: var(--primary-dark);
    font-size: clamp(1.5rem, 2.2vw, 2.1rem);
}

.designs-category-copy span {
    color: var(--text-soft);
    font-size: 0.96rem;
}

.designs-category-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex: 0 0 auto;
}

.designs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.design-card-preview {
    display: grid;
    overflow: hidden;
    border-radius: 24px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(36, 19, 24, 0.06);
    padding: 0;
    width: 100%;
    text-align: inherit;
    font: inherit;
    cursor: pointer;
}

.design-card-preview-media {
    aspect-ratio: 3 / 4;
    background: #efe6da;
}

.design-card-preview-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.design-card-preview-body {
    display: grid;
    gap: 6px;
    padding: 16px 16px 18px;
}

.design-card-preview-body strong {
    color: var(--primary-dark);
    font-size: 1rem;
}

.design-card-preview-body span {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.has-design-preview-modal {
    overflow: hidden;
}

.design-preview-modal[hidden] {
    display: none;
}

.design-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 24px;
}

.design-preview-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(36, 19, 24, 0.68);
    backdrop-filter: blur(8px);
}

.design-preview-modal-dialog {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: min(96vw, 720px);
    max-height: 92vh;
    overflow: visible;
    border-radius: 28px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.design-preview-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 250, 244, 0.92);
    color: var(--primary);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(36, 19, 24, 0.16);
}

.design-preview-modal-media {
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(24, 11, 16, 0.28);
}

.design-preview-modal-media img {
    display: block;
    width: auto;
    max-width: min(96vw, 720px);
    height: auto;
    max-height: 92vh;
    object-fit: contain;
}

.site-footer {
    padding: 28px 0 38px;
    background: #f1e7da;
    color: var(--text);
}

.footer-shell,
.footer-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 22px;
}

.footer-meta {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(101, 2, 66, 0.12);
    font-size: 0.94rem;
    color: var(--text-soft);
    text-align: center;
}

.footer-meta a {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 960px) {
    .hero-grid,
    .value-grid,
    .cta-shell,
    .highlight-grid,
    .feature-grid,
    .journey-grid {
        grid-template-columns: 1fr;
    }

    .designs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-shell {
        min-height: 68px;
    }

    .nav-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        background: rgba(255, 248, 242, 0.96);
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: 0 18px 35px rgba(36, 19, 24, 0.12);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .store-strip {
        grid-template-columns: 1fr;
    }

    .lang-switch {
        min-width: 74px;
        height: 36px;
        padding: 0 12px;
        font-size: 0.84rem;
    }
}

@media (max-width: 640px) {
    .hero-section,
    .content-section {
        padding: 58px 0;
    }

    .hero-copy h1 {
        font-size: 2.05rem;
        line-height: 1.22;
    }

    .footer-shell,
    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-shell {
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 10px;
        min-height: 54px;
    }

    .site-header {
        backdrop-filter: blur(12px);
    }

    .header-shell > * {
        min-width: 0;
    }

    .brand-mark {
        justify-self: start;
        align-self: center;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        justify-self: end;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        margin: 0;
    }

    .nav-toggle span {
        width: 20px;
        margin: 4px 0;
    }

    .lang-switch {
        min-width: 66px;
        height: 34px;
        padding: 0 10px;
        justify-self: end;
    }

    .highlight-grid article,
    .feature-card,
    .journey-card,
    .inner-page-card,
    .cta-shell {
        padding: 20px;
    }

    .designs-category-block {
        gap: 18px;
        margin-top: 28px;
    }

    .designs-category-header {
        align-items: center;
    }

    .designs-category-copy h2 {
        font-size: 1.35rem;
    }

    .designs-category-icon {
        width: 48px;
        height: 48px;
    }

    .designs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .design-card-preview {
        border-radius: 18px;
    }

    .design-card-preview-body {
        padding: 12px 12px 14px;
    }

    .design-card-preview-body strong {
        font-size: 0.92rem;
    }

    .design-card-preview-body span {
        font-size: 0.8rem;
    }

    .design-preview-modal {
        padding: 14px;
    }

    .design-preview-modal-dialog {
        width: auto;
        max-width: min(100vw - 24px, 540px);
        border-radius: 22px;
    }

    .design-preview-modal-close {
        top: 12px;
        left: 12px;
        width: 38px;
        height: 38px;
        font-size: 1.6rem;
    }

    .button,
    .hero-actions a,
    .cta-actions a,
    .button-disabled {
        width: 100%;
    }

    .site-shell {
        width: min(100vw - 24px, var(--shell));
    }

    .brand-mark img {
        width: 62px;
    }

    .primary-nav {
        top: calc(100% + 8px);
    }

    .hero-copy p,
    .section-heading p,
    .value-grid p,
    .cta-shell p,
    .feature-card p,
    .journey-card p,
    .highlight-grid p,
    .faq-list p,
    .footer-shell p,
    .inner-page-content {
        font-size: 0.98rem;
    }

    .hero-actions,
    .cta-actions {
        gap: 12px;
    }

    .hero-points li {
        padding-right: 24px;
        font-size: 0.98rem;
    }

    .phone-frame {
        width: 100%;
        padding: 12px;
    }

    .store-card {
        padding: 16px;
        border-radius: 20px;
    }

    .store-badge {
        width: 150px;
    }

    .site-footer {
        padding: 24px 0 30px;
    }

    .footer-links {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .footer-links a {
        padding: 10px 0;
        border-bottom: 1px solid rgba(101, 2, 66, 0.08);
    }

    .footer-links a:last-child {
        border-bottom: 0;
    }

    .footer-meta {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;
        font-size: 0.74rem;
        line-height: 1.35;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .footer-meta span {
        display: block;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .phone-screen {
        min-height: auto;
    }

    .phone-preview-shot {
        min-height: 460px;
    }

    .screen-top img {
        width: 46px;
    }

    .screen-card,
    .store-card {
        padding: 16px;
    }
}
