@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root {
    color-scheme: dark;
    --brand-primary: #d9a441;
    --brand-primary-strong: #f6c35f;
    --brand-primary-dark: #a3731d;
    --page-bg: #101010;
    --section-bg: #161616;
    --section-alt-bg: rgba(34, 34, 34, .85);
    --text-strong: #fff9eb;
    --text-body: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.65);
    --panel-border: rgba(255, 215, 128, 0.22);
    --glass-border: rgba(255, 255, 255, 0.08);
}

html, body {
    height: 100%;
    margin: 0;
    background: var(--page-bg);
    color: var(--text-body);
    font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    direction: rtl;
    text-align: right;
    scroll-behavior: smooth;
}

a {
    color: var(--brand-primary-strong);
    text-decoration: none;
}

a:hover {
    color: var(--text-strong);
}

h1, h2, h3, h4, h5 {
    color: var(--text-strong);
    font-weight: 800;
    letter-spacing: 0.01em;
}

p {
    color: var(--text-body);
    line-height: 1.9;
}

section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.section-dark {
    background: var(--section-bg);
}

.section-alt {
    background: var(--section-alt-bg);
}

.container {
    width: min(1100px, 90vw);
    margin-inline: auto;
}

.hero {
    position: relative;
    min-height: 68vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-strong);
    padding-top: 6rem;
    padding-bottom: 4rem;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 12, 6, 0.9) 0%, rgba(16, 16, 16, 0.95) 60%, rgba(16, 16, 16, 1) 100%), url("images/banner-hero.svg") center/cover no-repeat;
    z-index: -3;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 25%, rgba(255, 215, 128, 0.25), transparent 55%);
    z-index: -2;
}

.hero-content {
    text-align: center;
    max-width: 720px;
    display: grid;
    gap: 1.2rem;
    animation: fadeUp .9s ease forwards;
    opacity: 0;
    translate: 0 25px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    background: rgba(16, 16, 16, 0.65);
    border: 1px solid rgba(255, 215, 128, 0.32);
    padding: .45rem 1.25rem;
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    font-weight: 600;
}

.hero-badge img,
.brand-logo,
.footer-brand img {
    object-fit: cover;
}

.hero-badge img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.hero-title {
    font-size: clamp(2.4rem, 3.5vw, 3.1rem);
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .85);
    margin: 0 auto;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-pill {
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #1a1306;
    box-shadow: 0 15px 35px rgba(217, 164, 65, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(217, 164, 65, 0.35);
}

.btn-outline {
    border-color: rgba(255, 215, 128, 0.35);
    color: var(--text-strong);
    background: rgba(16, 16, 16, 0.6);
}

.btn-outline:hover {
    background: rgba(255, 215, 128, 0.18);
    color: #1a1306;
}

.section-heading {
    display: grid;
    gap: .65rem;
    margin-bottom: 2.5rem;
}

.section-heading span {
    font-size: .95rem;
    font-weight: 600;
    color: var(--brand-primary-strong);
}

.section-heading h2 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    margin: 0;
}

.section-heading p {
    margin: 0;
}

.info-panels {
    display: grid;
    gap: 2rem;
}

.info-panel {
    background: rgba(18, 18, 18, .92);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 2rem;
    display: grid;
    gap: 1.65rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .35);
    position: relative;
    overflow: hidden;
}

.info-panel::before {
    position: absolute;
    content: "";
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 215, 128, 0.24), transparent 55%);
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 0;
}

.info-panel:hover::before {
    opacity: 1;
}

.panel-header {
    position: relative;
    z-index: 1;
    display: grid;
    gap: .4rem;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.8rem;
}

.panel-header p {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.panel-gallery {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
}

.panel-gallery .gallery-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scroll-snap-type: x mandatory;
}

.gallery-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 200px;
    background: rgba(255, 215, 128, 0.08);
    border: 1px solid rgba(255, 215, 128, 0.16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    scroll-snap-align: start;
    transition: transform .4s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.objectives-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.objective-card {
    padding: 1.5rem;
    background: rgba(18, 18, 18, .92);
    border: 1px solid rgba(255, 215, 128, 0.18);
    border-radius: 20px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
    position: relative;
    overflow: hidden;
}

.objective-card::before {
    content: "";
    position: absolute;
    inset: -50% auto auto -50%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 215, 128, 0.28), transparent 70%);
    transform: rotate(35deg);
}

.objective-card h4 {
    position: relative;
    z-index: 1;
    font-size: 1.15rem;
    margin-bottom: .55rem;
}

.objective-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--text-muted);
}

.highlight-strip {
    border-top: 1px solid rgba(255, 215, 128, 0.18);
    padding: 1.5rem 0 0;
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.highlight-strip span {
    font-weight: 600;
    color: rgba(255, 215, 128, 0.85);
}

.timeline {
    display: grid;
    gap: 1.5rem;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    inset: 0;
    margin-inline: auto;
    width: 3px;
    background: linear-gradient(180deg, rgba(255, 215, 128, 0.4), rgba(255, 215, 128, 0));
    opacity: .4;
}

.timeline-item {
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 3rem;
    background: rgba(18, 18, 18, .9);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 128, 0.16);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.timeline-item::before {
    content: "";
    position: absolute;
    right: calc(100% + 10px);
    top: 1.8rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--brand-primary-strong);
    box-shadow: 0 0 0 6px rgba(255, 215, 128, 0.18);
}

.placeholder-box {
    border: 1px dashed rgba(255, 215, 128, 0.35);
    border-radius: 16px;
    padding: 1.25rem;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(18, 18, 18, 0.6);
}

.conditions-list {
    display: grid;
    gap: 1rem;
}

.conditions-list li {
    background: rgba(18, 18, 18, .9);
    border: 1px solid rgba(255, 215, 128, 0.18);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    line-height: 1.9;
}

.form-section {
    background: rgba(15, 15, 15, .92);
    border-radius: 24px;
    border: 1px solid rgba(255, 215, 128, 0.2);
    padding: 2rem;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
}

.form-grid {
    display: grid;
    gap: 1.25rem 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid .wide {
    grid-column: 1 / -1;
}

label {
    font-weight: 600;
    margin-bottom: .35rem;
    color: var(--text-strong);
}

input[type=text],
input[type=tel],
input[type=email],
select,
textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 128, 0.2);
    background: rgba(20, 20, 20, .88);
    color: var(--text-body);
    transition: border-color .3s ease, box-shadow .3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-primary-strong);
    box-shadow: 0 0 0 3px rgba(255, 215, 128, 0.25);
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-note {
    font-size: .9rem;
    color: var(--text-muted);
}

.alert-success {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(36, 133, 94, 0.25);
    border: 1px solid rgba(36, 133, 94, 0.45);
    color: #c1ffde;
    font-weight: 600;
}

.law-card {
    border: 1px solid rgba(255, 215, 128, 0.25);
    border-radius: 18px;
    background: rgba(18, 18, 18, .9);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    padding: 1.5rem;
}

.law-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.law-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.laws-list {
    gap: 2.5rem;
}

.law-highlights {
    margin: 1.25rem 0 0;
    padding: 0 1.25rem 0 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.law-highlights li {
    position: relative;
    padding-inline-start: 1.25rem;
    color: var(--text-muted);
    line-height: 1.85;
}

.law-highlights li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.65rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-primary-strong);
    box-shadow: 0 0 0 4px rgba(255, 215, 128, 0.15);
}

.feature-soon {
    min-height: calc(100vh - 12rem);
    display: flex;
    align-items: center;
}

.feature-soon-card {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--panel-border);
    background: rgba(18, 18, 18, 0.92);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.38);
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.feature-soon-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: var(--brand-primary-strong);
    background: rgba(255, 215, 128, 0.12);
    border: 1px solid rgba(255, 215, 128, 0.35);
}

.feature-soon-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(255, 215, 128, 0.15);
    color: var(--brand-primary-strong);
    font-weight: 700;
    font-size: 0.9rem;
}

.feature-soon-card h2 {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2rem);
}

.feature-soon-card p {
    margin: 0;
    max-width: 520px;
}

.feature-soon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.login-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.login-card {
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 128, 0.22);
    background: rgba(18, 18, 18, 0.92);
    padding: 1.75rem;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
}

.login-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.login-card form {
    display: grid;
    gap: 1rem;
}

.login-note {
    margin-top: .75rem;
    font-size: .9rem;
    color: var(--text-muted);
}

.card-preview {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px dashed rgba(255, 215, 128, 0.35);
    border-radius: 16px;
    display: grid;
    gap: 0.65rem;
    background: rgba(16, 16, 16, 0.65);
}

.card-preview strong {
    color: var(--brand-primary-strong);
}

details summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    position: relative;
    padding-inline-start: 1.5rem;
}

details summary::before {
    content: "▾";
    position: absolute;
    right: 0;
    transition: transform .2s ease;
}

details[open] summary::before {
    transform: rotate(180deg);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        translate: 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .hero {
        min-height: 60vh;
        padding-top: 5.5rem;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    .info-panel {
        padding: 1.35rem;
    }

    .panel-header h3 {
        font-size: 1.45rem;
    }

    .panel-gallery .gallery-track {
        grid-auto-columns: minmax(180px, 85%);
    }

    .gallery-card {
        min-height: 160px;
    }

    .law-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .law-actions {
        width: 100%;
    }

    .law-actions .btn-pill {
        width: 100%;
        text-align: center;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        padding: 1.25rem;
    }

    .timeline-item::before {
        display: none;
    }

    .feature-soon-card {
        padding: 2rem 1.25rem;
    }

    .highlight-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(1100px, 94vw);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn-pill {
        width: 100%;
        text-align: center;
    }
}
