/* ============================================================
   HATEM FAWZI GLASS ART – Internal Pages Stylesheet
   Loaded AFTER style.css on: about / products / gallery / contact
   All custom layout uses logical properties so the Arabic
   (dir="rtl") build mirrors automatically.
   ============================================================ */

/* ──────────────────────────────────────────────────────────
   20.  Page Hero Banner + Breadcrumb
────────────────────────────────────────────────────────── */
/* assets/css/bootstrap-icons.min.css looks for fonts under assets/css/fonts/,
   so the bundled icon font is re-declared against its real location. */
@font-face {
  font-family: 'bootstrap-icons';
  src: url('../fonts/bootstrap-icons.woff2') format('woff2'),
       url('../fonts/bootstrap-icons.woff') format('woff');
  font-weight: 400;
  font-display: block;
}

/* AOS pre-animation offsets would otherwise create a horizontal scrollbar */
html { overflow-x: clip; }

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--clr-dark);
  padding: calc(var(--topbar-h) + 132px) 0 76px;
  isolation: isolate;
}

.page-hero__bg,
.page-hero__veil { position: absolute; inset: 0; z-index: -2; }

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hf-kenburns 18s ease-out both;
}

@keyframes hf-kenburns {
  from { transform: scale(1.14); }
  to   { transform: scale(1); }
}

.page-hero__veil {
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(8, 15, 30, .92) 0%, rgba(10, 110, 189, .55) 55%, rgba(15, 23, 42, .82) 100%);
}

.page-hero__glow {
  position: absolute;
  inset-block-start: -180px;
  inset-inline-end: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, .22), transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.page-hero__inner { position: relative; z-index: 1; width: 100%; }

.page-hero .section-label {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  font-weight: 800;
  line-height: 1.14;
  color: #fff;
  margin: 0 0 .85rem;
}

.page-hero__title em {
  font-style: normal;
  color: var(--clr-secondary);
}

.page-hero__title .gold { color: #d4af37; }

.page-hero__text {
  color: rgba(255, 255, 255, .78);
  font-size: 1.02rem;
  line-height: 1.85;
  max-width: 660px;
  margin: 0;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hf-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  font-size: .84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .62);
}

.hf-breadcrumb a { transition: color var(--transition); }
.hf-breadcrumb a:hover { color: #fff; }
.hf-breadcrumb .sep { opacity: .45; font-size: .7rem; }
.hf-breadcrumb .current { color: #d4af37; font-weight: 700; }

.page-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.page-hero__stat b {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.page-hero__stat span {
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
}

/* ──────────────────────────────────────────────────────────
   21.  Filter Bar (Products + Gallery)
────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border: 1.5px solid var(--clr-border);
  border-radius: 50px;
  background: #fff;
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-2px);
}

.filter-btn .count {
  padding: 1px 9px;
  border-radius: 50px;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  font-size: .72rem;
  font-weight: 700;
}

.filter-btn.is-active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
  box-shadow: 0 10px 26px rgba(10, 110, 189, .28);
}

.filter-btn.is-active .count {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.hf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 26px;
}

.hf-item.is-hidden { display: none; }

.hf-item.is-new { animation: hf-pop .45s cubic-bezier(.4, 0, .2, 1) both; }

@keyframes hf-pop {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.hf-empty {
  display: none;
  text-align: center;
  padding: 50px 20px;
  color: var(--clr-text-light);
  border: 1px dashed var(--clr-border);
  border-radius: var(--radius-md);
}

.hf-empty.show { display: block; }

.hf-results {
  text-align: center;
  font-size: .85rem;
  color: var(--clr-text-light);
  margin-top: 26px;
}

.hf-results strong { color: var(--clr-primary); }

.product-overlay[data-lightbox] { cursor: zoom-in; }

/* ──────────────────────────────────────────────────────────
   22.  About Page – Timeline, Cards, Quote, Counters
────────────────────────────────────────────────────────── */
.hf-timeline {
  position: relative;
  padding-inline-start: 34px;
}

.hf-timeline::before {
  content: '';
  position: absolute;
  inset-block: 8px 12px;
  inset-inline-start: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--clr-primary), rgba(10, 110, 189, .12));
}

.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: '';
  position: absolute;
  inset-block-start: 7px;
  inset-inline-start: -33px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--clr-primary);
  box-shadow: 0 0 0 4px var(--clr-primary-light);
}

.tl-year {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--clr-secondary);
  margin-bottom: 4px;
}

.tl-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin: 0 0 6px;
}

.tl-text {
  color: var(--clr-text-light);
  font-size: .95rem;
  line-height: 1.85;
  margin: 0;
}

.hf-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.hf-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 110, 189, .3);
}

.hf-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.hf-card--accent .hf-card__icon { background: rgba(249, 115, 22, .12); color: var(--clr-secondary); }
.hf-card--gold .hf-card__icon { background: rgba(212, 175, 55, .16); color: #a8842a; }

.hf-card h4 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin: 0 0 10px;
}

.hf-card p {
  color: var(--clr-text-light);
  font-size: .92rem;
  line-height: 1.8;
  margin: 0;
}

/* Family cards on products.html — one lightbox image per family */
.hf-card--work { padding: 14px 14px 26px; }

.hf-card__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: var(--clr-bg);
  cursor: zoom-in;
}

.hf-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}

.hf-card:hover .hf-card__thumb img { transform: scale(1.07); }

.hf-card__zoom {
  position: absolute;
  inset-inline-end: 10px;
  inset-block-end: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 20, 35, .72);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition);
}

.hf-card:hover .hf-card__zoom { opacity: 1; transform: none; }

@media (hover: none) {
  .hf-card__zoom { opacity: 1; transform: none; }
}

.hf-card--work .hf-card__icon { margin-top: 18px; }
.hf-card--work h4,
.hf-card--work p { padding-inline: 6px; }

.hf-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-inline: 6px;
  color: var(--clr-primary);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}

.hf-card__link:hover { color: var(--clr-secondary); }
.hf-card__link i { transition: transform .3s ease; }
.hf-card__link:hover i { transform: translateX(4px); }
html[dir="rtl"] .hf-card__link:hover i { transform: translateX(-4px); }

.hf-check-list { margin: 0; }

.hf-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--clr-border);
  color: var(--clr-text);
  font-size: .95rem;
}

.hf-check-list li:last-child { border-bottom: 0; }

.hf-check-list i {
  color: var(--clr-accent);
  margin-block-start: 4px;
  flex-shrink: 0;
}

.quote-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-dark) 100%);
  color: #fff;
}

.quote-band::after {
  content: '\201C';
  position: absolute;
  inset-block-start: -40px;
  inset-inline-end: 10px;
  font-family: Georgia, serif;
  font-size: 14rem;
  line-height: 1;
  color: rgba(255, 255, 255, .07);
  pointer-events: none;
}

.quote-band blockquote {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  font-weight: 600;
  line-height: 1.65;
}

.quote-band cite {
  position: relative;
  z-index: 1;
  display: block;
  font-style: normal;
  font-size: .9rem;
  letter-spacing: .04em;
  color: #d4af37;
}

.hf-counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.hf-counter {
  padding: 26px 20px;
  text-align: center;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}

.hf-counter__num {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 900;
  color: var(--clr-primary);
  line-height: 1.1;
}

.hf-counter__label {
  font-size: .82rem;
  color: var(--clr-text-light);
  margin-top: 6px;
}

.hf-sticky-img { position: sticky; top: calc(var(--topbar-h) + 110px); }

/* ──────────────────────────────────────────────────────────
   23.  Contact Page
────────────────────────────────────────────────────────── */
.contact-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.contact-quick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-quick:hover {
  transform: translateY(-4px);
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-md);
}

.contact-quick__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  font-size: 1.35rem;
}

.contact-quick.whatsapp .contact-quick__icon { background: rgba(16, 185, 129, .12); color: var(--clr-accent); }
.contact-quick.gold .contact-quick__icon { background: rgba(212, 175, 55, .16); color: #a8842a; }

.contact-quick b {
  display: block;
  font-family: var(--font-heading);
  font-size: .95rem;
  color: var(--clr-dark);
}

.contact-quick span {
  font-size: .85rem;
  color: var(--clr-text-light);
}

.hf-map {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-md);
  background: var(--clr-bg);
}

.hf-map iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

.hf-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.hf-step {
  position: relative;
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.hf-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }

.hf-step__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--clr-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
}

.hf-step h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin: 0 0 8px;
}

.hf-step p {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--clr-text-light);
  margin: 0;
}

.hf-info-tile {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--clr-border);
}

.hf-info-tile:last-child { border-bottom: 0; }

.hf-info-tile i {
  font-size: 1.2rem;
  color: var(--clr-primary);
  margin-block-start: 3px;
}

.hf-info-tile strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--clr-dark);
  font-size: .95rem;
  margin-bottom: 3px;
}

.hf-info-tile p { margin: 0; font-size: .9rem; color: var(--clr-text-light); line-height: 1.8; }

.ltr-value { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ──────────────────────────────────────────────────────────
   24.  Responsive
────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .page-hero { padding: calc(var(--topbar-h) + 118px) 0 56px; }
  .hf-sticky-img { position: static; }
}

@media (max-width: 767px) {
  .page-hero__stats { gap: 22px; }
  .page-hero__stat b { font-size: 1.4rem; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 8px 15px; font-size: .82rem; }
  .hf-grid { grid-template-columns: 1fr; gap: 20px; }
  .quote-band::after { display: none; }
}

@media (max-width: 575px) {
  .page-hero .page-hero__actions { width: 100%; }
  .page-hero .page-hero__actions a { flex: 1 1 100%; justify-content: center; }
}

/* ──────────────────────────────────────────────────────────
   25.  RTL Mirroring (Arabic build)
────────────────────────────────────────────────────────── */
html[dir="rtl"] {
  --font-heading: 'Cairo', 'Tajawal', sans-serif;
  --font-body:    'Cairo', 'Tajawal', sans-serif;
}

html[dir="rtl"] body { letter-spacing: 0; }

html[dir="rtl"] .section-label,
html[dir="rtl"] .page-hero__stat span,
html[dir="rtl"] .tl-year { letter-spacing: 0; }

html[dir="rtl"] .section-title,
html[dir="rtl"] .page-hero__title { line-height: 1.45; }

/* Physical offsets inherited from style.css */
html[dir="rtl"] .about-img-secondary { inset-inline-end: auto; inset-inline-start: -30px; right: auto; left: -30px; }
html[dir="rtl"] .about-exp-badge { right: -30px; left: auto; }
html[dir="rtl"] .product-badge { left: auto; right: 12px; }
html[dir="rtl"] .gallery-zoom-btn { right: 16px; left: auto; }
html[dir="rtl"] .hero-slider-prev { left: auto; right: 32px; }
html[dir="rtl"] .hero-slider-next { right: auto; left: 32px; }
html[dir="rtl"] .lb-prev { left: auto; right: -70px; }
html[dir="rtl"] .lb-next { right: auto; left: -70px; }
html[dir="rtl"] .lb-close { right: auto; left: 0; }
html[dir="rtl"] .footer-heading::after { left: auto; right: 0; }
html[dir="rtl"] #backToTop { right: auto; left: 32px; }
html[dir="rtl"] .floating-whatsapp { right: auto; left: 24px; }
html[dir="rtl"] .loader-showcase-window { direction: ltr; }

/* Directional reveals must grow against the reading direction */
html[dir="rtl"] .service-card::before { transform-origin: right; }

/* Arrow glyphs must point to the reading direction */
html[dir="rtl"] .hf-breadcrumb .sep,
html[dir="rtl"] .footer-links a i,
html[dir="rtl"] .service-link i,
html[dir="rtl"] .hero-slider-prev i,
html[dir="rtl"] .hero-slider-next i,
html[dir="rtl"] .lb-prev i,
html[dir="rtl"] .lb-next i,
html[dir="rtl"] .loader-skip-btn i { transform: scaleX(-1); }

html[dir="rtl"] .quote-band { text-align: start; }
html[dir="rtl"] .hf-counter__num { direction: ltr; unicode-bidi: isolate; }

@media (max-width: 767px) {
  html[dir="rtl"] .about-exp-badge { right: 10px; left: auto; }
  html[dir="rtl"] #backToTop { left: 20px; right: auto; }
  html[dir="rtl"] .lb-prev { right: -10px; left: auto; }
  html[dir="rtl"] .lb-next { left: -10px; right: auto; }
}
