:root {
    --ink: #080807;
    --ink-2: #11100e;
    --surface: #181613;
    --surface-2: #211f1a;
    --cream: #f7efe0;
    --muted: #c4b9a8;
    --soft: #efe1c6;
    --line: rgba(247, 239, 224, 0.14);
    --gold: #d7b46a;
    --gold-2: #a9782c;
    --sage: #8faf95;
    --sage-dark: #26352b;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
    --header-height: 74px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    background: var(--ink);
    color: var(--cream);
    font-family: "Almarai", Tahoma, Arial, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: var(--header-height);
    padding: 12px 36px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    background: rgba(8, 8, 7, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    direction: ltr;
}

.brand {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    direction: rtl;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(215, 180, 106, 0.52);
    border-radius: 8px;
    color: var(--gold);
    font-weight: 800;
    background: rgba(215, 180, 106, 0.08);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-copy strong {
    font-size: 1rem;
    line-height: 1.25;
}

.brand-copy small,
.nav-links a,
.header-action {
    color: var(--muted);
    font-size: 0.9rem;
}

.nav-links {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover,
.site-footer a:hover {
    color: var(--gold);
}

.header-action {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    direction: rtl;
    min-height: 42px;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(215, 180, 106, 0.5);
    border-radius: 8px;
    color: var(--gold);
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.header-action:hover {
    background: var(--gold);
    color: var(--ink);
    transform: translateY(-1px);
}

.hero {
    position: relative;
    min-height: calc(86svh - var(--header-height));
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
    object-position: center;
    z-index: -3;
}

.hero-shade {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(8, 8, 7, 0.96) 0%, rgba(8, 8, 7, 0.76) 44%, rgba(8, 8, 7, 0.38) 100%),
        linear-gradient(0deg, rgba(8, 8, 7, 0.98) 0%, rgba(8, 8, 7, 0.16) 44%, rgba(8, 8, 7, 0.42) 100%);
}

.hero-content {
    width: calc(100% - 72px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 58px 0 48px;
}

.eyebrow,
.section-kicker {
    color: var(--sage);
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 780px;
    margin-top: 10px;
    font-size: 4.1rem;
    line-height: 1.08;
    font-weight: 800;
    color: var(--cream);
    overflow-wrap: break-word;
}

.hero h1 span {
    display: inline;
}

.hero-copy {
    max-width: 650px;
    margin-top: 22px;
    color: var(--soft);
    font-size: 1.18rem;
    overflow-wrap: break-word;
}

.hero-actions,
.closing-band,
.modal-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-actions {
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn {
    min-height: 50px;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    line-height: 1.25;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #14110a;
}

.btn-soft {
    border: 1px solid rgba(247, 239, 224, 0.28);
    color: var(--cream);
    background: rgba(255, 255, 255, 0.07);
}

.btn-soft:hover,
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-outline {
    border: 1px solid rgba(215, 180, 106, 0.42);
    background: transparent;
    color: var(--gold);
}

.hero-stats {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    max-width: 720px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.hero-stats div {
    padding: 18px 20px;
    border-inline-start: 1px solid var(--line);
}

.hero-stats div:first-child {
    border-inline-start: 0;
}

.hero-stats dt {
    color: var(--gold);
    font-weight: 800;
}

.hero-stats dd {
    color: var(--muted);
    font-size: 0.95rem;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--cream);
    color: #211b12;
    border-bottom: 1px solid rgba(33, 27, 18, 0.1);
}

.trust-item {
    min-height: 92px;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 800;
    text-align: center;
    border-inline-start: 1px solid rgba(33, 27, 18, 0.12);
}

.trust-item:first-child {
    border-inline-start: 0;
}

.trust-item i {
    color: var(--gold-2);
}

.section {
    width: calc(100% - 72px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 92px 0;
}

.hero-content,
.section-copy,
.insta-panel,
.course-card,
.trust-item,
.hero-stats div {
    min-width: 0;
}

.showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 430px);
    align-items: center;
    gap: 64px;
}

.section-copy h2,
.section-heading h2,
.closing-band h2 {
    margin-top: 8px;
    font-size: 2.55rem;
    line-height: 1.25;
    color: var(--cream);
    overflow-wrap: break-word;
}

.section-copy p:not(.section-kicker) {
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.08rem;
}

.feature-list {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-list span {
    min-height: 42px;
    padding: 8px 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    color: var(--cream);
    background: var(--surface);
    border: 1px solid var(--line);
}

.feature-list i {
    color: var(--sage);
}

.insta-panel,
.course-card,
.modal-content {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: var(--shadow);
}

.insta-panel {
    overflow: hidden;
}

.insta-topbar {
    min-height: 76px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.insta-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.insta-topbar strong,
.insta-caption strong {
    display: block;
    color: var(--cream);
    line-height: 1.25;
}

.insta-topbar span {
    color: var(--muted);
    font-size: 0.85rem;
}

.insta-topbar a {
    min-height: 36px;
    padding: 7px 14px;
    border-radius: 8px;
    color: var(--ink);
    background: var(--cream);
    font-weight: 800;
}

.insta-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    cursor: pointer;
    overflow: hidden;
    background: #0d0d0c;
}

.insta-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.insta-slide.active {
    opacity: 1;
    transform: scale(1);
}

.insta-footer {
    min-height: 58px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
}

.insta-actions {
    display: flex;
    gap: 14px;
    color: var(--cream);
    font-size: 1.2rem;
}

.slide-dots {
    display: flex;
    gap: 7px;
}

.slide-dots span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(247, 239, 224, 0.28);
}

.slide-dots span.active {
    width: 22px;
    background: var(--gold);
}

.insta-caption {
    padding: 0 16px 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.courses-section {
    padding-top: 52px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.course-card {
    position: relative;
    min-height: 100%;
    padding: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-card.featured {
    border-color: rgba(215, 180, 106, 0.58);
    background:
        linear-gradient(180deg, rgba(143, 175, 149, 0.12), rgba(143, 175, 149, 0)),
        linear-gradient(180deg, var(--surface-2), var(--surface));
}

.popular-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--sage-dark);
    color: var(--sage);
    font-size: 0.82rem;
    font-weight: 800;
}

.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}

.course-price {
    color: var(--gold);
    font-size: 3.2rem;
    line-height: 1;
    font-weight: 800;
}

.course-duration {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(247, 239, 224, 0.08);
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

.course-card h3 {
    padding-inline-end: 0;
    color: var(--cream);
    font-size: 1.65rem;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.course-card p {
    margin-top: 14px;
    color: var(--muted);
    flex: 1;
}

.course-card ul {
    margin: 24px 0 28px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.course-card li {
    position: relative;
    padding-inline-start: 22px;
    color: var(--soft);
}

.course-card li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sage);
}

.course-action {
    width: 100%;
}

.closing-band {
    width: calc(100% - 72px);
    max-width: 1180px;
    margin: 0 auto 80px;
    padding: 34px 0;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.site-footer {
    min-height: 86px;
    padding: 26px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    background: var(--ink-2);
    border-top: 1px solid var(--line);
}

.site-footer span {
    color: var(--cream);
    font-weight: 800;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 22px;
    background: rgba(0, 0, 0, 0.74);
    backdrop-filter: blur(12px);
}

.modal-overlay.active {
    display: grid;
}

.modal-content {
    position: relative;
    width: min(100%, 500px);
    padding: 30px;
}

.modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    cursor: pointer;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
    font-size: 1.45rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
    color: var(--cream);
    background: rgba(255, 255, 255, 0.12);
}

.modal-heading {
    align-items: flex-start;
    margin-bottom: 24px;
    padding-inline-end: 44px;
}

.modal-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(215, 180, 106, 0.12);
    color: var(--gold);
    border: 1px solid rgba(215, 180, 106, 0.28);
    flex: 0 0 auto;
}

.modal-heading h2 {
    margin-top: 2px;
    color: var(--cream);
    font-size: 1.45rem;
}

.modal-heading p:last-child {
    color: var(--muted);
    font-size: 0.95rem;
}

.field {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    color: var(--soft);
    font-weight: 800;
}

.field input,
.field select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid rgba(247, 239, 224, 0.16);
    border-radius: 8px;
    outline: none;
    color: var(--cream);
    background: rgba(0, 0, 0, 0.25);
}

.field input:focus,
.field select:focus {
    border-color: var(--gold);
}

.phone-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px;
    direction: ltr;
}

.phone-row select,
.phone-row input {
    direction: rtl;
}

.submit-btn {
    width: 100%;
    margin-top: 22px;
}

@media (max-width: 900px) {
    .site-header {
        padding: 10px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero-content,
    .section,
    .closing-band {
        width: calc(100% - 40px);
        max-width: 720px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero {
        min-height: calc(88svh - var(--header-height));
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h1 span {
        display: block;
    }

    .hero-copy {
        font-size: 1.05rem;
    }

    .hero-stats,
    .trust-strip,
    .showcase,
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        max-width: 100%;
    }

    .hero-stats dt,
    .hero-stats dd {
        text-align: center;
    }

    .hero-stats div,
    .trust-item {
        border-inline-start: 0;
        border-top: 1px solid var(--line);
    }

    .hero-stats div:first-child,
    .trust-item:first-child {
        border-top: 0;
    }

    .trust-item {
        min-height: 76px;
    }

    .showcase {
        gap: 36px;
    }

    .section {
        padding: 64px 0;
    }

    .section-copy h2,
    .section-heading h2,
    .closing-band h2 {
        font-size: 2rem;
    }

    .closing-band {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 56px;
    }
}

@media (max-width: 560px) {
    :root {
        --header-height: 68px;
    }

    .site-header {
        gap: 12px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        font-size: 0.88rem;
    }

    .brand-copy strong {
        font-size: 0.86rem;
    }

    .brand-copy small {
        display: none;
    }

    .header-action {
        min-height: 38px;
        padding: 8px 11px;
        font-size: 0.82rem;
    }

    .brand-copy {
        display: none;
    }

    .hero-content,
    .section,
    .closing-band {
        width: calc(100% - 28px);
        max-width: 520px;
    }

    .hero-content {
        padding: 44px 0 36px;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        margin-top: 30px;
    }

    .course-card,
    .modal-content {
        padding: 22px;
    }

    .course-price {
        font-size: 2.6rem;
    }

    .popular-badge {
        position: static;
        width: fit-content;
        margin-bottom: 18px;
    }

    .phone-row {
        grid-template-columns: 1fr;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px 20px;
    }
}
