/* ============================================================================
   La Carte — marketing site
   Bootstrap 5.3 provides the grid/reset/components; this file is the brand skin.
   Mobile-first: base rules target phones, media queries scale up.
   ========================================================================== */

:root {
    /* palette — brand magenta (#d02bff) + pink (#ffc0e7) over plum ink.
       Variable names kept from the previous skin; only the values changed. */
    --blush:        #ffc0e7;   /* brand pink */
    --blush-soft:   #ffe6f5;
    --cream:        #fff4fb;    /* page background */
    --cream-deep:   #ffe1f2;
    --paper:        #fffbfe;    /* cards / raised surfaces */
    --ink:          #3a0f45;    /* deep plum — primary text & dark surfaces */
    --ink-soft:     #7c5088;    /* muted plum — secondary text */
    --gold:         #d02bff;    /* brand magenta — accents */
    --gold-deep:    #b111e0;    /* deeper magenta — links, eyebrows, hovers */
    --line:         rgba(58, 15, 69, .14);

    --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
    --font-serif:   "Cormorant Garamond", Georgia, serif;
    --font-body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-script:  "Pinyon Script", "Cormorant Garamond", cursive;

    --shadow-sm: 0 6px 20px rgba(59, 43, 38, .07);
    --shadow-md: 0 18px 50px rgba(59, 43, 38, .12);
    --radius:    18px;
}

/* Arabic swaps the type stack; layout direction is handled by bootstrap.rtl */
html[lang="ar"] {
    --font-display: "El Messiri", "Playfair Display", serif;
    --font-serif:   "El Messiri", "Cormorant Garamond", serif;
    --font-body:    "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
}

* { scroll-margin-top: 84px; }

html { scroll-behavior: smooth; }

.site-body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }

a { color: var(--gold-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* ── shared bits ─────────────────────────────────────────────────────────── */

.eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--gold-deep);
    margin-bottom: .9rem;
}
html[lang="ar"] .eyebrow { letter-spacing: .1em; }

.section { padding: 68px 0; }
.section--tint { background: var(--paper); }

.section__head { max-width: 640px; margin-bottom: 34px; }
.section__title { font-size: clamp(1.7rem, 6vw, 2.6rem); margin-bottom: .6rem; }
.section__text { color: var(--ink-soft); margin: 0 auto; max-width: 46ch; }

/* ── buttons ─────────────────────────────────────────────────────────────── */

.btn-ink,
.btn-outline-ink {
    --bs-btn-focus-shadow-rgb: 208, 43, 255;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: .02em;
    padding-inline: 1.6rem;
    padding-block: .65rem;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn-ink {
    background: var(--ink);
    border: 1px solid var(--ink);
    color: var(--cream);
}
.btn-ink:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline-ink {
    background: transparent;
    border: 1px solid var(--ink);
    color: var(--ink);
}
.btn-outline-ink:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-lg { padding-inline: 2rem; padding-block: .8rem; }

/* ── navbar ──────────────────────────────────────────────────────────────── */

.site-navbar {
    padding: .9rem 0;
    background: transparent;
    transition: background-color .25s ease, box-shadow .25s ease, padding .25s ease;
}
.site-navbar.is-scrolled {
    background: rgba(255, 244, 251, .92);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--line);
    padding: .55rem 0;
}

.site-brand { text-decoration: none; display: inline-block; line-height: 0; }
.site-brand__logo { display: block; height: 34px; width: auto; }

@media (min-width: 992px) {
    .site-brand__logo { height: 42px; }
}

.site-navbar .nav-link {
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink);
    padding-inline: .8rem;
}
.site-navbar .nav-link:hover { color: var(--gold-deep); }
.site-lang {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .3rem 1rem !important;
    font-size: .85rem !important;
}
.navbar-toggler { color: var(--ink); }

@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        background: var(--paper);
        margin-top: .75rem;
        padding: 1rem 1.25rem 1.25rem;
        border-radius: var(--radius);
        box-shadow: var(--shadow-md);
    }
    .site-navbar .site-login { display: inline-block; margin-top: .25rem; }
}

/* ── hero ────────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    padding: 128px 0 74px;
    background: linear-gradient(180deg, var(--blush-soft) 0%, var(--cream) 64%);
    overflow: hidden;
}
.hero__glow {
    position: absolute;
    inset-block-start: -32%;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: min(760px, 120vw);
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(255, 192, 231, .9) 0%, rgba(255, 192, 231, 0) 70%);
    pointer-events: none;
}
.hero__inner { position: relative; max-width: 780px; }
.hero__title {
    font-size: clamp(2rem, 8.5vw, 3.6rem);
    margin: .2rem 0 1rem;
}
.hero__text {
    color: var(--ink-soft);
    max-width: 44ch;
    font-size: clamp(1rem, 3.6vw, 1.18rem);
    margin-bottom: 2rem;
}
.hero__actions .btn { width: 100%; }

@media (min-width: 576px) {
    .hero__actions .btn { width: auto; }
}
@media (min-width: 992px) {
    .hero { padding: 168px 0 110px; }
    .section { padding: 96px 0; }
    .section__head { margin-bottom: 52px; }
}

/* ── feature cards ───────────────────────────────────────────────────────── */

.feature-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.9rem 1.6rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-card__mark {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: .1em;
}
.feature-card__title { font-size: 1.3rem; margin: .55rem 0 .5rem; }
.feature-card__text { color: var(--ink-soft); font-size: .98rem; }

/* ── steps ───────────────────────────────────────────────────────────────── */

.steps { counter-reset: step; }
.step { padding: 1.5rem 1rem; }
.step__num {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: 1px solid var(--gold);
    color: var(--gold-deep);
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.step__title { font-size: 1.35rem; margin-bottom: .5rem; }
.step__text { color: var(--ink-soft); max-width: 34ch; margin-inline: auto; }

/* ── template gallery ───────────────────────────────────────────────────── */

.tpl-card {
    margin: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.tpl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tpl-card__art {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.tpl-card__art--plain {
    background:
        radial-gradient(120% 90% at 30% 15%, var(--c1) 0%, transparent 60%),
        linear-gradient(150deg, var(--c1) 0%, var(--c2) 100%);
}
.tpl-card__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.tpl-card:hover .tpl-card__thumb { transform: scale(1.03); }
.tpl-card__thumb { transition: transform .3s ease; }
.tpl-card__monogram {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 9vw, 3.4rem);
    color: rgba(255, 255, 255, .9);
    text-shadow: 0 2px 14px rgba(0, 0, 0, .18);
}
.tpl-card__body { padding: 1.15rem 1.2rem 1.35rem; }
.tpl-card__name { font-size: 1.2rem; margin-bottom: .15rem; }
.tpl-card__style { color: var(--ink-soft); font-size: .9rem; }
.tpl-card__link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--gold-deep);
    text-decoration: none;
}
.tpl-card__link:hover { color: var(--ink); }

/* ── stories ─────────────────────────────────────────────────────────────── */

.story-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    margin: 0;
}
.story-card__quote {
    font-family: var(--font-serif);
    font-size: 1.32rem;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: 1rem;
}
.story-card__quote::before { content: "\201C"; color: var(--gold); margin-inline-end: .1rem; }
.story-card__quote::after  { content: "\201D"; color: var(--gold); }
.story-card__name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq { max-width: 760px; }
.faq .accordion { --bs-accordion-bg: transparent; --bs-accordion-border-color: var(--line); }
.faq .accordion-button {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--ink);
    background: transparent;
    padding: 1.15rem 0;
    box-shadow: none;
}
.faq .accordion-button:not(.collapsed) { color: var(--gold-deep); background: transparent; }
.faq .accordion-button:focus { box-shadow: none; }
.faq .accordion-button::after {
    width: 1rem; height: 1rem; background-size: 1rem;
}
.faq .accordion-body { color: var(--ink-soft); padding: 0 0 1.25rem; }

/* ── contact ─────────────────────────────────────────────────────────────── */

.section--contact { background: linear-gradient(180deg, var(--cream) 0%, var(--blush-soft) 100%); }
.contact-panel {
    max-width: 620px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 3rem 1.6rem;
    box-shadow: var(--shadow-md);
}
.contact-panel__mail { color: var(--ink-soft); font-size: .95rem; }

@media (min-width: 768px) {
    .contact-panel { padding: 3.4rem 3rem; }
}

/* ── footer ──────────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--ink);
    color: rgba(255, 250, 245, .78);
    padding: 58px 0 34px;
    font-size: .95rem;
}
.site-brand--footer .site-brand__logo { height: 46px; }
.site-footer__tagline { color: rgba(255, 250, 245, .6); max-width: 34ch; }
.site-footer__links li + li { margin-top: .55rem; }
.site-footer__links a { color: rgba(255, 250, 245, .78); text-decoration: none; }
.site-footer__links a:hover { color: #fff; }
.site-footer__bar {
    border-top: 1px solid rgba(255, 250, 245, .14);
    font-size: .85rem;
    color: rgba(255, 250, 245, .55);
}
.site-footer__bar a { color: rgba(255, 250, 245, .7); text-decoration: none; }

/* ── sign in ─────────────────────────────────────────────────────────────── */

.section--auth {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 128px 0 72px;
    background: linear-gradient(180deg, var(--blush-soft) 0%, var(--cream) 60%);
}
.auth-panel {
    max-width: 440px;
    width: 100%;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 2.4rem 1.6rem 2rem;
    box-shadow: var(--shadow-md);
}
.auth-panel__title { font-size: clamp(1.6rem, 6vw, 2.1rem); margin: .1rem 0 .5rem; }
.auth-panel__text { color: var(--ink-soft); font-size: .96rem; margin: 0 auto 1.8rem; max-width: 34ch; }

.auth-error {
    margin: 0 0 1.2rem;
    padding: .6rem .9rem;
    border-radius: 10px;
    background: #fbe9e6;
    border: 1px solid #f0cfc7;
    color: #9a4b3f;
    font-size: .88rem;
    text-align: center;
}

.auth-field { margin-bottom: 1.1rem; }
.auth-field__label {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .04em;
    margin-bottom: .4rem;
    color: var(--ink);
}
.auth-form .form-control {
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: .7rem .9rem;
    background: #fff;
    font-family: var(--font-body);
}
.auth-form .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 .2rem rgba(183, 147, 95, .18);
}
.auth-field__password { position: relative; }
.auth-field__toggle {
    position: absolute;
    inset-inline-end: .6rem;
    inset-block-start: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--gold-deep);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .04em;
    cursor: pointer;
    padding: .3rem .4rem;
}
.auth-field__toggle:hover { color: var(--ink); }

.auth-remember { margin: .2rem 0 1.2rem; display: flex; align-items: center; gap: .5rem; }
.auth-remember .form-check-input { margin: 0; }
.auth-remember .form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }
.auth-remember .form-check-label { font-size: .9rem; color: var(--ink-soft); }

.auth-note {
    margin: 1rem 0 0;
    text-align: center;
    font-size: .84rem;
    font-style: italic;
    color: var(--ink-soft);
}
html[lang="ar"] .auth-note { font-style: normal; }

.auth-help { margin: 1.6rem 0 .5rem; font-size: .9rem; color: var(--ink-soft); }
.auth-help a { font-weight: 600; text-decoration: none; }
.auth-back {
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
    color: var(--ink-soft);
}
.auth-back:hover { color: var(--gold-deep); }
html[dir="rtl"] .auth-back { display: inline-flex; flex-direction: row-reverse; gap: .3rem; }

@media (min-width: 480px) {
    .auth-panel { padding: 2.8rem 2.4rem 2.2rem; }
}
