/*
Theme Name: Alphapreneurs
Theme URI: https://alphapreneurs.tn/
Author: Nesslek 360
Author URI: https://nesslek.com.tn/
Description: Custom brand theme for Alphapreneurs — fast, clean, French-first, no page builder. Brand palette (orange/pink/blue/navy), Poppins x Open Sans, editable contact details via the Customizer.
Version: 1.7.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alphapreneurs
*/

/* =============================================================================
   Alphapreneurs — brand build
   Palette: orange #FF841C · pink #FF1F8B · blue #2F3BFD · navy #0A1834
   Signature: blue→purple→pink gradient (from the logo ribbon)
   Type: Poppins (display/UI) × Open Sans (body)
   ============================================================================= */

:root {
  /* brand */
  --navy:   #0a1834;
  --blue:   #2f3bfd;
  --purple: #6f2cf0;
  --pink:   #ff1f8b;
  --orange: #ff841c;
  --grad:      linear-gradient(120deg, #2f3bfd 0%, #6f2cf0 52%, #ff1f8b 100%);
  --grad-warm: linear-gradient(120deg, #ff841c 0%, #ff1f8b 100%);

  /* surfaces */
  --bg:      #f4f6fd;
  --paper:   #ffffff;
  --ink:     #0a1834;
  --ink-soft:#5b6680;
  --line:        rgba(10, 24, 52, 0.10);
  --line-strong: rgba(10, 24, 52, 0.18);

  /* legacy aliases (kept so existing inline styles keep working) */
  --cream:     var(--bg);
  --cream-200: #e9edfb;
  --amber:      var(--orange);
  --amber-deep: var(--pink);
  --pine:       var(--blue);
  --pine-soft:  var(--purple);

  --maxw: 1180px;
  --gut: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 18px;
  --shadow: 0 20px 55px -28px rgba(10, 24, 52, 0.45);

  --f-display: "Poppins", system-ui, sans-serif;
  --f-body: "Open Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.eyebrow {
  font-family: var(--f-display);
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pink);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--grad); display: inline-block; }
.lead { font-size: clamp(1.04rem, 2.1vw, 1.22rem); color: var(--ink-soft); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--f-display); font-weight: 600; font-size: 0.97rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--grad); box-shadow: 0 14px 30px -12px rgba(111, 44, 240, 0.6); }
.btn-accent { background: var(--grad); color: #fff; box-shadow: 0 14px 30px -14px rgba(255, 31, 139, 0.55); }
.btn-accent:hover { filter: brightness(1.07); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 253, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
.mark { width: 40px; height: 40px; flex: none; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(111, 44, 240, 0.35)); }
.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a { font-family: var(--f-display); font-size: 0.95rem; font-weight: 500; position: relative; padding-block: 0.3rem; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2.5px; width: 0; border-radius: 2px; background: var(--grad); transition: width 0.2s ease; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 0.8rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.25s; }

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-text { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0.2rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gut) 1.5rem; box-shadow: var(--shadow);
  }
  .nav-links a { font-size: 1.1rem; width: 100%; padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
  .site-header.open .nav-links { display: flex; }
  .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 55% at 88% 8%, rgba(255, 31, 139, 0.14), transparent 60%),
    radial-gradient(50% 50% at 3% 92%, rgba(47, 59, 253, 0.14), transparent 60%),
    radial-gradient(40% 40% at 70% 60%, rgba(255, 132, 28, 0.10), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.5rem); margin-block: 1.1rem 1.3rem; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--f-display); font-weight: 700; font-size: 2rem; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .lbl { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.3rem; }
.hero-visual { position: relative; }
.hero-visual .photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background:
    url("assets/alphapreneurs-logo.png") center 40% / 54% no-repeat,
    radial-gradient(70% 55% at 50% 30%, rgba(47, 59, 253, 0.55), transparent 62%),
    radial-gradient(60% 50% at 72% 82%, rgba(255, 31, 139, 0.5), transparent 58%),
    var(--navy);
}
.hero-visual .chip {
  position: absolute; left: -14px; bottom: 26px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.9rem 1.1rem; box-shadow: var(--shadow); max-width: 230px;
}
.hero-visual .chip strong { font-family: var(--f-display); display: block; font-size: 1.02rem; color: var(--navy); }
.hero-visual .chip span { font-size: 0.82rem; color: var(--ink-soft); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; }
}

/* Section heads */
.head { max-width: 62ch; }
.head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-block: 0.8rem 0.9rem; }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* Grids + cards */
.grid { display: grid; gap: 1.4rem; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem; position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad); color: #fff; margin-bottom: 1rem;
  box-shadow: 0 10px 22px -12px rgba(111, 44, 240, 0.6);
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.22rem; margin-bottom: 0.5rem; color: var(--navy); }
.card p { color: var(--ink-soft); font-size: 0.96rem; }

/* numbered module card */
.mod { display: flex; gap: 1.1rem; align-items: flex-start; }
.mod .n {
  font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; color: #fff;
  background: var(--grad); border-radius: 13px;
  width: 48px; height: 48px; display: grid; place-items: center; flex: none;
}
.mod ul { margin-top: 0.7rem; display: grid; gap: 0.35rem; }
.mod li { font-size: 0.89rem; color: var(--ink-soft); padding-left: 1.1rem; position: relative; }
.mod li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.flip .media { order: 2; }
.split .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5/4; background: var(--cream-200); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split.flip .media { order: -1; } }

/* Panels */
.panel { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(2.2rem, 5vw, 4rem); position: relative; overflow: hidden; }
.panel::after { content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.9;
  background: radial-gradient(40% 60% at 90% 10%, rgba(255, 31, 139, 0.25), transparent 60%),
              radial-gradient(40% 60% at 5% 100%, rgba(47, 59, 253, 0.3), transparent 60%); }
.panel > * { position: relative; z-index: 1; }
.panel.pine { background: var(--grad); }
.panel.pine::after { opacity: 0; }
.panel h2 { color: #fff; }
.panel .lead { color: rgba(255, 255, 255, 0.85); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.cta-band .lead { margin: 1rem auto 2rem; }

/* Testimonial */
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.quote .stars { color: var(--orange); letter-spacing: 2px; }
.quote p { font-family: var(--f-display); font-weight: 500; font-size: 1.18rem; line-height: 1.4; margin-block: 0.8rem 1.2rem; color: var(--navy); }
.quote .who { display: flex; align-items: center; gap: 0.8rem; }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--f-display); }
.quote .who strong { display: block; color: var(--navy); }
.quote .who span { font-size: 0.85rem; color: var(--ink-soft); }

/* Contact */
.info-row { display: flex; gap: 1rem; align-items: flex-start; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.info-row .ico { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.info-row .ico svg { width: 20px; height: 20px; }
.info-row .lbl { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.info-row .val { font-size: 1.08rem; font-weight: 600; color: var(--navy); font-family: var(--f-display); }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-size: 0.85rem; font-weight: 600; font-family: var(--f-display); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 0.98rem; padding: 0.8rem 1rem;
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--paper); color: var(--ink);
}
.field select { width: 100%; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230a1834' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 59, 253, 0.12); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding-block: 1.1rem; }
.faq summary { font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pink); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-soft); margin-top: 0.8rem; }

/* Footer */
.site-footer { background: var(--navy); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 2rem; }
.foot-grid h4 { font-family: var(--f-display); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; }
.foot-grid li { margin-bottom: 0.55rem; font-size: 0.94rem; }
.foot-brand .brand { color: #fff; margin-bottom: 1rem; }
.foot-brand p { color: rgba(255, 255, 255, 0.68); font-size: 0.94rem; max-width: 32ch; }
.socials { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.2); display: grid; place-items: center; transition: 0.2s; }
.socials a:hover { background: var(--grad); border-color: transparent; color: #fff; transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Misc */
.tag { display: inline-block; font-family: var(--f-display); font-size: 0.8rem; font-weight: 600; color: #fff; background: var(--grad); padding: 0.35rem 0.85rem; border-radius: 999px; }
.divider { height: 1px; background: var(--line); border: 0; }
.note { font-size: 0.82rem; color: var(--ink-soft); }


/* ---- WordPress nav menu integration ---- */
.primary-nav { display: contents; }
.nav-links li { list-style: none; }
.nav-links .current-menu-item > a::after,
.nav-links .current_page_item > a::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px){ .admin-bar .site-header { top: 46px; } }

/* ---- Machrou3ik landing page (was inline) ---- */
/* page-specific helpers */
    .video-wrap { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
    .video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
    .meth { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
    .ring { --p: 60; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; flex: none;
            background: conic-gradient(var(--amber) calc(var(--p)*1%), var(--cream-200) 0); }
    .ring > div { width: 116px; height: 116px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; text-align: center; }
    .ring b { font-family: var(--f-display); font-size: 1.8rem; line-height: 1; color: var(--pine); }
    .ring span { font-size: .8rem; color: var(--ink-soft); }
    @media (max-width:600px){ .meth{ grid-template-columns:1fr; justify-items:center; text-align:center; } }
    .embed-form { width: 100%; min-height: 720px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }

/* ---- Photo gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--cream-200); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }

/* ---- Services hub card thumbnails ---- */
.card-thumb { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; margin-bottom: 1rem; background: var(--cream-200); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-thumb img { transform: scale(1.04); }

/* ---- Track record (formations animées) ---- */
.track { display: grid; gap: 1rem; }
.track-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.track-item .when { font-family: var(--f-display); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.track-item h3 { font-size: 1.15rem; margin: .3rem 0 .5rem; color: var(--navy); }
.track-item p { color: var(--ink-soft); font-size: .95rem; }

/* ---- Blog ---- */
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16/9; background: var(--grad); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1.4rem; }
.post-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: .5rem; }
.post-card .post-meta { color: var(--ink-soft); font-size: .82rem; margin-bottom: .6rem; }
.post-card p { color: var(--ink-soft); font-size: .95rem; }
.post-content { max-width: 760px; margin-inline: auto; }
.post-content > * { margin-bottom: 1.1rem; }
.post-content h2 { font-size: 1.6rem; margin-top: 1.8rem; }
.post-content h3 { font-size: 1.3rem; margin-top: 1.4rem; }
.post-content img { border-radius: 14px; }
.post-content a { color: var(--blue); text-decoration: underline; }
.post-content blockquote { border-left: 3px solid var(--pink); padding-left: 1.2rem; font-family: var(--f-display); font-size: 1.2rem; color: var(--navy); }
.post-hero { padding-block: clamp(2.5rem,6vw,4rem) 1rem; }
.pagination { display: flex; gap: .6rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: .5rem .9rem; border: 1px solid var(--line-strong); border-radius: 10px; font-family: var(--f-display); font-weight: 600; }
.pagination .page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; }

/* ---- Cookie consent ---- */
.alpha-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; padding: 1rem; display: flex; justify-content: center; pointer-events: none; }
.alpha-cookie[hidden] { display: none; }
.alpha-cookie .ac-banner, .alpha-cookie .ac-prefs { pointer-events: auto; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(10,24,52,.22); width: 100%; max-width: 760px; padding: 1.3rem 1.5rem; }
.alpha-cookie .ac-banner[hidden], .alpha-cookie .ac-prefs[hidden] { display: none; }
.ac-text strong, .ac-prefs-head strong { font-family: var(--f-display); font-size: 1.05rem; color: var(--navy); display: block; margin-bottom: .3rem; }
.ac-text p, .ac-prefs-head p { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.ac-text a, .ac-prefs-head a { color: var(--blue); text-decoration: underline; }
.ac-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; margin-top: 1.1rem; }
.ac-actions .btn { padding: .6rem 1.1rem; font-size: .9rem; }
.ac-cats { margin-top: 1rem; display: grid; gap: .6rem; }
.ac-cat { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.ac-cat span { display: flex; flex-direction: column; }
.ac-cat strong { font-size: .95rem; color: var(--navy); }
.ac-cat small { color: var(--ink-soft); font-size: .82rem; }
.ac-cat input { width: 20px; height: 20px; accent-color: var(--pink); flex: none; }
.ac-cat.is-locked { opacity: .85; }
@media (max-width: 560px) { .ac-actions { justify-content: stretch; } .ac-actions .btn { flex: 1 1 auto; text-align: center; justify-content: center; } }

/* ===================== Brand quizzes ===================== */
.aq-quiz { --aq-accent: var(--pink); max-width: 900px; margin: 2.5rem auto; }
.aq-quiz.aq-verbal      { --aq-accent: var(--pink); }
.aq-quiz.aq-positioning { --aq-accent: var(--blue); }
.aq-quiz.aq-culture     { --aq-accent: var(--orange); }
.aq-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.aq-header { background: var(--grad); color: #fff; padding: 2.2rem 1.5rem; text-align: center; }
.aq-header h2 { font-family: var(--f-display); font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0 0 .35rem; color: #fff; }
.aq-header p { opacity: .95; margin: 0; }
.aq-langs { display: flex; justify-content: center; gap: .5rem; margin-top: 1.1rem; flex-wrap: wrap; }
.aq-lang { padding: .45rem 1.1rem; border: 2px solid rgba(255,255,255,.8); background: transparent; color: #fff; border-radius: 25px; cursor: pointer; font-weight: 600; font-family: var(--f-display); font-size: .85rem; transition: all .25s ease; }
.aq-lang:hover, .aq-lang.active { background: #fff; color: var(--navy); }
.aq-body { padding: 2rem 1.6rem; }
.aq-progress-wrap { height: 8px; background: var(--cream-200); border-radius: 10px; overflow: hidden; margin-bottom: .6rem; }
.aq-progress { height: 100%; width: 0; background: var(--grad); transition: width .3s ease; }
.aq-progress-text { text-align: center; color: var(--ink-soft); font-size: .85rem; font-weight: 600; margin-bottom: 1.4rem; }
.aq-question { display: none; background: #f6f7fb; border-radius: 15px; padding: 1.6rem; border-inline-start: 5px solid var(--aq-accent); }
.aq-question.active { display: block; animation: aqfade .35s ease; }
@keyframes aqfade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.aq-sec { display: inline-block; background: var(--grad); color: #fff; padding: .35rem 1rem; border-radius: 20px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .9rem; font-family: var(--f-display); }
.aq-q-title { font-family: var(--f-display); font-size: 1.15rem; color: var(--navy); margin-bottom: .6rem; font-weight: 600; line-height: 1.5; }
.aq-q-desc { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1rem; font-style: italic; line-height: 1.6; }
.aq-quiz textarea { width: 100%; padding: .9rem; border: 2px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: var(--f-body); min-height: 120px; resize: vertical; background: #fff; color: var(--ink); }
.aq-quiz textarea:focus { outline: none; border-color: var(--aq-accent); box-shadow: 0 0 0 3px rgba(47,59,253,.12); }
.aq-opt { background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 1rem; margin-bottom: .7rem; cursor: pointer; display: flex; gap: .7rem; align-items: flex-start; transition: all .25s ease; }
.aq-opt:hover { border-color: var(--aq-accent); }
.aq-opt.selected { border-color: var(--aq-accent); background: #f6f7fb; }
.aq-opt input { margin-top: .2rem; width: 18px; height: 18px; flex: none; accent-color: var(--aq-accent); }
.aq-opt b { display: block; color: var(--navy); margin-bottom: .2rem; }
.aq-opt small { color: var(--ink-soft); }
.aq-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; }
.aq-btn { padding: .9rem 1.6rem; border: none; border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; font-family: var(--f-display); flex: 1; max-width: 200px; transition: transform .2s ease; }
.aq-btn:disabled { opacity: .5; cursor: not-allowed; }
.aq-prev { background: #8a94a6; color: #fff; }
.aq-next, .aq-submit { background: var(--grad); color: #fff; }
.aq-btn:hover:not(:disabled) { transform: translateY(-2px); }
.aq-result { display: none; }
.aq-result.active { display: block; }
.aq-doc { background: #fff; padding: 2rem; border-radius: 12px; }
.aq-doc .doc-header { text-align: center; margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 3px solid var(--aq-accent); }
.aq-doc .doc-title { font-family: var(--f-display); font-size: 1.8rem; color: var(--navy); font-weight: 700; }
.aq-doc .doc-subtitle { color: var(--ink-soft); font-style: italic; }
.aq-doc .statement-section { margin-bottom: 1.8rem; }
.aq-doc .statement-label { font-size: .8rem; color: var(--aq-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8rem; font-family: var(--f-display); }
.aq-item { padding: 1rem 1.1rem; background: #f6f7fb; border-radius: 10px; border-inline-start: 4px solid var(--aq-accent); margin-bottom: .8rem; }
.aq-item .aq-q { font-weight: 600; color: var(--navy); margin-bottom: .3rem; font-size: .95rem; }
.aq-item .aq-a { color: var(--ink); white-space: pre-wrap; line-height: 1.7; }
.aq-highlight { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; color: var(--navy); text-align: center; padding: 1.6rem; background: #f2f4ff; border: 3px solid var(--aq-accent); border-radius: 15px; margin: 1.2rem 0; font-style: italic; }
.aq-dl-wrap { text-align: center; }
.aq-download { display: inline-block; background: var(--grad); color: #fff; padding: 1rem 2rem; border-radius: 10px; border: none; font-weight: 600; font-size: 1rem; cursor: pointer; margin-top: 1.5rem; font-family: var(--f-display); transition: transform .2s ease; }
.aq-download:hover { transform: translateY(-2px); }
.aq-quiz[dir="rtl"] { text-align: right; }
.aq-quiz[dir="rtl"] .aq-langs, .aq-quiz[dir="rtl"] .aq-header { text-align: center; }
/* quiz comments */
.aq-comments { max-width: 760px; margin: 0 auto; padding: 2.5rem var(--gut) 0; }
.aq-comments .commentlist { list-style: none; margin: 0 0 2rem; padding: 0; }
.aq-comments .commentlist li { background: #f6f7fb; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.3rem; margin-bottom: 1rem; }
.aq-comments .comment-author { font-family: var(--f-display); font-weight: 600; color: var(--navy); }
.aq-comments .comment-meta { font-size: .8rem; color: var(--ink-soft); margin-bottom: .4rem; }
.aq-comments-title { font-family: var(--f-display); color: var(--navy); margin-bottom: 1.2rem; }
.aq-comments .comment-form { display: grid; gap: .8rem; }
.aq-comments .comment-form input[type="text"], .aq-comments .comment-form input[type="email"], .aq-comments .comment-form input[type="url"], .aq-comments .comment-form textarea { width: 100%; padding: .8rem; border: 2px solid var(--line); border-radius: 10px; font-family: var(--f-body); }
.aq-comments .comment-form .submit { background: var(--grad); color: #fff; border: none; border-radius: 10px; padding: .85rem 1.6rem; font-family: var(--f-display); font-weight: 600; cursor: pointer; }
@media (max-width: 768px) { .aq-nav { flex-direction: column; } .aq-btn { max-width: 100%; } }

/* ===== Video testimonials (Machrou3ik) ===== */
.vid-card { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.vid-frame { position: relative; aspect-ratio: 16 / 9; background: var(--navy); }
.vid-frame iframe, .vid-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.vid-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; background: var(--grad); color: #fff; }
.vid-play { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.vid-play svg { width: 26px; height: 26px; margin-left: 3px; }
.vid-ph-txt { font-family: var(--f-display); font-weight: 600; font-size: .95rem; opacity: .95; }
.vid-cap { padding: 1rem 1.1rem; font-family: var(--f-display); font-weight: 600; color: var(--navy); text-align: center; }

/* ===== Contact map ===== */
.map-wrap { position: relative; aspect-ratio: 16 / 7; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .map-wrap { aspect-ratio: 4 / 3; } }

/* ===== Trainers (Machrou3ik) ===== */
.trainer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; max-width: 760px; margin: 2.2rem auto 0; }
.trainer-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem 1.6rem; text-align: center; }
.trainer-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto .9rem; border: 3px solid var(--cream-200); }
.trainer-card h3 { font-family: var(--f-display); color: var(--navy); font-size: 1.2rem; }
.trainer-card .role { color: var(--ink-soft); margin-top: .4rem; line-height: 1.6; }
.trainer-links { display: flex; justify-content: center; gap: .6rem; margin-top: 1.1rem; }
.trainer-links a { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--navy); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.trainer-links a:hover { background: var(--grad); color: #fff; border-color: transparent; }
.trainer-links svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .trainer-grid { grid-template-columns: 1fr; max-width: 360px; } }
