/* Gloria site styles — identity from tokens.css.
   Logical properties only (inline-start/end) so the layout mirrors for Arabic. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body);
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: var(--font-arabic), var(--font-latin); line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; inset-inline-start: 16px; inset-block-start: -60px; z-index: 2000;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius-btn); font-weight: 600;
}
.skip-link:focus { inset-block-start: 16px; }

/* ---------- Promo bar ---------- */
.promo {
  background: var(--grad-promo); background-size: 400% 400%; animation: promo-shift 15s ease infinite;
  color: #fff; text-align: center; padding: 8px 24px; font-size: 15px;
}
.promo a {
  margin-inline-start: 10px; background: var(--accent); color: var(--on-accent); text-decoration: none;
  font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 4px; white-space: nowrap;
}
@keyframes promo-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- Header / navigation ---------- */
/* White header; a thin gold rule carries the Gloria signature. */
.site-header { background: #fff; border-block-end: 3px solid var(--rule-gold); box-shadow: 0 4px 18px rgba(0, 27, 77, .06); position: sticky; inset-block-start: 0; z-index: 1030; }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-icon { width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-latin); font-size: 24px; font-weight: 700; letter-spacing: .04em; color: var(--gloria-deep-navy); }
.brand-text small { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--gold-text); text-transform: uppercase; }
[dir="rtl"] .brand-text small { letter-spacing: 0; font-size: 12px; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: var(--accent); }
.logo-chip {
  --chip: 52px; display: inline-block; flex: none; width: var(--chip); height: var(--chip);
  background: #fff; border-radius: 10px; padding: calc(var(--chip) * 0.12);
}
.logo-chip img { display: block; width: 100%; height: 100%; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 10px; }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: block; color: var(--text); text-decoration: none; font: 500 17px/1.5 var(--font-body); padding: 8px 14px;
  background: none; border: 0; border-block-end: 2px solid transparent; cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--gloria-royal-blue); border-block-end-color: var(--rule-gold); }
.lang-switch {
  color: var(--on-accent); background: var(--accent); text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 7px 14px; border-radius: var(--radius-btn); transition: background-color var(--transition-fast);
}
.lang-switch:hover { background: var(--accent-hover); }
.lang-switch[lang="ar"] { font-family: var(--font-arabic); }
.menu-toggle { display: none; background: var(--primary); border: 0; color: #fff; border-radius: var(--radius-btn); padding: 8px 10px; cursor: pointer; }

/* ---------- Typography helpers ---------- */
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 15px;
  font-size: var(--fs-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; font-weight: 600; color: var(--text); }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.eyebrow .dot { color: var(--rule-gold); font-size: 10px; }
.gold { color: var(--gold-text-lg); }
.lead { font-size: 18px; line-height: 1.7; color: var(--text-muted); max-width: 600px; margin: 0 0 30px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; padding: 15px 34px;
  border: 1.5px solid transparent; transition: background-color var(--transition-fast), color var(--transition-fast);
}
[dir="rtl"] .btn { letter-spacing: 0; font-size: 16px; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-ghost:hover { background: var(--tint-gold); }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: var(--glow-gold); }
.btn-accent:hover { background: var(--accent-hover); }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--grad-card); padding: 70px 0 60px; border-block-end: 1px solid var(--tint-navy); }
.page-hero h1 { font-size: 44px; margin-block-end: 15px; }
[dir="rtl"] .page-hero h1 { line-height: 1.4; }
.page-hero .lead { margin: 0; }

/* ---------- Sections ---------- */
main > section { padding: 80px 0; }
.band { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 45px; }
.section-head h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); margin-block-end: 12px; }
[dir="rtl"] .section-head h2 { line-height: 1.5; }
.section-head p { color: var(--text-muted); margin: 0; }

/* Pillars (guide p.08) */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.pillars-4 { grid-template-columns: repeat(4, 1fr); }
.pillar {
  display: flex; flex-direction: column; gap: 14px; border-radius: 16px; padding: 28px 22px; min-height: 220px;
  background: var(--gloria-deep-navy); color: #fff; text-decoration: none; transition: transform var(--transition-fast);
}
.pillar:nth-child(even) { background: var(--gloria-royal-blue); }
.pillar:hover { transform: translateY(-5px); }
.pillar h3 { color: var(--accent); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
[dir="rtl"] .pillar h3 { letter-spacing: 0; font-size: 18px; }
.pillar p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--tint-navy); flex: 1; }
.pillar-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }
.pillar-more svg { width: 16px; height: 16px; }
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }

/* Gold-bar cards (guide p.03 / p.09) */
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border-radius: var(--radius-card); border-block-start: var(--rule-top) solid var(--rule-gold);
  padding: 24px; box-shadow: var(--shadow-card);
}
.card h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .03em; margin-block-end: 10px; }
[dir="rtl"] .card h3 { font-size: 18px; letter-spacing: 0; }
.card p { font-size: var(--fs-small); line-height: 1.6; color: var(--text-muted); margin: 0; }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; }
.step { counter-increment: step; background: #fff; border-radius: var(--radius-card); padding: 26px; box-shadow: var(--shadow-card); }
.step::before {
  content: counter(step, decimal-leading-zero); display: block; font-size: 28px; font-weight: 700;
  color: var(--gold-text-lg); margin-block-end: 8px;
}
.step h3 { font-size: 18px; margin-block-end: 8px; }
.step p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* Process strip */
.process { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; margin: 45px 0 0; padding: 0; font-weight: 700; letter-spacing: .04em; }
.process li:not(:last-child)::after { content: "◆"; color: var(--rule-gold); font-size: 10px; margin-inline: 20px; }
[dir="rtl"] .process { letter-spacing: 0; }

/* About */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.prose h2 { font-size: 32px; margin-block-end: 18px; }
.prose p { color: var(--text-muted); font-size: 17px; line-height: 1.8; }
.icon-feature { margin: 0; background: var(--bg-alt); border-radius: var(--radius-card); padding: 30px; text-align: center; border-block-start: var(--rule-top) solid var(--rule-gold); }
.icon-feature img { width: min(260px, 70%); }
.icon-feature h3 { margin: 15px 0 8px; font-size: 18px; }
.icon-feature p { margin: 0; color: var(--text-muted); font-size: 15px; }
.license-note { text-align: center; margin: 40px 0 0; color: var(--text-muted); font-size: 15px; }

/* Contact */
.contact-grid { list-style: none; margin: 0 0 35px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: #fff;
  border-radius: var(--radius-card); padding: 28px 16px; box-shadow: var(--shadow-card); border-block-start: var(--rule-top) solid var(--rule-gold);
}
.contact-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: var(--accent); }
.contact-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
[dir="rtl"] .contact-label { letter-spacing: 0; font-size: 15px; }
.contact-value { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.contact-value a { color: var(--text); text-decoration: none; }
.contact-value a:hover { color: var(--link); }
.contact-actions { justify-content: center; }
.contact-note { text-align: center; color: var(--text-muted); max-width: 640px; margin: 25px auto 0; }
.lockup { display: block; margin-inline: auto; width: min(760px, 100%); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }

/* Signature-mode CTA band (dark field) */
.cta-band { background: var(--grad-depth); color: #fff; text-align: center; }
.cta-band h2 {
  font-size: var(--fs-h2); line-height: 1.3; margin-block-end: 12px; text-transform: uppercase;
  background: var(--grad-gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-band p { color: var(--footer-text); margin: 0 0 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-block-start: 70px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-block-end: 50px; }
.foot-name-ar { font-family: var(--font-arabic); font-size: 22px; font-weight: 700; color: #fff; margin: 15px 0 4px; }
.foot-name-en { color: #fff; font-weight: 600; letter-spacing: .04em; margin: 0 0 12px; font-family: var(--font-latin); }
.site-footer .eyebrow { color: var(--accent); font-size: 11px; }
.foot-title { color: var(--footer-heading); font-size: 16px; font-weight: 600; margin-block-end: 18px; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-block-end: 8px; }
.foot-links a { color: var(--footer-text); text-decoration: none; padding: 0; border: 0; font-size: 15px; transition: color var(--transition-fast); }
.foot-links a::before { content: "→ "; color: var(--rule-gold); }
[dir="rtl"] .foot-links a::before { content: "← "; }
.foot-contacts a::before, [dir="rtl"] .foot-contacts a::before { content: none; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color: var(--accent); }
.foot-bottom { border-block-start: 1px solid var(--footer-divider); padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .nav-link { font-size: 15px; padding-inline: 9px; }
}
@media (max-width: 991.98px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    display: none; position: absolute; inset-inline: 0; inset-block-start: 100%; flex-direction: column; align-items: stretch;
    background: #fff; padding: 10px 24px 20px; border-block-end: 3px solid var(--rule-gold); box-shadow: var(--shadow-float);
    max-height: calc(100vh - 140px); overflow-y: auto;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; }
  .nav-link { font-size: 16px; padding-block: 12px; border-block-end: 1px solid var(--tint-navy); inline-size: 100%; text-align: start; }
  .lang-switch { align-self: flex-start; margin-block-start: 12px; }
  .split { grid-template-columns: 1fr; }
  .pillars, .pillars-4, .cards-4, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .steps { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  .page-hero h1 { font-size: 32px; }
  .section-head h2, .cta-band h2 { font-size: 28px; line-height: 1.35; }
  .pillars, .pillars-4, .cards-3, .cards-4, .steps, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .promo { font-size: 13px; }
  main > section { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Contact form (Laravel) ---------- */
.inquiry { max-width: 820px; margin: 50px auto 0; background: #fff; border-radius: var(--radius-card);
  border-block-start: var(--rule-top) solid var(--rule-gold); box-shadow: var(--shadow-card); padding: 34px; }
.inquiry h2 { font-size: 26px; margin-block-end: 22px; text-align: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 15px; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--tint-navy);
  border-radius: var(--radius-btn); padding: 12px 14px; transition: border-color var(--transition-fast);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--gloria-tech-blue); box-shadow: 0 0 0 3px rgba(7, 90, 174, .15); }
.form-field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; margin: 0; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: center; margin-block-start: 6px; }
.hp-field { position: absolute; inset-inline-start: -10000px; inline-size: 1px; block-size: 1px; overflow: hidden; }
.alert { border-radius: var(--radius-btn); padding: 14px 18px; margin-block-end: 20px; font-weight: 500; }
.alert-success { background: #E8F5EE; color: #0F5132; border-inline-start: 4px solid var(--success); }
.alert-error { background: #FBEAEC; color: #842029; border-inline-start: 4px solid var(--danger); }
.alert ul { margin: 6px 0 0; padding-inline-start: 20px; font-weight: 400; }
@media (max-width: 575.98px) { .form-grid { grid-template-columns: 1fr; } .inquiry { padding: 22px; } }
