/* ================================================================
   RAMALLAH DIGITAL — ABOUT US PAGE
   Playsoru-inspired cinematic hero + premium two-col layout
   Brand: Red #C5232D | Deep #0d1117 | White #f8f6f0
   ================================================================ */

:root {
  --ab-brand:      #C5232D;
  --ab-brand-dim:  #7A1218;
  --ab-brand-glow: rgba(197,35,45,0.30);
  --ab-deep:       #0d1117;
  --ab-card:       #131722;
  --ab-white:      #f8f6f0;
  --ab-muted:      rgba(248,246,240,0.62);
  --ab-border:     rgba(197,35,45,0.18);
  --ab-tr:         0.45s cubic-bezier(0.16,1,0.3,1);
}

/* ================================================================
   LANG TOGGLE BUTTON (fixed)
   ================================================================ */
#langToggleHome {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
  padding: 0.45rem 1.2rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  cursor: pointer;
  border: 1.5px solid var(--ab-brand);
  background: rgba(197,35,45,0.06);
  color: var(--ab-brand);
  transition: var(--ab-tr);
  backdrop-filter: blur(8px);
}
#langToggleHome:hover {
  background: var(--ab-brand);
  color: #fff;
  box-shadow: 0 8px 28px var(--ab-brand-glow);
}

/* ================================================================
   HERO
   ================================================================ */
.ab-hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ab-deep);
}

/* background image layer */
.ab-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/images/services_img/Documentary_film_industry.jpg') center / cover no-repeat;
  z-index: 0;
  transform: scale(1.06);
  transition: transform 9s ease;
}
.ab-hero:hover::before { transform: scale(1.01); }

/* gradient overlay — dark at bottom, lighter at top */
.ab-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(13,17,23,0.52) 0%,
      rgba(13,17,23,0.72) 55%,
      rgba(13,17,23,0.97) 100%
    );
  z-index: 1;
}

/* red accent line */
.ab-hero-overlay::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--ab-brand) 50%, transparent 100%);
  opacity: 0.55;
}

.ab-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 2rem 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* { label } */
.ab-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ab-brand);
  font-family: "Montserrat", "Cairo", sans-serif;
  opacity: 0.9;
}
.ab-hero-label .brace { color: rgba(197,35,45,0.55); }

/* giant title */
.ab-hero-title {
  font-size: clamp(3.2rem, 7.5vw, 6rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1.0;
  text-shadow: 0 6px 60px rgba(0,0,0,0.7);
  margin: 0;
  font-family: "Cairo", "Playfair Display", sans-serif;
}

/* subtitle */
.ab-hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.58);
  font-weight: 400;
  max-width: 580px;
  line-height: 1.75;
  font-family: "Tajawal", sans-serif;
}

/* breadcrumb bar */
.ab-hero-breadcrumb {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.85rem 2rem;
  background: rgba(13,17,23,0.55);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ab-hero-breadcrumb a {
  color: rgba(255,255,255,0.60);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  transition: color 0.25s;
  font-family: "Montserrat", "Cairo", sans-serif;
}
.ab-hero-breadcrumb a:hover { color: #fff; }

.ab-bc-sep { color: rgba(255,255,255,0.28); font-size: 0.85rem; }

.ab-bc-active {
  background: var(--ab-brand);
  color: #fff;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 1.2rem;
  border-radius: 30px;
  font-family: "Montserrat", "Cairo", sans-serif;
  box-shadow: 0 4px 20px rgba(197,35,45,0.42);
}

/* ================================================================
   STORY SECTION — Two-Column Layout
   ================================================================ */
.ab-story {
  position: relative;
  padding: 110px 80px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
  background: var(--ab-deep);
}

/* top separator line */
.ab-story::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ab-border), transparent);
}

/* subtle brand glow bottom-left */
.ab-story::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(197,35,45,0.055) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Text column ── */
.ab-story-text { position: relative; z-index: 1; }

.ab-story-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.70rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--ab-brand);
  margin-bottom: 1.4rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}
.ab-story-label .brace { color: rgba(197,35,45,0.5); }

.ab-story-heading {
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  font-weight: 900;
  color: var(--ab-white);
  line-height: 1.22;
  margin-bottom: 1.6rem;
  font-family: "Cairo", sans-serif;
}
.ab-story-heading .hl { color: var(--ab-brand); }

.ab-story-body {
  color: var(--ab-muted);
  font-size: 0.98rem;
  line-height: 1.95;
  margin-bottom: 2rem;
  font-family: "Tajawal", sans-serif;
}

/* founded / years strip */
.ab-story-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 1.8rem;
  border: 1px solid var(--ab-border);
  border-radius: 8px;
  background: rgba(197,35,45,0.05);
  margin-bottom: 2.2rem;
  width: fit-content;
}

.ab-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.ab-strip-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ab-brand);
  line-height: 1;
  font-family: "Montserrat", sans-serif;
}

.ab-strip-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(248,246,240,0.48);
  font-family: "Montserrat", sans-serif;
  white-space: nowrap;
}

.ab-strip-div {
  width: 1px;
  height: 50px;
  background: var(--ab-border);
  flex-shrink: 0;
}

/* CTA button */
.ab-story-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 2.2rem;
  background: var(--ab-brand);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  transition: background var(--ab-tr), transform var(--ab-tr), box-shadow var(--ab-tr);
  font-family: "Cairo", sans-serif;
}
.ab-story-cta:hover {
  background: var(--ab-brand-dim);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px var(--ab-brand-glow);
  color: #fff;
}

/* ── Visual column ── */
.ab-story-visual {
  position: relative;
  z-index: 1;
}

.ab-story-img-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}

.ab-story-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) contrast(1.08) saturate(0.92);
  transition: transform 0.75s ease, filter 0.5s;
}
.ab-story-img-wrap:hover img {
  transform: scale(1.04);
  filter: brightness(0.95) contrast(1.08) saturate(0.92);
}

/* double-border frame — offset from image */
.ab-story-frame {
  position: absolute;
  inset: -14px;
  border: 1.5px solid rgba(197,35,45,0.22);
  border-radius: 6px;
  z-index: -1;
  pointer-events: none;
}

.ab-story-frame-2 {
  position: absolute;
  inset: -26px;
  border: 1px solid rgba(197,35,45,0.10);
  border-radius: 8px;
  z-index: -2;
  pointer-events: none;
}

/* years circle badge */
.ab-exp-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  width: 116px;
  height: 116px;
  background: var(--ab-brand);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 36px rgba(197,35,45,0.55), 0 0 0 6px rgba(197,35,45,0.12);
  z-index: 3;
}

.ab-exp-badge .exp-num {
  font-size: 2.1rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-family: "Montserrat", sans-serif;
}

.ab-exp-badge .exp-lbl {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  text-align: center;
  font-family: "Montserrat", sans-serif;
}

/* image caption tag */
.ab-story-tag {
  position: absolute;
  top: 24px;
  right: -18px;
  background: var(--ab-card);
  border: 1px solid var(--ab-border);
  border-radius: 6px;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  z-index: 3;
}

.ab-story-tag .tag-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ab-brand);
  box-shadow: 0 0 0 3px rgba(197,35,45,0.25);
  animation: tag-pulse 2s ease infinite;
}

@keyframes tag-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(197,35,45,0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(197,35,45,0.10); }
}

.ab-story-tag span {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--ab-white);
  letter-spacing: 0.5px;
  font-family: "Montserrat", "Cairo", sans-serif;
}

/* ================================================================
   ALT LAYOUT — flips columns (image right, text left in RTL)
   ================================================================ */
.ab-story--alt {
  /* in RTL grid: column-1 = right, column-2 = left.
     Alt: push visual to column-1 (right) and text to column-2 (left) */
}

.ab-story--alt .ab-story-visual { order: 1; }
.ab-story--alt .ab-story-text   { order: 2; }

/* Flip the tag to the left side for alt layout */
.ab-story--alt .ab-story-tag {
  right: auto;
  left: -18px;
}

/* Flip the badge to the right side for alt layout */
.ab-story--alt .ab-exp-badge {
  left: auto;
  right: -24px;
}

/* Slightly darker background for alternating sections */
.ab-story--dark {
  background: #0a0a0f;
}
.ab-story--dark::after {
  left: auto;
  right: 0;
}

/* Section separator with a bolder red center */
.ab-story + .ab-story::before {
  background: linear-gradient(90deg, transparent, rgba(197,35,45,0.35), transparent);
}

/* ================================================================
   WRAPPER (about, values, team sections from partials)
   Gives correct dark background & spacing
   ================================================================ */
.ab-sections-wrapper {
  background: #0a0a0a;
}

/* reduce top padding on about section when standalone */
.ab-sections-wrapper .about {
  padding-top: 80px;
}

/* ================================================================
   PAGE ANIMATE — same as home.js triggers
   ================================================================ */
.ab-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.ab-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .ab-story {
    gap: 60px;
    padding: 80px 50px;
  }
}

@media (max-width: 900px) {
  .ab-story {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 70px 30px;
  }

  /* visual always on top in mobile — reset order */
  .ab-story-visual         { order: -1 !important; }
  .ab-story-text           { order: 0  !important; }

  .ab-story-img-wrap { aspect-ratio: 16 / 9; }

  .ab-exp-badge {
    width: 88px; height: 88px;
    bottom: -16px; left: -12px !important; right: auto !important;
  }
  .ab-exp-badge .exp-num { font-size: 1.6rem; }

  .ab-story-tag { right: 8px !important; left: auto !important; top: 12px; }
}

@media (max-width: 600px) {
  .ab-hero { min-height: 340px; }
  .ab-hero-title { letter-spacing: -0.5px; }
  .ab-story { padding: 50px 20px; gap: 40px; }
  .ab-strip-num { font-size: 1.7rem; }
}
