/* ══════════════════════════════════════════════
   ITQAAN — Editorial Light
   css/style.css
   ══════════════════════════════════════════════ */

   @font-face {
  font-family: 'DigitalKhatt';
  src: url('../fonts/DigitalKhattV2.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
.arabic {
  font-family: 'DigitalKhatt', serif;
  direction: rtl;
  unicode-bidi: embed;
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 0;
}

/* ── TOKENS ── */
:root {
  --gold:       #B8960C;
  --gold-dim:   rgba(184,150,12,0.10);
  --gold-mid:   rgba(184,150,12,0.22);
  --emerald:    #4A8C5C;
  --ivory:      #FAFAF7;
  --ivory-mid:  #F3F1EB;
  --ivory-dark: #EAE7DC;
  --ink:        #111110;
  --ink-mid:    #3A3A38;
  --ink-light:  rgba(17,17,16,0.45);
  --border:     rgba(184,150,12,0.15);
  --border-ink: rgba(17,17,16,0.09);
  --ease:       cubic-bezier(0.22,1,0.36,1);
  --r:          14px;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
}

/* ── RESET ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--ivory); overflow-x: hidden; }
body { background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
::selection { background: var(--gold); color: #fff; }

/* ── GRAIN TEXTURE overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.032;
  mix-blend-mode: multiply;
}

/* ── REVEAL ON SCROLL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; will-change: auto; }

/* ══════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center;
  padding: 18px 48px;
  background: rgba(250,250,247,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--border-ink);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 32px rgba(17,17,16,0.06); }

.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  flex-shrink: 0;
}
.nav-logo span {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--emerald);
  text-transform: uppercase;
  margin-top: -2px;
}

.nav-links {
  display: flex; gap: 4px; list-style: none;
  margin-left: auto; margin-right: 20px;
}
.nav-a {
  display: block;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  text-transform: uppercase;
  transition: color 0.25s, background 0.25s;
  position: relative; isolation: isolate;
}
@media (hover: hover) and (pointer: fine) {
  .nav-a:hover { color: var(--gold); background: var(--gold-dim); }
}

.nav-cta {
  flex-shrink: 0;
  padding: 9px 24px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover { background: var(--gold); transform: translateY(-1px); }
}

/* Mobile hamburger */
.nav-ham {
  display: none; flex-shrink: 0; margin-left: auto;
  background: none; border: 0.5px solid var(--border-ink);
  color: var(--ink); border-radius: 8px;
  width: 36px; height: 36px;
  font-size: 17px; align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-mobile {
  display: flex; flex-direction: column; gap: 4px;
  max-height: 0; overflow: hidden;
  background: rgba(250,250,247,0.98); backdrop-filter: blur(20px);
  border-bottom: 0px solid var(--border-ink);
  padding: 0 28px;
  transition: max-height 0.38s var(--ease), padding 0.3s, border-bottom-width 0.3s;
  position: sticky; top: 61px; z-index: 99;
}
.nav-mobile.open {
  max-height: 360px;
  padding: 16px 28px 20px;
  border-bottom-width: 0.5px;
}
.nav-mobile .nav-a { font-size: 0.95rem; padding: 12px 16px; border-radius: 10px; color: var(--ink-mid); }
.nav-mobile-cta {
  margin-top: 8px; padding: 14px;
  border-radius: 100px; background: var(--ink);
  color: var(--ivory); font-size: 0.9rem; font-weight: 700;
  text-align: center; display: block; letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
#hero {
  min-height: 92vh;
  display: flex; align-items: center;
  padding: 80px 48px 96px;
  position: relative;
  overflow: hidden;
}

/* Background image layer */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transform-origin: center;
  animation: kenBurns 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenBurns {
  0%   { transform: scale(1)    translateX(0%)    translateY(0%); }
  100% { transform: scale(1.08) translateX(-1.5%) translateY(-1%); }
}

/* Overlay — keeps text readable, preserves editorial light feel */
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(250,250,247,0.92) 0%,
    rgba(250,250,247,0.85) 35%,
    rgba(250,250,247,0.50) 60%,
    rgba(250,250,247,0.15) 100%
  );
}

/* Content sits above bg */
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; width: 100%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ivory-mid);
  border: 0.5px solid var(--border);
  border-radius: 100px; padding: 6px 16px;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.06em; color: var(--ink-mid);
  margin-bottom: 40px;
  text-transform: uppercase;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald); flex-shrink: 0;
  animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse { 0%,100%{opacity:1;}50%{opacity:0.4;} }

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 8.5vw, 116px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  color: var(--ink);
}
.hero-h1 .hw-wrap {
  position: relative;
  display: inline;
  color: var(--gold);
  font-style: italic;
}
.hw-svg {
  position: absolute; bottom: -10px; left: -6px;
  width: calc(100% + 12px); height: 26px;
  overflow: visible; pointer-events: none;
}
.hw-path {
  stroke: var(--gold); stroke-width: 3; fill: none;
  stroke-dasharray: 520; stroke-dashoffset: 520;
  animation: hwDraw 1.8s cubic-bezier(0.43,0.13,0.23,0.96) 0.8s forwards;
}
@keyframes hwDraw { to { stroke-dashoffset: 0; } }

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-mid);
  max-width: 480px;
  margin-bottom: 44px;
  line-height: 1.7;
  font-weight: 300;
}
.hero-sub strong { color: var(--ink-mid); font-weight: 600; }

.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: 100px;
  background: var(--ink); color: var(--ivory);
  font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--gold); transform: translateY(-2px); }
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: 100px;
  border: 1.5px solid rgba(17,17,16,0.35);
  color: var(--ink);
  font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: border-color 0.2s, transform 0.2s, color 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover { border-color: var(--gold-mid); color: var(--gold); transform: translateY(-2px); }
}

/* ══════════════════════════════════════════════
   TICKER
   ══════════════════════════════════════════════ */
.ticker-wrap {
  border-top: 0.5px solid var(--border-ink);
  border-bottom: 0.5px solid var(--border-ink);
  background: var(--ivory-mid);
  overflow: hidden; padding: 14px 0;
}
.ticker-inner { display: flex; width: max-content; animation: tickerRoll 38s linear infinite; will-change: transform; }
.ticker-group { display: flex; align-items: center; white-space: nowrap; }
.ticker-item { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mid); padding: 0 24px; }
.ticker-dot { color: var(--gold); font-size: 0.7rem; }
@keyframes tickerRoll { 0%{transform:translateX(0);}100%{transform:translateX(-50%);} }

/* ══════════════════════════════════════════════
   SECTION BASE
   ══════════════════════════════════════════════ */
section { padding: 80px 48px; }
.inner { max-width: 1200px; margin: 0 auto; width: 100%; }

.section-label {
  font-family: var(--sans);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.section-h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.05;
  margin-bottom: 16px; color: var(--ink);
}
.section-sub {
  font-size: 1.05rem; color: var(--ink-light);
  max-width: 520px; line-height: 1.7; font-weight: 300;
}

/* ══════════════════════════════════════════════
   STATS
   ══════════════════════════════════════════════ */
#stats { padding: 64px 48px; background: var(--ivory-mid); }
.stats-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 0.5px solid var(--border); border-radius: var(--r); overflow: hidden;
}
.stat-item {
  padding: 48px 44px;
  border-right: 0.5px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 700; line-height: 1;
  letter-spacing: -0.03em; margin-bottom: 10px; color: var(--ink);
}
.stat-num span { color: var(--gold); }
.stat-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-light);
}

/* ══════════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════════ */
#services { background: var(--ivory); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 52px; }

.svc-card {
  background: var(--ivory-mid);
  border: 0.5px solid var(--border-ink);
  border-radius: var(--r); padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.svc-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, var(--gold-dim) 0%, transparent 65%);
  opacity: 0; transition: opacity 0.35s;
}
@media (hover: hover) and (pointer: fine) {
  .svc-card:hover { border-color: var(--gold-mid); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(184,150,12,0.08); }
  .svc-card:hover::before { opacity: 1; }
}
.svc-card.svc-more {
  border-style: dashed; border-color: var(--border);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  cursor: pointer;
  background: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .svc-card.svc-more:hover { border-color: var(--gold-mid); border-style: solid; background: var(--gold-dim); }
}

.svc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gold-dim); border: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.svc-icon svg { width: 20px; height: 20px; color: var(--gold); stroke: var(--gold); }
.svc-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; color: var(--ink); }
.svc-desc { font-size: 0.88rem; color: var(--ink-light); line-height: 1.75; font-weight: 300; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.svc-tag {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-mid); background: var(--ivory-dark);
  border-radius: 100px; padding: 4px 12px;
  border: 0.5px solid var(--border-ink);
}
.svc-more-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
  font-size: 0.82rem; font-weight: 600; color: var(--gold);
  transition: gap 0.2s;
}
@media (hover: hover) and (pointer: fine) { .svc-more-link:hover { gap: 10px; } }

/* ══════════════════════════════════════════════
   WORK / POSTER STACK
   ══════════════════════════════════════════════ */
#work { background: var(--ivory-mid); }
.pstack-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.pstack-outer { overflow: hidden; padding: 20px 60px 20px 20px; margin: 0 auto; }
.pstack { position: relative; width: 265px; height: 370px; margin-bottom: 4px; }
.pstack-card {
  position: absolute; inset: 0; width: 265px; height: 370px;
  border-radius: 18px; overflow: hidden;
  border: 0.5px solid var(--border-ink);
  background: var(--ivory-dark);
  transition: transform 0.44s var(--ease), box-shadow 0.44s var(--ease), border-color 0.3s;
  will-change: transform; user-select: none;
}
.pstack-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pstack-card-over {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,17,16,0.75) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; opacity: 0; transition: opacity 0.3s;
}
.pstack-card[data-pos="front"] .pstack-card-over { opacity: 1; }
.pstack-card[data-pos="front"] {
  z-index: 3; transform: rotate(-4deg) translate(0px, 0px);
  border-color: var(--gold-mid);
  box-shadow: 0 20px 56px rgba(17,17,16,0.12);
  cursor: pointer;
}
.pstack-card[data-pos="middle"] { z-index: 2; transform: rotate(0deg) translate(85px, 16px); }
.pstack-card[data-pos="back"]   { z-index: 1; transform: rotate(4deg) translate(170px, 32px); }
.pstack-card-badge { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.pstack-card-hint  { font-size: 0.75rem; color: rgba(250,250,247,0.7); }
.pstack-hint { font-size: 0.82rem; color: var(--ink-light); display: flex; align-items: center; gap: 8px; }
.pstack-hint-arrow { color: var(--gold); font-size: 1rem; }
.pstack-dots { display: flex; gap: 7px; justify-content: center; }
.pstack-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-ink); transition: background 0.3s, transform 0.3s; }
.pstack-dot.active { background: var(--gold); transform: scale(1.3); }

.pg-more {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 26px; border-radius: 100px;
  border: 0.5px solid var(--border); font-size: 0.82rem;
  font-weight: 600; color: var(--gold);
  transition: background 0.25s, border-color 0.25s, transform 0.2s; margin-top: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .pg-more:hover { background: var(--gold-dim); border-color: var(--gold-mid); transform: translateY(-2px); }
}

/* ══════════════════════════════════════════════
   LIVE WORK (site badges)
   ══════════════════════════════════════════════ */
#websites { background: var(--ivory); padding: 72px 48px; }
.site-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.site-badge {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-radius: 14px;
  background: var(--ivory-mid); border: 0.5px solid var(--border-ink);
  transition: background 0.25s, border-color 0.25s, transform 0.22s;
}
@media (hover: hover) and (pointer: fine) {
  .site-badge:hover { background: var(--gold-dim); border-color: var(--gold-mid); transform: translateY(-3px); }
  .site-badge:hover .site-badge-arrow { background: var(--gold-mid); transform: rotate(-45deg); }
}
.site-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); flex-shrink: 0; }
.site-badge-text { display: flex; flex-direction: column; gap: 3px; }
.site-badge-name { font-size: 0.9rem; font-weight: 700; color: var(--ink); line-height: 1.2; white-space: nowrap; }
.site-badge-tag  { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.site-badge-arrow {
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--gold-dim); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-left: 4px;
  transition: background 0.2s, transform 0.2s;
}
.site-more { margin-top: 32px; font-size: 0.82rem; color: var(--ink-light); display: flex; align-items: center; gap: 8px; justify-content: center; }
.site-more-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-mid); }

/* ── PREVIEW STRIP ── */
.preview-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
  text-align: left;
}
.preview-card {
  border-radius: var(--r);
  border: 0.5px solid var(--border-ink);
  overflow: hidden;
  background: var(--ivory-mid);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .preview-card:hover {
    border-color: var(--gold-mid);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(184,150,12,0.10);
  }
  .preview-card:hover .preview-overlay { opacity: 1; }
  .preview-card:hover .preview-shot { transform: scale(1.04); filter: grayscale(0); }
}
.preview-frame-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--ivory-dark);
}
.preview-shot {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform 0.5s var(--ease), filter 0.3s;
  filter: grayscale(0.08);
}
.preview-overlay {
  position: absolute; inset: 0;
  background: rgba(17,17,16,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.preview-visit {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 100px;
  background: var(--ivory); color: var(--ink);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .preview-visit:hover { background: var(--gold); color: #fff; }
}
.preview-meta {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-top: 0.5px solid var(--border-ink);
}
.preview-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald); flex-shrink: 0;
}
.preview-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.preview-name { font-size: 0.85rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-tag  { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.preview-arrow {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--gold-dim); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--gold);
  transition: background 0.2s, transform 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .preview-card:hover .preview-arrow { background: var(--gold-mid); transform: rotate(-45deg); }
}

/* Poster stack placeholder */
.pstack-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ivory-dark);
  font-family: var(--serif); font-size: 1rem;
  color: var(--ink-light); letter-spacing: 0.06em;
}

/* Portrait images (contain fit) get a warm tinted bg */
.pstack-card img[style*="contain"] {
  background: var(--ivory-dark);
  padding: 12px;
}

@media (max-width: 900px) {
  .preview-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .preview-strip { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   TESTIMONIALS CAROUSEL
   ══════════════════════════════════════════════ */
#proof { background: var(--ivory-mid); padding: 80px 0; }
.tc-header { padding: 0 48px; margin-bottom: 40px; }
.tc-wrap {
  width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.tc-row { display: flex; gap: 16px; width: max-content; margin-bottom: 16px; }
.tc-row-1 { animation: tcLeft 46s linear infinite; will-change: transform; }
.tc-row-2 { animation: tcRight 52s linear infinite; will-change: transform; }
@keyframes tcLeft  { 0%{transform:translateX(0);}100%{transform:translateX(-50%);} }
@keyframes tcRight { 0%{transform:translateX(-50%);}100%{transform:translateX(0);} }
@media (hover: hover) and (pointer: fine) { .tc-row:hover { animation-play-state: paused; } }
.tc-card {
  flex-shrink: 0; width: 340px;
  background: var(--ivory); border: 0.5px solid var(--border-ink);
  border-radius: 18px; padding: 26px;
  transition: border-color 0.3s, transform 0.3s; cursor: default;
}
@media (hover: hover) and (pointer: fine) {
  .tc-card:hover { border-color: var(--gold-mid); transform: scale(1.02) rotate(0.4deg); }
}
.tc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tc-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold-dim); border: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700;
  color: var(--gold); flex-shrink: 0;
}
.tc-name { font-family: var(--serif); font-size: 1rem; font-weight: 700; margin-bottom: 2px; color: var(--ink); }
.tc-role { font-size: 0.72rem; color: var(--ink-light); font-weight: 500; letter-spacing: 0.03em; }
.tc-stars { display: flex; gap: 2px; margin-left: auto; }
.tc-star { color: var(--gold); font-size: 0.75rem; }
.tc-text { font-size: 0.88rem; color: var(--ink-mid); line-height: 1.75; font-style: italic; font-weight: 300; }
.tc-hl { color: var(--gold); font-style: normal; font-weight: 600; }

/* ══════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════ */
#about { background: var(--ivory); }
.about-grid { display: flex; flex-direction: row; gap: 80px; align-items: flex-start; }
.about-img-wrap { flex: 0 0 300px; width: 300px; position: relative; }
.about-img-frame {
  width: 100%; aspect-ratio: 3/4;
  border-radius: 20px; border: 0.5px solid var(--border-ink);
  overflow: hidden; background: var(--ivory-dark); position: relative;
}
.about-img-frame::after {
  content: ''; position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(to bottom, transparent 70%, rgba(17,17,16,0.08) 100%);
  pointer-events: none;
}
.about-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* placeholder styling when no photo */
.about-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--ivory-dark);
}
.about-img-placeholder span:first-child {
  font-family: var(--serif); font-size: 4rem; color: var(--border);
}
.about-img-placeholder span:last-child {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-light); font-weight: 500;
}

.about-img-badge {
  position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--ivory);
  border-radius: 12px; padding: 12px 20px;
  font-size: 0.78rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
  box-shadow: 0 10px 28px rgba(17,17,16,0.14);
}
.about-img-badge span { display: block; font-weight: 400; font-size: 0.68rem; opacity: 0.6; margin-top: 2px; }

.about-text { flex: 1; min-width: 0; padding-top: 8px; }
.about-text p { font-size: 0.96rem; color: var(--ink-mid); line-height: 1.82; margin-bottom: 16px; font-weight: 300; }
.about-text p strong { color: var(--ink); font-weight: 600; }

.hadith-block {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 2px solid var(--gold);
  background: var(--gold-dim);
  border-radius: 0 10px 10px 0;
}
.hadith-block p {
  font-family: var(--serif); font-size: 1.05rem;
  font-style: italic; color: var(--ink-mid);
  margin: 0; line-height: 1.7;
}
.hadith-block cite {
  display: block; margin-top: 8px;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); font-style: normal; font-weight: 600;
}

.about-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 100px; padding: 7px 16px;
  background: var(--ivory-mid); border: 0.5px solid var(--border-ink); color: var(--ink-mid);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
@media (hover: hover) and (pointer: fine) {
  .chip:hover { border-color: var(--gold-mid); color: var(--gold); background: var(--gold-dim); }
}

/* ══════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════ */
#contact { background: var(--ivory-dark); }
.contact-box { max-width: 620px; margin: 0 auto; text-align: center; }
.contact-box .section-h2 { margin-bottom: 14px; }
.contact-box .section-sub { margin: 0 auto 40px; }

/* Slide to WhatsApp */
.wa-slide {
  position: relative; width: 290px; height: 58px; border-radius: 100px;
  background: var(--ivory-mid); border: 0.5px solid rgba(74,140,92,0.3);
  overflow: hidden; cursor: pointer; margin: 0 auto 20px;
  animation: waSlidePulse 3s ease-in-out infinite;
  box-shadow: 0 4px 24px rgba(17,17,16,0.06);
}
.wa-slide-fill {
  position: absolute; inset: 0; border-radius: 100px;
  background: var(--emerald); transform: scaleX(0); transform-origin: left;
  transition: transform 0.06s; pointer-events: none;
}
.wa-slide-handle {
  position: absolute; left: 0; top: 0; width: 58px; height: 58px; border-radius: 100px;
  background: var(--emerald); display: flex; align-items: center; justify-content: center;
  cursor: grab; z-index: 2; touch-action: none;
}
.wa-slide-handle:active { cursor: grabbing; }
.wa-slide-label {
  position: absolute; left: 70px; right: 14px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-mid);
  pointer-events: none; line-height: 58px; white-space: nowrap;
  transition: opacity 0.2s; letter-spacing: 0.03em;
}
.wa-slide-done {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700; color: #fff;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
@keyframes waSlidePulse {
  0%,100%{box-shadow:0 4px 24px rgba(17,17,16,0.06), 0 0 0 0 rgba(74,140,92,0);}
  50%{box-shadow:0 4px 24px rgba(17,17,16,0.06), 0 0 0 8px rgba(74,140,92,0.08);}
}

.contact-or { font-size: 0.72rem; color: var(--ink-light); margin: 16px 0; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; border-radius: 100px;
  border: 0.5px solid var(--border-ink); color: var(--ink-mid);
  font-size: 0.88rem; font-weight: 500;
  transition: border-color 0.2s, transform 0.2s, color 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .contact-email:hover { border-color: var(--gold-mid); color: var(--gold); transform: translateY(-2px); }
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
footer {
  background: var(--ink); padding: 36px 48px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; position: relative; overflow: hidden;
}
footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 50%; height: 2px;
  background: var(--gold);
}
footer::after {
  content: ''; position: absolute; top: 0; left: 50%; right: 0; height: 2px;
  background: var(--emerald);
}
.footer-logo {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--ivory);
}
.footer-logo span { display: block; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.18em; color: var(--emerald); text-transform: uppercase; margin-top: 2px; }
.footer-copy { font-size: 0.78rem; color: rgba(250,250,247,0.4); letter-spacing: 0.04em; }

/* ══════════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════════ */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(17,17,16,0.88); backdrop-filter: blur(10px);
  align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox-img { max-width: 90vw; max-height: 88vh; border-radius: 14px; object-fit: contain; }
#lightbox-close {
  position: fixed; top: 24px; right: 28px; font-size: 22px; color: rgba(250,250,247,0.6);
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(250,250,247,0.08); cursor: pointer; transition: background 0.2s;
}
@media (hover: hover) and (pointer: fine) { #lightbox-close:hover { background: rgba(250,250,247,0.16); } }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-ham { display: flex; }
  #hero { padding: 60px 24px 72px; min-height: 88vh; }
  section { padding: 60px 24px; }
  #stats { padding: 52px 24px; }
  #websites { padding: 60px 24px; }
  #proof { padding: 60px 0; }
  .tc-header { padding: 0 24px; }
  .stats-grid { grid-template-columns: 1fr; border: none; gap: 1px; }
  .stat-item { border-right: none; border-bottom: 0.5px solid var(--border); border-radius: 0; padding: 28px 24px; }
  .stat-item:last-child { border-bottom: none; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { flex-direction: column; gap: 52px; }
  .about-img-wrap { flex: 0 0 auto; width: 100%; max-width: 280px; margin: 0 auto; }
  footer { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .hero-sub { color: var(--ink-mid); }
  .contact-box {
    background: var(--ivory);
    border-radius: 20px;
    padding: 36px 22px;
    border: 0.5px solid var(--border-ink);
    box-shadow: 0 8px 36px rgba(17,17,16,0.07);
  }
  .wa-slide { border-color: rgba(74,140,92,0.45); box-shadow: 0 4px 20px rgba(74,140,92,0.10); }
}
@media (max-width: 600px) {
  .hero-h1 { font-size: clamp(42px, 12vw, 64px); }
  .hero-sub { font-size: 0.96rem; }
  .btn-primary, .btn-secondary { padding: 13px 24px; font-size: 0.82rem; }
  .pstack { width: 230px; height: 320px; }
  .pstack-card { width: 230px; height: 320px; }
  .pstack-card[data-pos="middle"] { transform: rotate(0deg) translate(68px, 14px); }
  .pstack-card[data-pos="back"]   { transform: rotate(4deg) translate(136px, 28px); }
  .tc-card { width: 290px; }
  .wa-slide { width: 265px; }
}
@media (max-width: 900px) {
  .hero-bg-overlay {
    background: linear-gradient(
      180deg,
      rgba(250,250,247,0.94) 0%,
      rgba(250,250,247,0.90) 50%,
      rgba(250,250,247,0.86) 100%
    );
  }
}