:root {
    --background: #fbfaf8;
    --surface: #ffffff;
    --surface-elevated: #fdfcf9;
    --foreground: #1c1e26;
    --muted-foreground: #6b7280;
    --primary: #14171f;
    --primary-foreground: #fbfaf8;
    --brand: #0f9d70;
    --brand-dark: #0b7d59;
    --brand-soft: #e3f6ee;
    --brand-foreground: #ffffff;
    --border: #e7e4dd;
    --radius: 1rem;
    --shadow-soft: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -12px rgba(0,0,0,.08);
    --shadow-elevated: 0 2px 6px rgba(0,0,0,.06), 0 24px 60px -20px rgba(0,0,0,.15);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: 'Cairo', 'Tajawal', 'Alexandria', system-ui, sans-serif;
}

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

/* Shared site nav (_public_nav.html.twig) — used by every public page (home, blog, marketing
   pages, contact), not just the landing page, so it lives here rather than in home.css. */
.site-nav { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; position: relative; }
.nav-panel { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 1rem; margin-inline-start: 2rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { color: var(--foreground); opacity: .75; text-decoration: none; font-size: .95rem; font-weight: 600; }
.nav-link:hover { opacity: 1; }
.nav-logo { font-size: 1.35rem; font-weight: 800; color: var(--foreground); text-decoration: none; flex-shrink: 0; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
    display: none; background: none; border: 1px solid var(--border); border-radius: .5rem;
    width: 2.25rem; height: 2.25rem; font-size: 1.1rem; line-height: 1; cursor: pointer;
    color: var(--foreground); align-items: center; justify-content: center; flex-shrink: 0; font-family: inherit;
}

/* Mobile nav: the toggle reveals a dropdown panel with the anchor links + locale/login/CTA,
   instead of the permanent single-row layout that has no room for all of this below ~720px. */
@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav-panel {
        display: none; position: absolute; inset-inline: 0; top: 100%; margin-top: .5rem;
        flex-direction: column; align-items: stretch; gap: 1rem; margin-inline-start: 0;
        background: var(--surface); border: 1px solid var(--border); border-radius: 1rem;
        padding: 1.25rem; box-shadow: var(--shadow-elevated, 0 24px 60px -20px rgba(0,0,0,.35));
        z-index: 40;
    }
    .nav-panel.is-open { display: flex; }
    .nav-links { flex-direction: column; align-items: flex-start; gap: .75rem; }
    .nav-actions { flex-direction: column; align-items: stretch; gap: .6rem; }
    .nav-actions .btn { justify-content: center; width: 100%; }
}
.btn { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; font-weight: 700; text-decoration: none; cursor: pointer; border: none; white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); padding: .75rem 1.5rem; font-size: .95rem; box-shadow: var(--shadow-soft); }
.btn-primary:hover { opacity: .9; }
.btn-outline { background: transparent; color: var(--foreground); padding: .7rem 1.4rem; font-size: .95rem; border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--foreground); }
.btn-brand {
    background: var(--brand); color: var(--brand-foreground); padding: .9rem 1.75rem; font-size: 1rem;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent);
    animation: btn-glow 2.4s ease-in-out infinite;
}
.btn-brand:hover { background: var(--brand-dark); animation-play-state: paused; }
.btn-brand:disabled { opacity: .55; cursor: not-allowed; animation: none; box-shadow: none; }
.btn-brand:disabled:hover { background: var(--brand); }
@keyframes btn-glow {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); }
    50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
    .btn-brand { animation: none; }
}
.btn-ghost-link { background: transparent; color: var(--foreground); opacity: .7; padding: .5rem 0; font-size: .9rem; }

/* Shared site footer (_public_footer.html.twig) — used by every public page. */
footer.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem; color: var(--foreground); opacity: .8; }
.footer-tagline { color: var(--muted-foreground); font-size: .85rem; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.footer-links a { color: var(--muted-foreground); text-decoration: none; font-size: .85rem; font-weight: 600; }
.footer-links a:hover { color: var(--foreground); }
