/* ============ Ragad Kindergarten — styles ============ */

:root {
  --pink: #ff8fa3;
  --pink-2: #ffb3c1;
  --peach: #ffd6a5;
  --yellow: #ffe66d;
  --mint: #a0e7c4;
  --sky: #a0d8ef;
  --lavender: #c7b8ea;
  --cream: #fff8f0;
  --ink: #2d2438;
  --ink-soft: #574c6b;
  --muted: #8a8397;
  --line: #f0e6ea;
  --white: #ffffff;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;

  --shadow-sm: 0 4px 12px rgba(45, 36, 56, 0.06);
  --shadow: 0 10px 30px rgba(45, 36, 56, 0.08);
  --shadow-lg: 0 24px 60px rgba(255, 143, 163, 0.20);

  --grad-warm: linear-gradient(135deg, #ff8fa3 0%, #ffd6a5 100%);
  --grad-cool: linear-gradient(135deg, #a0d8ef 0%, #c7b8ea 100%);
  --grad-fresh: linear-gradient(135deg, #a0e7c4 0%, #ffe66d 100%);

  --font-ar: "Tajawal", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cairo", "Tajawal", system-ui, sans-serif;

  --container: 1200px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-ar);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  max-width: 100vw;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 900;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }
a  { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  color: var(--pink);
  background: rgba(255, 143, 163, .12);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .92rem;
  margin-bottom: 14px;
  letter-spacing: .02em;
}

.grad {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  text-align: center;
}
.btn-lg { padding: 16px 32px; font-size: 1.08rem; }
.btn.full { width: 100%; }

.btn-primary {
  background: var(--grad-warm);
  color: white;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 30px 70px rgba(255, 143, 163, .35); }

.btn-ghost {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--pink); color: var(--pink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 240, 0.85);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.scrolled {
  border-color: var(--line);
  background: rgba(255, 248, 240, 0.95);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  font-size: 2rem;
  filter: drop-shadow(0 4px 8px rgba(255,143,163,.4));
  display: inline-block;
  animation: brandSpin 10s linear infinite;
  transform-origin: center center;
  will-change: transform;
}
@keyframes brandSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-mark { animation: none; }
}
html.a11y-no-motion .brand-mark { animation: none; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-ar {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand-en {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .08em;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav-links a:not(.btn):hover {
  color: var(--pink);
  background: rgba(255,143,163,.08);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 8vw, 100px) 0 clamp(60px, 10vw, 140px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
}
.b1 { width: 380px; height: 380px; background: var(--pink-2); top: -80px; right: -80px; }
.b2 { width: 300px; height: 300px; background: var(--sky); bottom: -60px; left: -60px; }
.b3 { width: 240px; height: 240px; background: var(--yellow); top: 40%; left: 30%; opacity: .3; }

.star {
  position: absolute;
  color: var(--yellow);
  font-size: 24px;
  animation: twinkle 3s ease-in-out infinite;
}
.s1 { top: 20%; left: 10%; }
.s2 { top: 60%; right: 15%; animation-delay: 1s; font-size: 18px; }
.s3 { top: 30%; right: 40%; animation-delay: 2s; font-size: 20px; }
@keyframes twinkle {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 20px;
}
.hero-content .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--pink);
  line-height: 1;
}
.hero-stats span {
  color: var(--muted);
  font-size: .95rem;
  margin-top: 6px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--ink);
  font-size: .95rem;
  border: 1px solid var(--line);
  max-width: 100%;
}
.hero-badges .ic {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.map-wrap {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.small { font-size: .88rem; margin-top: 12px; }

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 380px;
  width: 100%;
  max-width: 560px;
}

.hero-photo {
  position: absolute;
  inset: 8% 12%;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff3e6, #ffe4e9);
  box-shadow: 0 30px 80px rgba(255, 143, 163, 0.35),
              0 8px 20px rgba(45, 36, 56, 0.10);
  animation: float 6s ease-in-out infinite;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-illustration {
  position: absolute;
  inset: 20%;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}
.hero-illustration .sun {
  position: absolute;
  top: 12%;
  right: 15%;
  font-size: 2.4rem;
  animation: float 4s ease-in-out infinite;
}
.hero-illustration .cloud {
  position: absolute;
  font-size: 1.8rem;
  opacity: .8;
}
.c1 { top: 20%; left: 12%; animation: floatH 8s ease-in-out infinite; }
.c2 { top: 40%; right: 8%; animation: floatH 10s ease-in-out infinite reverse; font-size: 1.4rem; }
.rainbow {
  position: absolute;
  bottom: 30%;
  left: 50%;
  width: 60%;
  height: 60%;
  transform: translateX(-50%);
  border-top-left-radius: 100%;
  border-top-right-radius: 100%;
  background:
    radial-gradient(circle at 50% 100%, transparent 60%, transparent 61%),
    conic-gradient(from 270deg at 50% 100%,
      transparent 0deg,
      var(--pink) 40deg,
      var(--peach) 55deg,
      var(--yellow) 70deg,
      var(--mint) 85deg,
      var(--sky) 100deg,
      var(--lavender) 115deg,
      transparent 130deg,
      transparent 360deg);
  mask: radial-gradient(circle at 50% 100%, transparent 55%, black 56%, black 78%, transparent 79%);
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 55%, black 56%, black 78%, transparent 79%);
  opacity: .85;
}
.kids {
  position: absolute;
  bottom: 15%;
  font-size: 3rem;
  letter-spacing: -10px;
}

.card-float {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  font-size: .95rem;
  animation: float 4s ease-in-out infinite;
}
.card-1 { top: 8%; right: 5%; animation-delay: 0s; }
.card-2 { top: 30%; left: 0; animation-delay: 1s; }
.card-3 { bottom: 25%; right: 0; animation-delay: 2s; }
.card-4 { bottom: 5%; left: 8%; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes floatH {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(20px); }
}

@keyframes heroFloat {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-18px) rotate(-1.5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
.hero-float {
  animation: heroFloat 6s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-float { animation: none; }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(60px, 9vw, 120px);
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-head p { font-size: 1.08rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ---------- Strip ---------- */
.strip {
  background: var(--grad-warm);
  color: white;
  padding: 30px 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
}
.strip-item strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}
.strip-item span {
  color: rgba(255,255,255,.9);
  font-size: .95rem;
  margin-top: 6px;
  font-weight: 600;
}
@media (max-width: 720px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ---------- About ---------- */
.about { background: white; }
.check-list {
  margin: 24px 0 32px;
  display: grid;
  gap: 12px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--grad-warm);
  color: white;
  font-weight: 900;
  font-size: .8rem;
  flex-shrink: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  perspective: 1400px;
}

/* --- 3D depth cards --- */
.value-card {
  --edge: #f4c3cf;
  --edge-h: 14px;
  position: relative;
  background: linear-gradient(160deg, #fff8f2 0%, #ffe4e9 100%);
  padding: 28px 24px;
  border-radius: 22px;
  transition: transform .38s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow .38s cubic-bezier(0.16, 1, 0.3, 1);
  border: 0;
  transform: translateZ(0) rotateX(1.2deg);
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 var(--edge-h) 0 var(--edge),
    0 calc(var(--edge-h) + 4px) 0 rgba(0,0,0,0.03),
    0 calc(var(--edge-h) + 22px) 30px rgba(255,143,163,0.20),
    0 34px 60px rgba(45,36,56,0.08);
}
.value-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 40%);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.value-card::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 10%;
  width: 32%;
  height: 24%;
  background: radial-gradient(ellipse at top left, rgba(255,255,255,0.6), transparent 70%);
  border-radius: 50%;
  filter: blur(6px);
  pointer-events: none;
}
.value-card:hover {
  transform: translateY(-6px) rotateX(0deg) rotateY(-3deg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 calc(var(--edge-h) + 6px) 0 var(--edge),
    0 calc(var(--edge-h) + 10px) 0 rgba(0,0,0,0.04),
    0 calc(var(--edge-h) + 28px) 40px rgba(255,143,163,0.28),
    0 40px 80px rgba(45,36,56,0.12);
}

.value-card:nth-child(1) { --edge: #f4c3cf; background: linear-gradient(160deg, #fff8f2 0%, #ffe4e9 100%); }
.value-card:nth-child(2) { --edge: #f2dfb0; background: linear-gradient(160deg, #fff9e6 0%, #fff0c9 100%); }
.value-card:nth-child(3) { --edge: #bde5ce; background: linear-gradient(160deg, #f0fbf5 0%, #d4f5e0 100%); }
.value-card:nth-child(4) { --edge: #bcd8ec; background: linear-gradient(160deg, #f0f8ff 0%, #d4edff 100%); }

.value-card .ic {
  font-size: 2.6rem;
  margin-bottom: 14px;
  display: inline-block;
  transform: translateZ(20px);
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.15));
  transition: transform .38s cubic-bezier(0.16, 1, 0.3, 1);
}
.value-card:hover .ic {
  transform: translateZ(20px) scale(1.08) rotate(-4deg);
}
.value-card h3 { margin-bottom: 6px; position: relative; z-index: 1; }
.value-card p { margin: 0; font-size: .96rem; position: relative; z-index: 1; }

/* Skip 3D depth for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .value-card { transform: none; }
  .value-card:hover { transform: none; }
}

/* ---------- Programs ---------- */
.programs { background: var(--cream); }
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.program-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  border-top: 6px solid var(--pink);
}
.program-card.p1 { border-top-color: var(--pink); }
.program-card.p2 { border-top-color: var(--peach); }
.program-card.p3 { border-top-color: var(--mint); }
.program-card.p4 { border-top-color: var(--sky); }

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.program-illust {
  width: 140px;
  height: 140px;
  margin: -16px auto 12px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #fff8f0, #ffe4e9);
  box-shadow: 0 12px 30px rgba(45, 36, 56, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1);
}
.program-card:hover .program-illust {
  transform: scale(1.06) rotate(-3deg);
}
.program-illust img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.program-card.p1 .program-illust { background: linear-gradient(135deg, #fff0f3, #ffe4e9); }
.program-card.p2 .program-illust { background: linear-gradient(135deg, #fff8e1, #ffe0b8); }
.program-card.p3 .program-illust { background: linear-gradient(135deg, #e8faf0, #d4f5e0); }
.program-card .age {
  display: inline-block;
  background: rgba(255,143,163,.15);
  color: var(--pink);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.program-card.p2 .age { background: rgba(255,214,165,.35); color: #c07a2f; }
.program-card.p3 .age { background: rgba(160,231,196,.35); color: #2f8f5c; }
.program-card.p4 .age { background: rgba(160,216,239,.35); color: #2a7ba6; }

.program-card h3 { margin-bottom: 10px; }
.program-card ul {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 6px;
}
.program-card ul li {
  color: var(--ink-soft);
  font-size: .92rem;
  padding-inline-start: 20px;
  position: relative;
}
.program-card ul li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--pink);
  font-weight: 900;
}

/* ---------- Activities Timeline ---------- */
.activities { background: white; }
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-inline-end: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  right: 20px;
  width: 3px;
  background: linear-gradient(to bottom, var(--pink), var(--peach), var(--mint), var(--sky));
  border-radius: 2px;
}
.timeline li {
  position: relative;
  padding: 20px 60px 20px 20px;
  margin-bottom: 12px;
  background: var(--cream);
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s;
}
.timeline li:hover {
  transform: translateX(-6px);
  box-shadow: var(--shadow-sm);
}
.timeline .time {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pink);
  font-size: .9rem;
  margin-bottom: 4px;
}
.timeline h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.timeline p { margin: 0; font-size: .95rem; }
.timeline .dot {
  position: absolute;
  top: 24px;
  right: -20px;
  width: 44px; height: 44px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--cream);
}

/* ---------- Gallery ---------- */
.gallery { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
  margin-bottom: 30px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform .3s;
  cursor: pointer;
  background: linear-gradient(135deg, #fff3e6, #ffe4e9);
}
.gallery-grid figure:hover { transform: scale(1.03); }
.gallery-grid figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-grid .ph {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.g1 .ph { background: linear-gradient(135deg, #ffb3c1, #ff8fa3); }
.g2 .ph { background: linear-gradient(135deg, #a0e7c4, #6dd8a0); }
.g3 .ph { background: linear-gradient(135deg, #ffd6a5, #ffb772); }
.g4 .ph { background: linear-gradient(135deg, #c7b8ea, #a89bd9); }
.g5 .ph { background: linear-gradient(135deg, #a0d8ef, #6bc0e0); }
.g6 .ph { background: linear-gradient(135deg, #ffe66d, #ffd633); }

.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
  color: white;
  font-weight: 700;
  transform: translateY(100%);
  transition: transform .3s;
}
.gallery-grid figure:hover figcaption { transform: translateY(0); }

.g1 { grid-column: span 2; grid-row: span 2; }

/* ---------- Testimonials ---------- */
.testimonials { background: white; }
.tst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.tst {
  margin: 0;
  background: var(--cream);
  padding: 32px;
  border-radius: var(--radius-lg);
  position: relative;
  border-inline-start: 5px solid var(--pink);
}
.tst::before {
  content: "”";
  position: absolute;
  top: -10px;
  right: 20px;
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--pink);
  opacity: .3;
  line-height: 1;
}
.tst p { font-size: 1.05rem; color: var(--ink); font-style: italic; margin-bottom: 16px; }
.tst footer { color: var(--muted); font-weight: 700; }
.tst:nth-child(2) { border-inline-start-color: var(--sky); }
.tst:nth-child(2)::before { color: var(--sky); }
.tst:nth-child(3) { border-inline-start-color: var(--mint); }
.tst:nth-child(3)::before { color: var(--mint); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(135deg, #fff8f0 0%, #ffe4e9 100%); }
.contact-list {
  display: grid;
  gap: 16px;
  margin: 24px 0 28px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-list .ic {
  width: 48px; height: 48px;
  background: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.contact-list div {
  display: flex;
  flex-direction: column;
}
.contact-list strong { color: var(--ink); }
.contact-list span, .contact-list a { color: var(--ink-soft); font-size: .95rem; }
.contact-list a:hover { color: var(--pink); }

.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 48px; height: 48px;
  background: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.socials a:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow); }

.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

/* --- WhatsApp CTA block (replaces the old contact form) --- */
.wa-cta {
  background: white;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  border-top: 6px solid #25d366;
}
.wa-cta-icon {
  width: 88px; height: 88px;
  margin: -68px auto 12px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.30);
}
.wa-cta h3 { margin-bottom: 10px; font-size: 1.4rem; }
.wa-cta p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 24px; }
.wa-fallback { margin-top: 16px; font-size: .92rem; color: var(--muted); }
.wa-fallback a { color: var(--pink); font-weight: 700; text-decoration: none; }
.wa-fallback a:hover { text-decoration: underline; }

.btn-whatsapp {
  background: #25d366;
  color: white;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  background: #1fb958;
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.45);
}
.field { display: grid; gap: 6px; }
.field label {
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color .2s, background .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink);
  background: white;
}
.field textarea { resize: vertical; min-height: 100px; }

.form-note {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
}
.form-note.ok { background: #e8faf0; color: #2f8f5c; }
.form-note.err { background: #ffe4e9; color: #c8385c; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-top: 60px;
}
.site-footer .brand-ar { color: white; }
.site-footer .brand-en { color: rgba(255,255,255,.6); }
.site-footer .muted { color: rgba(255,255,255,.6); }

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.site-footer h4 {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.site-footer ul {
  display: grid;
  gap: 8px;
}
.site-footer ul a { color: rgba(255,255,255,.75); transition: color .2s; }
.site-footer ul a:hover { color: var(--pink-2); }
.site-footer ul li { color: rgba(255,255,255,.75); font-size: .95rem; }

.copyright {
  padding-block: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  color: rgba(255,255,255,.5);
  font-size: .9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .two-col { grid-template-columns: 1fr; }
  .hero-visual { max-width: 500px; margin: 0 auto; min-height: 340px; }
  .values-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g1 { grid-column: span 2; grid-row: span 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 720px) {
  h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  h2 { font-size: clamp(1.4rem, 6vw, 2rem); }

  .container { padding-inline: 18px; }

  .hero { padding-top: 24px; padding-bottom: 40px; }
  .hero-content .lead { font-size: 1rem; }
  .hero-cta { margin-bottom: 24px; }
  .hero-cta .btn { flex: 1; min-width: 0; }
  .hero-badges { gap: 8px; }
  .hero-badges li { font-size: .85rem; padding: 8px 12px; }

  .hero-visual { min-height: 0; max-width: 320px; margin: 0 auto; }
  .hero-visual { aspect-ratio: 1; }
  .card-float { font-size: .8rem; padding: 8px 12px; }

  .brand-en { display: none; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    inset: 100% 0 auto 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    gap: 4px;
  }
  .nav-links.open { max-height: 500px; padding-block: 20px; }
  .nav-links a { display: block; width: 100%; text-align: center; }

  .hero-stats { gap: 24px; }
  .hero-stats strong { font-size: 1.6rem; }

  .contact-form { padding: 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g1 { grid-column: span 1; }

  .timeline { padding-inline-end: 30px; }
  .timeline .dot { right: -15px; width: 36px; height: 36px; font-size: 1.1rem; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Puzzle assemble-on-scroll (restored) ---------- */
.puzzle-piece {
  opacity: 0;
  transition: transform .7s cubic-bezier(.34,1.56,.64,1), opacity .5s ease-out;
}
.puzzle-piece[data-puzzle="top"]         { transform: translate3d(0,-100px,0) rotate(-8deg)  scale(.7); }
.puzzle-piece[data-puzzle="bottom"]      { transform: translate3d(0,100px,0)  rotate(6deg)   scale(.7); }
.puzzle-piece[data-puzzle="left"]        { transform: translate3d(-140px,0,0) rotate(-6deg)  scale(.8); }
.puzzle-piece[data-puzzle="right"]       { transform: translate3d(140px,0,0)  rotate(6deg)   scale(.8); }
.puzzle-piece[data-puzzle="top-left"]    { transform: translate3d(-120px,-80px,0) rotate(-12deg) scale(.6); }
.puzzle-piece[data-puzzle="top-right"]   { transform: translate3d(120px,-80px,0)  rotate(12deg)  scale(.6); }
.puzzle-piece[data-puzzle="bottom-left"] { transform: translate3d(-120px,80px,0)  rotate(10deg)  scale(.6); }
.puzzle-piece[data-puzzle="bottom-right"]{ transform: translate3d(120px,80px,0)   rotate(-10deg) scale(.6); }
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .puzzle-piece { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.puzzle-container.assembled .puzzle-piece {
  opacity: 1;
  transform: translate(0,0) rotate(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .puzzle-piece { opacity: 1; transform: none; transition: none; }
}

/* ---------- Values cards pop-up (restored with 3D depth but perf-safe) ---------- */
.val-3d {
  opacity: 0;
  transform: translate3d(0, 40px, 0) scale(.55) rotateX(-30deg);
  transform-origin: center bottom;
  transition: opacity .5s ease-out, transform .7s cubic-bezier(.34,1.56,.64,1);
}
.val-3d.pop {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotateX(0);
}
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .val-3d { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero video mosaic assemble ---------- */
.hero-mosaic { position: relative; width: 100%; aspect-ratio: 16 / 10; }
@media (min-width: 768px) {
  .hero-mosaic.md\:h-full { aspect-ratio: auto; height: 100%; min-height: 100%; }
}
.hero-mosaic-video {
  width: 100%; height: 100%; display: block;
  object-fit: cover; border-radius: 24px;
}
.hero-mosaic-tiles {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  border-radius: 24px;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .8s ease .4s;
}
.mtile {
  background-image: url("assets/stitch/img-4-2bba2039.png");
  background-size: 300% 300%;
  background-position: calc(var(--c) * 50%) calc(var(--r) * 50%);
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  opacity: 0;
  transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--rot, 0deg)) scale(.4);
  transition: transform .8s cubic-bezier(.34,1.56,.64,1), opacity .4s ease-out;
  will-change: transform, opacity;
}
.mtile:nth-child(1) { --tx: -140%; --ty: -120%; --rot: -22deg; }
.mtile:nth-child(2) { --tx:    0;  --ty: -160%; --rot:  15deg; }
.mtile:nth-child(3) { --tx:  140%; --ty: -120%; --rot:  25deg; }
.mtile:nth-child(4) { --tx: -180%; --ty:    0;  --rot: -18deg; }
.mtile:nth-child(5) { --tx:    0;  --ty:  180%; --rot:  30deg; }
.mtile:nth-child(6) { --tx:  180%; --ty:    0;  --rot:  20deg; }
.mtile:nth-child(7) { --tx: -140%; --ty:  140%; --rot:  22deg; }
.mtile:nth-child(8) { --tx:    0;  --ty:  180%; --rot: -25deg; }
.mtile:nth-child(9) { --tx:  140%; --ty:  140%; --rot: -18deg; }

.hero-mosaic.settling .mtile {
  opacity: 1;
  transform: translate(0,0) rotate(0) scale(1);
}
.hero-mosaic.done .hero-mosaic-tiles { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .hero-mosaic-tiles { display: none; }
}
