/* ==========================================================================
   ALLAMO INSTITUT — main stylesheet
   Logical properties (inline/block) are used throughout so the layout mirrors
   automatically in Arabic (dir="rtl").
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-latin-600.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url(../fonts/montserrat-latin-700.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url(../fonts/montserrat-latin-800.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(../fonts/inter-latin-700.woff2) format("woff2"); }
@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url(../fonts/cairo-arabic-400.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Cairo"; font-weight: 600; font-display: swap; src: url(../fonts/cairo-arabic-600.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url(../fonts/cairo-arabic-700.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url(../fonts/cairo-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url(../fonts/cairo-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF; }

/* ---------- Tokens ---------- */
:root {
	--navy: #142B49;
	--navy-700: #0f2139;
	--red: #D92732;
	--red-700: #b81f29;
	--white: #FFFFFF;
	--light: #F3F5F8;
	--dark: #303846;
	--gold: #D6AD65;
	--muted: #5d6776;
	--border: #e3e7ee;
	--success: #1f7a4d;
	--whatsapp: #25D366;

	--font-head: "Montserrat", "Poppins", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 10px 30px rgba(20, 43, 73, .08);
	--shadow-lg: 0 18px 50px rgba(20, 43, 73, .14);
	--container: 1240px;
	--header-h: 84px;
}
:root:lang(ar) {
	--font-head: "Cairo", "Tajawal", system-ui, sans-serif;
	--font-body: "Cairo", "Tajawal", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--dark); background: var(--white); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
:lang(ar) body, body:lang(ar) { line-height: 1.85; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
:lang(ar) :is(h1, h2, h3, h4) { line-height: 1.45; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.125rem); }
h3 { font-size: 1.2rem; }
:lang(ar) :is(h1, h2) { letter-spacing: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { 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: 1rem; inset-block-start: -100px; z-index: 1000; background: var(--navy); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { inset-block-start: 1rem; color: #fff; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { max-width: 820px; }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .icon-dir { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn { --bg: var(--navy); --fg: #fff; --bd: var(--bg); display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .8em 1.4em; border: 2px solid var(--bd); border-radius: 999px; background: var(--bg); color: var(--fg); font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.btn:hover { color: var(--fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--red { --bg: var(--red); }
.btn--red:hover { --bg: var(--red-700); }
.btn--navy { --bg: var(--navy); }
.btn--navy:hover { --bg: var(--navy-700); }
.btn--outline { --bg: transparent; --fg: var(--navy); --bd: var(--navy); }
.btn--outline:hover { --bg: var(--navy); --fg: #fff; }
.btn--whatsapp { --bg: var(--whatsapp); --fg: #0b3d1f; }
.btn--sm { padding: .55em 1.05em; font-size: .85rem; border-radius: 999px; }
.btn--lg { padding: 1em 1.75em; font-size: 1rem; }
.btn--block { display: flex; width: 100%; margin-block-start: .75rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; inset-block-start: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: saturate(140%) blur(6px); border-block-end: 1px solid var(--border); }
.admin-bar .site-header { inset-block-start: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { inset-block-start: 46px; } }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.site-logo { display: block; flex: none; }
.site-logo__img { height: 68px; width: auto; }
.site-nav { display: flex; align-items: center; flex: 1; gap: 1.25rem; }
.primary-nav { flex: 1; }
.primary-nav .menu { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a { display: flex; align-items: center; gap: .3em; padding: .55rem .7rem; color: var(--navy); font-weight: 600; font-size: .92rem; text-decoration: none; border-radius: 6px; }
.primary-nav .menu > li > a { position: relative; }
.primary-nav .menu > .current-menu-item > a, .primary-nav .menu > .current-menu-ancestor > a, .primary-nav .menu > li > a:hover { color: var(--red); }
.primary-nav .menu > .current-menu-item > a::before, .primary-nav .menu > .current-menu-ancestor > a::before { content: ""; position: absolute; inset-inline: .7rem; inset-block-end: -.95rem; height: 3px; background: var(--red); border-radius: 3px; }
.primary-nav .menu-item-has-children > a::after { content: ""; width: .45em; height: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); margin-inline-start: .35em; }
.primary-nav .sub-menu { position: absolute; inset-inline-start: 0; inset-block-start: 100%; min-width: 260px; list-style: none; margin: 0; padding: .5rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; z-index: 10; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { font-weight: 500; padding: .55rem .75rem; }
.primary-nav .sub-menu a:hover { background: var(--light); }
.site-header__tools { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: flex; align-items: center; gap: .35rem; color: var(--navy); }
.lang-switch__icon { width: 1.1rem; height: 1.1rem; }
.lang-switch ul { display: flex; list-style: none; margin: 0; padding: 0; }
.lang-switch li + li::before { content: "|"; color: #b4bcc8; margin-inline: .3rem; }
.lang-switch a { font-weight: 600; font-size: .85rem; color: var(--navy); text-decoration: none; font-family: var(--font-body); }
.lang-switch a.is-current { color: var(--red); }
.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 0; padding: .5rem; color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }

@media (max-width: 1100px) {
	:root { --header-h: 72px; }
	.site-logo__img { height: 56px; }
	.nav-toggle { display: inline-flex; }
	.site-nav { position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 1.5rem; padding: 1.5rem 1.25rem 3rem; background: #fff; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
	[dir="rtl"] .site-nav { transform: translateX(-100%); }
	.admin-bar .site-nav { inset-block-start: calc(var(--header-h) + 46px); }
	.nav-open .site-nav { transform: none; visibility: visible; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav .menu a { padding: .85rem .5rem; font-size: 1.05rem; border-block-end: 1px solid var(--border); border-radius: 0; }
	.primary-nav .menu > .current-menu-item > a::before, .primary-nav .menu > .current-menu-ancestor > a::before { display: none; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; padding-inline-start: 1rem; min-width: 0; }
	.site-header__tools { flex-direction: column; align-items: stretch; }
	.lang-switch { justify-content: center; font-size: 1.05rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--light) var(--hero-img, none) center right / cover no-repeat; min-height: clamp(420px, 52vw, 560px); display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 34%, rgba(255,255,255,.35) 60%, rgba(255,255,255,0) 78%); }
[dir="rtl"] .hero { background-position: center left; }
[dir="rtl"] .hero::before { background: linear-gradient(-90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 34%, rgba(255,255,255,.35) 60%, rgba(255,255,255,0) 78%); }
.hero__inner { position: relative; padding-block: 3.5rem; }
.hero__content { max-width: 760px; }
.hero__title { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.hero__title { margin-block-end: .5em; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 500; color: var(--navy); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-block-start: 2rem; }
@media (max-width: 760px) {
	.hero { background-position: 70% center; min-height: 0; }
	.hero::before { background: linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.86) 100%); }
	[dir="rtl"] .hero::before { background: linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.86) 100%); }
	.hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--navy); color: #fff; }
.trust-bar__inner { display: flex; justify-content: center; flex-wrap: wrap; }
.trust-bar__item { display: flex; align-items: center; gap: .75rem; padding: .9rem 2.25rem; font-weight: 500; }
.trust-bar__item .icon { width: 1.75rem; height: 1.75rem; color: #fff; }
.trust-bar__item + .trust-bar__item { border-inline-start: 1px solid rgba(255,255,255,.35); }
@media (max-width: 760px) { .trust-bar__item { flex: 1 1 100%; justify-content: center; padding: .7rem 1rem; } .trust-bar__item + .trust-bar__item { border-inline-start: 0; border-block-start: 1px solid rgba(255,255,255,.18); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section--services { background: linear-gradient(180deg, #fff 0%, var(--light) 100%); }
.section-title { text-align: center; margin-block-end: 2rem; }
.section-title::after { content: ""; display: block; width: 110px; height: 3px; margin: .7rem auto 0; background: var(--gold); border-radius: 3px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--red); margin-block-end: .5rem; }
:lang(ar) .eyebrow { letter-spacing: 0; }
.grid { display: grid; gap: 1.5rem; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty-state { text-align: center; color: var(--muted); padding: 2.5rem 1rem; background: var(--light); border-radius: var(--radius); border: 1px dashed #cdd4de; }

/* Service cards */
.service-card { position: relative; display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.5rem 1.4rem 2.6rem; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; height: 100%; }
a.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.service-card__icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--gold); }
.service-card__icon .icon { width: 32px; height: 32px; }
.service-card__title { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--navy); margin-block-end: .35rem; line-height: 1.3; }
.service-card__text { display: block; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.service-card__arrow { position: absolute; inset-inline-end: 1rem; inset-block-end: 1rem; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #fff; }
.service-card__arrow .icon { width: 16px; height: 16px; }

/* Course cards */
.section--courses { position: relative; background: #fff; }
.section--courses::after { content: ""; position: absolute; inset-inline-end: 0; inset-block-end: 0; width: min(42vw, 560px); height: 70%; background: var(--skyline, none) center bottom / cover no-repeat; opacity: .18; filter: grayscale(.2); pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
[dir="rtl"] .section--courses::after { -webkit-mask-image: linear-gradient(-90deg, transparent, #000 40%); mask-image: linear-gradient(-90deg, transparent, #000 40%); }
.course-strip { position: relative; z-index: 1; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.course-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.5rem 1.25rem; background: linear-gradient(180deg, #fff 0%, #f6f8fb 100%); }
.course-card__level { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: var(--red); margin: 0; line-height: 1; letter-spacing: .02em; }
.course-card__title { font-size: 1.05rem; margin: .35rem 0 1rem; }
.course-card__excerpt { color: var(--muted); font-size: .93rem; }
.course-card .meta-list { align-self: stretch; text-align: start; margin-block-end: 1.25rem; }
.course-card .btn { margin-block-start: auto; }

.meta-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .45rem; font-size: .92rem; }
.meta-list li { display: flex; gap: .55rem; align-items: center; }
.meta-list .icon { color: var(--red); width: 1.1em; height: 1.1em; }

/* Project split */
.section--project { background: var(--light); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split__body p { font-size: 1.05rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; }
.checklist .icon { flex: none; width: 1.4rem; height: 1.4rem; padding: .2rem; border-radius: 50%; background: var(--red); color: #fff; margin-block-start: .15rem; stroke-width: 3; }

/* Agencies */
.agency-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); overflow: hidden; }
.agency-card .btn--sm { font-size: .8rem; padding: .5em .9em; }
.section--agencies .grid--3 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
@media (max-width: 760px) { .btn { white-space: normal; } }
.agency-card__media { background: var(--light); min-height: 180px; }
.agency-card__media img { width: 100%; height: 100%; object-fit: cover; }
.agency-card__body { position: relative; padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.agency-card__body::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: 1.25rem; width: 3px; background: var(--red); border-radius: 3px; }
.agency-card__city { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: 1.2rem; }
.agency-card__city .icon { color: var(--red); }
.agency-card__address { font-size: .88rem; color: var(--muted); margin: 0 0 .6rem; line-height: 1.5; }
.agency-card__address.is-pending, .agency-card__line.is-pending { font-style: italic; color: var(--muted); }
.agency-card__line { display: flex; gap: .4rem; align-items: center; font-size: .88rem; margin: 0; }
.agency-card .btn { margin-block-start: auto; }
@media (max-width: 420px) { .agency-card { grid-template-columns: 1fr; } .agency-card__media { height: 180px; } }

/* Testimonials */
.testimonial-card { margin: 0; padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.testimonial-card__quote { width: 2rem; height: 2rem; color: var(--gold); }
.testimonial-card blockquote { margin: 0; font-size: 1rem; color: var(--dark); }
.testimonial-card figcaption { display: flex; gap: .75rem; align-items: center; margin-block-start: auto; color: var(--muted); font-size: .9rem; }
.testimonial-card figcaption strong { color: var(--navy); }
.testimonial-card__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* Jobs & partners */
.job-card, .partner-card, .post-card { padding: 1.5rem; display: flex; flex-direction: column; }
.job-card__title { font-size: 1.15rem; }
.job-card__title a { text-decoration: none; }
.job-card .btn { margin-block-start: auto; align-self: flex-start; }
.partner-card__logo img { max-height: 70px; width: auto; margin-block-end: 1rem; }
.partner-card__meta { color: var(--muted); font-size: .9rem; }
.post-card__media img { border-radius: var(--radius-sm); margin-block-end: 1rem; }
.post-card__title { font-size: 1.15rem; }

/* CTA band */
.cta-band { background: linear-gradient(110deg, var(--navy) 0%, #1d3a60 100%); color: #fff; padding-block: 2.75rem; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-block-end: .3rem; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; background: var(--navy); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 5px; background: linear-gradient(90deg, #111 0 33.3%, var(--red) 33.3% 66.6%, var(--gold) 66.6%); }
.page-hero--image { background: linear-gradient(90deg, rgba(20,43,73,.95) 0%, rgba(20,43,73,.75) 55%, rgba(20,43,73,.45) 100%), var(--page-hero-img) center / cover; }
[dir="rtl"] .page-hero--image { background: linear-gradient(-90deg, rgba(20,43,73,.95) 0%, rgba(20,43,73,.75) 55%, rgba(20,43,73,.45) 100%), var(--page-hero-img) center / cover; }
.page-hero__inner { position: relative; }
.page-hero__title { color: #fff; font-size: clamp(1.9rem, 4vw, 2.75rem); margin-block-end: .35em; }
.page-hero__lead { max-width: 46em; font-size: 1.1rem; opacity: .92; margin: 0; }
.breadcrumbs { font-size: .85rem; margin-block-end: .9rem; opacity: .85; }
.breadcrumbs a { color: #fff; }
.breadcrumbs a:hover { color: var(--gold); }

.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: start; }
@media (max-width: 960px) { .layout-sidebar { grid-template-columns: 1fr; } }
.detail-box { padding: 1.5rem; position: sticky; inset-block-start: calc(var(--header-h) + 1.5rem); }
.detail-box .btn { white-space: normal; text-align: center; }
.detail-box__level { font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: var(--red); margin: 0 0 .5rem; line-height: 1; }
.detail-list { margin: 0; display: grid; gap: .1rem; }
.detail-list > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .6rem; border-block-end: 1px solid var(--border); font-size: .93rem; }
.detail-list dt { display: flex; align-items: center; gap: .45rem; color: var(--muted); }
.detail-list dt .icon { color: var(--red); }
.detail-list dd { margin: 0; font-weight: 600; color: var(--navy); text-align: end; }

/* Block content */
.entry-content > * + * { margin-block-start: 1.1em; }
.entry-content > :is(h2, h3) { margin-block-start: 1.8em; }
.entry-content > :first-child { margin-block-start: 0; }
.entry-content ul:not([class]), .entry-content ol:not([class]) { padding-inline-start: 1.25rem; }
.entry-content li + li { margin-block-start: .35em; }
.entry-content img { border-radius: var(--radius); }
.entry-content .wp-block-image figcaption { font-size: .85rem; color: var(--muted); text-align: center; }
.entry-content .wp-block-columns { gap: 2rem; }
.entry-content .wp-block-group.has-background { padding: 1.75rem; border-radius: var(--radius); }
.entry-content .wp-block-buttons .wp-block-button__link { border-radius: 999px; font-family: var(--font-head); font-weight: 700; padding: .8em 1.5em; background: var(--red); }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.entry-content .alignwide { width: min(100vw - 2.5rem, var(--container)); max-width: none; }
.entry-content details { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 1.25rem; background: #fff; box-shadow: 0 2px 8px rgba(20,43,73,.04); }
.entry-content details + details { margin-block-start: .75rem; }
.entry-content summary { cursor: pointer; padding-block: 1rem; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.entry-content summary::-webkit-details-marker { display: none; }
.entry-content summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--red); }
.entry-content details[open] summary::after { content: "–"; }
.entry-content details > :not(summary) { padding-block-end: 1rem; margin: 0; }
.has-light-background-color { background-color: var(--light); }
.has-navy-background-color { background-color: var(--navy); color: #fff; }
.has-navy-background-color :is(h2, h3, a) { color: #fff; }
.has-red-color { color: var(--red); }
.has-navy-color { color: var(--navy); }
.has-gold-color { color: var(--gold); }

/* Notices */
.notice { padding: 1rem 1.25rem; border-radius: var(--radius-sm); border-inline-start: 4px solid var(--navy); background: var(--light); margin-block: 1rem; }
.notice--success { border-color: var(--success); background: #eaf6ef; }
.notice--error { border-color: var(--red); background: #fdecee; }
.notice--warning { border-color: var(--gold); background: #fbf5ea; }
.notice--info { border-color: var(--navy); }
.notice ul { margin: .5rem 0 0; padding-inline-start: 1.2rem; }

/* ---------- Forms (allamo-core) ---------- */
.allamo-form { display: grid; gap: 1.75rem; }
.allamo-form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin: 0; background: #fff; box-shadow: 0 2px 10px rgba(20,43,73,.04); }
.allamo-form legend { font-family: var(--font-head); font-weight: 700; color: var(--navy); padding-inline: .5rem; font-size: 1.1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label, .field .label { font-weight: 600; font-size: .92rem; color: var(--navy); }
.field .req { color: var(--red); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="file"], .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .7rem .85rem; border: 1px solid #cfd6e0; border-radius: var(--radius-sm); background: #fff; color: var(--dark); }
.field input[type="file"] { padding: .55rem; background: var(--light); }
.field textarea { min-height: 120px; resize: vertical; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,43,73,.15); }
.field.has-error :is(input, select, textarea) { border-color: var(--red); }
.field .error { color: var(--red); font-size: .82rem; font-weight: 600; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.choices label { font-weight: 500; display: inline-flex; gap: .4rem; align-items: center; color: var(--dark); }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; }
.consent input { margin-block-start: .3rem; width: 1.1rem; height: 1.1rem; flex: none; }
.hp-field { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-note { font-size: .85rem; color: var(--muted); }
input[dir="ltr"], [type="email"], [type="tel"] { text-align: start; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"] { direction: ltr; text-align: right; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-block-start: 3rem; color: rgba(255,255,255,.85); }
.site-footer__wave { display: block; width: 100%; height: 70px; margin-block-end: -1px; }
.site-footer__main { background: var(--navy); padding-block: 2rem 2.5rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 2rem; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.footer-logo { display: inline-block; background: #fff; padding: .5rem; border-radius: var(--radius-sm); margin-block-end: 1rem; }
.footer-logo__img { height: 80px; width: auto; }
.site-footer__brand p { font-size: .93rem; }
.site-footer__title { color: #fff; font-size: 1rem; margin-block-end: 1rem; position: relative; padding-block-end: .5rem; }
.site-footer__title::after { content: ""; position: absolute; inset-inline-start: 0; inset-block-end: 0; width: 36px; height: 2px; background: var(--gold); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-menu, .footer-agencies, .footer-contact, .legal-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .93rem; }
.footer-agencies li, .footer-contact li { display: flex; gap: .55rem; align-items: flex-start; }
.footer-agencies .icon, .footer-contact .icon { color: var(--gold); margin-block-start: .2rem; }
.footer-contact { margin-block-end: 1.25rem; }
.social-link { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); }
.site-footer__bottom { background: var(--navy-700); padding-block: 1rem; font-size: .85rem; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.site-footer__bottom p { margin: 0; }
.legal-menu { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float { position: fixed; inset-inline-end: 1.25rem; inset-block-end: 1.25rem; z-index: 90; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); color: #fff; box-shadow: 0 10px 25px rgba(0,0,0,.2); transition: transform .2s ease; }
.whatsapp-float:hover { transform: scale(1.07); color: #fff; }
.whatsapp-float .icon { width: 32px; height: 32px; }

/* ---------- Pagination ---------- */
.pagination .nav-links { display: flex; gap: .5rem; justify-content: center; margin-block-start: 2rem; }
.pagination .page-numbers { padding: .5rem .9rem; border-radius: var(--radius-sm); background: var(--light); text-decoration: none; }
.pagination .current { background: var(--navy); color: #fff; }

/* ---------- Print ---------- */
@media print { .site-header, .site-footer, .whatsapp-float, .cta-band { display: none; } }
