/* =====================================================================
   styles.css — Al Fayrouz Academy
   Colors are defined once below. Change them here and the whole site follows.
   Layout uses logical properties (inline-start/end), so Arabic (RTL) and
   English (LTR) mirror automatically.
   ===================================================================== */

:root {
  /* ---- Brand colors (change here) ---- */
  --fayrouz: #2BB5B0;      /* primary turquoise */
  --deep:    #0F6B6B;      /* deep turquoise: headings, dark sections */
  --yellow:  #FFC93C;      /* warm yellow accents */
  --cream:   #FFFBF2;      /* page background */
  --coral:   #FF7A6B;      /* call-to-action buttons */
  --tint:    #E6F7F6;      /* soft turquoise section background */

  /* ---- Supporting colors ---- */
  --ink:      #1F3D3D;     /* body text */
  --ink-soft: #3E5E5E;
  --on-coral: #1B3A3A;     /* dark text on coral = readable contrast */
  --wa:       #11833F;     /* WhatsApp green (dark enough for white text) */
  --error:    #B3261E;
  --white:    #fff;

  --radius: 24px;
  --shadow: 0 10px 30px rgba(15, 107, 107, .12);
  --shadow-sm: 0 4px 14px rgba(15, 107, 107, .10);
  --header-h: 72px;
}

/* ------------------------------ Base ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.85;
  overflow-x: clip;
  font-family: "Cairo", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[lang="en"] body { font-family: "Nunito", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.7; }

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--deep); line-height: 1.3; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2rem, 6.2vw, 3.3rem); }
h2 { font-size: clamp(1.65rem, 4.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--deep); }
.icon { width: 1.5rem; height: 1.5rem; flex: none; }

:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; margin-top: 2.5rem; }

.skip-link { position: absolute; inset-inline-start: 12px; top: -80px; background: var(--deep); color: #fff; padding: .6rem 1rem; border-radius: 12px; z-index: 200; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { min-height: 56px; padding: .85rem 1.9rem; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-cta { background: var(--coral); color: var(--on-coral); box-shadow: 0 6px 16px rgba(255, 122, 107, .35); }
.btn-cta:hover { background: #ff8b7d; }
.btn-outline { background: transparent; color: var(--deep); border-color: var(--deep); }
.btn-outline:hover { background: var(--deep); color: #fff; }
.btn-ghost { background: var(--white); color: var(--deep); border-color: #bfe3e1; min-height: 44px; padding: .45rem 1rem; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0e6e35; }

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 251, 242, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 107, 107, .10);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--deep); }
.logo-mark { width: 44px; height: 44px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-weight: 800; font-size: 1.15rem; color: var(--deep); }
.logo-sub { font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.logo-light .logo-name { color: #fff; }
.logo-light .logo-sub { color: var(--yellow); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; min-height: 44px; padding: .45rem 1.2rem; }

.menu-btn { width: 48px; height: 48px; border-radius: 14px; border: 2px solid #bfe3e1; background: #fff; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.menu-btn span { width: 22px; height: 3px; border-radius: 3px; background: var(--deep); transition: transform .2s, opacity .2s; }
.nav-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
.nav-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.main-nav {
  position: absolute; top: 100%; inset-inline: 0;
  background: var(--cream); border-bottom: 1px solid rgba(15, 107, 107, .12);
  box-shadow: var(--shadow);
  padding: 1rem 20px 1.4rem;
  display: none;
}
.nav-open .main-nav { display: block; }
.main-nav ul { display: flex; flex-direction: column; }
.main-nav li a { display: block; padding: .8rem .4rem; text-decoration: none; font-weight: 700; color: var(--ink); border-bottom: 1px dashed rgba(15, 107, 107, .15); }
.main-nav li a:hover { color: var(--deep); }
.nav-cta { margin-top: 1rem; width: 100%; }

@media (min-width: 640px) { .header-cta { display: inline-flex; } .nav-cta { display: none; } }
@media (min-width: 1100px) {
  .menu-btn { display: none; }
  .main-nav { position: static; display: block !important; background: none; box-shadow: none; border: 0; padding: 0; }
  .main-nav ul { flex-direction: row; gap: .2rem; }
  .main-nav li a { padding: .5rem .7rem; border: 0; font-size: .95rem; border-radius: 12px; }
  .main-nav li a:hover { background: var(--tint); }
}

/* ------------------------------ Hero ------------------------------ */
.hero { position: relative; padding-block: 2.5rem 5.5rem; background: radial-gradient(900px 400px at 85% 10%, rgba(255, 201, 60, .22), transparent 70%), var(--cream); }
.hero-grid { display: grid; gap: 2.2rem; align-items: center; }
.badge { display: inline-block; background: var(--yellow); color: #3a2a00; font-weight: 800; padding: .3rem 1rem; border-radius: 999px; font-size: .95rem; margin-bottom: 1rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-block: 1.4rem 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { background: #fff; border: 1px solid #cfeceb; padding: .25rem .9rem; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--deep); display: inline-flex; align-items: center; gap: .4rem; }
.chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fayrouz); }
.hero-note { margin: 1rem 0 0; color: var(--ink-soft); font-size: .95rem; }
.blob-frame { border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; background: var(--tint); aspect-ratio: 5 / 4; }
.blob-frame img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .hero { padding-block: 4rem 6.5rem; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; } }

/* ---------------------------- Decorations ---------------------------- */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco-star { color: var(--yellow); width: 28px; height: 28px; animation: float 6s ease-in-out infinite; }
.deco-cloud { color: #fff; width: 90px; height: 56px; opacity: .9; animation: float 9s ease-in-out infinite; }
.deco-leaf { color: var(--fayrouz); width: 34px; height: 34px; opacity: .55; animation: float 8s ease-in-out infinite; }
.d1 { top: 14%; inset-inline-start: 4%; }
.d2 { top: 62%; inset-inline-end: 5%; width: 20px; height: 20px; animation-delay: 1.2s; }
.d3 { top: 8%; inset-inline-end: 8%; }
.d4 { bottom: 14%; inset-inline-start: 6%; }
.d5 { top: 12%; inset-inline-end: 6%; }
.d6 { bottom: 10%; inset-inline-start: 5%; width: 20px; height: 20px; }
.hero > .container, .book > .container { position: relative; z-index: 1; }
@media (max-width: 899px) { .d1, .d3, .d4 { display: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(6deg); } }

/* ----------------------------- Sections ----------------------------- */
.section { position: relative; padding-block: 4.2rem; background: var(--cream); }
.section.tint { background: var(--tint); }
/* Soft wave on top of every section: it reuses the section's own background color. */
.section::before, .site-footer::before {
  content: ""; position: absolute; inset-inline: 0; top: -47px; height: 48px; background: inherit; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 24C240 60 480-10 720 24S1200 58 1440 22V48H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 24C240 60 480-10 720 24S1200 58 1440 22V48H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.section-head { text-align: center; max-width: 700px; margin: 0 auto 2.4rem; }
.eyebrow { display: inline-block; color: var(--deep); font-weight: 800; background: rgba(255, 201, 60, .35); padding: .1rem .9rem; border-radius: 999px; margin-bottom: .8rem; font-size: .95rem; }
.section-sub { color: var(--ink-soft); font-size: 1.1rem; }
.subhead { text-align: center; margin: 3.5rem 0 1.4rem; }

.two-col { display: grid; gap: 2.2rem; align-items: center; }
.photo-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; transform: rotate(-1.2deg); }
html[dir="rtl"] .photo-card { transform: rotate(1.2deg); }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mission { background: #fff; border-radius: 20px; padding: 1.2rem 1.4rem .4rem; margin: 1.4rem 0; border-inline-start: 6px solid var(--fayrouz); box-shadow: var(--shadow-sm); }
.mission h3 { margin-bottom: .3em; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

/* ------------------------------ Cards ------------------------------ */
.cards { display: grid; gap: 1.25rem; }
.card { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--ink-soft); }
.card-icon { width: 60px; height: 60px; border-radius: 20px; background: var(--tint); color: var(--deep); display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.7rem; font-weight: 800; line-height: 1; }
.card-icon svg { width: 30px; height: 30px; }
.cards-3 .card { text-align: center; }
.cards-3 .card-icon { margin-inline: auto; background: var(--yellow); color: #3a2a00; }
.cards-subjects { grid-template-columns: 1fr; }
@media (min-width: 520px) { .cards-subjects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 800px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-subjects { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .cards-subjects { grid-template-columns: repeat(4, 1fr); } }

/* ----------------------------- Timeline ----------------------------- */
.timeline { max-width: 720px; margin-inline: auto; counter-reset: step; position: relative; }
.timeline::before { content: ""; position: absolute; inset-block: 10px; inset-inline-start: 23px; width: 3px; background: repeating-linear-gradient(to bottom, var(--fayrouz) 0 8px, transparent 8px 14px); }
.timeline li { position: relative; padding-inline-start: 70px; padding-block: .3rem 1.4rem; counter-increment: step; }
.timeline li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--yellow); color: #3a2a00; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 5px var(--cream); }
.timeline h3 { margin-bottom: .1em; font-size: 1.15rem; }
.timeline p { margin: 0; color: var(--ink-soft); }

.activity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.activity { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); margin: 0; background: var(--tint); }
.activity img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s ease; }
.activity:hover img { transform: scale(1.05); }
.activity figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 1.8rem .9rem .7rem; color: #fff; font-weight: 800; background: linear-gradient(to top, rgba(8, 56, 56, .85), transparent); font-size: .98rem; line-height: 1.4; }
@media (min-width: 800px) { .activity-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } .activity figcaption { font-size: 1.05rem; } }

/* ----------------------------- Gallery ----------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.gallery-item { padding: 0; border: 0; background: #fff; border-radius: 20px; overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-sm); position: relative; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
@media (min-width: 800px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }

.placeholder-note { text-align: center; margin: 1.4rem auto 0; max-width: 640px; background: #FFF1C2; color: #5a4300; border-radius: 14px; padding: .5rem 1rem; font-size: .92rem; line-height: 1.6; }

/* Lightbox */
.lightbox { border: 0; padding: 0; width: 100%; max-width: 100vw; height: 100%; max-height: 100vh; background: rgba(6, 40, 40, .94); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.lightbox::backdrop { background: rgba(6, 40, 40, .7); }
.lightbox figure { margin: 0; max-width: min(900px, 78vw); text-align: center; }
.lightbox img { max-height: 76vh; width: auto; margin-inline: auto; border-radius: 16px; }
.lightbox figcaption { margin-top: .8rem; font-weight: 700; }
.lb-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--deep); font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-nav { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--deep); cursor: pointer; display: grid; place-items: center; flex: none; }

/* ----------------------------- Slider ----------------------------- */
.slider { display: flex; align-items: center; gap: .6rem; }
.slider-track { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .6rem .3rem 1rem; flex: 1; scroll-behavior: smooth; }
.slider-track::-webkit-scrollbar { display: none; }
.review { flex: 0 0 100%; scroll-snap-align: center; background: #fff; border-radius: var(--radius); padding: 2rem 1.6rem; box-shadow: var(--shadow-sm); position: relative; }
.review::before { content: "“"; position: absolute; top: .2rem; inset-inline-start: 1.2rem; font-size: 4rem; color: var(--yellow); line-height: 1; font-family: Georgia, serif; }
.review p { font-size: 1.1rem; margin: 1.6rem 0 1rem; }
.review cite { font-style: normal; font-weight: 800; color: var(--deep); }
.slider-btn, .lb-nav { transition: background-color .2s; }
.slider-btn { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--deep); background: #fff; color: var(--deep); cursor: pointer; display: grid; place-items: center; }
.slider-btn:hover { background: var(--deep); color: #fff; }
/* Arrows: "previous" points to the reading start, "next" to the reading end */
html[dir="ltr"] .slider-btn.prev .icon, html[dir="ltr"] .lb-prev .icon { transform: scaleX(-1); }
html[dir="rtl"] .slider-btn.next .icon, html[dir="rtl"] .lb-next .icon { transform: scaleX(-1); }
@media (min-width: 900px) { .review { flex-basis: calc(50% - .75rem); } }
@media (max-width: 520px) { .slider-btn { width: 40px; height: 40px; } .slider { gap: .3rem; } }

/* ------------------------------- FAQ ------------------------------- */
.faq details { background: #fff; border-radius: 20px; margin-bottom: .8rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; padding-inline-end: 3.6rem; font-weight: 800; color: var(--deep); position: relative; min-height: 56px; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 1.1rem; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; font-size: 1.4rem; line-height: 1; color: var(--deep); }
.faq details[open] summary::after { content: "–"; background: var(--yellow); }
.faq details p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* ------------------------------ Booking ------------------------------ */
.book { background: var(--deep); color: #fff; }
.book h2 { color: #fff; }
.book .eyebrow { background: var(--yellow); color: #3a2a00; }
.book .lead { color: #e3f6f5; }
.book-grid { display: grid; gap: 2rem; align-items: start; }
.form-card { background: #fff; color: var(--ink); border-radius: 28px; padding: 1.6rem; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 800; margin-bottom: .3rem; color: var(--deep); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  min-height: 52px; padding: .7rem 1rem; border: 2px solid #bfe3e1; border-radius: 14px; background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--fayrouz); outline-offset: 1px; border-color: var(--deep); }
.field [aria-invalid="true"] { border-color: var(--error); }
.err { color: var(--error); font-weight: 700; font-size: .92rem; margin: .3rem 0 0; min-height: 0; }
.err:empty { display: none; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.fine { font-size: .88rem; color: var(--ink-soft); margin: .8rem 0 0; line-height: 1.6; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success { text-align: center; padding: 1rem .5rem; }
.success[hidden], .form-card form[hidden] { display: none; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; margin: 0 auto 1rem; }
.success-icon .icon { width: 38px; height: 38px; }
.form-error { text-align: center; margin-top: 1rem; }
@media (min-width: 900px) { .book-grid { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; } .form-card { padding: 2.2rem; } }

/* ------------------------------ Contact ------------------------------ */
.contact-grid { display: grid; gap: 1.8rem; }
.contact-list { display: grid; gap: 1.1rem; align-content: start; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list li > .icon { width: 52px; height: 52px; padding: 13px; border-radius: 16px; background: var(--tint); color: var(--deep); }
.contact-list strong { display: block; color: var(--deep); }
.contact-list span, .contact-list a { color: var(--ink-soft); font-weight: 600; text-decoration: none; }
.contact-ctas { flex-wrap: wrap; gap: .7rem !important; }
.map-box { min-height: 300px; border-radius: var(--radius); background: var(--tint); border: 3px dashed #9fd7d4; display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--deep); font-weight: 700; overflow: hidden; }
.map-box iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.map-box:has(iframe) { border: 0; padding: 0; display: block; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 3rem; } }

/* ------------------------------ Footer ------------------------------ */
.site-footer { position: relative; background: var(--deep); color: #dff3f2; padding-block: 3.5rem 1.4rem; margin-top: 0; }
.site-footer h3 { color: var(--yellow); }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand p { margin: 1rem 0; max-width: 28em; }
.footer-links li a { color: #dff3f2; text-decoration: none; display: inline-block; padding: .25rem 0; }
.footer-links li a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: .7rem; flex-wrap: wrap; }
.social a { width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; transition: background-color .2s, transform .2s; }
.social a:hover { background: var(--coral); color: var(--on-coral); transform: translateY(-2px); }
.copyright { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 2.2rem; padding-top: 1.1rem; font-size: .92rem; text-align: center; }
.copyright p { margin: 0; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }

/* ----------------------- Floating buttons ----------------------- */
.float-wa { position: fixed; z-index: 90; inset-inline-end: 18px; bottom: 18px; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); transition: transform .2s; }
.float-wa:hover { transform: scale(1.07); }
.float-wa .icon { width: 32px; height: 32px; }
.to-top { position: fixed; z-index: 90; inset-inline-end: 24px; bottom: 90px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--deep); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.to-top[hidden] { display: none; }

/* ----------------------- Scroll animation ----------------------- */
.js-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js-ready .reveal.in { opacity: 1; transform: none; }

/* When GSAP is running it controls the reveal; the CSS transition is switched off. */
.gsap-on .reveal { transition: none; }
.gsap-on .card:hover { transform: translateY(-4px); }
.gsap-on .timeline::before { transform-origin: top; transform: scaleY(var(--line, 1)); }
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 200; background: linear-gradient(90deg, var(--fayrouz), var(--yellow), var(--coral)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }
.gsap-on .site-header { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-ready .reveal { opacity: 1; transform: none; }
}

.learn-list { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .4rem; }
.learn-list li { position: relative; padding-inline-start: 1.5rem; color: var(--ink-soft); font-size: .95rem; }
.learn-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--tint); }
.skills { margin-top: 2.5rem; text-align: center; }
.skills h3 { margin-bottom: 1rem; }
.skill-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.skill-chips li { background: #fff; color: var(--deep); font-weight: 700; padding: .55rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
