/* Source: project scaffolding — recreated on 2025-11-16 */
/* Keep layout via Bootstrap; only animation + brand theme overrides here */

:root {
  --ax-primary: #8B0000; /* dark red */
  --ax-primary-strong: #a00000; /* hover shade */

  /* Bootstrap color variables */
  --bs-primary: var(--ax-primary);
  --bs-primary-rgb: 139, 0, 0;
  /* Darken secondary text slightly while staying lighter than headings */
  --bs-secondary-rgb: 47, 47, 47; /* ~#2f2f2f */
  --bs-link-color: var(--ax-primary);
  --bs-link-hover-color: var(--ax-primary-strong);
}

/* Global typography: modern, contemporary Arabic sans */
html, body {
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fff;
}

/* Force uniform white background across the site */
body { background-color:#fff !important; }
.bg-light { background-color:#fff !important; }

html:focus-within { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Brand accents */
.navbar .navbar-brand { color: var(--ax-primary); }
.nav-tabs { position: relative; border-bottom: 0 !important; }
.nav-tabs .nav-link { color: var(--ax-primary); border:none !important; background:transparent !important; position: relative; opacity:.85; }
.nav-tabs .nav-link:hover { color: var(--ax-primary-strong); opacity:1; }
.nav-tabs .nav-link.active { color: var(--ax-primary); font-weight:700; border:none !important; box-shadow:none !important; opacity:1; }
/* Active tab indicator (underline bar) */
.nav-tabs .nav-link::after { content:""; position:absolute; left:50%; right:50%; bottom:-2px; height:4px; background:transparent; border-radius:2px; transition:left .3s cubic-bezier(0.22, 1, 0.36, 1), right .3s cubic-bezier(0.22, 1, 0.36, 1), background-color .2s ease; }
.nav-tabs .nav-link.active::after { left:0; right:0; background:var(--ax-primary); }
/* Stronger active state background for product tabs */
.ax-tabs-single-row .nav-link.active { background-color: rgba(139, 0, 0, 0.04) !important; border-radius: 0; }
/* For product tabs: remove underline indicator entirely */
.ax-tabs-single-row .nav-link::after { display: none !important; }
/* Ensure no bottom rule under the product tabs row */
.ax-tabs-single-row { border-bottom: 0 !important; }

.btn-primary {
  background-color: var(--ax-primary) !important;
  border-color: var(--ax-primary) !important;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--ax-primary-strong) !important;
  border-color: var(--ax-primary-strong) !important;
}
.btn-outline-primary {
  color: var(--ax-primary) !important;
  border-color: var(--ax-primary) !important;
  background-color: transparent !important;
}
.btn-outline-primary:hover {
  color: #fff !important;
  background-color: var(--ax-primary) !important;
  border-color: var(--ax-primary) !important;
}
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary:focus-visible {
  color: var(--ax-primary) !important;
  background-color: transparent !important;
  border-color: var(--ax-primary) !important;
  box-shadow: 0 0 0 .25rem rgba(139, 0, 0, .25) !important;
}

/* Make secondary text darker than default but lighter than headings */
.text-secondary { color: #2f2f2f !important; }

.form-control:focus {
  border-color: var(--ax-primary) !important;
  box-shadow: 0 0 0 .25rem rgba(139, 0, 0, .25) !important;
}

/* Section spacing helpers (Bootstrap handles most) */
section { scroll-margin-top: 80px; }

/* Reveal on scroll */
.ax-scroll-reveal { opacity: 0; transform: translate3d(0, 24px, 0); will-change: transform, opacity; }
.ax-reveal-in { opacity: 1 !important; transform: translate3d(0, 0, 0) !important; transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1); }

/* Optional stagger using inline --ax-delay custom prop */
.ax-reveal-in { transition-delay: var(--ax-delay, 0s); }

/* Reveal variants */
.ax-slide-up { transform: translate3d(0, 24px, 0); }
.ax-slide-left { transform: translate3d(24px, 0, 0); }
.ax-slide-right { transform: translate3d(-24px, 0, 0); }

/* Icon pop when parent reveals */
@keyframes ax-pop-in { 0% { transform: translateY(6px) scale(.92); opacity:0 } 60% { transform: translateY(-2px) scale(1.05); opacity:1 } 100% { transform: translateY(0) scale(1) } }
.ax-reveal-in .ax-icon-pop { animation: ax-pop-in 600ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@media (prefers-reduced-motion: reduce){ .ax-reveal-in .ax-icon-pop { animation: none !important; } }

/* Hover lift micro-interaction */
.ax-hover-lift { transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 250ms cubic-bezier(0.22, 1, 0.36, 1); }
.ax-hover-lift.ax-hovered { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
/* CSS fallback for hover (works without JS) */
@media (hover: hover) and (pointer: fine){
  .ax-hover-lift:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
}

/* Hero visual placeholder */
#hero .ratio { border: 1px dashed rgba(0,0,0,0.15); background-color: #fff; }

/* Fullscreen hero banner (background image) */
.ax-hero-banner { position:relative; min-height:100vh; display:flex; align-items:center; justify-content:center; padding:0 1rem; background-color:#000; background-image:url('../backgrounds/background1.webp'); background-repeat:no-repeat; background-position:center center; background-size:cover; color:#fff; }
.ax-hero-banner::before { content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.4) 45%, rgba(0,0,0,.35)); }
.ax-hero-content { position:relative; max-width:960px; margin-inline:auto; }
.ax-hero-title { font-size:clamp(2.2rem, 5.5vw, 3.8rem); line-height:1.2; text-shadow:0 4px 18px rgba(0,0,0,.35); }
.ax-hero-subtitle { font-size:clamp(1.05rem, 1.6vw, 1.35rem); font-weight:400; color:#f1f1f1; text-shadow:0 2px 8px rgba(0,0,0,.3); }
@media (max-width: 575.98px){ .ax-hero-banner { background-attachment:scroll; } }
@media (prefers-reduced-motion: reduce){ .ax-hero-banner { background-attachment:scroll; } }

/* Footer year small tweak */
#year { font-variant-numeric: tabular-nums; }

/* Clients logos */
.clients-grid { }
.client-box { display:flex; align-items:center; justify-content:center; background:#ffffff; border:1px solid #e8e8e8; border-radius:12px; padding:12px; height:110px; position:relative; overflow:hidden; transition:box-shadow 200ms ease, transform 200ms ease; }
.client-box:hover { box-shadow:0 6px 18px rgba(0,0,0,0.08); transform:translateY(-3px); }
.client-logo { max-height:64px; max-width:100%; width:auto; object-fit:contain; display:block; }
.clients-col { display:flex; }
@media (max-width: 575.98px) { /* tighten mobile spacing */
  .client-box { height:90px; padding:10px; }
  .client-logo { max-height:56px; }
  .client-cat-logo { width:72px; height:72px; }
}

/* Products tab reveal */
.ax-tab-prepare { opacity: 0; transform: translate3d(0, 16px, 0); }
.ax-tab-in { opacity: 1; transform: translate3d(0, 0, 0); transition: opacity 450ms cubic-bezier(0.22, 1, 0.36, 1), transform 450ms cubic-bezier(0.22, 1, 0.36, 1); }

/* Client category logo (icons above categories) */
.client-cat-logo { width:80px; height:80px; object-fit:contain; display:block; }

/* Site brand logo */
.ax-site-logo { height:32px; width:auto; display:block; }
@media (min-width: 576px) { .ax-site-logo { height:36px; } }

/* Mobile: center language toggle content */
@media (max-width: 575.98px){
  #langToggle { justify-content:center; }
}

/* Center navbar choices when collapsed (mobile/tablet) */
@media (max-width: 991.98px){
  .navbar .navbar-collapse { justify-content: center !important; }
  #mainNav .navbar-nav { margin-inline: auto !important; align-items: center !important; }
  #mainNav .navbar-nav .nav-link { text-align: center; }
}

/* Also center navbar choices on desktop (>= lg) */
@media (min-width: 992px){
  .navbar .navbar-collapse { justify-content: center !important; }
  #mainNav .navbar-nav { margin-inline: auto !important; align-items: center !important; }
}

/* Door carousel overlay */
.ax-door-slide { position:relative; }
.ax-door-slide img { display:block; width:100%; height:100%; object-fit:cover; filter:brightness(.65); }
.ax-doors-carousel { max-width:clamp(640px, 70vw, 1080px); margin-inline:auto; }
.ax-door-slide-overlay { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:1.25rem 3.25rem; background:linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.35) 45%, rgba(0,0,0,0)); color:#fff; font-weight:600; font-size:1.15rem; letter-spacing:.5px; text-shadow:0 2px 4px rgba(0,0,0,.4); }
/* Title inside door overlay */
/* Responsive scaling for door title */
.ax-door-slide-overlay span { font-size:clamp(1.5rem, 2.6vw, 2.3rem); font-weight:700; line-height:1.25; }
@media (max-width: 575.98px){ .ax-door-slide-overlay span { font-size:1.35rem; } }
/* Subtitle / description */
/* Responsive scaling for subtitle */
.ax-door-slide-desc { font-size:clamp(.9rem, 1.2vw, 1.15rem); font-weight:400; line-height:1.5; opacity:.9; }
@media (max-width: 575.98px){ .ax-door-slide-desc { font-size:.85rem; } }
@media (max-width: 575.98px){ .ax-door-slide-overlay{ font-size:1rem; padding:1rem 1.75rem; } }
/* Prevent subtitle touching sides */
.ax-door-slide-desc { max-width: 42ch; }
@media (min-width: 992px){ .ax-door-slide-desc { max-width: 48ch; } }

/* Desktop: make product carousels full-bleed width */
@media (min-width: 992px){
  .ax-doors-carousel { max-width: 100%; width: 100%; margin-inline: 0; }
}

/* Desktop: reduce carousel height while keeping full width */
@media (min-width: 992px){
  .ratio.ax-door-slide::before { padding-top: 42% !important; }
}

/* Bidirectional safety: ensure punctuation stays at the visual end */
.ax-bidi { unicode-bidi: plaintext; }

/* Mobile: force product tabs into single row */
@media (max-width: 575.98px){
  .ax-tabs-single-row { display:flex; flex-wrap:nowrap; width:100%; justify-content:center; margin-inline:auto; }
  .ax-tabs-single-row .nav-item { flex:1 1 0; max-width:25%; }
  .ax-tabs-single-row .nav-link { width:100%; font-size:.78rem; padding:.5rem .25rem; white-space:nowrap; text-align:center; }
}
/* Remove default list start padding in RTL/LTR for product tabs */
.ax-tabs-single-row { padding-inline-start: 0; margin-bottom: 0; }
/* Ensure centered layout on very narrow screens (fallback) */
@media (max-width: 360px){
  .ax-tabs-single-row .nav-link { font-size:.7rem; }
}

/* LTR number utility: force numbers, phone, year to render left-to-right inside RTL context */
.ax-number, #year { direction: ltr; unicode-bidi: isolate; }

/* Lightbox overlay for decor gallery */
.ax-no-scroll { overflow: hidden; }
.ax-lightbox { position:fixed; inset:0; background:rgba(0,0,0,.82); display:flex; align-items:center; justify-content:center; z-index:1050; opacity:0; pointer-events:none; transition:opacity 250ms ease; }
.ax-lightbox.ax-open { opacity:1; pointer-events:auto; }
.ax-lightbox-inner { position:relative; width:min(92vw, 1200px); max-height:92vh; display:flex; align-items:center; justify-content:center; }
.ax-lightbox-stage { width:100%; max-height:92vh; display:flex; align-items:center; justify-content:center; }
.ax-lightbox-img { max-width:100%; max-height:92vh; object-fit:contain; box-shadow:0 8px 32px rgba(0,0,0,.6); border-radius:12px; background:#111; }
.ax-lightbox-close, .ax-lightbox-prev, .ax-lightbox-next { position:absolute; background:rgba(0,0,0,.55); color:#fff; border:none; font-size:1.25rem; line-height:1; padding:.65rem .9rem; cursor:pointer; border-radius:8px; backdrop-filter:blur(4px); transition:background 150ms ease, transform 150ms ease; }
/* Reposition close button to viewport top-right (outside centered image box) */
.ax-lightbox-close { position:fixed; top:14px; inset-inline-end:16px; font-size:1.4rem; z-index:1100; }
.ax-lightbox-prev { top:50%; transform:translateY(-50%); inset-inline-start:12px; }
.ax-lightbox-next { top:50%; transform:translateY(-50%); inset-inline-end:12px; }
.ax-lightbox-close:hover, .ax-lightbox-prev:hover, .ax-lightbox-next:hover { background:rgba(0,0,0,.75); }
.ax-lightbox-prev:active, .ax-lightbox-next:active, .ax-lightbox-close:active { transform:translateY(-50%) scale(.92); }
.ax-lightbox-close:active { transform:scale(.92); }
@media (max-width: 575.98px){ .ax-lightbox-close, .ax-lightbox-prev, .ax-lightbox-next { padding:.55rem .75rem; font-size:1.05rem; } }
@media (prefers-reduced-motion: reduce){ .ax-lightbox { transition:none; } }

/* Lone last decor item full-width expansion */
#decorGrid .ax-last-single { flex:0 0 100% !important; max-width:100% !important; }

/* Footer custom styling */
.ax-footer { background-color: var(--ax-primary); color: #fff; }
.ax-footer #footerText { color: rgba(255,255,255,0.85); }
.ax-footer a { color:#fff; }
.ax-footer a:hover, .ax-footer a:focus { color:#fff; text-decoration:underline; }
