/* =========================================================
   Singing Cloud Studio — modern tech design
   Dark sections: deep navy / near-black with sky-blue & gold glows
   Light sections: clean white with sky-blue accents
   Gold: buttons & highlights
   Mobile-first: base styles are for phones, @media adds bigger screens.
   ========================================================= */

:root {
  /* dark */
  --night: #050a18;
  --navy: #0a1430;
  --navy-2: #13244d;
  --on-dark: #eef3ff;
  --on-dark-muted: #9eabc9;
  /* light */
  --white: #ffffff;
  --wash: #f3f8ff;
  --ink: #0b1430;
  --muted: #5a6683;
  --line: #e3ebf7;
  /* accents */
  --sky: #8ecbff;
  --sky-2: #bfe3ff;
  --sky-deep: #2f86dc;
  --gold: #e8b85c;
  --gold-2: #f6d996;
  --gold-deep: #b9832a;

  --radius: 22px;
  --font-head: "Montserrat", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
}

/* Persian: modern Persian font everywhere */
[lang="fa"] { --font-head: "Vazirmatn", Tahoma, sans-serif; --font-body: "Vazirmatn", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
[lang="fa"] body { line-height: 1.9; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 6.5vw, 3.1rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
[lang="fa"] h1, [lang="fa"] h2, [lang="fa"] h3 { letter-spacing: 0; line-height: 1.45; }
[lang="ru"] h2 { font-size: clamp(1.7rem, 5.8vw, 2.8rem); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons: glow & lift ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  font: 700 .98rem/1.2 var(--font-head); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .3s, border-color .3s, color .3s;
}
[lang="fa"] .btn { font-weight: 600; }
.btn::after { /* light sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn:hover::after { transform: translateX(120%); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 50%, var(--gold-deep)); color: var(--night); box-shadow: 0 10px 30px -12px rgba(232, 184, 92, .7); }
.btn-gold:hover { box-shadow: 0 16px 44px -10px rgba(232, 184, 92, .9), 0 0 0 4px rgba(232, 184, 92, .15); }
.btn-glass { background: rgba(255, 255, 255, .06); border-color: rgba(191, 227, 255, .28); color: var(--on-dark); backdrop-filter: blur(8px); }
.btn-glass:hover { border-color: var(--sky); box-shadow: 0 0 30px -6px rgba(142, 203, 255, .55); }
.btn-outline { background: var(--white); border-color: #cfe0f5; color: var(--ink); }
.btn-outline:hover { border-color: var(--sky-deep); box-shadow: 0 12px 30px -14px rgba(47, 134, 220, .55); }
.btn-whatsapp { background: #1faf5d; color: #fff; box-shadow: 0 10px 30px -12px rgba(31, 175, 93, .8); }
.btn-whatsapp:hover { box-shadow: 0 16px 44px -10px rgba(31, 175, 93, .9), 0 0 0 4px rgba(31, 175, 93, .18); }
.btn-sm { padding: 10px 18px; font-size: .85rem; }

/* ---------- header (dark glass) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; color: var(--on-dark);
  background: rgba(5, 10, 24, .55); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(191, 227, 255, .08); transition: background .4s;
}
.site-header.scrolled { background: rgba(5, 10, 24, .86); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.05rem/1 "Montserrat", sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.brand picture { display: block; flex: none; }
.logo { width: 48px; height: auto; filter: drop-shadow(0 0 8px rgba(142, 203, 255, .35)); transition: transform .5s var(--ease); }
.brand:hover .logo { transform: translateY(-2px) rotate(-3deg); }
.brand span { display: none; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }

.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(191, 227, 255, .14); }
.lang-switch a { padding: 5px 10px; border-radius: 999px; font: 600 .78rem/1.3 "Inter", sans-serif; text-decoration: none; color: var(--on-dark-muted); transition: color .25s, background .25s; }
.lang-switch a[lang="fa"] { font-family: "Vazirmatn", sans-serif; }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current] { background: var(--sky); color: var(--night); }

.nav-toggle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(191, 227, 255, .2); background: rgba(255, 255, 255, .05); display: grid; place-content: center; gap: 6px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.8px; background: var(--on-dark); transition: transform .35s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.9px) rotate(-45deg); }
.nav { position: absolute; top: 100%; inset-inline: 0; background: rgba(5, 10, 24, .97); max-height: 0; overflow: hidden; transition: max-height .55s var(--ease); }
.nav.open { max-height: 80vh; }
.nav ul { list-style: none; margin: 0; padding: 6px 20px 22px; }
.nav a { display: block; padding: 13px 0; text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(191, 227, 255, .08); }

@media (min-width: 420px) { .brand span { display: inline; } }
@media (min-width: 1040px) {
  .nav { position: static; max-height: none; background: none; overflow: visible; margin-inline-start: auto; }
  .nav ul { display: flex; gap: 2px; padding: 0; }
  .nav a { border: 0; padding: 8px 12px; font-size: .9rem; color: var(--on-dark-muted); border-radius: 999px; transition: color .25s, background .25s; }
  .nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .header-actions { margin-inline-start: 0; }
}

/* ---------- dark sections & animated background ---------- */
.dark { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark); background: radial-gradient(120% 80% at 50% 0%, var(--navy-2) 0%, var(--navy) 38%, var(--night) 80%); }
.dark .lead, .dark p { color: var(--on-dark-muted); }
.dark .kicker { color: var(--sky); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora { position: absolute; border-radius: 50%; will-change: transform; }
.a1 { width: 70vmax; height: 70vmax; top: -30vmax; inset-inline-start: -20vmax; background: radial-gradient(closest-side, rgba(47, 134, 220, .45), transparent); animation: float-a 22s ease-in-out infinite alternate; }
.a2 { width: 55vmax; height: 55vmax; bottom: -25vmax; inset-inline-end: -15vmax; background: radial-gradient(closest-side, rgba(232, 184, 92, .28), transparent); animation: float-b 26s ease-in-out infinite alternate; }
.a3 { width: 45vmax; height: 45vmax; top: 20%; inset-inline-start: 35%; background: radial-gradient(closest-side, rgba(142, 203, 255, .22), transparent); animation: float-a 30s ease-in-out infinite alternate-reverse; }
.hero-bg.soft .aurora { opacity: .7; }
@keyframes float-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); } }
@keyframes float-b { from { transform: translate3d(0, 0, 0) scale(1.1); } to { transform: translate3d(-7vmax, -5vmax, 0) scale(.95); } }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.grid-lines { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(142, 203, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(142, 203, 255, .07) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%); }

/* ---------- hero ---------- */
.hero { padding: calc(var(--header-h) + 36px) 0 90px; min-height: min(100svh, 940px); display: flex; align-items: center; }
.hero-grid { display: grid; gap: 10px; align-items: center; }
.hero-copy { text-align: center; }
.hero-art { position: relative; order: -1; width: min(270px, 72vw); margin-inline: auto; aspect-ratio: 80 / 72; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 40px; }
  .hero-copy { text-align: start; }
  .hero-art { order: 0; width: 100%; max-width: 430px; justify-self: center; }
}
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font: 700 .74rem/1.3 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--sky-deep); }
[lang="fa"] .kicker { letter-spacing: 0; font-size: .9rem; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

.headline { margin-bottom: .45em; }
.h1-main { display: block; font-size: clamp(2.3rem, 7.4vw, 4.3rem); line-height: 1.08; color: #fff; }
.h1-sub { display: block; margin-top: .3em; font-size: clamp(1.25rem, 4.4vw, 2.15rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
[lang="fa"] .h1-main { font-size: clamp(1.9rem, 6.6vw, 3.4rem); line-height: 1.5; }
.h1-sub:empty { display: none; }
[lang="fa"] .h1-sub { line-height: 1.6; }
.h1-sub .w > span { background: linear-gradient(90deg, var(--sky-2), var(--sky) 45%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* word-by-word reveal */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; transform: translateY(105%); animation: word-up .9s var(--ease) forwards; animation-delay: calc(var(--i) * 85ms + 350ms); }
@keyframes word-up { to { transform: none; } }
.hero .lead { font-size: 1.22rem; line-height: 1.6; max-width: 580px; margin-inline: auto; color: #c9d5ee; }
@media (min-width: 900px) { .hero .lead { margin-inline: 0; } }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0 30px; }
@media (min-width: 900px) { .hero-actions { justify-content: flex-start; } }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: .88rem; color: var(--on-dark-muted); }
@media (min-width: 900px) { .badges { justify-content: flex-start; } }
.badges li { display: inline-flex; align-items: center; gap: 6px; }
.badges .icon { color: var(--gold); }

/* the singing cloud (hero)
   The cloud is a layered SVG (made in mascot.py); assets/script.js moves the mouth, body, glow and icons.
   Everything is drawn with transform and opacity only, so it stays smooth on phones. */
.logo-stage { position: absolute; inset: 0; }
.mascot { position: absolute; z-index: 2; left: 50%; top: 50%; width: 84%; height: auto; translate: -50% -50%; overflow: visible; }
.art-glow { position: absolute; z-index: 0; inset: 4%; border-radius: 50%; opacity: .6;
  background: radial-gradient(closest-side, rgba(142, 203, 255, .75), rgba(47, 134, 220, .32) 52%, transparent 76%);
  will-change: transform, opacity; }

/* orbiting logos: each brand's official full-colour logo on a small white badge (so dark logos like X,
   ChatGPT and Grok stay visible without recolouring), on a tilted ellipse. script.js places them and swaps
   them in front of (z-index 3) or behind (z-index 1) the cloud for a 3D feel. */
.orbit { position: absolute; inset: 0; pointer-events: none; }
.orb { --size: 34px; position: absolute; left: 50%; top: 50%; width: var(--size); height: var(--size); margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  display: grid; place-items: center; border-radius: 50%; background: #fff;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .6); opacity: .5; will-change: transform, opacity; }
.orb img { width: 58%; height: 58%; object-fit: contain; display: block; user-select: none; }
@media (max-width: 700px) { .orb { --size: 26px; } }

.scroll-cue { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--sky); border: 1px solid rgba(142, 203, 255, .25); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- sections ---------- */
.section { position: relative; padding: 84px 0; }
@media (min-width: 760px) { .section { padding: 120px 0; } }
.light { background: var(--white); }
.light.tint { background: linear-gradient(180deg, var(--wash), var(--white)); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .lead { margin: 0; }
.lead { font-size: 1.08rem; color: var(--muted); }

/* ---------- cards (light) ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards.compact { grid-template-columns: repeat(4, 1fr); }
}
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: 0 1px 2px rgba(11, 20, 48, .04);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(142, 203, 255, .9); box-shadow: 0 24px 60px -28px rgba(47, 134, 220, .45); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); margin: 0; }
.card-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; color: var(--sky-deep); background: linear-gradient(145deg, #e6f3ff, #f7fbff); border: 1px solid #d6e9fb; transition: color .4s, background .4s, transform .6s var(--ease); }
.card-icon .icon { width: 26px; height: 26px; }
.card:hover .card-icon { color: var(--night); background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; transform: rotate(-6deg) scale(1.05); }
.cards.compact .card { text-align: center; }
.cards.compact .card-icon { margin-inline: auto; border-radius: 50%; }

/* service cards: the "Get in touch" button always sits at the bottom of the card */
.cards.services .card { display: flex; flex-direction: column; padding: 32px 28px 28px; }
.cards.services .card p { margin-bottom: 26px; }
.card-cta { margin-top: auto; align-self: flex-start; }
.card-cta::after { display: none; }
.cta-arrow { width: 1.05em; height: 1.05em; transition: translate .45s var(--ease); }
[dir="rtl"] .cta-arrow { transform: scaleX(-1); }
.card:hover .card-cta { border-color: var(--gold); }
.card-cta:hover { background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; color: var(--night); box-shadow: 0 12px 30px -14px rgba(232, 184, 92, .8); }
.card-cta:hover .cta-arrow { translate: 4px 0; }
[dir="rtl"] .card-cta:hover .cta-arrow { translate: -4px 0; }

/* ---------- showreel & stats (dark highlight) ---------- */
.stats { list-style: none; margin: 0 0 54px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin-inline: auto; } }
.stat { text-align: center; padding: 24px 12px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(191, 227, 255, .12); }
.stat strong { display: block; font: 800 clamp(2.2rem, 7vw, 3.2rem)/1 var(--font-head); background: linear-gradient(135deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat > span { display: block; margin-top: 8px; font-size: .88rem; color: var(--on-dark-muted); }
.video-frame { max-width: 960px; margin-inline: auto; padding: 8px; border-radius: 28px; background: linear-gradient(135deg, rgba(142, 203, 255, .35), rgba(255, 255, 255, .04) 40%, rgba(232, 184, 92, .3)); box-shadow: 0 40px 100px -40px rgba(142, 203, 255, .45); }
.video { aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--night); }
.video iframe, .video video { width: 100%; height: 100%; border: 0; object-fit: cover; }

/* ---------- placeholders: spaces for photos & videos ---------- */
.ph { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px;
  background: radial-gradient(circle at 30% 20%, #ffffff, #eaf4ff 60%, #dcecfd); color: #4f78a8; font-size: .9rem; font-weight: 500; }
.ph::after { content: ""; position: absolute; inset: 12px; border: 1.5px dashed rgba(47, 134, 220, .3); border-radius: 14px; pointer-events: none; }
.ph-icon { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.video-ph { background: radial-gradient(circle at 50% 40%, #1b3466, var(--navy) 60%, var(--night)); color: var(--on-dark-muted); }
.video-ph::after { border-color: rgba(142, 203, 255, .22); }
.video-ph .ph-icon { width: 76px; height: 76px; padding: 24px; border-radius: 50%; color: var(--night); background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 0 0 10px rgba(232, 184, 92, .12), 0 0 40px rgba(232, 184, 92, .5); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px rgba(232, 184, 92, .05), 0 0 60px rgba(232, 184, 92, .6); } }

/* ---------- portfolio ---------- */
.gallery { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } .work-wide { grid-column: span 2; grid-row: span 2; } }
.work { margin: 0; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.work:hover { transform: translateY(-6px); box-shadow: 0 30px 70px -32px rgba(11, 20, 48, .4); }
.work-media { position: relative; flex: 1; aspect-ratio: 1 / 1; overflow: hidden; }
@media (min-width: 640px) { .work-media { aspect-ratio: 4 / 5; } }
.work-wide .work-media { aspect-ratio: 4 / 3; }
.parallax-inner { position: absolute; inset: -6% 0; }
.parallax-inner img, .parallax-inner .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work:hover .parallax-inner img, .work:hover .parallax-inner .ph { transform: scale(1.07); }
.work figcaption { padding: 18px 22px 22px; }
.work h3 { font-size: 1.05rem; margin: 0 0 .25em; }
.work p { margin: 0; font-size: .86rem; color: var(--muted); }

/* ---------- packages ---------- */
/* price cards: 1 column on phones, 2 on tablets, 4 on wide screens (3 neat rows of 4) */
.pkg-grid { row-gap: 26px; }
@media (min-width: 1100px) { .pkg-grid { grid-template-columns: repeat(4, 1fr); } }
.pkg { display: flex; flex-direction: column; padding: 30px 24px 26px; }
.pkg-cat { margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-deep); }
[lang="fa"] .pkg-cat { letter-spacing: 0; font-size: .85rem; }
.pkg h3 { margin-bottom: 14px; }
.pkg-price { margin: auto 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.pkg-from { font-size: .85rem; font-weight: 600; color: var(--muted); }
.pkg-amount { font: 800 2.1rem/1 var(--font-head); letter-spacing: -.02em; color: var(--ink); }
.pkg-unit { font-size: .9rem; font-weight: 600; color: var(--muted); }
.pkg-note { margin: 10px 0 0 !important; font-size: .88rem; }
.pkg.popular { color: var(--on-dark); background: radial-gradient(120% 90% at 50% 0%, var(--navy-2), var(--night)); border-color: rgba(232, 184, 92, .6); box-shadow: 0 26px 70px -30px rgba(232, 184, 92, .55); }
.pkg.popular h3 { color: #fff; }
.pkg.popular .pkg-cat { color: var(--sky); }
.pkg.popular .pkg-from, .pkg.popular .pkg-unit, .pkg.popular .pkg-note { color: var(--on-dark-muted); }
.pkg.popular .pkg-amount { background: linear-gradient(135deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pkg-badge { position: absolute; top: -12px; inset-inline-start: 22px; margin: 0; box-shadow: 0 8px 20px -8px rgba(232, 184, 92, .8); }
.pkg-custom { margin-top: 48px; text-align: center; }
.pkg-custom p { margin: 0 0 14px; font: 700 1.2rem/1.4 var(--font-head); color: var(--ink); }
.points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-size: .94rem; }
.points li { display: flex; gap: 9px; align-items: flex-start; }
.points .icon { color: var(--sky-deep); margin-top: .2em; width: 1.05em; height: 1.05em; }
.tag-gold { align-self: flex-start; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--night); background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
[lang="fa"] .tag-gold { letter-spacing: 0; }
.note { text-align: center; margin-top: 30px; color: var(--muted); font-size: .9rem; }

/* ---------- steps (dark) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .035); border: 1px solid rgba(191, 227, 255, .12); transition: border-color .4s, transform .6s var(--ease), background .4s; }
.step:hover { border-color: rgba(232, 184, 92, .5); background: rgba(255, 255, 255, .06); transform: translateY(-6px); }
.step-num { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 20px; border-radius: 14px; font: 800 1.3rem/1 var(--font-head); color: var(--night); background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 0 30px -6px rgba(232, 184, 92, .7); }
.step h3 { color: #fff; }
.step p { margin: 0; font-size: .95rem; }

/* ---------- testimonials ---------- */
.testimonial { position: relative; margin: 0; padding: 48px 30px 36px; text-align: center; border-radius: 28px; background: linear-gradient(180deg, var(--wash), var(--white)); border: 1px solid var(--line); }
.quote-icon { width: 44px; height: 44px; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; }
.testimonial blockquote { margin: 16px 0 26px; font: 600 clamp(1.15rem, 3.6vw, 1.55rem)/1.5 var(--font-head); letter-spacing: -.01em; color: var(--ink); }
[lang="fa"] .testimonial blockquote { line-height: 1.9; letter-spacing: 0; }
.testimonial blockquote p { margin: 0; }
.testimonial figcaption { display: inline-flex; align-items: center; gap: 14px; text-align: start; }
.t-photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; padding: 0; flex: none; overflow: hidden; }
.t-photo.ph::after { inset: 3px; border-radius: 50%; }
.t-photo .ph-icon { width: 26px; height: 26px; }
.testimonial strong { display: block; }
.testimonial small { color: var(--muted); font-size: .86rem; }

/* ---------- contact (dark) ---------- */
.contact { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; } }
.contact-text h2 { color: #fff; }
.contact-text .btn { margin-top: 8px; }
.contact-text .small { margin-top: 14px; }
.form { display: grid; gap: 16px; padding: 30px 24px; border-radius: 26px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(191, 227, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (min-width: 640px) { .form { padding: 38px 34px; } }
.form-or { margin: 0; font: 700 1.25rem/1.3 var(--font-head); color: #fff !important; }
.form label { display: grid; gap: 7px; font-size: .85rem; font-weight: 600; color: var(--on-dark); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(191, 227, 255, .16); background: rgba(5, 10, 24, .55);
  font: 400 1rem/1.4 var(--font-body); color: #fff; transition: border-color .25s, box-shadow .25s;
}
.form select option { color: var(--ink); }
[dir="rtl"] .form input[dir="ltr"] { text-align: right; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(142, 203, 255, .15); }
.form textarea { resize: vertical; }
.form .btn { width: 100%; margin-top: 4px; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }
.form-status { margin: 0; font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: #7ee2a8 !important; }
.form-status.err { color: #ffb0a3 !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: #03060f; color: var(--on-dark-muted); padding: 56px 0 40px; text-align: center; border-top: 1px solid rgba(191, 227, 255, .08); }
.footer-inner { display: grid; gap: 16px; justify-items: center; }
.site-footer .brand { color: #fff; }
.site-footer .brand span { display: inline; }
.site-footer p { margin: 0; }

/* ---------- scroll animations: fade, slide, float in ---------- */
/* (uses "translate"/"scale" so it never fights the hover lift, which uses "transform") */
.js .reveal, .js .reveal-zoom, .js .reveal-right {
  opacity: 0;
  transition: opacity 1s var(--ease), translate 1.1s var(--ease), scale 1.1s var(--ease),
              transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s, background .4s;
  transition-delay: var(--d, 0ms);
}
.js .reveal { translate: 0 34px; }
.js .reveal-zoom { translate: 0 30px; scale: .94; }
.js .reveal-right { translate: 40px 0; }
.js[dir="rtl"] .reveal-right { translate: -40px 0; }
.js .reveal.in, .js .reveal-zoom.in, .js[dir] .reveal-right.in { opacity: 1; translate: none; scale: none; }
/* after the entrance, hover effects run with no delay */
.js .done { transition-delay: 0ms; }

/* ---------- phones: lighter effects ---------- */
@media (max-width: 700px) {
  .a3, .grid-lines { display: none; }
}

/* ---------- "reduce motion" switched on: everything still ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .w > span { transform: none; }
  .js .reveal, .js .reveal-zoom, .js[dir] .reveal-right { opacity: 1; translate: none; scale: none; }
  .art-glow { opacity: .75; }
}

/* ---------- after a form is sent: the fields hide and a "Thank you" box shows ---------- */
.form.sent > :not(.form-thanks) { display: none; }
.form-thanks { display: grid; justify-items: center; gap: 14px; padding: 34px 10px; text-align: center; outline: none; }
.form-thanks p { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.6; }
.form-thanks-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  font-size: 30px; font-weight: 800; color: #7ee2a8; background: rgba(126, 226, 168, .12); border: 2px solid #7ee2a8; }
.dark .form-thanks p { color: #fff; }

/* ---------- closing line above the footer ---------- */
.closing { text-align: center; border-top: 1px solid rgba(191, 227, 255, .08); }
.closing-inner { display: grid; justify-items: center; gap: 30px; }
.closing-line { margin: 0; font: 800 clamp(1.9rem, 5.6vw, 3.2rem)/1.2 var(--font-head); letter-spacing: -.02em;
  background: linear-gradient(90deg, #fff 10%, var(--sky-2) 55%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
[lang="fa"] .closing-line { line-height: 1.6; letter-spacing: 0; }

/* ---------- featured project: swipeable carousel gallery ---------- */
.feature { display: grid; gap: 34px; align-items: center; margin-bottom: 46px; padding: 26px; border-radius: 28px;
  background: radial-gradient(120% 120% at 0% 0%, var(--navy-2), var(--night)); color: var(--on-dark);
  box-shadow: 0 40px 90px -40px rgba(11, 20, 48, .6); }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 420px) 1fr; gap: 56px; padding: 40px; } }
.swiper { position: relative; width: 100%; max-width: 420px; margin-inline: auto; }
.swiper-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 18px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); outline-offset: 4px; }
.swiper-track::-webkit-scrollbar { display: none; }
.swiper-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 4 / 5; background: #0b1430; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swiper-ui { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.swiper-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(191, 227, 255, .25); transition: background .3s, border-color .3s, transform .3s; }
.swiper-btn:hover { background: rgba(232, 184, 92, .2); border-color: var(--gold); transform: translateY(-2px); }
.swiper-btn .flip { transform: scaleX(-1); }
.swiper-dots { display: flex; gap: 8px; }
.swiper-dot { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; cursor: pointer; background: rgba(191, 227, 255, .3); transition: width .35s var(--ease), background .3s; }
.swiper-dot[aria-current="true"] { width: 26px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.feature-text h3 { font-size: clamp(1.4rem, 3.4vw, 2rem); color: #fff; margin-bottom: .4em; }
.feature-text .kicker { color: var(--sky); }
.feature-desc { color: var(--on-dark-muted); font-size: 1.05rem; }
.feature-facts { color: var(--on-dark); }
.feature-facts .icon { color: var(--gold); }
.feature-handle { display: inline-block; margin-top: 22px; font-weight: 700; color: var(--gold-2); text-decoration: none; border-bottom: 1.5px solid currentColor; }
@media (prefers-reduced-motion: reduce) { .swiper-track { scroll-behavior: auto; } }
