/* الموقع التعريفي — 2T Club Manager (site-design.md — D-261). ألوان الهوية من اللوجو، وخصائص منطقية تعمل مع RTL و LTR. */
:root {
    --teal: #14b8a6;
    --teal-600: #0d9488;
    --teal-300: #5eead4;
    --navy: #091825;
    --navy-800: #0f2133;
    --navy-700: #1b2740;
    --blue: #1e4fbf;
    --ink: #1b2740;
    --muted: #5b6b82;
    --bg: #f3f5f8;
    --white: #ffffff;
    --line: #e2e8f0;
    --radius: 18px;
    --shadow: 0 12px 34px rgba(9, 24, 37, .10);
    --grad: linear-gradient(135deg, var(--teal) 0%, #1689b8 55%, var(--blue) 100%);
    --font: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

html[lang="en"] { --font: 'Montserrat', 'Segoe UI', Arial, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ———— الأزرار ———— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 1rem; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: var(--white); box-shadow: 0 10px 24px rgba(20, 184, 166, .35); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--white); border: 1px solid rgba(255, 255, 255, .25); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-outline { background: transparent; color: var(--teal-600); border: 2px solid var(--teal); }
.btn-block { width: 100%; }

/* ———— الرأس ———— */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(9, 24, 37, .92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.site-header .logo img { height: 48px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: #cbd5e1; font-weight: 600; font-size: .95rem; }
.site-nav a:hover, .site-nav a.active { color: var(--teal-300); }
.site-actions { display: flex; align-items: center; gap: .75rem; }
.site-actions .lang { color: #cbd5e1; font-weight: 600; font-size: .9rem; }
.site-actions .btn { padding: .55rem 1.1rem; font-size: .9rem; }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.6rem; cursor: pointer; }

/* ———— الواجهة ———— */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 80% 10%, rgba(20, 184, 166, .22), transparent 60%), radial-gradient(900px 500px at 10% 90%, rgba(30, 79, 191, .25), transparent 60%), var(--navy); color: var(--white); }
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 5rem 0 4.5rem; }
.hero .badge { display: inline-block; padding: .35rem .9rem; border-radius: 999px; background: rgba(20, 184, 166, .15); color: var(--teal-300); font-weight: 700; font-size: .85rem; border: 1px solid rgba(94, 234, 212, .3); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.25; margin: 1.1rem 0 .4rem; font-weight: 800; }
.hero h1 .accent { display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: #cbd5e1; font-size: 1.12rem; max-width: 36rem; margin: 1rem 0 2rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero .visual { position: relative; }
.hero .visual img { border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .08); }
.hero .visual::before { content: ""; position: absolute; inset: -24px; border-radius: 40px; background: var(--grad); filter: blur(60px); opacity: .25; z-index: 0; }
.hero .visual img { position: relative; z-index: 1; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -2.5rem; position: relative; z-index: 2; }
.stat { background: var(--white); border-radius: var(--radius); padding: 1.3rem 1rem; text-align: center; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-weight: 600; font-size: .92rem; }

/* ———— الأقسام ———— */
.section { padding: 5rem 0; }
.section.alt { background: var(--white); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.section-head .kicker { color: var(--teal-600); font-weight: 800; font-size: .9rem; letter-spacing: .04em; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: .4rem 0 .6rem; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.section.alt .feature { background: var(--bg); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(20, 184, 166, .4); }
.feature .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--grad); color: var(--white); display: grid; place-items: center; margin-bottom: 1rem; }
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }

.offline { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%); color: var(--white); border-radius: 28px; padding: 3.2rem; overflow: hidden; position: relative; }
.offline h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 1rem; }
.offline p { color: #cbd5e1; margin: 0 0 1.4rem; }
.offline ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.offline li { display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.offline li::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(20, 184, 166, .2); color: var(--teal-300); font-size: .85rem; flex-shrink: 0; }
.offline .art { display: grid; place-items: center; }
.offline .art img { width: min(260px, 80%); filter: drop-shadow(0 20px 40px rgba(20, 184, 166, .35)); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: var(--white); font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem; }
.step h3 { margin: 0 0 .3rem; }
.step p { margin: 0; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--teal); box-shadow: var(--shadow); transform: translateY(-6px); }
.plan h3 { margin: 0; font-size: 1.3rem; }
.plan .price { font-size: 2.2rem; font-weight: 800; margin: .8rem 0 0; color: var(--navy-700); }
.plan .price small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.plan .yearly { color: var(--teal-600); font-weight: 700; font-size: .9rem; margin-bottom: 1rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .5rem; flex: 1; }
.plan li { display: flex; gap: .5rem; color: var(--muted); }
.plan li::before { content: "✓"; color: var(--teal); font-weight: 800; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .8rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.3rem; }
.section.alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: .7rem 0 0; }

.cta-band { background: var(--grad); color: var(--white); border-radius: 28px; padding: 3rem; text-align: center; }
.cta-band h2 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { margin: 0 0 1.6rem; opacity: .92; }
.cta-band .btn { background: var(--white); color: var(--navy-700); }

/* ———— صفحات داخلية ———— */
.page-hero { background: radial-gradient(900px 400px at 85% 0%, rgba(20, 184, 166, .25), transparent 60%), var(--navy); color: var(--white); padding: 4rem 0 3.2rem; text-align: center; }
.page-hero h1 { margin: 0 0 .6rem; font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: #cbd5e1; margin: 0 auto; max-width: 40rem; font-size: 1.08rem; }
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: start; }
.card { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.card h2, .card h3 { margin-top: 0; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.value { background: var(--bg); border-radius: 14px; padding: 1.2rem; }
.value h3 { margin: 0 0 .3rem; font-size: 1.05rem; color: var(--teal-600); }
.value p { margin: 0; color: var(--muted); }
.prose p { color: var(--muted); font-size: 1.05rem; }
.prose h2 { margin-bottom: .4rem; }
.legal { white-space: pre-line; color: var(--muted); }

.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.2rem; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: .35rem; font-weight: 700; font-size: .92rem; }
.form label small { color: var(--muted); font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--bg); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20, 184, 166, .15); background: var(--white); }
.form .error { color: #dc2626; font-size: .85rem; font-weight: 600; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.2rem; border-radius: 14px; font-weight: 700; margin-bottom: 1.2rem; }
.alert.success { background: rgba(20, 184, 166, .12); color: var(--teal-600); border: 1px solid rgba(20, 184, 166, .35); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: .8rem; align-items: center; }
.info-list .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(20, 184, 166, .12); color: var(--teal-600); display: grid; place-items: center; flex-shrink: 0; }
.info-list .ic svg { width: 22px; height: 22px; }
.info-list small { display: block; color: var(--muted); font-weight: 600; }
.socials { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.socials a { padding: .45rem .9rem; border-radius: 999px; background: var(--bg); font-weight: 700; font-size: .85rem; color: var(--teal-600); }
.checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.checks li { display: flex; gap: .55rem; font-weight: 600; }
.checks li::before { content: "✓"; color: var(--teal); font-weight: 800; }
.login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 900px; margin: 0 auto; }

/* ———— التذييل ———— */
.site-footer { background: var(--navy); color: #94a3b8; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer img { height: 70px; width: auto; margin-bottom: .6rem; }
.site-footer h4 { color: var(--white); margin: 0 0 .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a:hover { color: var(--teal-300); }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2.5rem; padding-top: 1.2rem; text-align: center; font-size: .9rem; }

/* ———— الموبايل ———— */
@media (max-width: 960px) {
    .hero .grid, .offline, .two-col { grid-template-columns: 1fr; }
    .hero .grid { padding: 3.5rem 0 4rem; }
    .hero .visual { max-width: 420px; margin-inline: auto; }
    .features, .steps { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .site-footer .cols { grid-template-columns: 1fr 1fr; }
    .login-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .menu-toggle { display: block; }
    /* الصورة طولية: على الموبايل تأخذ شاشة كاملة، فنقصّها لارتفاع معقول */
    .hero .visual img { width: 100%; height: 340px; object-fit: cover; object-position: center 30%; }
    .site-nav { display: none; position: absolute; top: 72px; inset-inline: 0; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 16px 1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .site-nav.open { display: flex; }
    .site-nav a { padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
    .site-actions .btn-primary { display: none; }
    .features, .steps, .values, .form { grid-template-columns: 1fr; }
    .offline, .cta-band, .card { padding: 1.6rem; }
    .section { padding: 3.5rem 0; }
    .site-footer .cols { grid-template-columns: 1fr; }
    .plan.featured { transform: none; }
}
