/* Brand layer on top of Bootstrap 5 */
:root {
  --navy-900: #08142F;
  --navy-800: #0D1E45;
  --brand: #204294;
  --sky: #1470B3;
  --sky-soft: #5BB4F0;
  --ink: #0F1A33;
  --muted: #4F5E7C;
  --bg: #F3F6FB;
  --line: #D5DDEB;
  --font-display: 'Archivo', 'Segoe UI', Arial, sans-serif;
  --bs-primary: #1470B3;
  --bs-primary-rgb: 20, 112, 179;
  --bs-body-font-family: 'Public Sans', 'Segoe UI', Arial, sans-serif;
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.65;
  --bs-body-color: var(--ink);
  --bs-link-color: var(--brand);
  --bs-link-hover-color: #16316E;
}

.btn-primary {
  --bs-btn-bg: #1470B3;
  --bs-btn-border-color: #1470B3;
  --bs-btn-hover-bg: #0F5C96;
  --bs-btn-hover-border-color: #0F5C96;
  --bs-btn-active-bg: #0C4D7E;
  --bs-btn-active-border-color: #0C4D7E;
  --bs-btn-focus-shadow-rgb: 91, 180, 240
}

.btn {
  --bs-btn-font-weight: 600
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em
}

:focus-visible {
  outline: 3px solid var(--sky-soft);
  outline-offset: 3px
}

.skip {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  transform: translateY(-150%);
  background: #fff;
  color: var(--ink);
  padding: .6rem 1rem;
  z-index: 2000
}

.skip:focus {
  top: 1rem;
  inset-inline-start: 1rem;
  transform: none
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--navy-900);
  transition: box-shadow .25s ease
}

.site-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, .28)
}

.site-header .navbar {
  min-height: 84px;
  transition: min-height .25s ease
}

.site-header.is-scrolled .navbar {
  min-height: 68px
}

.site-header .navbar-brand img {
  height: 40px;
  width: auto
}

.site-header .nav-link {
  padding: .55rem 1rem;
  font-weight: 500;
  border-bottom: 3px solid transparent
}

.site-header .nav-link.active {
  border-bottom-color: var(--sky-soft)
}

.site-header .navbar-collapse.show,
.site-header .navbar-collapse.collapsing {
  padding-bottom: 1rem
}

/* Hero */
.hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(76vh, 660px);
  padding-block: clamp(3.5rem, 9vw, 7rem)
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  font-weight: 800;
  font-stretch: 118%;
  margin-bottom: .45em
}

.hero-lead {
  max-width: 34rem;
  font-size: 1.2rem;
  color: #C9D6F0;
  margin: 0
}

.hero-wing {
  position: absolute;
  z-index: 1;
  right: 0;
  top: 50%;
  height: min(112%, 760px);
  width: auto;
  max-width: none;
  transform: translateY(-50%);
  animation: wing-in 1.1s cubic-bezier(.2, .7, .2, 1) both
}

@keyframes wing-in {
  from {
    opacity: 0;
    transform: translate(60px, -50%)
  }

  to {
    opacity: 1;
    transform: translate(0, -50%)
  }
}

/* Sections */
.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem)
}

.section-tint {
  background: var(--bg)
}

.section h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  margin-bottom: .5em
}

.lead {
  /* max-width: 40rem; */
  font-size: 1.25rem;
  color: var(--muted)
}

.prose {
  max-width: 46rem;
  font-size: 1.15rem
}

.pillar {
  border-top: 4px solid var(--sky);
  padding-top: 1.25rem
}

.pillar h3 {
  font-size: 1.35rem
}

.pillar p {
  margin: 0;
  color: var(--muted)
}

/* Vision and mission */
.vm {
  background: var(--navy-800);
  color: #fff
}

.vm-card {
  height: 100%;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px
}

.vm-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: rgba(91, 180, 240, .16);
  color: var(--sky-soft)
}

.vm-icon svg {
  width: 30px;
  height: 30px
}

.vm h2 {
  margin-bottom: .6rem;
  font-size: 1.6rem
}

.vm p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #DCE6FA
}

/* CTA */
.cta-contact {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 1.15rem
}

/* Inner page header */
.page-head {
  background: var(--navy-900);
  color: #fff;
  padding-block: clamp(3rem, 7vw, 5rem);
  border-bottom: 4px solid var(--sky)
}

.page-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  font-stretch: 118%;
  margin-bottom: .3em
}

.page-head .lead {
  color: #C9D6F0
}

/* About values */
.icon-tile {
  display: grid;
  place-items: center;
  width: 62px;
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 10px;
  background: #E3EFFA;
  color: var(--sky)
}

.icon-tile svg {
  width: 26px;
  height: 26px
}

.value-card {
  height: 100%;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease
}

.value-card:hover {
  border-color: var(--sky-soft);
  box-shadow: 0 10px 26px rgba(8, 20, 47, .08)
}

.value-card h3 {
  margin-bottom: .4rem;
  font-size: 1.25rem
}

.value-card p {
  margin: 0;
  color: var(--muted)
}

/* Contact */
.form-control {
  padding: .8rem 1rem;
  border-color: #AAB7D0
}

.form-control:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 .25rem rgba(20, 112, 179, .25)
}

/* Spam-trap field: hidden from people without being pushed off-screen */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap
}

.info dl>div:not(:first-child) {
  border-top: 1px solid var(--line);
}

.info dl>div {
  padding: 1.25rem 0
}

.info dt {
  font-size: .95rem;
  font-weight: 400;
  color: var(--muted)
}

.info dd {
  margin: .1rem 0 0;
  font: 700 1.5rem var(--font-display);
  font-stretch: 112%;
  overflow-wrap: anywhere
}

.info a {
  text-decoration: none
}

.info a:hover {
  text-decoration: underline
}

/* Image slots */
.slot {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg)
}

.slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease
}

.slot:hover img {
  transform: scale(1.04)
}

.slot-empty {
  border: 2px dashed #9FB0CF;
  background: repeating-linear-gradient(135deg, #F3F6FB 0 14px, #EAF0F9 14px 28px)
}

.slot-empty figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: .9rem
}

.slot-empty strong {
  color: var(--ink);
  font-size: 1rem
}

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: #B9C7E6;
  padding-block: 3.5rem 2rem
}

.footer-about {
  max-width: 20rem
}

.footer-title {
  margin: 0 0 .75rem;
  font: 600 1rem var(--bs-body-font-family);
  letter-spacing: 0;
  color: #fff
}

.site-footer li {
  margin-bottom: .4rem
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: all .1s;
}

.site-footer a:hover {
  color: var(--sky-soft) !important;
  text-decoration: underline
}

.legal {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .9rem
}

/* Motion: reveal on scroll (see assets/js/main.js) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--d, 0s)
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none
}

@media (max-width:1100px) {
  .hero-wing {
    height: 80%;
    opacity: .45;
    animation: none
  }
}

@media (max-width:720px) {
  .hero-wing {
    height: 62%;
    opacity: .3
  }
}

@media (max-width: 576px) {
  .site-header .nav-link.active {
    border-bottom: 0;
    border-inline-start: 2px solid var(--sky-soft);
  }
}

@media (prefers-reduced-motion:reduce) {
  .hero-wing {
    animation: none
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none
  }

  .slot img {
    transition: none
  }

  .slot:hover img {
    transform: none
  }
}

/* Products */
.product {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .25s ease, transform .25s ease
}

.product:hover {
  box-shadow: 0 10px 28px rgba(8, 20, 47, .12);
  transform: translateY(-3px)
}

.product .slot {
  border-radius: 0
}

.product-body {
  padding: 1.25rem 1.25rem 1.5rem
}

.product-cat {
  margin: 0 0 .25rem;
  font-size: .9rem;
  color: var(--muted)
}

.section h2.product-name {
  font-size: 1.35rem;
  margin-bottom: .4em
}

.product-body p:not(.product-cat) {
  color: var(--muted)
}

@media (prefers-reduced-motion:reduce) {

  .product,
  .product:hover {
    transition: none;
    transform: none
  }
}

/* Products from the admin (see /admin) */
.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem
}

.product-img {
  background: var(--bg)
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.product-img-empty span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9FB0CF;
  font-size: 3rem
}

.product-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden
}


/* Contact: address and map */
.info dd.info-address {
  /* font: 600 1.1rem/1.5 var(--bs-body-font-family); */
  font-stretch: 100%
}

.map {
  margin-top: .5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg)
}

.map iframe {
  border: 0
}

/* Products: category filter */
.filter-chip {
  display: inline-block;
  padding: .45rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease
}

.filter-chip:hover {
  border-color: var(--sky);
  color: var(--brand)
}

.filter-chip.active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 1020;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sky);
  color: #fff;
  box-shadow: 0 6px 18px rgba(8, 20, 47, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .15s ease
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none
}

.back-to-top:hover {
  background: var(--navy-800)
}

.back-to-top svg {
  width: 22px;
  height: 22px
}

/* Keep in-page anchors clear of the sticky header */
html {
  scroll-padding-top: 90px
}

@media (prefers-reduced-motion: reduce) {

  .site-header,
  .site-header .navbar,
  .back-to-top,
  .value-card,
  .filter-chip {
    transition: none
  }
}


/* Required fields */
.req {
  margin-inline-start: .1rem;
  color: #B3261E;
  font-weight: 700
}

.form-note {
  margin-bottom: 1.25rem;
  font-size: .95rem;
  color: var(--muted)
}

/* Language switch button (top bar) */
.lang-switch {
  display: inline-block;
  padding: .35rem 1rem;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease
}

.lang-switch:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff
}

.navbar-collapse.show .lang-switch,
.navbar-collapse.collapsing .lang-switch {
  margin-block: .5rem 1rem
}

/* Phone numbers and emails always read left-to-right */
.ltr {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate
}

/* ---------- Arabic (right-to-left) ---------- */
html[lang="ar"] {
  --font-display: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  --bs-body-font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  --bs-body-line-height: 1.8
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .info dd,
html[lang="ar"] .value dt {
  font-stretch: 100%;
  letter-spacing: 0;
  line-height: 1.4
}

html[lang="ar"] .hero h1,
html[lang="ar"] .page-head h1 {
  font-stretch: 100%;
  font-weight: 800;
  line-height: 1.3
}

html[lang="ar"] .hero h1 {
  max-width: 14ch
}

html[lang="ar"] .lead,
html[lang="ar"] .hero-lead {
  line-height: 1.8
}

/* The wing sits on the opposite side and is mirrored so it still bleeds off the edge */
html[dir="rtl"] .hero-wing {
  right: auto;
  left: 0;
  transform: translateY(-50%) scaleX(-1);
  animation-name: wing-in-rtl
}

@keyframes wing-in-rtl {
  from {
    opacity: 0;
    transform: translate(-60px, -50%) scaleX(-1)
  }

  to {
    opacity: 1;
    transform: translate(0, -50%) scaleX(-1)
  }
}

@media (max-width: 1100px) {
  html[dir="rtl"] .hero-wing {
    animation: none
  }
}

html[dir="rtl"] .back-to-top {
  right: auto;
  left: 1.25rem
}

/* Arrow-like icons point the other way */
html[dir="rtl"] .lucide-chevron-right,
html[dir="rtl"] .lucide-send {
  transform: scaleX(-1)
}

html[dir="rtl"] input[type="tel"] {
  direction: ltr;
  text-align: right
}

@media (prefers-reduced-motion: reduce) {
  .lang-switch {
    transition: none
  }
}

/* Safety net: never allow sideways scrolling (clip keeps the sticky header working) */
body {
  overflow-x: clip
}
