/*
 * assets/css/site-shared.css
 * Shared styles for the public site navbar, footer, and common UI.
 * Included by all public-facing pages.
 */

:root {
  /* Livvent navy & gold design (replaces Brand Guidelines v1.0 palette).
     Variable names are unchanged so every page picks the new colours up. */
  --navy: #004B87;         /* Brand navy — headings, links, dark sections */
  --navy-dark: #003D6E;
  --yellow: #C59B27;       /* Brand gold — accent & primary actions */
  --yellow-dark: #B38A1F;  /* hover */
  --yellow-light: #FCFAF5; /* gold wash */
  --gold-warm: #F8EED5;    /* soft gold tint */
  --charcoal: #1A2530;     /* ink — primary text */
  --charcoal-dark: #004B87;/* dark sections now use brand navy */
  --white: #FFFFFF;
  --muted: #616B78;        /* secondary text */
  --line: #E0E6ED;         /* borders */
  --surface: #FCFAF5;      /* cards & panels */
  --ivory: #FCFAF5;        /* page background */
  --radius: 8px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow: 0 8px 24px rgba(0, 75, 135, .08);
  --shadow-lg: 0 20px 50px rgba(0, 75, 135, .14);
  --transition-fast: 0.18s ease;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Montserrat', system-ui, sans-serif;
  color: var(--charcoal);
  background: var(--ivory, #FCFAF5);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── RTL overrides ── */
body.rtl .ms-auto {
  margin-right: auto !important;
  margin-left: 0 !important;
}

body.rtl .me-auto {
  margin-left: auto !important;
  margin-right: 0 !important;
}

body.rtl .text-start {
  text-align: right !important;
}

body.rtl .text-end {
  text-align: left !important;
}

body.rtl .me-1 {
  margin-left: .25rem !important;
  margin-right: 0 !important;
}

body.rtl .me-2 {
  margin-left: .5rem !important;
  margin-right: 0 !important;
}

body.rtl .ms-1 {
  margin-right: .25rem !important;
  margin-left: 0 !important;
}

body.rtl .ms-2 {
  margin-right: .5rem !important;
  margin-left: 0 !important;
}

/* ── Buttons ── */
.btn {
  padding: .6rem 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  letter-spacing: .2px;
}

.btn-primary {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

.btn-primary:hover {
  background: #2E2E2E;
  border-color: #2E2E2E;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-dark {
  border: 2px solid rgba(30, 41, 59, .25);
  color: var(--charcoal);
}

.btn-outline-dark:hover {
  background: var(--charcoal);
  color: white;
  border-color: var(--charcoal);
}

/* ── Language bits ── */
[lang="ar"] .english-only,
[lang="en"] .arabic-only {
  display: none !important;
}

.arabic-only,
.english-only {
  display: inline-block;
}

.btn-lang {
  background: var(--yellow);
  border: none;
  padding: .4rem .5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--charcoal);
  box-shadow: var(--shadow);
  display: inline-block;
}

.btn-lang:hover {
  background: var(--yellow-dark);
  color: var(--charcoal);
}

.lang-toggle {
  margin-left: .5rem;
}

body.rtl .lang-toggle {
  margin-left: 0;
  margin-right: 1rem;
}

/* ── Brand ── */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.5rem;
}

.brand-logo {
  width: 195px;
  height: auto;
  max-width: 100%;
}

.brand-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 991px) {
  .brand-logo {
    width: 150px;
    height: auto;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  height: auto;
  width: 130px;
}

.main-footer .footer-logo img {
  height: auto;
  width: 130px;
  max-width: 100%;
  object-fit: contain;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.footer-partners {
  border-left: 1px solid var(--line);
  padding-left: .75rem;
}

.footer-partners-label {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1;
  margin-bottom: .4rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-partners-logos {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.footer-partner-logo {
  width: 100px;
  height: 100px;
}

.footer-partner-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-partner-logo--parkers {
  width: 100px;
}

/* Keep the three brand marks in one lockup on the public-site footer. */
.main-footer .footer-brand-lockup {
  flex-wrap: nowrap;
}

.main-footer .footer-partners-logos {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

.main-footer .footer-partner-logo {
  flex: 0 0 100px;
}

/* ── Country selector ── */
.country-selector {
  position: relative;
}

.country-dropdown-btn {
  background: var(--yellow-light);
  border: none;
  padding: .4rem .8rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-dropdown-btn:hover {
  background: var(--yellow);
  transform: translateY(-1px);
}

.country-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 1100;
  display: none;
  border: 1px solid var(--line);
  overflow: hidden;
  animation: fadeInDown .2s ease;
}

body.rtl .country-dropdown-menu {
  right: auto;
  left: 0;
}

.country-dropdown-menu.show {
  display: block;
}

.country-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  text-decoration: none;
  color: var(--charcoal);
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--line);
}

.country-dropdown-item:last-child {
  border-bottom: none;
}

.country-dropdown-item:hover {
  background: var(--yellow-light);
}

.country-dropdown-item.active {
  background: var(--yellow);
  font-weight: 600;
}

.country-flag {
  font-size: 1.3rem;
}

/* ── Header ── */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

/* ── Nav dropdowns ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  padding: .4rem .6rem;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: inherit;
  white-space: nowrap;
}

.nav-dropdown-btn:hover {
  background: var(--yellow-light);
}

.nav-dropdown-btn i.bi-chevron-down {
  font-size: .65rem;
  transition: transform var(--transition-fast);
}

.nav-dropdown.open .nav-dropdown-btn i.bi-chevron-down {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  z-index: 1100;
  display: none;
  border: 1px solid var(--line);
  overflow: hidden;
}

body.rtl .nav-dropdown-menu {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

.nav-dropdown-menu.show {
  display: block;
  animation: fadeInDown .2s ease;
}

.nav-dropdown-group-label {
  padding: .65rem 1rem .35rem;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .7rem 1rem;
  text-decoration: none;
  color: var(--charcoal);
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  font-size: .92rem;
}

.nav-dropdown-item:last-child {
  border-bottom: none;
}

.nav-dropdown-item:hover {
  background: var(--yellow-light);
}

.nav-dropdown-item i {
  font-size: 1.1rem;
  color: var(--muted);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-dropdown-item:hover i {
  color: var(--charcoal);
}

/* ── Mobile menu ── */
.mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.mobile-menu a {
  display: block;
  padding: .8rem 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  color: var(--charcoal);
  user-select: none;
}

.mobile-dropdown-toggle:hover {
  background: var(--surface);
}

.mobile-dropdown-toggle i.bi-chevron-down {
  font-size: .75rem;
  transition: transform var(--transition-fast);
}

.mobile-dropdown-toggle.open i.bi-chevron-down {
  transform: rotate(180deg);
}

.mobile-dropdown-content {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.mobile-dropdown-content.show {
  display: block;
}

.mobile-dropdown-content a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .65rem 1rem .65rem 2rem;
  font-weight: 500;
  font-size: .9rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

body.rtl .mobile-dropdown-content a {
  padding: .65rem 2rem .65rem 1rem;
}

.mobile-dropdown-content a:last-child {
  border-bottom: none;
}

.mobile-dropdown-content a:hover {
  background: var(--yellow-light);
}

.mobile-dropdown-content a i {
  font-size: 1rem;
  color: var(--muted);
  width: 20px;
  text-align: center;
}

/* ── Footer ── */
.main-footer {
  background: rgba(255, 255, 255, .98);
  color: var(--charcoal);
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.footer-links-col {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-col li {
  margin-bottom: .55rem;
}

.footer-links-col a {
  color: var(--muted);
  font-size: .9rem;
  transition: color var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--charcoal);
}

.footer-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: all .2s;
}

.footer-social-btn:hover {
  background: var(--yellow);
  color: var(--charcoal) !important;
}

.footer-country-selector .country-dropdown-btn {
  background: transparent;
  border: 1px solid rgba(0, 75, 135, .2);
  max-width: 180px;
}

.footer-country-selector .country-dropdown-btn:hover {
  background: var(--yellow-light);
}

/* ── Page header (used across inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, #004B87 0%, #1A2530 100%);
  color: #FFFFFF;
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=60') center/cover no-repeat;
  opacity: .07;
  pointer-events: none;
}

.page-hero>.container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-weight: 800;
  color: #fff !important;
}

.page-hero .breadcrumb {
  color: rgba(255,255,255,0.75) !important;
}

.page-hero .breadcrumb a {
  color: rgba(255,255,255,0.9) !important;
}

.page-hero .breadcrumb-item.active {
  color: #fff !important;
}

.page-hero .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, .5);
}

/* Fix alignment for mobile screens */
@media (max-width: 768px) {
  .page-hero {
    padding: 3rem 0 2rem;
  }
  .page-hero .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Fix for value cards and stat boxes on mobile */
@media (max-width: 768px) {
  .value-card {
    padding: 1.5rem;
  }
  .stat-box {
    padding: 1.25rem 1rem;
  }
  .stat-num {
    font-size: 2rem !important;
  }
}

/* Fix for CTA buttons on mobile */
@media (max-width: 768px) {
  .btn-lg {
    width: 100%;
    margin-bottom: .5rem;
  }
  .d-flex.gap-3.justify-content-center {
    flex-direction: column;
    align-items: center;
  }
}

/* Fix for timeline on mobile */
@media (max-width: 768px) {
  .timeline {
    padding-left: 1.5rem;
  }
  .timeline-item {
    margin-bottom: 1.5rem;
  }
}

/* ── Content card (used in policy / story pages) ── */
.content-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .content-card {
    padding: 1.5rem;
  }
}

.highlight-box {
  background: rgba(255, 215, 0, .1);
  border-left: 4px solid var(--yellow);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

body.rtl .highlight-box {
  border-left: none;
  border-right: 4px solid var(--yellow);
}

/* ── Section spacing ── */
.section {
  padding: 4.5rem 0;
}

@media (max-width: 768px) {
  .section {
    padding: 2.75rem 0;
  }
}

/* ── Scroll margin for sticky header ── */
section[id],
div[id] {
  scroll-margin-top: 80px;
}

/* ── Animations ── */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════
   Footer v2 — brand lockup, accordion link cards (mobile) /
   open columns (desktop), region & language row, copyright
   ═══════════════════════════════════════════════════════════ */

.lv-footer {
  background: linear-gradient(180deg, var(--surface) 0%, #ffffff 26%);
  overflow: hidden;
}

.lv-footer > .container {
  width: 100%;
}

/* Keep the footer readable on narrow phones and avoid flex/grid children
   forcing horizontal scroll on public pages. */
.lv-footer-top,
.lv-footer-nav,
.lv-footer-region {
  min-width: 0;
}

.lv-footer-lockup {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.lv-footer-message,
.lv-footer-tagline,
.lv-footer-links,
.lv-footer-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}


.lv-footer-top {
  margin-bottom: 2rem;
}

.lv-footer-lockup {
  gap: 1rem;
}

.main-footer .lv-footer.lv-footer-logo img,
.main-footer .footer-logo.lv-footer-logo img {
  height: auto;
  width: 130px;
}

/* Compact partner lockup: "PARTNERS IN INNOVATION" + the two logos */
.lv-footer .footer-partners {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .45rem .8rem;
}

.lv-footer .footer-partners-label {
  font-size: .6rem;
  margin-bottom: 0;
}

.lv-footer .footer-partners-label .arabic-only {
  font-family: 'Cairo', sans-serif;
}

.lv-footer .footer-partners-logos {
  gap: .45rem;
}

.lv-footer .footer-partner-logo {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
}

/* Message cell: tagline + socials, stacked; on desktop it sits right of
   the brand lockup in the balanced top row. */
.lv-footer-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Tagline */
.lv-footer-tagline {
  max-width: 560px;
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.5;
}

.lv-footer-tagline strong {
  font-weight: 700;
}

/* Social buttons: rounded squares */
.lv-footer-socials {
  display: flex;
  gap: .6rem;
}

.lv-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.lv-social-btn:hover {
  background: var(--yellow-light);
  border-color: var(--yellow);
  color: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ── Link sections (accordion cards on mobile) ── */
.lv-footer-nav {
  margin-bottom: 2rem;
}

.lv-footer-sec {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.lv-footer-sec.open {
  background: #fff;
}

.lv-footer-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .65rem;
  background: transparent;
  border: none;
  padding: 1rem 1.25rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--charcoal);
  cursor: pointer;
  text-align: start;
}

.lv-footer-toggle i.bi-chevron-down {
  margin-inline-start: auto;
  font-size: .8rem;
  color: var(--muted);
  transition: transform var(--transition-fast);
}

.lv-footer-sec.open .lv-footer-toggle i.bi-chevron-down {
  transform: rotate(180deg);
}

.lv-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

.lv-footer-panel {
  display: none;
  padding: 0 1.25rem 1rem;
}

.lv-footer-sec.open .lv-footer-panel {
  display: block;
}

.lv-footer-links {
  margin: 0;
}

.lv-footer-links li {
  margin-bottom: .7rem;
}

.lv-footer-links a {
  color: var(--muted);
  font-size: .95rem;
  transition: color var(--transition-fast);
}

.lv-footer-links a:hover {
  color: var(--charcoal);
}

.lv-footer-links .arabic-only {
  font-family: 'Cairo', sans-serif;
}

/* ── Region & language row ── */
.lv-footer-hr {
  border: none;
  border-top: 1px solid var(--line);
  opacity: 1;
  margin: 0 0 1.5rem;
}

.lv-footer-region {
  margin-bottom: 1.75rem;
}

.lv-region-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .9rem;
}

.lv-footer-region .arabic-only,
.lv-footer-copy .arabic-only,
.lv-footer-tagline .arabic-only {
  font-family: 'Cairo', sans-serif;
}

.lv-region-controls {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.lv-footer-region .footer-country-selector {
  margin-top: 0;
}

.lv-country .country-dropdown-btn {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  max-width: 240px;
  min-width: 200px;
  font-weight: 600;
  color: var(--charcoal);
}

.lv-country .country-dropdown-btn:hover {
  background: var(--yellow-light);
  border-color: var(--yellow);
  transform: none;
}

.lv-country-name {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  white-space: nowrap;
}

.lv-country-code {
  font-weight: 700;
}

.lv-country .country-dropdown-menu {
  border-radius: var(--radius);
}

/* Language pill sits at the end of the row (yellow via .btn-lang) */
.lv-lang-toggle {
  margin-inline-start: auto;
}

.lv-lang-toggle .btn-lang {
  padding: .55rem 1.1rem;
  font-size: .95rem;
  border-radius: var(--radius);
  box-shadow: none;
}

/* ── Copyright ── */
.lv-footer-copy {
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
  margin: 0;
}

/* ── AI assistant mention (rendered only when the assistant is on) ── */
.lv-footer-ai-mention {
  margin-bottom: .55rem;
  color: var(--primary, #4f46e5);
}
.lv-footer-ai-mention i {
  margin-inline-end: .35rem;
}

/* ── Desktop: accordions become always-open borderless columns ── */
@media (min-width: 992px) {
  /* Balanced brand ↔ tagline split so the top row reads like the mobile
     layout (brand block left, message + socials right) instead of a lone
     lockup pinned to the far left with an awkwardly indented tagline. */
  .lv-footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.25rem, 4vw, 3rem);
  }

  .lv-footer-message {
    justify-self: end;
    width: 100%;
    max-width: 34rem;
  }

  .lv-footer-top .footer-brand-lockup {
    margin-bottom: 0;
  }

  /* Socials stay visible on desktop (they were previously hidden, which
     left the message block looking stranded). */
  .lv-footer-top .lv-footer-socials {
    display: flex;
  }

  .lv-footer-top .lv-footer-tagline {
    margin: 0;
  }

  .lv-footer-sec {
    background: transparent;
    border: none;
    border-radius: 0;
  }

  .lv-footer-sec.open {
    background: transparent;
  }

  /* Slightly larger desktop headings/links — the accordion-toggle size
     was tuned for small screens and read as a caption on desktop. */
  .lv-footer-toggle {
    padding: 0 0 .9rem;
    cursor: default;
    font-size: .82rem;
    color: var(--charcoal);
  }

  .lv-footer-toggle i.bi-chevron-down {
    display: none;
  }

  .lv-footer-panel {
    display: block;
    padding: 0;
  }

  .lv-footer-links a {
    font-size: .92rem;
  }

  /* LTR: pin the lang pill to the row's right edge (RTL mirrored below). */
  .lv-footer-region .lv-lang-toggle {
    margin-left: auto;
    margin-right: 0;
  }
}

@media (min-width: 992px) {
  html[dir="rtl"] .lv-footer-region .lv-lang-toggle {
    margin-right: auto;
    margin-left: 0;
  }
}


/* Homepage rotating category visual */
.hero-category-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-xl);
  background: var(--surface);
}
.hero-category-visual img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transition: opacity .22s ease, transform .7s ease;
}
.hero-category-visual img.is-changing { opacity: .18; transform: scale(1.04); }
.hero-category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,75,135,.04) 30%, rgba(0,75,135,.82) 100%);
}
.hero-category-badge,
.hero-category-card { position: absolute; z-index: 1; }
.hero-category-badge {
  top: 1.25rem;
  left: 1.25rem;
  padding: .65rem .9rem;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  color: #fff;
  background: rgba(0,75,135,.55);
  backdrop-filter: blur(10px);
  font-size: .83rem;
}
.hero-category-card {
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  color: #fff;
  background: rgba(0,75,135,.7);
  backdrop-filter: blur(12px);
}
.hero-category-card strong { font-size: 1.2rem; }
.hero-category-card-kicker { color: var(--yellow); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 991px) {
  .hero-category-visual { min-height: 300px; margin-top: 1rem; }
  .hero-category-visual img { min-height: 300px; }
}
@media (max-width: 575px) {
  .hero-category-visual { min-height: 280px; border-radius: 20px; }
  .hero-category-visual img { min-height: 280px; }
  .hero-category-badge { top: .8rem; left: .8rem; font-size: .72rem; }
  .hero-category-card { right: .8rem; bottom: .8rem; left: .8rem; padding: .85rem; }
  .hero-category-card strong { font-size: 1rem; }
  .hero-category-card-kicker { font-size: .66rem; }
}
@media (max-width: 575px) {
  .lv-footer { padding-inline: .35rem; }
  .lv-footer .container { padding-inline: .75rem; }
  .lv-footer-lockup { gap: .75rem; }
  .lv-footer-message { align-items: flex-start; }
  .lv-footer-tagline { font-size: 1rem; }
  .lv-region-controls { align-items: stretch; }
  .lv-country .country-dropdown-btn { min-width: 0; max-width: 100%; width: 100%; }
  .lv-footer-region .footer-country-selector { flex: 1 1 100%; }
  .lv-footer-region .lv-lang-toggle { margin-inline-start: 0; }
}

/* Responsive homepage hero composition: 60/40 on desktop, image-first on mobile. */
@media (min-width: 992px) {
  .hero-section > .container > .row {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: center;
    margin-inline: 0;
  }
  .hero-section > .container > .row > .col-lg-6 {
    width: auto;
    max-width: none;
    padding-inline: 0;
  }
  .hero-section > .container > .row > .col-lg-6:first-child {
    padding-inline-end: clamp(1.5rem, 4vw, 4rem);
  }
  .hero-section > .container > .row > .hero-category-column {
    padding-inline-start: clamp(1rem, 2vw, 2rem);
  }
  .hero-section > .container > .row.hero-reverse > .hero-category-column {
    order: -1;
    padding-inline-start: 0;
    padding-inline-end: clamp(1rem, 2vw, 2rem);
  }
  .hero-section > .container > .row.hero-reverse > .col-lg-6:first-child {
    padding-inline-start: clamp(1.5rem, 4vw, 4rem);
    padding-inline-end: 0;
  }
}

@media (max-width: 991px) {
  .hero-section > .container > .row {
    display: flex;
    flex-direction: column;
    margin-inline: 0;
  }
  .hero-section > .container > .row > .hero-category-column {
    order: 1;
    width: 100%;
    padding-inline: 0;
  }
  .hero-section > .container > .row > .col-lg-6:first-child {
    order: 2;
    width: 100%;
    padding-inline: 0;
  }
}

/* Final hero ordering: desktop remains text 60% / image 40%; mobile places
   the headline above the image, then the remaining copy below it. */
@media (min-width: 992px) {
  .hero-section > .container > .row.hero-reverse > .hero-category-column {
    order: initial;
    padding-inline-start: clamp(1rem, 2vw, 2rem);
    padding-inline-end: 0;
  }
  .hero-section > .container > .row.hero-reverse > .col-lg-6:first-child {
    order: initial;
    padding-inline-start: 0;
    padding-inline-end: clamp(1.5rem, 4vw, 4rem);
  }
}

@media (max-width: 991px) {
  .hero-section > .container > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }
  .hero-section > .container > .row > .col-lg-6:first-child {
    display: contents;
  }
  .hero-section > .container > .row > .hero-category-column {
    display: block;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    order: initial;
  }
  .hero-section .hero-category-heading {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0 !important;
    align-self: start;
  }
  .hero-section .hero-category-description { grid-column: 1; grid-row: 3; }
  .hero-section .hero-category-highlight { grid-column: 1; grid-row: 4; }
  .hero-section .hero-category-actions { grid-column: 1; grid-row: 5; }
  .hero-section .hero-category-badges { grid-column: 1; grid-row: 6; }
  .hero-section .hero-category-caption-block { grid-column: 1; grid-row: 7; }
}


/* ═══════════════════════════════════════════════════════════
   Livvent navy & gold skin — Bootstrap content on public pages
   (about, collab, contact, faq, hardware, quiz, work, posts…)
   Header and footer come from includes/site-navbar.php and
   includes/site-footer.php (assets/lv/css/lv-shell.css).
   ═══════════════════════════════════════════════════════════ */
:root {
  --bs-link-color-rgb: 0, 75, 135;
  --bs-link-hover-color-rgb: 179, 138, 31;
  --bs-primary: #C59B27;
  --bs-primary-rgb: 197, 155, 39;
  --bs-body-color: #1A2530;
}
body { color: var(--charcoal); }

.btn { border-radius: 6px; font-weight: 600; letter-spacing: 0; }
.btn-primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--charcoal);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(197, 155, 39, .28);
}
.btn-outline-dark {
  border: 1px solid var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover, .btn-outline-dark:focus {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Inner-page banner */
.page-hero {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(232, 200, 114, .30), transparent 62%),
    linear-gradient(135deg, var(--navy) 0%, #1A2530 100%);
}
.page-hero::after { opacity: .05; }
.page-hero h1 { letter-spacing: -.02em; }
html[lang=ar] .page-hero h1 { letter-spacing: 0; }

.highlight-box { background: var(--gold-warm); border-left-color: var(--yellow); }
body.rtl .highlight-box { border-right-color: var(--yellow); }
.content-card h2, .content-card h3 { color: var(--navy); }

/* Focus + form fields */
:focus-visible { outline: 3px solid rgba(232, 200, 114, .75); outline-offset: 2px; }
.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 .2rem rgba(197, 155, 39, .25);
}
.form-check-input:checked { background-color: var(--yellow); border-color: var(--yellow); }

/* Anchor targets clear the 86px sticky header */
section[id], div[id] { scroll-margin-top: 96px; }
