/* ============================================================
   style.css — أكاديمية أحياء الرياضية
   يُستخدم في: index.html  |  register.html
   ============================================================ */


/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
    --primary: hsl(184, 100%, 22%);
    /* #00656E  — Teal  */
    --primary-dark: hsl(160, 24%, 17%);
    /* #223631  — Pine Grove */
    --primary-foreground: hsl(43, 23%, 93%);
    /* #EDE8DC  — Cloud Dancer */
    --accent: hsl(25, 53%, 46%);
    /* #B36530  — Copper/Orange */
    --accent-foreground: hsl(43, 23%, 93%);
    --background: hsl(43, 23%, 93%);
    --section-dark: hsl(160, 24%, 17%);
    --foreground: hsl(160, 24%, 17%);
    --card: #ffffff;
    --card-foreground: hsl(160, 24%, 17%);
    --muted-foreground: hsl(160, 15%, 40%);
    --border: hsl(40, 15%, 78%);
}


/* ============================================================
   2. BASE RESET
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--background);
    color: var(--foreground);
    direction: rtl;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
}


/* ============================================================
   3. SHARED UTILITIES
   ============================================================ */

/* تدرج النص البرتقالي */
.text-gradient-copper {
    background: linear-gradient(135deg, hsl(25, 53%, 46%), hsl(30, 60%, 55%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* زر برتقالي مُملَّس */
.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--accent-foreground) !important;
    font-weight: 700;
    font-size: .9rem;
    padding: 10px 24px;
    border-radius: 9999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity .25s, transform .25s;
}

.btn-accent:hover {
    opacity: .88;
}

/* زر الإرسال (عريض) */
.btn-submit {
    width: 100%;
    background: var(--accent);
    color: var(--accent-foreground);
    border: none;
    border-radius: 9999px;
    padding: 15px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: opacity .25s, transform .25s;
    box-shadow: 0 6px 24px rgba(179, 101, 48, .3);
}

.btn-submit:hover {
    opacity: .9;
    transform: translateY(-2px);
}

/* زر المسح */
.btn-reset {
    width: 100%;
    background: transparent;
    color: var(--muted-foreground);
    border: 1.5px solid var(--border);
    border-radius: 9999px;
    padding: 13px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
}

.btn-reset:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* عنوان قسم - فاصل */
.section-sub {
    color: var(--muted-foreground);
    font-size: 1.05rem;
    margin-bottom: 64px;
}


/* ============================================================
   4. NAVBAR  (مشترك بين الصفحتين)
   ============================================================ */
.site-navbar {
    position: sticky;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: hsla(184, 100%, 22%, .95);
    backdrop-filter: blur(6px);
}

/* index.html → position: fixed */
.site-navbar.fixed-top-nav {
    position: fixed;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
}

.nav-logo {
    height: 52px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(237, 232, 220, .82);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color .25s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

/* زر الهامبرغر — موبايل */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--primary-foreground);
    margin: 5px 0;
    transition: all .3s;
}

/* قائمة موبايل */
.mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    background: hsla(184, 100%, 22%, .98);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: rgba(237, 232, 220, .85);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 767px) {

    .nav-links,
    .site-navbar .btn-accent {
        display: none;
    }

    .nav-toggle {
        display: block;
    }
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}


/* ============================================================
   5. FOOTER  (مشترك)
   ============================================================ */
.site-footer {
    background: var(--section-dark);
    padding: 48px 0;
}

.site-footer .footer-logo {
    height: 56px;
    width: auto;
}

.site-footer p {
    color: rgba(237, 232, 220, .55);
    font-size: .88rem;
    margin: 0;
}


/* ============================================================
   6. INDEX — HERO
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsl(184, 100%, 22%), hsl(160, 24%, 17%));
    opacity: .75;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--primary-foreground);
    padding: 80px 16px;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp .8s ease-out forwards;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(237, 232, 220, .85);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp .8s .2s ease-out both;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp .8s .4s ease-out both;
}

.btn-outline-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(237, 232, 220, .45);
    color: var(--primary-foreground);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 40px;
    border-radius: 9999px;
    text-decoration: none;
    transition: background .25s;
}

.btn-outline-hero:hover {
    background: rgba(237, 232, 220, .1);
    color: var(--primary-foreground);
}

.btn-accent-hero {
    font-size: 1.05rem;
    padding: 14px 40px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   7. INDEX — ABOUT
   ============================================================ */
.about-section {
    padding: 96px 0;
    background: var(--background);
}

.about-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 24px;
}

.about-section p {
    font-size: 1.05rem;
    color: var(--muted-foreground);
    line-height: 1.9;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
}

.stat-label {
    font-size: .85rem;
    color: var(--muted-foreground);
    margin-top: 4px;
}

.logo-img {
    max-width: 280px;
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .18));
    transition: transform .4s;
}

.logo-img:hover {
    transform: scale(1.04);
}


/* ============================================================
   8. INDEX — PROGRAMS
   ============================================================ */
.programs-section {
    padding: 96px 0;
    background: var(--section-dark);
}

.programs-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--primary-foreground);
    margin-bottom: 16px;
}

.programs-section .section-sub {
    color: rgba(237, 232, 220, .7);
    margin-bottom: 64px;
}

.program-card {
    background: var(--card);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    transition: transform .3s, box-shadow .3s;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

.program-card-img {
    height: 224px;
    overflow: hidden;
}

.program-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.program-card:hover .program-card-img img {
    transform: scale(1.1);
}

.program-card-body {
    padding: 24px;
}

.program-card-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--card-foreground);
    margin-bottom: 8px;
}

.program-card-body p {
    color: var(--muted-foreground);
    font-size: .95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.program-card-body a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: .95rem;
    transition: color .25s;
}

.program-card-body a:hover {
    color: var(--accent);
}


/* ============================================================
   9. INDEX — CONTACT
   ============================================================ */
.contact-section {
    padding: 96px 0;
    background: var(--background);
}

.contact-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.contact-section .section-sub {
    color: var(--muted-foreground);
    margin-bottom: 64px;
}

.contact-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon-wrap svg {
    color: var(--primary-foreground);
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.contact-label {
    font-size: .82rem;
    color: var(--muted-foreground);
}

.contact-value {
    font-weight: 700;
    color: var(--foreground);
    font-size: .97rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: .75rem;
    padding: 12px 16px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    color: var(--card-foreground);
    margin-bottom: 16px;
    transition: border-color .25s, box-shadow .25s;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--muted-foreground);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(184, 100%, 22%, .15);
}

.contact-form textarea {
    resize: none;
    height: 100px;
}

.contact-form .btn-submit {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 14px;
}


/* ============================================================
   10. REGISTER — PAGE HEADER
   ============================================================ */
.page-header {
    background: var(--section-dark);
    padding: 56px 0 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 101, 110, .4), transparent 60%);
}

.page-header .badge-pill {
    display: inline-block;
    background: rgba(179, 101, 48, .2);
    border: 1px solid rgba(179, 101, 48, .5);
    color: hsl(25, 53%, 65%);
    padding: 5px 18px;
    border-radius: 9999px;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--primary-foreground);
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
}

.page-header p {
    color: rgba(237, 232, 220, .65);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}


/* ============================================================
   11. REGISTER — FORM CARDS
   ============================================================ */
.form-wrapper {
    padding: 56px 0 80px;
}

.form-card {
    background: var(--card);
    border-radius: 1.25rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .1);
    overflow: hidden;
}

.form-card-header {
    background: var(--primary);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-card-header .icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-card-header .icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

.form-card-header h2 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
}

.form-card-body {
    padding: 32px;
}


/* ============================================================
   12. REGISTER — FORM FIELDS
   ============================================================ */
.form-label {
    font-size: .87rem;
    font-weight: 700;
    color: var(--muted-foreground);
    margin-bottom: 6px;
    display: block;
}

.form-label .req {
    color: var(--accent);
    margin-right: 2px;
}

.field-input {
    width: 100%;
    background: hsl(43, 23%, 97%);
    border: 1.5px solid var(--border);
    border-radius: .75rem;
    padding: 11px 14px;
    font-family: 'Tajawal', sans-serif;
    font-size: .97rem;
    color: var(--card-foreground);
    transition: border-color .25s, box-shadow .25s;
    outline: none;
}

.field-input::placeholder {
    color: #b0b8b4;
}

.field-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(184, 100%, 22%, .12);
    background: #fff;
}

textarea.field-input {
    resize: vertical;
    min-height: 90px;
}

select.field-input {
    cursor: pointer;
}

/* حقل الجوال مع بادئة +966 */
.input-group-phone {
    position: relative;
}

.input-group-phone .prefix {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: hsla(184, 100%, 22%, .08);
    border-radius: .75rem 0 0 .75rem;
    font-weight: 700;
    font-size: .9rem;
    color: var(--primary);
    border: 1.5px solid var(--border);
    border-left: none;
    pointer-events: none;
    z-index: 1;
}

.input-group-phone .field-input {
    padding-right: 72px;
    border-radius: .75rem;
}

.input-group-phone .field-input:focus {
    border-color: var(--primary);
}


/* ============================================================
   13. REGISTER — RADIO & CHECKBOX
   ============================================================ */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    background: hsl(43, 23%, 97%);
    border: 1.5px solid var(--border);
    border-radius: .65rem;
    padding: 9px 18px;
    cursor: pointer;
    transition: all .25s;
    font-size: .93rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option .radio-dot {
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .25s;
    flex-shrink: 0;
}

.radio-option .radio-dot::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    transform: scale(0);
    transition: all .2s;
}

.radio-option:has(input:checked) {
    border-color: var(--primary);
    background: hsla(184, 100%, 22%, .06);
    color: var(--primary);
}

.radio-option:has(input:checked) .radio-dot {
    border-color: var(--primary);
}

.radio-option:has(input:checked) .radio-dot::after {
    opacity: 1;
    transform: scale(1);
}

.radio-option:hover {
    border-color: var(--primary);
}

/* النمط البرتقالي (حالة الاشتراك) */
.radio-option.accent-style:has(input:checked) {
    border-color: var(--accent);
    background: hsla(25, 53%, 46%, .07);
    color: var(--accent);
}

.radio-option.accent-style:has(input:checked) .radio-dot {
    border-color: var(--accent);
}

.radio-option.accent-style:has(input:checked) .radio-dot::after {
    background: var(--accent);
}

.radio-option.accent-style:hover {
    border-color: var(--accent);
}

/* Checkbox */
.check-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: .93rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.check-option input[type="checkbox"] {
    display: none;
}

.check-box {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    flex-shrink: 0;
}

.check-box svg {
    width: 11px;
    height: 11px;
    stroke: #fff;
    fill: none;
    stroke-width: 3;
    opacity: 0;
    transition: opacity .2s;
}

.check-option:has(input:checked) .check-box {
    background: var(--primary);
    border-color: var(--primary);
}

.check-option:has(input:checked) .check-box svg {
    opacity: 1;
}

.check-option:has(input:checked) {
    color: var(--primary);
}


/* ============================================================
   14. REGISTER — SUMMARY CARD
   ============================================================ */
.summary-card {
    background: var(--section-dark);
    border-radius: 1.25rem;
    padding: 28px;
    color: var(--primary-foreground);
    position: sticky;
    top: 90px;
}

.summary-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    font-size: .88rem;
}

.summary-item .s-label {
    color: rgba(237, 232, 220, .55);
    flex-shrink: 0;
}

.summary-item .s-value {
    font-weight: 700;
    text-align: left;
}

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, .08);
    margin: 16px 0;
}

.academy-note {
    background: rgba(0, 101, 110, .25);
    border: 1px solid rgba(0, 101, 110, .4);
    border-radius: .75rem;
    padding: 14px 16px;
    font-size: .84rem;
    color: rgba(237, 232, 220, .75);
    line-height: 1.7;
    margin-top: 20px;
}

.academy-note strong {
    color: hsl(25, 53%, 65%);
}


/* ============================================================
   15. REGISTER — SUCCESS MODAL
   ============================================================ */
.success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.success-overlay.show {
    display: flex;
}

.success-box {
    background: #fff;
    border-radius: 1.25rem;
    padding: 48px 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    animation: popIn .35s ease;
}

@keyframes popIn {
    from {
        transform: scale(.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon {
    width: 72px;
    height: 72px;
    background: hsla(184, 100%, 22%, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2.5;
}

.success-box h3 {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
}

.success-box p {
    color: var(--muted-foreground);
    font-size: .97rem;
    line-height: 1.7;
}

.success-box .btn-ok {
    margin-top: 24px;
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 12px 40px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    transition: opacity .2s;
}

.success-box .btn-ok:hover {
    opacity: .88;
}


/* ============================================================
   16. RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    .about-logo-col {
        text-align: center;
        margin-top: 48px;
    }

    .logo-img {
        max-width: 200px;
    }

    .form-card-body {
        padding: 20px 16px;
    }

    .form-card-header {
        padding: 16px 20px;
    }
}