/*
   Cocorra public site. Palette and character from the brand sheet; fonts: Tajawal (headings), Cairo (body),
   Noto Sans Arabic (fallback), Fredoka (wordmark only) — declared in fonts.css.
   Layout uses logical properties (inline-start/end), so Arabic (RTL) and English (LTR) share one stylesheet.
   Contrast: body text is forest (8:1 on cream); terracotta and sage are decoration only; text links in clay use
   --clay-text (5.8:1); white on --clay-deep buttons is 4.9:1.
*/

:root {
    --cream: #F4EFE7;
    --white: #FFFFFF;
    --forest: #3F4A3D;
    --forest-deep: #2E352C;
    --sage: #A7B89F;
    --sage-deep: #6B7F68;
    --sand: #D9CBBE;
    --blush: #EAD9CC;
    --clay: #C98F7A;
    --clay-deep: #A35E48;
    --clay-text: #8A4E3B;
    --ink-soft: #4E594B;
    --muted: #5A6457;
    --on-forest: #F4EFE7;
    --on-forest-soft: #DCD5C8;

    --font-head: "Tajawal", "Noto Sans Arabic", system-ui, sans-serif;
    --font-body: "Cairo", "Noto Sans Arabic", system-ui, sans-serif;
    --font-mark: "Fredoka", "Tajawal", sans-serif;

    --wrap: 1200px;
    --gutter: 24px;
    --radius: 16px;
    --shadow-soft: 0 8px 24px rgba(63, 74, 61, 0.12);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--forest);
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    overflow-x: clip;
}
:lang(ar) body, body.lang-ar { line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--clay-text); }
:focus-visible { outline: 3px solid var(--clay-deep); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; inset-inline-start: 16px; top: -60px; z-index: 50;
    background: var(--forest); color: var(--on-forest); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; color: var(--on-forest); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 960px; }
.wrap-mid { max-width: 1000px; }

.eyebrow { font-size: 1rem; font-weight: 600; color: var(--clay-text); margin-block-end: 12px; }
.eyebrow a { color: inherit; }
.lead { font-size: 1.3rem; color: var(--ink-soft); max-width: 34em; }
.pill {
    display: inline-block; padding: 4px 16px; border-radius: 999px; background: var(--blush);
    font-size: 0.95rem; font-weight: 600; margin-block-end: 20px;
}
.section-title { font-size: clamp(2rem, 2.4vw + 1rem, 2.75rem); line-height: 1.15; margin-block-end: 12px; }
.section-title-sm { font-size: 1.75rem; margin-block-end: 20px; }
.section-lead { color: var(--ink-soft); max-width: 36em; }
:lang(ar) .section-title { line-height: 1.35; }
.empty { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 24px; border-radius: var(--radius);
    font: 600 1.05rem/1 var(--font-body); text-decoration: none; cursor: pointer; border: 2px solid transparent;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-pill { border-radius: 999px; }
.btn-clay { background: var(--clay-deep); color: var(--white); }
.btn-clay:hover { background: var(--clay-text); color: var(--white); }
.btn-forest { background: var(--forest); color: var(--on-forest); }
.btn-forest:hover { background: var(--forest-deep); color: var(--on-forest); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-store { min-height: 56px; padding: 0 26px; }
.btn-store-primary { background: var(--forest); color: var(--on-forest); }
.btn-store-primary:hover { background: var(--forest-deep); color: var(--on-forest); }
.btn-store-secondary { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-store-secondary:hover { background: var(--forest); color: var(--on-forest); }
.store-buttons.on-dark .btn-store-primary { background: var(--cream); color: var(--forest); }
.store-buttons.on-dark .btn-store-secondary { border-color: var(--cream); color: var(--cream); }
.store-soon { font-weight: 600; color: var(--muted); }
.store-soon.on-dark { color: var(--on-forest-soft); }

/* ---------- faces (the character in a circle) ---------- */
.face {
    border-radius: 50%; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
    flex: 0 0 auto;
}
.face img { width: 94%; }
.face-sand { background: var(--sand); }
.face-blush { background: var(--blush); }
.face-sage { background: var(--sage); }
.face-md { width: 120px; height: 120px; }
.face-lg { width: 220px; height: 220px; }
.face-xl { width: 280px; height: 280px; }
.face-hero { width: min(440px, 100%); aspect-ratio: 1; }
.mood-word {
    font-size: 0.9rem; font-weight: 600; color: var(--clay-text);
    background: inherit; padding-inline: 8px;
}

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244, 239, 231, 0.92); backdrop-filter: blur(8px); }
.site-header-row { display: flex; align-items: center; gap: 16px 32px; min-height: 80px; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--forest); display: inline-flex; align-items: center; min-height: 48px; }
.brand-logo { max-height: 44px; width: auto; }
.wordmark {
    font-family: var(--font-mark); font-weight: 600; font-size: 2rem; line-height: 1; letter-spacing: -0.5px;
    display: inline-flex; align-items: flex-start; gap: 2px; color: var(--forest);
}
.wordmark-heart { width: 16px; height: 16px; fill: var(--sage-deep); margin-top: -6px; }
.site-menu { display: flex; align-items: center; gap: 16px 28px; flex: 1 1 auto; flex-wrap: wrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; flex: 1 1 auto; justify-content: center; }
.site-nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; border-block-end: 2px solid transparent; }
.site-nav a.active { border-color: var(--clay-deep); font-weight: 600; }
.lang-switch { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
.menu-toggle { display: none; }

@media (max-width: 899px) {
    .menu-toggle {
        display: inline-flex; margin-inline-start: auto; width: 48px; height: 48px; border-radius: 12px;
        border: 0; background: var(--blush); align-items: center; justify-content: center; cursor: pointer;
    }
    .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
        display: block; width: 20px; height: 2px; background: var(--forest); border-radius: 2px; position: relative;
    }
    .menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
    .menu-toggle-bars::before { top: -6px; }
    .menu-toggle-bars::after { top: 6px; }
    .site-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-block-end: 20px; }
    .site-menu.is-open { display: flex; }
    .site-nav { flex-direction: column; gap: 0; }
    .site-nav a { padding-block: 12px; border-block-end: 1px solid var(--sand); }
    .site-nav a.active { border-block-end-color: var(--clay-deep); }
}

/* ---------- home: hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 48px 96px; }
.hero-text { flex: 1 1 480px; min-width: 0; }
.hero-title { font-size: clamp(2.6rem, 4.5vw + 1rem, 4.5rem); line-height: 1.05; letter-spacing: -1.5px; margin-block-end: 24px; }
:lang(ar) .hero-title { line-height: 1.3; letter-spacing: 0; }
.hero .lead { margin-block-end: 36px; }
.hero-art { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; position: relative; }
.hero-bubble {
    position: absolute; inset-inline-start: 0; bottom: 36px; padding: 10px 18px; background: var(--white);
    border-radius: 18px; border-end-start-radius: 4px; box-shadow: var(--shadow-soft); font-weight: 600; font-size: 1rem;
}

/* ---------- bands ---------- */
.band { padding-block: 96px; }
.band-white { background: var(--white); }
.band-forest { background: var(--forest); color: var(--on-forest); }
.band-forest .section-lead, .band-forest p { color: var(--on-forest-soft); }
.band-forest h2, .band-forest h3 { color: var(--on-forest); }
.band-white .mood-word { background: var(--white); }

/* ---------- home: the mood path ---------- */
.mood-path { position: relative; display: flex; flex-direction: column; gap: 56px; margin-block-start: 64px; }
.mood-path::before {
    content: ""; position: absolute; inset-inline-start: 59px; top: 40px; bottom: 40px;
    border-inline-start: 3px dashed var(--sage);
}
.mood-step { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.mood-marker { flex: 0 0 120px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mood-marker .face { outline: 6px solid var(--white); }
.mood-body { flex: 1 1 340px; min-width: 0; }
.step-number { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.mood-body h2, .mood-body h3 { font-size: 2.1rem; margin-block-end: 8px; line-height: 1.2; }
.mood-body h2 a, .mood-body h3 a { text-decoration: none; }
.mood-body h2 a:hover, .mood-body h3 a:hover { text-decoration: underline; }
.mood-body p:last-child { color: var(--ink-soft); max-width: 32em; }

/* ---------- home: safety ---------- */
.safety { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.safety > div { flex: 1 1 380px; min-width: 0; }
.roles { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.roles-wide { flex-direction: row; flex-wrap: wrap; }
.roles-wide .role { flex: 1 1 380px; }
.role { display: flex; gap: 20px; }
.role h2, .role h3 { font-size: 1.6rem; margin-block-end: 6px; }
.role-icon { flex: 0 0 40px; width: 40px; height: 40px; fill: none; stroke: var(--sage); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.role-position { font-weight: 600; margin-block-end: 6px; }

/* ---------- home: coming soon + closing ---------- */
.coming-soon { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 32px; padding-block: 80px 24px; }
.coming-soon h2 { font-size: 1.75rem; }
.coming-soon ul { display: flex; flex-wrap: wrap; gap: 12px; }
.coming-soon li { padding: 8px 18px; border-radius: 999px; border: 1.5px dashed var(--sage-deep); font-size: 1rem; }
.coming-soon li span { color: var(--muted); }
.closing { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 72px 112px; }
.closing-art { flex: 0 1 300px; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-inline: auto; }
.closing-text { flex: 1 1 460px; min-width: 0; }
.closing-line { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); line-height: 1.3; margin-block-end: 32px; }

/* ---------- inner pages ---------- */
.page-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-block: 48px 64px; }
.page-header > div:first-child { flex: 1 1 420px; min-width: 0; }
.page-header h1 { font-size: clamp(2.4rem, 3vw + 1rem, 3.75rem); line-height: 1.1; margin-block-end: 16px; }
:lang(ar) .page-header h1 { line-height: 1.3; }

.feature-detail { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; padding-block: 48px 96px; }
.feature-detail-art { flex: 0 1 300px; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-inline: auto; }
.feature-detail-text { flex: 1 1 480px; min-width: 0; }
.feature-detail-text h1 { font-size: clamp(2.4rem, 3vw + 1rem, 3.5rem); line-height: 1.15; margin-block-end: 16px; }
.feature-detail-text .lead { margin-block-end: 24px; }
.prose { max-width: 40em; }
.prose p, .prose ul, .prose ol { margin-block-end: 1em; }
.prose ul { list-style: disc; padding-inline-start: 1.25em; }
.prose ol { list-style: decimal; padding-inline-start: 1.25em; }
.other-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; }
.other-features a { display: flex; flex-direction: column; gap: 4px; padding-block: 20px; border-block-start: 2px solid var(--sage); text-decoration: none; }
.other-features strong { font-family: var(--font-head); font-weight: 500; font-size: 1.35rem; }
.other-features span { color: var(--ink-soft); font-size: 1rem; }

.safety-voice { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.safety-voice > div { flex: 1 1 420px; }
.voice-badge { width: 88px; height: 88px; padding: 18px; border-radius: 50%; background: var(--blush); fill: none; stroke: var(--forest); stroke-width: 1.6; stroke-linecap: round; }

.news-list li { padding-block: 24px; border-block-end: 1px solid var(--sand); }
.news-list time, .news-post time { color: var(--muted); font-size: 0.95rem; }
.news-list h2 { font-size: 1.6rem; margin-block: 4px 8px; }
.news-list h2 a { text-decoration: none; }
.news-post { padding-block: 48px 96px; }
.news-post h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.25rem); line-height: 1.2; margin-block-end: 12px; }
.news-cover { border-radius: 24px; margin-block: 24px; }
.news-post .lead { margin-block: 16px 24px; }
.pager { display: flex; gap: 24px; align-items: center; justify-content: center; margin-block-start: 32px; }

.contact { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.contact-channels { flex: 1 1 320px; min-width: 0; }
.contact-channels dl { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-channels dt { font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.contact-channels dd { margin: 0; font-family: var(--font-head); font-size: 1.4rem; }
.contact-map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 20px; margin-block-start: 24px; }
.contact-panel { flex: 1 1 520px; min-width: 0; }
.contact.no-channels .contact-panel { max-width: 720px; margin-inline: auto; }
.contact-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 1rem; }
.field input, .field textarea {
    font: inherit; font-size: 1rem; color: var(--forest); background: var(--cream);
    border: 1.5px solid var(--sand); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(63, 74, 61, 0.18); }
.field-error, .form-error { color: #9B2C2C; font-size: 0.95rem; }
.form-error ul { list-style: none; }
.hp-field { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-sent { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding-block: 32px; }
.contact-sent p { font-family: var(--font-head); font-size: 1.6rem; }

.error-page { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 64px 112px; }
.error-page h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.25rem); margin-block-end: 12px; }
.error-page .lead { margin-block-end: 28px; }

/* ---------- footer ---------- */
.site-footer { border-block-start: 1px solid var(--sand); }
.site-footer-row { display: flex; flex-wrap: wrap; gap: 24px 48px; padding-block: 40px 24px; font-size: 1rem; }
.footer-brand { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.footer-brand .wordmark { font-size: 1.6rem; }
.footer-brand p { color: var(--ink-soft); max-width: 26em; }
.footer-links, .footer-contact, .social-links { display: flex; flex-direction: column; gap: 0; }
.footer-links a, .footer-contact a, .social-links a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover, .footer-contact a:hover, .social-links a:hover { text-decoration: underline; }
.footer-bottom { padding-block: 16px 32px; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 599px) {
    :root { --gutter: 16px; }
    .hero { padding-block: 24px 64px; }
    .band { padding-block: 64px; }
    .mood-path::before { display: none; }
    .mood-marker { flex-basis: 100%; flex-direction: row; justify-content: flex-start; }
    .face-xl { width: 220px; height: 220px; }
    .hero-bubble { bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
