﻿/* الصرح الجديد — ملف التنسيق (CSS) */

/* ============ Design tokens ============ */
:root {
    --bg: #ffffff;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-2: #f7f5f5;
    --text: #1c1414;
    --text-muted: #6e5457;
    --primary: #c41230;
    --primary-dark: #8f0c22;
    --primary-strong: #a30f29;
    --primary-tint: #fbe1e6;
    --accent: #c41230;
    --accent-dark: #8f0c22;
    --accent-tint: #fbe1e6;
    --border: #eedddf;
    --shadow: rgba(196,18,48,.14);
    --on-primary: #ffffff;
    --focus: #c41230;
}
/* الموقع مثبّت دائماً على الخلفية البيضاء بالتصميم — لا يتغير مع وضع الجهاز الداكن */
/* الموقع مثبّت دائماً على الخلفية البيضاء بالتصميم — لا يتغير مع وضع الجهاز الداكن */

/* ============ Reset ============ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

html, body {
    margin: 0;
    padding: 0;
    direction: rtl;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'IBM Plex Sans Arabic','Tajawal',system-ui,sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: 'El Messiri','IBM Plex Sans Arabic',sans-serif;
    font-weight: 700;
    text-wrap: balance;
    color: var(--text);
}

p {
    margin: 0;
}

button {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============ Layout utilities ============ */
.container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding-block: clamp(56px,9vw,108px);
}

.section-alt {
    background: var(--bg);
    border-block: 1px solid var(--border);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--accent-dark);
    background: var(--accent-tint);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

    .kicker::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--accent);
    }

.section-head {
    max-width: 640px;
    margin-bottom: 44px;
}

    .section-head h2 {
        font-size: clamp(1.7rem,3.2vw,2.35rem);
        margin-bottom: 14px;
    }

    .section-head p {
        color: var(--text-muted);
        font-size: 1.05rem;
    }

    .section-head.center {
        margin-inline: auto;
        text-align: center;
    }

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: .98rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease, border-color .15s ease;
}

    .btn:hover {
        transform: translateY(-2px);
    }

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 10px 24px -10px var(--shadow);
}

    .btn-primary:hover {
        background: var(--primary-strong);
    }

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

    .btn-ghost:hover {
        border-color: var(--primary);
        color: var(--primary-dark);
    }

/* ============ Icon badges ============ */
.icon {
    width: 26px;
    height: 26px;
    stroke: currentColor;
}

.icon-accent {
    fill: var(--accent);
}

.badge {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-tint);
    color: var(--primary-dark);
    flex-shrink: 0;
}

    .badge .icon {
        width: 30px;
        height: 30px;
    }

.badge-lg {
    width: 76px;
    height: 76px;
    border-radius: 20px;
}

    .badge-lg .icon {
        width: 38px;
        height: 38px;
    }

.badge-accent {
    background: var(--accent-tint);
    color: var(--accent-dark);
}

/* ============ Header ============ */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 16px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

    .brand-text strong {
        font-family: 'El Messiri',sans-serif;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--text);
    }

    .brand-text span {
        font-size: .72rem;
        color: var(--text-muted);
    }

nav.links {
    display: flex;
    align-items: center;
    gap: 30px;
}

    nav.links a {
        font-size: .95rem;
        font-weight: 500;
        color: var(--text-muted);
        position: relative;
        padding-block: 4px;
        transition: color .15s ease;
    }

        nav.links a:hover {
            color: var(--primary-dark);
        }

        nav.links a::after {
            content: "";
            position: absolute;
            right: 0;
            bottom: -2px;
            width: 0%;
            height: 2px;
            background: var(--accent);
            transition: width .2s ease;
        }

        nav.links a:hover::after {
            width: 100%;
        }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
}

    .nav-toggle .icon {
        width: 22px;
        height: 22px;
    }

@media (max-width:900px) {
    nav.links {
        position: fixed;
        inset-inline: 0;
        top: 78px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        padding: 8px 24px 20px;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .18s ease, transform .18s ease, visibility .18s;
    }

        nav.links.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        nav.links a {
            padding-block: 14px;
            border-bottom: 1px solid var(--border);
        }

    .nav-toggle {
        display: flex;
    }

    .nav-actions .btn-primary {
        display: none;
    }
}

/* ============ Hero ============ */
.hero {
    position: relative;
    padding-block: clamp(64px,10vw,120px) clamp(56px,8vw,96px);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.15rem,4.6vw,3.35rem);
    line-height: 1.22;
    margin-bottom: 22px;
}

    .hero h1 em {
        font-style: normal;
        color: var(--primary-dark);
        background: linear-gradient(transparent 62%, var(--accent-tint) 62%);
    }

.hero p.lead {
    font-size: 1.12rem;
    color: var(--text-muted);
    max-width: 52ch;
    margin-bottom: 32px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-pillars {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.hero-pillar {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: .92rem;
    font-weight: 500;
}

    .hero-pillar .icon {
        width: 20px;
        height: 20px;
        color: var(--primary-dark);
        flex-shrink: 0;
    }

.hero-art {
    position: relative;
    aspect-ratio: 1/1;
    max-width: 480px;
    margin-inline-start: auto;
}

    .hero-art .blob {
        position: absolute;
        inset: 6%;
        border-radius: 42% 58% 55% 45%/48% 42% 58% 52%;
        background: linear-gradient(155deg, var(--primary-tint), var(--surface) 70%);
        border: 1px solid var(--border);
    }

    .hero-art .dotgrid {
        position: absolute;
        inset: 0;
        background-image: radial-gradient(var(--border) 1.2px, transparent 1.2px);
        background-size: 16px 16px;
        opacity: .55;
        mask-image: radial-gradient(circle at center, black 55%, transparent 78%);
    }

.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    box-shadow: 0 16px 34px -14px var(--shadow);
}

    .float-badge .icon {
        width: 36px;
        height: 36px;
        color: var(--primary-dark);
    }

    .float-badge.accent .icon {
        color: var(--accent-dark);
    }

    .float-badge.b1 {
        top: 6%;
        right: 10%;
    }

    .float-badge.b2 {
        top: 38%;
        right: 64%;
        width: 64px;
        height: 64px;
    }

        .float-badge.b2 .icon {
            width: 30px;
            height: 30px;
        }

    .float-badge.b3 {
        bottom: 14%;
        right: 8%;
    }

    .float-badge.b4 {
        bottom: 4%;
        left: 2%;
        width: 60px;
        height: 60px;
    }

        .float-badge.b4 .icon {
            width: 28px;
            height: 28px;
        }

    .float-badge.center {
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 120px;
        height: 120px;
        border-radius: 28px;
        background: var(--primary);
    }

        .float-badge.center .icon {
            width: 58px;
            height: 58px;
            color: var(--on-primary);
        }

@media (prefers-reduced-motion: no-preference) {
    .float-badge {
        animation: drift 7s ease-in-out infinite;
    }

        .float-badge.b2 {
            animation-delay: .6s;
            animation-duration: 8s;
        }

        .float-badge.b3 {
            animation-delay: 1.1s;
            animation-duration: 6.5s;
        }

        .float-badge.b4 {
            animation-delay: .3s;
            animation-duration: 7.5s;
        }
}

@keyframes drift {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-badge.center {
    animation: none !important;
}

@media (max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-art {
        margin-inline: auto;
        max-width: 340px;
        order: -1;
    }
}

/* ============ Reveal on scroll ============ */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

    .reveal.in {
        opacity: 1;
        transform: none;
    }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============ About ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-copy p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 18px;
}

    .about-copy p:last-child {
        margin-bottom: 0;
    }

.pillars-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.pillar-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

    .pillar-item h4 {
        font-size: 1.02rem;
        margin-bottom: 6px;
    }

    .pillar-item p {
        color: var(--text-muted);
        font-size: .92rem;
    }

@media (max-width:860px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ Products ============ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 26px;
}

.product-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 44px -22px var(--shadow);
        border-color: var(--primary-tint);
    }

    .product-card h3 {
        font-size: 1.2rem;
    }

    .product-card p {
        color: var(--text-muted);
        font-size: .95rem;
    }

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.chip {
    font-size: .78rem;
    font-weight: 500;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

@media (max-width:900px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ Baby showcase ============ */
.baby-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
}

.baby-tile {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .baby-tile:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px -22px var(--shadow);
    }

    .baby-tile h4 {
        font-size: 1.02rem;
    }

    .baby-tile p {
        font-size: .88rem;
        color: var(--text-muted);
    }

@media (max-width:900px) {
    .baby-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:560px) {
    .baby-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ Why us ============ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 22px;
}

.why-card {
    padding: 28px 22px;
    border-radius: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

    .why-card h4 {
        font-size: 1.02rem;
        margin: 16px 0 8px;
    }

    .why-card p {
        font-size: .9rem;
        color: var(--text-muted);
    }

@media (max-width:900px) {
    .why-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:560px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ Contact ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

    .contact-card .badge {
        background: var(--primary-tint);
    }

    .contact-card h4 {
        font-size: .95rem;
        margin-bottom: 4px;
        color: var(--text-muted);
        font-weight: 500;
    }

    .contact-card p {
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--text);
    }

    .contact-card .soon {
        font-size: .85rem;
        font-weight: 500;
        color: var(--accent-dark);
    }

    .contact-card a {
        transition: color .15s ease;
    }

    .contact-card p a:hover {
        color: var(--primary-dark);
    }

    .contact-card .aux {
        font-size: .85rem;
        font-weight: 600;
        color: var(--accent-dark);
        margin-top: 4px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

        .contact-card .aux:hover {
            color: var(--accent);
        }

.contact-wrap {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
}

.contact-form-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

    .contact-form-card h3 {
        font-size: 1.2rem;
    }

    .contact-form-card .form-hint {
        color: var(--text-muted);
        font-size: .92rem;
        max-width: 34ch;
        margin-bottom: 6px;
    }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    text-align: right;
    margin-bottom: 6px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .field label {
        font-size: .85rem;
        font-weight: 600;
        color: var(--text-muted);
    }

    .field input, .field textarea {
        font: inherit;
        font-size: .96rem;
        padding: 12px 14px;
        border-radius: 10px;
        border: 1.5px solid var(--border);
        background: var(--bg);
        color: var(--text);
        resize: vertical;
    }

        .field input:focus, .field textarea:focus {
            border-color: var(--primary);
        }

.contact-form .btn {
    justify-content: center;
    width: 100%;
}

.form-note {
    font-size: .8rem;
    color: var(--text-muted);
}

.social-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--primary-dark);
    transition: transform .15s ease, border-color .15s ease;
}

    .social-btn:hover {
        transform: translateY(-2px);
        border-color: var(--primary);
    }

    .social-btn .icon {
        width: 20px;
        height: 20px;
    }

@media (max-width:900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrap {
        grid-template-columns: 1fr;
    }
}

/* ============ Footer ============ */
footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding-block: 44px 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
}

.footer-links {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

    .footer-links a {
        color: var(--text-muted);
        font-size: .92rem;
    }

        .footer-links a:hover {
            color: var(--primary-dark);
        }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-muted);
    font-size: .85rem;
}
