/* Cabinet Maître Elkalba — navy & gold, from the letterhead and business card */
:root {
    --navy-950: #060f1d;
    --navy-900: #0b1a30;
    --navy-800: #102544;
    --navy-700: #17345c;
    --blue: #1f4e9c;
    --gold: #c5a059;
    --gold-light: #e3c88a;
    --gold-dark: #9c7a36;
    --ivory: #faf7f0;
    --ivory-2: #f3ede0;
    --ink: #1d2433;
    --muted: #5b6475;
    --line: rgba(197, 160, 89, .35);
    --radius: 14px;
    --shadow: 0 18px 40px -22px rgba(11, 26, 48, .45);
    --font-head: "Cormorant Garamond", Georgia, serif;
    --font-body: "Montserrat", system-ui, sans-serif;
}

.lang-ar {
    --font-head: "Amiri", "Times New Roman", serif;
    --font-body: "Tajawal", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: #fff;
    line-height: 1.75;
    font-size: 1rem;
}

.lang-ar body, body.lang-ar { font-size: 1.06rem; }

h1, h2, h3, h4, h5, .section-title, .brand-name, .footer-name {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy-900);
    letter-spacing: .01em;
}

.lang-fr h1, .lang-fr h2, .lang-fr .section-title { font-weight: 600; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--gold-dark); }

.text-gold { color: var(--gold) !important; }
.lang-ar .flip-rtl { display: inline-block; transform: scaleX(-1); }

.skip-link { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2000; background: var(--gold); color: var(--navy-900); padding: .5rem 1rem; border-radius: 6px; }

/* Buttons */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: .02em; padding: .65rem 1.5rem; transition: all .25s ease; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1.1rem; }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark)); color: var(--navy-950); border: 0; box-shadow: 0 10px 24px -12px rgba(197, 160, 89, .9); }
.btn-gold:hover, .btn-gold:focus { color: var(--navy-950); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(197, 160, 89, 1); }
.btn-navy { background: var(--navy-900); color: #fff; border: 0; }
.btn-navy:hover { background: var(--navy-700); color: var(--gold-light); }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: var(--gold-light); border-color: var(--gold-light); }
.btn-whatsapp { background: #1fa855; color: #fff; }
.btn-whatsapp:hover { background: #178a45; color: #fff; }
.btn i { margin-inline-end: .35rem; }

/* Top bar & header */
.topbar { background: var(--navy-950); color: rgba(255, 255, 255, .7); font-size: .82rem; padding: .45rem 0; }
.topbar a, .topbar span { color: rgba(255, 255, 255, .75); }
.topbar a:hover { color: var(--gold-light); }
.topbar i { color: var(--gold); margin-inline-end: .3rem; }
.lang-switch { border: 1px solid var(--line); border-radius: 999px; padding: .1rem .8rem; }

.site-header { background: rgba(11, 26, 48, .97); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(197, 160, 89, .25); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .6); }
.navbar { padding: .6rem 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { color: var(--gold-light); font-size: 1.25rem; }
.brand-sub { color: rgba(255, 255, 255, .65); font-size: .74rem; letter-spacing: .06em; }
.lang-fr .brand-sub { text-transform: uppercase; }
.navbar .nav-link { color: rgba(255, 255, 255, .85); font-weight: 500; padding: .5rem .85rem !important; position: relative; }
.navbar .nav-link::after { content: ""; position: absolute; inset-inline: .85rem; bottom: .2rem; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--gold-light); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border: 1px solid var(--line); color: var(--gold-light); font-size: 1.6rem; padding: .15rem .6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(197, 160, 89, .3); }
.lang-switch-mobile { color: var(--gold-light); border: 1px solid var(--line); border-radius: 8px; padding: .3rem .7rem; font-weight: 700; }

@media (max-width: 991.98px) {
    .navbar-collapse { padding: 1rem 0 .5rem; }
    .brand-name { font-size: 1.05rem; }
}

/* Hero */
.hero { position: relative; background: var(--navy-900); color: #fff; padding: 7rem 0 6rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6, 15, 29, .97) 15%, rgba(11, 26, 48, .8) 55%, rgba(11, 26, 48, .55)); z-index: 0; }
.lang-ar .hero::before { background: linear-gradient(260deg, rgba(6, 15, 29, .97) 15%, rgba(11, 26, 48, .8) 55%, rgba(11, 26, 48, .55)); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero-title { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.2; margin: .6rem 0 1.2rem; }
.lang-ar .hero-title { line-height: 1.45; }
.hero-sub { color: rgba(255, 255, 255, .82); font-size: 1.12rem; max-width: 40rem; }
.hero-badge { margin-top: 2.2rem; color: var(--gold-light); font-size: .9rem; }
.hero-badge i { margin-inline-end: .4rem; }
.hero-emblem { position: relative; text-align: center; padding: 2.5rem; }
.hero-emblem::before { content: ""; position: absolute; inset: 0; margin: auto; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(197, 160, 89, .18), transparent 65%); }
.hero-emblem img { position: relative; width: 280px; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); animation: float 7s ease-in-out infinite; }
.hero-emblem-text { position: relative; margin-top: 1rem; display: flex; flex-direction: column; color: var(--gold-light); }
.hero-emblem-text .ar-name { font-family: "Amiri", serif; font-size: 2rem; }
.hero-emblem-text .fr-name { font-family: "Cormorant Garamond", Georgia, serif; letter-spacing: .3em; text-transform: uppercase; font-size: 1rem; }

@keyframes float { 50% { transform: translateY(-10px); } }

.kicker { display: inline-flex; align-items: center; gap: .6rem; color: var(--gold); font-weight: 700; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; }
.lang-ar .kicker { letter-spacing: 0; font-size: .95rem; }
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.text-center .kicker::after { content: ""; width: 34px; height: 1px; background: currentColor; }

/* Strip */
.strip { background: var(--navy-800); color: #fff; border-bottom: 1px solid rgba(197, 160, 89, .2); }
.strip-item { display: flex; gap: 1rem; padding: 1.8rem 1.2rem; height: 100%; border-inline-end: 1px solid rgba(255, 255, 255, .07); }
.strip-item i { font-size: 1.7rem; color: var(--gold); line-height: 1; }
.strip-item h2 { color: var(--gold-light); margin-bottom: .25rem; font-family: var(--font-body); font-weight: 700; }
.strip-item p { margin: 0; font-size: .86rem; color: rgba(255, 255, 255, .7); line-height: 1.55; }
@media (max-width: 575.98px) { .strip-item { flex-direction: column; gap: .5rem; padding: 1.2rem .9rem; } }

/* Sections */
.section { padding: 5.5rem 0; position: relative; }
.section-ivory { background: var(--ivory); }
.section-navy { background: var(--navy-900); color: rgba(255, 255, 255, .8); }
.section-head { max-width: 46rem; margin: 0 auto 3rem; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: .5rem 0 1rem; line-height: 1.3; }
.section-sub { color: var(--muted); }
.section-title-sm { color: var(--navy-900); }
.lead-text { font-size: 1.15rem; color: var(--navy-800); }

/* Moroccan geometric pattern (8-point star) */
.pattern { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c5a059' stroke-opacity='.16' stroke-width='1'%3E%3Cpath d='M40 10l8.8 21.2L70 40l-21.2 8.8L40 70l-8.8-21.2L10 40l21.2-8.8z'/%3E%3Cpath d='M18.8 18.8h42.4v42.4H18.8z'/%3E%3C/g%3E%3C/svg%3E"); background-color: var(--ivory); }

/* Framed image */
.framed-image { position: relative; border-radius: var(--radius); }
.framed-image::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: 0; }
.lang-ar .framed-image::before { inset: 18px 18px -18px -18px; }
.framed-image img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); }

/* Service cards */
.service-card { display: flex; flex-direction: column; height: 100%; padding: 2rem 1.6rem; background: #fff; border: 1px solid rgba(11, 26, 48, .08); border-radius: var(--radius); color: var(--ink); position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.service-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line); color: var(--ink); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--gold-light); font-size: 1.5rem; margin-bottom: 1.2rem; box-shadow: 0 0 0 5px rgba(197, 160, 89, .18); }
.service-card h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.service-card p { color: var(--muted); font-size: .93rem; flex-grow: 1; }
.service-more { color: var(--gold-dark); font-weight: 600; font-size: .9rem; }

/* Steps */
.step { position: relative; height: 100%; padding: 2rem 1.6rem; border: 1px solid rgba(197, 160, 89, .25); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.step-num { font-family: var(--font-head); font-size: 2.8rem; line-height: 1; color: var(--gold); display: block; margin-bottom: .8rem; }
.step h3 { color: #fff; font-size: 1.3rem; }
.step p { margin: 0; font-size: .93rem; }
.steps-light .step { background: var(--ivory); border-color: rgba(11, 26, 48, .08); }
.steps-light .step h3 { color: var(--navy-900); }
.steps-light .step p { color: var(--muted); }

/* Zones */
.zone-mini { text-align: center; padding: 2rem 1rem; border-radius: var(--radius); background: var(--navy-900); color: rgba(255, 255, 255, .7); height: 100%; border-bottom: 3px solid var(--gold); }
.zone-mini i { font-size: 1.8rem; color: var(--gold); }
.zone-mini h3 { color: #fff; font-size: 1.35rem; margin: .6rem 0 .3rem; }
.zone-mini span { font-size: .85rem; }
.zone-card { height: 100%; padding: 2.2rem 1.8rem; border-radius: var(--radius); background: #fff; border: 1px solid rgba(11, 26, 48, .08); box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.zone-tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--gold-dark); background: rgba(197, 160, 89, .12); border-radius: 999px; padding: .2rem .8rem; }
.zone-card h2 { font-size: 1.7rem; margin: .8rem 0; }
.zone-card p { color: var(--muted); }
.zone-places { display: flex; flex-wrap: wrap; gap: .4rem; }
.zone-places span { font-size: .8rem; background: var(--ivory-2); color: var(--navy-800); border-radius: 6px; padding: .2rem .6rem; }
.region-band { overflow: hidden; }
.region-band::before { content: ""; position: absolute; inset: 0; background: var(--region-bg) center / cover; opacity: .18; }
.court-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.court-list li { padding: .8rem 0; border-bottom: 1px solid rgba(197, 160, 89, .2); color: #fff; }
.court-list i { color: var(--gold); margin-inline-end: .6rem; }
.region-box { background: rgba(6, 15, 29, .7); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.region-box h2 { color: var(--gold-light); }
.region-box i { color: var(--gold); margin-inline-end: .4rem; }

/* Page header */
.page-header { background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); color: rgba(255, 255, 255, .8); padding: 4.5rem 0 4rem; position: relative; overflow: hidden; }
.page-header::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c5a059' stroke-opacity='.1' stroke-width='1'%3E%3Cpath d='M40 10l8.8 21.2L70 40l-21.2 8.8L40 70l-8.8-21.2L10 40l21.2-8.8z'/%3E%3Cpath d='M18.8 18.8h42.4v42.4H18.8z'/%3E%3C/g%3E%3C/svg%3E"); }
.page-header::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.page-header h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: .5rem 0 .8rem; }
.page-header .lead { max-width: 44rem; font-size: 1.08rem; margin: 0; }
.breadcrumb { font-size: .85rem; margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb-item.active { color: rgba(255, 255, 255, .6); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .4); }

/* About */
.id-card { position: sticky; top: 110px; background: var(--navy-900); color: rgba(255, 255, 255, .8); border-radius: var(--radius); padding: 2.2rem; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line); }
.id-card h2 { color: var(--gold-light); }
.id-card dl { text-align: start; margin: 1.5rem 0 0; }
.id-card dt { color: var(--gold); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: .9rem; }
.lang-ar .id-card dt { letter-spacing: 0; font-size: .9rem; }
.id-card dd { margin: .15rem 0 0; color: #fff; }
.id-card a { color: #fff; }
.id-card a:hover { color: var(--gold-light); }
.value-card { text-align: center; padding: 2.2rem 1.4rem; background: #fff; border-radius: var(--radius); height: 100%; box-shadow: 0 10px 30px -24px rgba(11, 26, 48, .5); }
.value-card i { font-size: 2rem; color: var(--gold); }
.value-card h3 { font-size: 1.35rem; margin: .8rem 0 .4rem; }
.value-card p { color: var(--muted); margin: 0; font-size: .93rem; }

/* Service detail */
.service-hero-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--gold-light); font-size: 2rem; margin-bottom: 1.5rem; box-shadow: 0 0 0 7px rgba(197, 160, 89, .18); }
.check-list { list-style: none; padding: 0; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; background: var(--ivory); border-radius: 10px; border-inline-start: 3px solid var(--gold); }
.check-list i { color: var(--gold-dark); font-size: 1.2rem; line-height: 1.5; }
.help-box { background: var(--navy-900); color: rgba(255, 255, 255, .8); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); }
.help-box h2 { color: var(--gold-light); }
.related-title { color: var(--gold-dark); letter-spacing: .1em; font-family: var(--font-body); }
.related li a { display: flex; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid rgba(11, 26, 48, .07); color: var(--navy-800); }
.related li a:hover { color: var(--gold-dark); }
.related i { color: var(--gold); }

/* Contact */
.contact-form { background: #fff; border: 1px solid rgba(11, 26, 48, .08); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--navy-800); }
.form-control, .form-select { border-radius: 10px; padding: .7rem 1rem; border-color: #d9d4c7; background-color: #fdfcf9; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(197, 160, 89, .2); }
.form-check-input:checked { background-color: var(--navy-900); border-color: var(--navy-900); }
.req { color: #b3261e; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-info { background: var(--navy-900); color: rgba(255, 255, 255, .85); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); }
.contact-info h2 { color: var(--gold-light); margin-bottom: 1.4rem; }
.contact-info li { display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.contact-info li i { font-size: 1.2rem; color: var(--gold); width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); }
.contact-info li span { display: block; font-size: .78rem; color: var(--gold); font-weight: 600; }
.contact-info a { color: #fff; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 300px; border: 0; display: block; }

/* CTA band & footer */
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-950)); color: rgba(255, 255, 255, .8); padding: 3.5rem 0; border-top: 3px solid var(--gold); }
.cta-band h2 { color: var(--gold-light); }
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .62); padding: 4.5rem 0 2rem; }
.footer-name { color: var(--gold-light); font-size: 1.3rem; }
.footer-title { color: #fff; font-family: var(--font-body); font-size: .95rem; font-weight: 700; letter-spacing: .08em; margin-bottom: 1.2rem; }
.lang-fr .footer-title { text-transform: uppercase; }
.footer-links li { margin-bottom: .5rem; font-size: .9rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .65); }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .9rem; font-size: .9rem; }
.footer-contact i { color: var(--gold); }
.site-footer hr { border-color: rgba(197, 160, 89, .25); margin: 3rem 0 1.5rem; opacity: 1; }
.footer-bottom { color: rgba(255, 255, 255, .45); }

/* Floating buttons */
.whatsapp-float { position: fixed; bottom: 22px; inset-inline-end: 22px; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .55); z-index: 1030; transition: transform .25s; }
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.back-top { position: fixed; bottom: 90px; inset-inline-end: 30px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--navy-900); color: var(--gold-light); opacity: 0; visibility: hidden; transition: all .3s; z-index: 1030; }
.back-top.show { opacity: 1; visibility: visible; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-emblem img { animation: none; }
    html { scroll-behavior: auto; }
}

@media (max-width: 767.98px) {
    .section { padding: 4rem 0; }
    .hero { padding: 4.5rem 0 4rem; }
    .contact-form { padding: 1.4rem; }
    .framed-image::before { display: none; }
}
