/* ═══════════════════════════════════════════════════════════════════
   أثر ميديا — style.css v3.0
   Dark cinematic agency layout inspired by wavemedia.ae structure
   ═══════════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────────── */
:root {
  --bg: #0b1513;
  --surface: #13231f;
  --card: #1b2e29;
  --card-hover: #26413C;
  --border: rgba(214,198,167,0.13);
  --border-hover: rgba(214,198,167,0.48);
  --gold: #D6C6A7;
  --gold-2: #A35B53;
  --gold-glow: rgba(214,198,167,0.16);
  --text: #F4F0E8;
  --muted: rgba(244,240,232,0.68);
  --radius: 18px;
  --radius-sm: 10px;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; background: var(--bg); }
body {
  font-family: "Tajawal", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── Helpers ────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px,5vw,64px); }
.section { padding: clamp(80px,10vw,140px) 0; }
.eyebrow { color: var(--gold); font-size: clamp(13px,1.4vw,17px); font-weight: 800; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; display: block; }
.body-text { font-size: clamp(16px,1.8vw,22px); line-height: 1.9; color: var(--muted); margin-bottom: 18px; }
.grain {
  position: absolute; inset: 0; z-index: 2; opacity: .12; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* ── Reveal Animations ──────────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.85s cubic-bezier(.2,.9,.2,1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(.2,.9,.2,1);
}
.reveal-up.visible, .reveal-right.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }
.d6 { transition-delay: 0.6s; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 16px;
  cursor: pointer; border: none; transition: all 0.3s ease;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: #0a0a0a; }
.btn-gold:hover { background: var(--gold-2); transform: translate(var(--mx,0px), calc(var(--my,0px) - 2px)); box-shadow: 0 12px 40px rgba(214,198,167,0.35); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid rgba(255,255,255,0.25); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translate(var(--mx,0px), var(--my,0px)); }
.btn-lg { padding: 17px 36px; font-size: 18px; }

/* ── Physics Intro ──────────────────────────────────────────────── */
/* Canvas covers the screen from the first paint — no white flash */
#introCanvas {
  position: fixed; inset: 0; z-index: 99999;
  display: none; /* JS shows this ONLY when animation is ready to start */
  background: #020202;
  width: 100vw; height: 100vh;
}

/* While intro runs, freeze CSS transitions on hero reveals so
   GSAP can play them cleanly after the canvas fades out          */
html.intro-on .hero .reveal-up,
html.intro-on .hero .reveal-right {
  transition: none !important;
}

/* ── Loader ─────────────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #020202;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--gold);
  border-right-color: rgba(214,198,167,.3);
  animation: spin 1s linear infinite;
}
.loader-logo {
  position: absolute;
  color: var(--gold); font-weight: 900; font-size: 24px;
  animation: pulse 2s ease infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ── Progress bar ───────────────────────────────────────────────── */
.progress-line {
  position: fixed; right: 0; top: 0; width: 2px; height: 100vh;
  z-index: 100; background: rgba(255,255,255,0.08);
}
.progress-line span {
  display: block; width: 100%; height: 0; background: var(--gold);
  transition: height 0.05s linear;
}

/* ── Header ─────────────────────────────────────────────────────── */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.header.scrolled {
  background: rgba(8,8,8,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.header.hide { transform: translateY(-100%); }
.header-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 22px clamp(18px,5vw,64px);
}
.brand {
  font-weight: 900; font-size: 20px; white-space: nowrap;
  margin-inline-end: auto;
}
.brand span { font-size: 11px; color: var(--muted); margin-inline-start: 8px; font-weight: 400; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 15px; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.btn-nav {
  padding: 10px 24px; border-radius: 999px;
  background: var(--gold); color: #0a0a0a;
  font-weight: 700; font-size: 14px;
  transition: all 0.3s; white-space: nowrap;
}
.btn-nav:hover { background: var(--gold-2); transform: translate(var(--mx,0px), calc(var(--my,0px) - 1px)); }
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.menu-toggle span {
  display: block; width: 24px; height: 1.5px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}

/* ── Mobile Menu ────────────────────────────────────────────────── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 75;
  background: rgba(8,8,8,0.98); backdrop-filter: blur(20px);
  padding: 100px 32px 40px;
  opacity: 0; transform: translateY(-20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.mobile-menu.open {
  display: flex; flex-direction: column;
  opacity: 1; transform: translateY(0);
  pointer-events: all;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 24px; }
.mobile-menu a { font-size: 26px; font-weight: 700; color: var(--muted); transition: color 0.2s; }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .mobile-cta { color: var(--gold); margin-top: 16px; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 60% 40%, rgba(0,0,0,0.1), rgba(0,0,0,.72) 70%),
              linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.15) 50%, rgba(8,8,8,0.8) 100%);
}
.hero-body {
  position: relative; z-index: 5;
  text-align: center;
  padding: 120px clamp(20px,6vw,80px) 80px;
  max-width: 1000px;
}
.hero-eye {
  font-size: clamp(13px,1.5vw,17px); font-weight: 700;
  letter-spacing: 4px; color: var(--gold); text-transform: uppercase;
  margin-bottom: 20px; display: block;
}
.hero-title {
  font-size: clamp(56px,10vw,145px); font-weight: 900;
  line-height: 1.02; text-wrap: balance; margin-bottom: 24px;
}
.hero-title em {
  font-style: normal; color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
}
.hero-sub {
  font-size: clamp(17px,2vw,26px); color: var(--muted);
  max-width: 640px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); font-size: 12px; letter-spacing: 2px;
}
.hero-scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scroll-line 1.8s ease infinite;
}
@keyframes scroll-line { 0%,100% { opacity: 0.3; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.2); } }

/* ── Ticker ─────────────────────────────────────────────────────── */
.ticker {
  background: var(--gold); overflow: hidden;
  padding: 16px 0; user-select: none;
}
.ticker-track { overflow: hidden; }
.ticker-inner {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    direction: ltr;
    animation: ticker-scroll 12s linear infinite;
}
.ticker-inner span {
  font-size: 15px; font-weight: 700; color: #0a0a0a;
}
.ticker-inner .sep { font-size: 10px; color: rgba(10,10,10,0.5); }
@keyframes ticker-scroll {
0% { transform: translateX(-50%); }
100% { transform: translateX(0); }
}
.ticker:hover .ticker-inner { animation-play-state: paused; }

/* ── About ──────────────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,100px);
  align-items: center;
}
.about-text h2 {
  font-size: clamp(32px,4.5vw,66px); font-weight: 900; line-height: 1.22;
  margin-bottom: 36px;
}
.stats {
  display: flex; gap: 32px; margin: 40px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat strong { font-size: clamp(28px,3.5vw,48px); font-weight: 900; color: var(--gold); }
.stat span { font-size: 14px; color: var(--muted); font-weight: 500; }
.about-img-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/5;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; bottom: 24px; right: 24px;
  background: rgba(8,8,8,0.88); backdrop-filter: blur(12px);
  border: 1px solid var(--border-hover); border-radius: var(--radius-sm);
  padding: 16px 20px; display: flex; flex-direction: column; gap: 4px;
}
.badge-num { font-size: 32px; font-weight: 900; color: var(--gold); }
.badge-label { font-size: 12px; color: var(--muted); max-width: 120px; line-height: 1.5; }

/* ── Services ───────────────────────────────────────────────────── */
.services { background: var(--surface); }
.section-head { text-align: center; margin-bottom: clamp(48px,6vw,80px); }
.section-head h2 { font-size: clamp(32px,4.5vw,66px); font-weight: 900; line-height: 1.22; margin-bottom: 20px; }
.section-sub { font-size: clamp(16px,1.8vw,22px); color: var(--muted); max-width: 580px; margin: 0 auto; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.svc-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(24px,3vw,38px);
  display: flex; flex-direction: column; gap: 14px;
  transition: all 0.4s cubic-bezier(.2,.9,.2,1);
  position: relative; overflow: hidden;
}
.svc-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold-glow), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.svc-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px) rotateX(var(--ry,0deg)) rotateY(var(--rx,0deg));
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.svc-card:hover::before { opacity: 1; }
.svc-top { display: flex; justify-content: space-between; align-items: center; }
.svc-num { font-size: 13px; font-weight: 800; color: var(--gold); letter-spacing: 2px; }
.svc-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); display: grid; place-items: center;
  color: var(--muted); font-size: 14px;
  transition: all 0.3s;
}
.svc-card:hover .svc-arrow {
  background: var(--gold); border-color: var(--gold); color: #0a0a0a;
  transform: rotate(-45deg);
}
.svc-card h3 { font-size: clamp(18px,2vw,24px); font-weight: 800; line-height: 1.3; }
.svc-card p { font-size: clamp(14px,1.4vw,17px); color: var(--muted); line-height: 1.75; flex: 1; }
.svc-link { font-size: 14px; font-weight: 700; color: var(--gold); transition: gap 0.2s; }
.svc-link:hover { text-decoration: underline; }

/* ── Portfolio ──────────────────────────────────────────────────── */
.port-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  grid-template-rows: 480px 280px;
  gap: 12px;
}
.port-item {
  border-radius: var(--radius); overflow: hidden;
  background-size: cover; background-position: center;
  position: relative; cursor: pointer;
}
.port-item.large { grid-row: 1 / 3; }
.port-item:nth-child(3),
.port-item:nth-child(4) { }
.port-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 50%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; opacity: 0; transition: opacity 0.4s;
}
.port-item:hover .port-overlay { opacity: 1; }
.port-tag {
  display: inline-block; background: var(--gold); color: #0a0a0a;
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  margin-bottom: 8px; width: fit-content;
}
.port-overlay h3 { font-size: clamp(18px,2vw,26px); font-weight: 800; }
.port-item::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.4s;
}
.port-item:hover::after { background: rgba(0,0,0,0.1); }

/* ── Process ────────────────────────────────────────────────────── */
.process { background: var(--surface); }
.process-wrap {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px,6vw,100px);
  align-items: start;
}
.process-left h2 {
  font-size: clamp(30px,4vw,58px); font-weight: 900;
  line-height: 1.24; margin-bottom: 28px;
}
.process-img-wrap {
  margin-top: 40px; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9;
}
.process-steps { display: flex; flex-direction: column; }
.step {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.step:first-child { border-top: 1px solid var(--border); }
.step-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; cursor: pointer; gap: 16px;
  transition: color 0.2s;
}
.step-hd:hover { color: var(--gold); }
.step-meta { display: flex; align-items: center; gap: 20px; flex: 1; }
.step-n {
  font-size: 13px; font-weight: 800; color: var(--muted);
  letter-spacing: 2px; min-width: 28px; transition: color 0.3s;
}
.step.active .step-n { color: var(--gold); }
.step-meta h3 { font-size: clamp(16px,1.8vw,21px); font-weight: 700; }
.step-ico {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 18px; color: var(--muted);
  transition: all 0.35s; flex-shrink: 0;
  line-height: 1;
}
.step.active .step-ico {
  background: var(--gold); border-color: var(--gold);
  color: #0a0a0a; transform: rotate(45deg);
}
.step-bd {
  max-height: 0; overflow: hidden;
  transition: max-height 0.45s cubic-bezier(.2,.9,.2,1);
  padding: 0;
}
.step.active .step-bd { max-height: 240px; }
.step-bd p {
  font-size: clamp(15px,1.5vw,18px); color: var(--muted); line-height: 1.85;
  padding-bottom: 8px;
}
.step-cta {
  display: inline-block; font-size: 14px; font-weight: 700;
  color: var(--gold); margin: 10px 0 20px;
  transition: gap 0.2s;
}
.step-cta:hover { text-decoration: underline; }

/* ── Testimonials ───────────────────────────────────────────────── */
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.testi-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(24px,3vw,36px);
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color 0.3s, transform 0.3s;
}
.testi-card:hover { border-color: var(--border-hover); transform: translateY(-4px) rotateX(var(--ry,0deg)) rotateY(var(--rx,0deg)); }
.testi-stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.testi-card blockquote {
  font-size: clamp(15px,1.5vw,18px); line-height: 1.85;
  color: var(--muted); flex: 1;
  quotes: "\"" "\"";
}
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-ava {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold-glow); border: 1px solid var(--border-hover);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--gold);
  flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 15px; margin-bottom: 3px; }
.testi-author span { font-size: 13px; color: var(--muted); }

/* ── CTA Section ────────────────────────────────────────────────── */
.cta-section {
  position: relative; padding: clamp(100px,14vw,180px) 0;
  overflow: hidden; text-align: center;
}
.cta-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.cta-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(8,8,8,0.78);
}
.cta-body { position: relative; z-index: 5; }
.cta-body h2 { font-size: clamp(42px,7vw,100px); font-weight: 900; margin-bottom: 16px; }
.cta-body p { font-size: clamp(17px,2vw,26px); color: var(--muted); margin-bottom: 36px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: #050505; border-top: 1px solid var(--border);
  padding: clamp(60px,8vw,100px) 0 0;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px,4vw,60px); padding-bottom: clamp(48px,6vw,80px);
  border-bottom: 1px solid var(--border);
}
.footer-logo { font-size: 28px; font-weight: 900; margin-bottom: 14px; }
.brand-col p { font-size: 15px; color: var(--muted); line-height: 1.75; max-width: 300px; margin-bottom: 24px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); display: grid; place-items: center;
  color: var(--muted); transition: all 0.3s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h4 { font-size: 14px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.footer-col a, .footer-col p { display: block; font-size: 15px; color: var(--muted); margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: 13px; color: var(--muted);
}
.footer-en { font-weight: 700; letter-spacing: 3px; }

/* ── WhatsApp float ─────────────────────────────────────────────── */
.float-wa {
  position: fixed; left: 22px; bottom: 22px; z-index: 60;
  background: #20b15a; color: #fff; display: flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 32px rgba(32,177,90,0.36); transition: all 0.3s;
  animation: wa-pulse-ring 3.4s ease-out infinite;
}
.float-wa:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(32,177,90,0.46); animation-play-state: paused; }
@keyframes wa-pulse-ring {
  0%, 60%, 100% { box-shadow: 0 8px 32px rgba(32,177,90,0.36), 0 0 0 0 rgba(32,177,90,0.45); }
  75% { box-shadow: 0 8px 32px rgba(32,177,90,0.36), 0 0 0 13px rgba(32,177,90,0); }
}
@media (prefers-reduced-motion: reduce) { .float-wa { animation: none; } }

/* ═══ RESPONSIVE ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav, .btn-nav { display: none; }
  .menu-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .reveal-right { transform: translateY(22px); }
  .about-visual { order: -1; }
  .about-img-wrap { aspect-ratio: 3/2; }
  .services-grid { grid-template-columns: 1fr; }
  .port-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 300px 220px 220px 220px;
  }
  .port-item.large { grid-row: auto; }
  .port-overlay { opacity: 1; }
  .process-wrap { grid-template-columns: 1fr; }
  .process-img-wrap { display: none; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .stats { gap: 20px; }
  .hero-title em { -webkit-text-stroke-width: 1px; }
  .header-inner { padding: 16px clamp(18px,4vw,32px); }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .cta-btns { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; }
}

/* Hero CTA: keep View Our Work on desktop, use Quote Request on mobile */
.hero-quote-btn { display: none; }

/* ===== Mobile-only fixes: keep desktop unchanged ===== */
@media (max-width: 768px) {
  .hero-work-btn { display: none !important; }
  .hero-quote-btn { display: inline-flex !important; }

  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }

  #introCanvas {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    inset: 0 !important;
  }

  .section { padding: 72px 0 !important; }
  .container { padding-inline: 22px !important; }

  .about-grid,
  .process-wrap {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .about-text h2,
  .process-left h2,
  .section-head h2 {
    font-size: clamp(32px, 8.6vw, 42px) !important;
    line-height: 1.28 !important;
    margin-bottom: 22px !important;
    letter-spacing: 0 !important;
    position: relative;
    z-index: 2;
  }

  .body-text,
  .section-sub {
    font-size: 17px !important;
    line-height: 1.9 !important;
    margin-top: 0 !important;
    position: relative;
    z-index: 2;
  }

  .section-head { margin-bottom: 36px !important; }
  .process-left { margin-bottom: 8px !important; }
  .process-steps { margin-top: 8px !important; }

  .reveal-up.visible,
  .reveal-right.visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .about-text h2,
  .process-left h2,
  .section-head h2 {
    font-size: clamp(30px, 9vw, 38px) !important;
    line-height: 1.32 !important;
  }
}


/* SEO additions v8 */
.faq-section { background: var(--surface); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px,2vw,26px);
}
.faq-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px,3vw,34px);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.faq-card:hover { border-color: var(--border-hover); transform: translateY(-4px) rotateX(var(--ry,0deg)) rotateY(var(--rx,0deg)); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.faq-card h3 { font-size: clamp(19px,2vw,26px); line-height: 1.35; margin-bottom: 12px; color: var(--text); }
.faq-card p { color: var(--muted); line-height: 1.85; font-size: 16px; }
.service-page-hero { min-height: 72vh; display: flex; align-items: center; position: relative; padding-top: 120px; background: radial-gradient(circle at 70% 20%, rgba(212,160,90,.13), transparent 34%), var(--bg); }
.service-page-hero h1 { font-size: clamp(42px,7vw,86px); line-height: 1.12; font-weight: 900; max-width: 980px; margin-bottom: 22px; }
.service-page-hero p { max-width: 760px; }
.service-benefits { background: var(--surface); }
.service-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(16px,2vw,26px); }
.service-detail-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px,3vw,34px); }
.service-detail-card span { color: var(--gold); font-weight: 900; letter-spacing: 2px; display: block; margin-bottom: 14px; }
.service-detail-card h2, .service-detail-card h3 { font-size: clamp(20px,2vw,28px); line-height: 1.35; margin-bottom: 12px; }
.service-detail-card p { color: var(--muted); line-height: 1.85; }
.breadcrumbs { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.breadcrumbs a { color: var(--gold); }
@media (max-width: 900px) { .service-detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .faq-grid { grid-template-columns: 1fr; } .service-page-hero { min-height: auto; padding-top: 120px; } }


/* ── Brand Identity Section ─────────────────────────────────────── */
.brand-story-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(163,91,83,.14), transparent 32%),
    radial-gradient(circle at 82% 72%, rgba(214,198,167,.11), transparent 34%),
    var(--bg);
}
.brand-pill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.brand-pill {
  position: relative;
  background: linear-gradient(145deg, rgba(244,240,232,.055), rgba(244,240,232,.025));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 38px);
  min-height: 100%;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.brand-pill:hover {
  transform: translateY(-5px) rotateX(var(--ry,0deg)) rotateY(var(--rx,0deg));
  border-color: var(--border-hover);
  box-shadow: 0 24px 60px rgba(0,0,0,.32);
}
.brand-pill span {
  display: inline-flex;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.brand-pill h3 {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.35;
  margin-bottom: 14px;
}
.brand-pill p {
  color: var(--muted);
  line-height: 1.9;
  font-size: clamp(15px, 1.5vw, 17px);
}
.brand-values-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.brand-values-grid article {
  background: rgba(244,240,232,.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.brand-values-grid strong {
  display: block;
  color: var(--gold);
  font-size: 18px;
  margin-bottom: 10px;
}
.brand-values-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.insights-section { background: var(--surface); }
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(16px,2vw,26px);
}
.insight-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px,3vw,34px);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.insight-card:hover { transform: translateY(-4px) rotateX(var(--ry,0deg)) rotateY(var(--rx,0deg)); border-color: var(--border-hover); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.insight-card span { display:block; color: var(--gold); font-size:13px; font-weight:900; letter-spacing:2px; margin-bottom:12px; }
.insight-card h3 { font-size: clamp(19px,2vw,27px); line-height: 1.35; margin-bottom: 12px; }
.insight-card p { color: var(--muted); line-height: 1.85; font-size: 16px; margin-bottom: 16px; }
.insight-card a { color: var(--gold); font-weight: 800; }
@media (max-width: 1024px) {
  .brand-values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insights-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .brand-pill-grid { grid-template-columns: 1fr; }
  .brand-values-grid { grid-template-columns: 1fr; }
}

.local-seo{padding-top:70px;padding-bottom:70px}.local-seo .section-head{display:flex;justify-content:space-between;gap:40px;align-items:flex-end;margin-bottom:28px}.local-seo .section-note{max-width:520px;color:var(--muted);line-height:1.9}.city-links{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.city-links a{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);text-decoration:none;transition:.25s ease;background:rgba(255,255,255,.015)}.city-links a:hover{border-color:var(--border-hover);transform:translateY(-2px);background:rgba(255,255,255,.03)}.city-links span{color:var(--gold)}@media(max-width:800px){.local-seo .section-head{display:block}.local-seo .section-note{margin-top:18px}.city-links{grid-template-columns:1fr}}

/* ═══════════════════════════════════════════════════════════════════
   CINEMATIC SCROLL MOTION — added layer (does not remove/rename
   anything above). Heavier effects are scoped to desktop/tablet;
   mobile keeps the original lighter reveal already defined earlier
   in this file. Paired JS lives in motion.js (desktop/tablet only).
   ═══════════════════════════════════════════════════════════════════ */

/* ── Richer reveal on larger screens: adds blur+scale on top of the
      existing fade/translate. Mobile is untouched (rules earlier in
      this file still apply there). ───────────────────────────────── */
@media (min-width: 769px) {
  .reveal-up, .reveal-right {
    filter: blur(9px);
    transition: opacity 0.9s ease, transform 1s cubic-bezier(.16,.84,.32,1), filter 0.9s ease;
  }
  .reveal-up { transform: translateY(30px) scale(0.96); }
  .reveal-right { transform: translateX(54px) scale(0.96); }
  .reveal-up.visible, .reveal-right.visible { filter: blur(0); transform: none; }
}
.reveal-up:not(.visible), .reveal-right:not(.visible) { will-change: transform, opacity; }

/* ── Mask reveal: a heading slides up from behind a clipped edge.
      Only wraps headings that don't already carry their own
      .reveal-up/.reveal-right (no double-animation). Pure transform,
      so it's safe/cheap on mobile too. Triggered by the same
      IntersectionObserver as .reveal-up (script.js). ──────────────── */
.reveal-mask { overflow: hidden; }
.reveal-mask > h1, .reveal-mask > h2 {
  transform: translateY(112%);
  transition: transform 1s cubic-bezier(.19,1,.22,1);
}
.reveal-mask:not(.visible) > h1, .reveal-mask:not(.visible) > h2 { will-change: transform; }
.reveal-mask.visible > h1, .reveal-mask.visible > h2 { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal-mask > h1, .reveal-mask > h2 { transform: none !important; transition: none !important; }
}

/* ── Sticky process sidebar: heading + image stay in view while the
      five steps scroll past. On mobile the grid is already a single
      stacked column (see the max-width:768px rules above), so this
      simply has nothing to pin against there — no extra query needed. */
@media (min-width: 769px) {
  .process-left { position: sticky; top: 120px; align-self: start; }
}

/* ── will-change hints for the transform-only parallax targets driven
      by motion.js (hero video, about/process images, CTA background,
      ticker strip). Scoped to desktop/tablet since motion.js itself
      is not requested on mobile. ──────────────────────────────────── */
@media (min-width: 769px) {
  .hero-video, .about-img-wrap img, .process-img-wrap img, .cta-bg, .ticker-track {
    will-change: transform;
  }
}

/* ── Insights grid: stagger to match the pattern used everywhere else
      (services, FAQ, testimonials already cascade in). ─────────────── */
.insight-card.d1 { transition-delay: 0.1s; }
.insight-card.d2 { transition-delay: 0.2s; }

/* ─── Quote Request ─────────────────────────────────────────────── */
.quote-open { font: inherit; cursor: pointer; }
.nav .quote-open { display: none; }
.mobile-menu .quote-open { background: none; border: 0; padding: 0; font: inherit; text-align: inherit; }
.quote-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.quote-modal.open { display: flex; }
.quote-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.quote-dialog { position: relative; z-index: 1; width: min(760px, 100%); max-height: min(90vh, 900px); overflow: auto; background: #111; border: 1px solid rgba(214,198,167,.22); border-radius: 18px; padding: 34px; box-shadow: 0 30px 100px rgba(0,0,0,.55); direction: rtl; }
.quote-close { position: absolute; top: 12px; left: 16px; width: 38px; height: 38px; border: 0; background: transparent; color: var(--muted); font-size: 30px; cursor: pointer; }
.quote-close:hover { color: var(--text); }
.quote-head { padding-left: 38px; margin-bottom: 26px; }
.quote-head h2 { margin: 5px 0 10px; font-size: clamp(28px, 4vw, 42px); }
.quote-head p:last-child { color: var(--muted); line-height: 1.8; margin: 0; }
.quote-form { display: grid; gap: 18px; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: grid; gap: 8px; color: var(--text); font-size: 14px; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; box-sizing: border-box; background: #181818; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; color: var(--text); padding: 13px 14px; font: inherit; outline: none; transition: border-color .2s, box-shadow .2s; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,198,167,.09); }
.quote-form textarea { resize: vertical; min-height: 125px; }
.quote-form select option { background: #181818; color: #fff; }
.quote-submit { border: 0; cursor: pointer; }
.quote-submit:disabled { opacity: .6; cursor: wait; }
.quote-status { min-height: 22px; color: var(--muted); font-size: 14px; }
.quote-status.success { color: #9bd4a4; }
.quote-status.error { color: #e9a2a2; }
.quote-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }
@media (min-width: 1100px) { .nav .quote-open { display: inline-flex; align-items: center; } }
@media (max-width: 1099px) { .header-inner > .quote-open { display: inline-flex; align-items: center; } }
/* Mobile quote form: keep the dialog fully visible and prevent iOS focus-jumping */
body.quote-modal-open { overflow: hidden !important; height: 100%; }
@media (max-width: 700px) {
  .quote-modal {
    padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom));
    align-items: flex-start;
    overflow: hidden;
  }
  .quote-dialog {
    width: 100%;
    height: min(92dvh, 760px);
    max-height: none;
    margin-top: 8px;
    padding: 24px 16px 18px;
    border-radius: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .quote-head { padding: 0 36px 0 0; margin-bottom: 20px; }
  .quote-head h2 { font-size: 30px; line-height: 1.2; margin-top: 4px; }
  .quote-head p:last-child { font-size: 14px; line-height: 1.7; }
  .quote-grid { grid-template-columns: 1fr; gap: 14px; }
  .quote-form { gap: 14px; }
  .quote-form label { gap: 7px; font-size: 14px; }
  .quote-form input,
  .quote-form select,
  .quote-form textarea {
    min-height: 52px;
    padding: 13px 14px;
    font-size: 16px;
    line-height: 1.4;
    border-radius: 12px;
  }
  .quote-form textarea { min-height: 120px; }
  .quote-submit { width: 100%; min-height: 56px; margin-top: 2px; }
  .quote-close { top: 10px; left: 10px; width: 42px; height: 42px; z-index: 2; }
  .quote-status { font-size: 13px; line-height: 1.6; }
}


/* ── Official ATHAR logo in header ───────────────────────────── */
.brand {
  display: inline-flex;
  align-items: center;
  margin-inline-end: auto;
  line-height: 0;
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: 112px;
  height: auto;
  max-height: 54px;
  object-fit: contain;
}
@media (max-width: 768px) {
  .brand-logo {
    width: 108px;
    max-height: 52px;
  }
}
@media (max-width: 480px) {
  .brand-logo {
    width: 100px;
    max-height: 48px;
  }
}
