/* =====================================================================
   BPLP Mostaganem — public site stylesheet (v3)
   Self-hosted fonts · logical properties (RTL-first) · no framework
   ===================================================================== */

@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/cairo-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/cairo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Amiri'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/amiri-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Amiri'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/amiri-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }

:root {
  --navy: #1A3C5E; --navy-700: #122b44; --navy-500: #2a5a8a; --navy-50: #eef3f8;
  --gold: #C5A065; --gold-700: #8a6a35; --gold-600: #a8864d; --gold-200: #e6cba3; --gold-50: #faf5ec;
  --ink: #1f2933; --text: #3d4a5c; --muted: #637083; --line: #e3e8ef;
  --bg: #ffffff; --tint: #f7f8fa; --ok: #23824f; --err: #c53030;
  --font-head: 'Amiri', 'Times New Roman', serif;
  --font-body: 'Cairo', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --radius: 14px; --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-md: 0 8px 24px -8px rgba(16, 24, 40, .14);
  --shadow-lg: 0 24px 48px -16px rgba(16, 24, 40, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.8; color: var(--text); background: var(--bg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-500); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-700); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.35; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw + .5rem, 3.5rem); }
h2 { font-size: clamp(1.7rem, 2.6vw + .6rem, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1vw + .8rem, 1.35rem); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.container--narrow { max-width: 860px; }
.center { text-align: center; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 2000; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; color: #fff; }
.prose ul { list-style: disc; padding-inline-start: 1.4em; margin-bottom: 1em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.lead { font-size: 1.15rem; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { --bg: var(--navy); --fg: #fff; --bd: var(--navy); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.6rem; font: 600 1rem/1.2 var(--font-body); color: var(--fg); background: var(--bg); border: 2px solid var(--bd); border-radius: 999px; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s; white-space: nowrap; }
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--gold { --bg: var(--gold); --fg: var(--navy-700); --bd: var(--gold); }
.btn--gold:hover { --bg: var(--gold-600); --bd: var(--gold-600); color: #fff; }
.btn--ghost { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .55); }
.btn--ghost:hover { --bg: #fff; --fg: var(--navy); --bd: #fff; color: var(--navy); }
.btn--outline { --bg: transparent; --fg: var(--navy); --bd: var(--navy); }
.btn--outline:hover { --bg: var(--navy); --fg: #fff; }
.btn--primary:hover { --bg: var(--navy-700); }
.btn--sm { min-height: 40px; padding: .45rem 1.1rem; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.link-arrow { font-weight: 600; display: inline-flex; gap: .35rem; align-items: center; }
.link-arrow::after { content: '←'; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(-4px); }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: .1rem .65rem; border-radius: 999px; background: var(--tint); color: var(--muted); margin-bottom: .4rem; }
.pill--gold { background: var(--gold-50); color: var(--gold-700); }

/* ---------- Notice bar ---------- */
.notice { font-size: .95rem; color: #fff; background: var(--navy-500); }
.notice--gold { background: linear-gradient(90deg, var(--gold-600), var(--gold)); color: var(--navy-700); }
.notice--alert { background: var(--err); }
.notice__inner { display: flex; align-items: center; justify-content: center; gap: .6rem; padding-block: .5rem; text-align: center; }
.notice a { color: inherit; font-weight: 700; }
.notice__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); max-width: 1400px; }
.brand { display: flex; align-items: center; gap: .9rem; color: inherit; min-width: 0; }
.brand__logo { height: 58px; width: auto; flex: none; }
.brand__logo--library { padding-inline-start: .9rem; border-inline-start: 2px solid var(--gold); }
.brand__text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.brand__title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.brand__subtitle { font-size: .8rem; color: var(--gold-700); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: clamp(.6rem, 1.6vw, 1.6rem); }
.nav-links a:not(.btn) { position: relative; color: var(--ink); font-weight: 600; font-size: .95rem; padding-block: .4rem; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--navy); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: none; border: 0; border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: min(92vh, 860px); padding-block: 5rem 6rem; background: var(--navy-700); color: #fff; text-align: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 40%, rgba(18, 43, 68, .55), rgba(18, 43, 68, .9) 75%), linear-gradient(180deg, rgba(18, 43, 68, .35), rgba(18, 43, 68, .85)); }
.hero__content { max-width: 920px; }
.hero__eyebrow { display: inline-block; font-weight: 600; font-size: .95rem; color: var(--gold-200); background: rgba(197, 160, 101, .16); border: 1px solid rgba(197, 160, 101, .35); padding: .35rem 1.1rem; border-radius: 999px; margin-bottom: 1.5rem; }
.hero__title { color: #fff; font-size: clamp(2.1rem, 5vw + .5rem, 4rem); line-height: 1.3; margin-bottom: 1.2rem; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero__highlight { display: block; color: var(--gold); }
.hero__lead { font-size: clamp(1.05rem, 1vw + .8rem, 1.3rem); color: rgba(255, 255, 255, .9); max-width: 720px; margin: 0 auto 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero__scroll { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); padding: .5rem; }
.mouse { display: block; width: 26px; height: 40px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 14px; position: relative; }
.mouse::before { content: ''; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: var(--gold); border-radius: 2px; animation: wheel 2s infinite; }
@keyframes wheel { to { opacity: 0; transform: translateY(12px); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--compact { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--tint { background: var(--tint); }
.section--dark { background: radial-gradient(circle at 15% 10%, var(--navy-500) 0, transparent 45%), linear-gradient(135deg, var(--navy), var(--navy-700)); color: rgba(255, 255, 255, .85); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.2rem); }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head--light h2 { color: #fff; }
.section-head--light p:last-child { color: rgba(255, 255, 255, .75); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 700; color: var(--gold-700); margin-bottom: .5rem; letter-spacing: .02em; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--gold); }
.section--dark .eyebrow { color: var(--gold-200); }

/* About */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.framed { position: relative; isolation: isolate; }
.framed::before { content: ''; position: absolute; inset: -18px -18px 18px 18px; border: 2px solid var(--gold-200); border-radius: var(--radius-lg); z-index: -1; }
.framed__img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 1 / 1; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; margin-top: 2rem; }
.stat { background: #fff; border: 1px solid var(--line); border-bottom: 3px solid var(--gold); border-radius: var(--radius); padding: 1.2rem 1rem; text-align: center; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat__value { display: block; font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--navy); line-height: 1.2; direction: ltr; }
.stat__label { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* Cards */
.cards { display: grid; gap: 1.4rem; }
.cards--services { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.cards--tech { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.cards--branches { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.service { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.6rem; position: relative; overflow: hidden; }
.service::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--gold); transform: scaleY(0); transition: transform .3s var(--ease); }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-200); }
.service:hover::before { transform: scaleY(1); }
.service__icon { flex: none; display: grid; place-items: center; width: 60px; height: 60px; font-size: 1.7rem; border-radius: 16px; background: linear-gradient(135deg, var(--gold-50), var(--navy-50)); transition: transform .3s var(--ease); }
.service:hover .service__icon { transform: scale(1.08) rotate(-4deg); }
.service h3 { margin-bottom: .35rem; }
.service p { margin: 0; color: var(--muted); font-size: .98rem; }
.tech { padding: 1.8rem 1.5rem; text-align: center; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: transform .3s var(--ease), background .3s, border-color .3s; }
.tech:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .11); border-color: var(--gold); }
.tech__icon { display: block; font-size: 2.4rem; margin-bottom: .6rem; }
.tech h3 { color: var(--gold-200); }
.tech p { margin: 0; font-size: .98rem; }

/* Events */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 1.4rem; margin-bottom: 2rem; }
.event { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.event:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.event__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint); }
.event__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.event:hover .event__img { transform: scale(1.05); }
.event__row { display: flex; flex: 1; }
.event__date { flex: none; width: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem .5rem; color: #fff; background: linear-gradient(180deg, var(--navy), var(--navy-700)); }
.event__day { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; line-height: 1.1; direction: ltr; }
.event__month { font-size: .85rem; color: var(--gold-200); font-weight: 600; }
.event__body { padding: 1.2rem 1.3rem; display: flex; flex-direction: column; }
.event__title { margin-bottom: .4rem; font-size: 1.2rem; }
.event__title a { color: var(--navy); }
.event__title a:hover { color: var(--gold-700); }
.event__title a::after { content: ''; position: absolute; inset: 0; }
.event { position: relative; }
.event__body p { color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.event__body .event__meta { margin: auto 0 0; font-size: .88rem; }
.event--past .event__date { background: linear-gradient(180deg, #5b6b7d, #44515f); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.gallery__item { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__caption { position: absolute; inset-inline: 0; bottom: 0; padding: 2rem 1rem .8rem; color: #fff; font-weight: 600; font-size: .95rem; background: linear-gradient(transparent, rgba(18, 43, 68, .85)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.gallery__item:hover .gallery__caption, .gallery__item:focus-visible .gallery__caption { opacity: 1; transform: none; }

/* FAQ */
.faq { display: grid; gap: .9rem; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.faq__item[open] { border-color: var(--gold-200); box-shadow: var(--shadow-md); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.faq__icon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-50); position: relative; transition: transform .3s var(--ease), background .3s; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--gold-700); border-radius: 2px; }
.faq__icon::after { transform: rotate(90deg); transition: transform .3s; }
.faq__item[open] .faq__icon { background: var(--gold); transform: rotate(180deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__answer { padding: 0 1.4rem 1.2rem; color: var(--muted); }
.faq__answer > :last-child { margin-bottom: 0; }

/* Branches */
.branch { overflow: hidden; }
.branch__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.branch__body { padding: 1.3rem 1.4rem; }
.meta-list { display: grid; gap: .35rem; margin-bottom: .8rem; color: var(--muted); font-size: .95rem; }
.meta-list li { display: flex; gap: .5rem; }

/* Contact */
.contact { background: linear-gradient(180deg, var(--bg), var(--tint)); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact__grid--single { grid-template-columns: 1fr; max-width: 860px; margin-inline: auto; }
.info-cards { display: grid; gap: .9rem; }
.info-cards li { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.info-cards__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-50); font-size: 1.2rem; }
.info-cards div { display: flex; flex-direction: column; }
.info-cards strong { color: var(--navy); }
.info-cards span, .info-cards a { color: var(--muted); }
.map { margin-top: 1rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.map iframe { width: 100%; height: 100%; border: 0; }
.contact-form { padding: clamp(1.3rem, 3vw, 2rem); }
.contact-form h3 { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; font-weight: 600; font-size: .95rem; color: var(--ink); }
.field b { color: var(--err); font-weight: 700; }
.field input, .field textarea { width: 100%; font: 400 1rem/1.6 var(--font-body); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: .7rem .9rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 4px rgba(42, 90, 138, .12); }
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.field-error { color: var(--err); font-size: .85rem; font-weight: 600; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-hint { font-size: .88rem; color: var(--muted); }
.form-status { margin: 1rem 0 0; font-weight: 600; min-height: 1.6em; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--err); }

/* Inner pages */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: rgba(255, 255, 255, .85); padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-hero h1 { color: #fff; margin-bottom: .4rem; }
.page-hero p { margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9rem; margin-bottom: 1rem; color: rgba(255, 255, 255, .6); }
.breadcrumb a { color: var(--gold-200); }
.article__meta { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: rgba(255, 255, 255, .85); margin-top: .6rem; }
.article__figure { margin: 0 0 2rem; }
.article__figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.article__back { margin-top: 2.5rem; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; padding-inline: .8rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; }
.pagination span[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty { text-align: center; color: var(--muted); padding: 3rem 0; }
.error-page__code { font-family: var(--font-head); font-size: clamp(5rem, 15vw, 9rem); line-height: 1; color: var(--gold); margin: 0; }

/* ---------- Footer ---------- */
.footer { position: relative; background: linear-gradient(180deg, var(--navy), var(--navy-700)); color: rgba(255, 255, 255, .75); }
.footer::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--gold), var(--gold-200), var(--gold)); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.footer__title { position: relative; font-size: 1.2rem; color: var(--gold); padding-bottom: .7rem; margin-bottom: 1.1rem; }
.footer__title::after { content: ''; position: absolute; inset-inline-start: 0; bottom: 0; width: 40px; height: 2px; background: var(--gold); }
.footer__title--spaced { margin-top: 1.8rem; }
.footer__links { display: grid; gap: .55rem; }
.footer__links a { color: rgba(255, 255, 255, .75); transition: color .2s, padding .2s; }
.footer__links a:hover { color: var(--gold); padding-inline-start: 4px; }
.contact-list { display: grid; gap: .8rem; }
.contact-list li { display: flex; gap: .7rem; align-items: baseline; }
.contact-list a { color: rgba(255, 255, 255, .85); }
.contact-list small { opacity: .6; }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .08); transition: background .2s, transform .2s; }
.socials a:hover { background: var(--gold); color: var(--navy-700); transform: translateY(-3px); }
.footer__bottom { text-align: center; padding: 1.3rem 1rem; font-size: .9rem; background: rgba(0, 0, 0, .18); }
.footer__bottom p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: rgba(10, 20, 33, .94); padding: 3.5rem 1rem; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: min(1200px, 100%); text-align: center; }
.lightbox__figure img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__figure figcaption { color: #fff; margin-top: .8rem; font-weight: 600; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: var(--gold); color: var(--navy-700); }
.lightbox__close { top: 1rem; left: 1rem; }
.lightbox__nav--prev { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { left: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(18px); }
.js .reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .brand__text { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .brand__logo { height: 48px; }
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; inset: var(--header-h) 0 auto; height: calc(100dvh - var(--header-h)); flex-direction: column; align-items: stretch; gap: 0; padding: 1rem clamp(16px, 4vw, 32px) 2rem; background: #fff; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; }
  .nav-links.is-open { transform: none; visibility: visible; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border: 0; padding-top: 1.2rem; }
  .nav-links a:not(.btn) { display: block; padding-block: .9rem; font-size: 1.05rem; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { width: 100%; }
  .split, .contact__grid { grid-template-columns: 1fr; }
  .split__media { order: -1; max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand__logo--library { padding-inline-start: .6rem; }
  .hero { min-height: 82vh; }
  .hero__actions .btn { width: 100%; max-width: 320px; }
  .form-row, .footer__grid { grid-template-columns: 1fr; }
  .service { flex-direction: column; }
  .event__date { width: 80px; }
  .event__day { font-size: 1.55rem; }
  .framed::before { inset: -10px -10px 10px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal:not(.is-visible) { opacity: 1; transform: none; }
}
@media print {
  .header, .notice, .hero__scroll, .contact-form, .lightbox, .nav-toggle { display: none !important; }
  .hero { min-height: 0; color: #000; background: none; }
  .hero__bg, .hero__overlay { display: none; }
  .hero__title { color: #000; }
}
