@font-face {
    font-family: 'MaghribiCustom';
    src: local('MaghribiCustom'), url('fonts/maghribi.woff2') format('woff2'), url('fonts/maghribi.ttf') format('truetype'), url('fonts/maghribi.otf') format('opentype');
    font-display: swap
}

:root {
    --red: #c1121f;
    --dred: #8f0d17;
    --green: #0b5a35;
    --gold: #d9a441;
    --cream: #fff8ef;
    --ink: #2b1a14
}

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

html {
    scroll-behavior: smooth;
    font-size: clamp(16px, .9vw + 9px, 24px)
}

body {
    font-family: 'MaghribiCustom', 'Tajawal', sans-serif;
    font-feature-settings: 'ss01' 1, 'liga' 1, 'calt' 1;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.7;
    font-size: 1.15rem
}

h1,
h2,
h3,
.brand,
.btn,
.pill,
nav {
    font-family: 'MaghribiCustom', 'Reem Kufi', 'Lalezar', sans-serif
}

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

.wrap {
    max-width: 1500px;
    margin: auto;
    padding: 0 20px
}

/* header */
header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 5;
    padding: 14px 0
}

header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem
}

nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    font-weight: 500;
    font-size: .95rem
}

nav a {
    padding: 6px 0;
    border-bottom: 2px solid transparent
}

nav a:hover,
nav a.on {
    color: var(--red);
    border-color: var(--red)
}

.home {
    background: var(--red);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center
}

/* hero */
.hero {
    position: relative;
    min-height: 620px;
    padding: 130px 0 130px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, #8fb3de 0%, #f2c7a9 38%, #f6a96b 62%, #fbe3c4 100%)
}

.hero::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46%;
    height: 260px;
    opacity: .9;
    background: radial-gradient(ellipse at 30% 100%, #d98c4e 0, transparent 70%)
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 110px;
    background: linear-gradient(170deg, transparent 45%, var(--red) 46%, var(--red) 62%, var(--green) 63%, var(--green) 72%, var(--cream) 73%)
}

.kasbah {
    position: absolute;
    left: 0;
    bottom: 90px;
    width: 36%;
    max-width: 420px;
    opacity: .9
}

.flag {
    position: absolute;
    right: 3%;
    top: 70px;
    width: 230px;
    transform: rotate(4deg);
    filter: drop-shadow(0 12px 18px #0004);
    animation: wave 5s ease-in-out infinite;
    transform-origin: left center
}

@keyframes wave {
    50% {
        transform: rotate(-2deg) skewY(2deg)
    }
}

.hero .in {
    position: relative;
    z-index: 2
}

.hero h1 {
    font-size: clamp(2.4rem, 7vw, 4.6rem);
    color: var(--red);
    line-height: 1.2;
    text-shadow: 0 3px 0 #fff8
}

.pill {
    display: inline-block;
    margin: 18px 0;
    background: var(--red);
    color: #fff;
    padding: .4em 1.2em;
    border-radius: 40px;
    font-weight: 700;
    box-shadow: 0 6px 16px #c1121f55
}

.hero p {
    max-width: 1000px;
    margin: 0 auto 26px;
    color: #4a2a1c
}

.btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap
}

.btn {
    padding: .5em 1.4em;
    border-radius: 40px;
    font-weight: 700;
    color: #fff;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700
}

.btn.g {
    background: var(--green)
}

.btn.r {
    background: var(--red)
}

.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px
}

/* sections */
section {
    padding: 60px 0
}

.title {
    text-align: center;
    margin-bottom: 34px
}

.title h2 {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    color: var(--red);
    font-size: 2.6rem
}

.title h2::before,
.title h2::after {
    content: "";
    width: 46px;
    height: 2px;
    background: var(--green)
}

.title p {
    color: #5b4237
}

.concept {
    background: linear-gradient(90deg, var(--cream), #fdeee0)
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 22px 14px;
    text-align: center;
    box-shadow: 0 6px 20px #8f0d1712;
    border: 1px solid #f1dfd0
}

.card .ic {
    font-size: 3rem;
    color: var(--red);
    display: block;
    margin-bottom: 6px
}

.form input,
.form textarea {
    font-family: inherit
}

.card h3 {
    font-size: 1.05rem;
    line-height: 1.4
}

.card small {
    color: #6a5348;
    display: block;
    line-height: 1.5
}

/* regions */
.regions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.reg {
    position: relative;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: flex-end;
    background-image: var(--img), var(--bg);
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 20px #0003
}

.reg div {
    width: 100%;
    padding: 12px;
    text-align: center;
    background: #3a2b1fcc;
    line-height: 1.5
}

.reg b {
    font-family: 'Reem Kufi';
    display: block
}

.reg span {
    font-size: .85rem;
    opacity: .9
}

/* timeline */
.tl {
    position: relative;
    display: flex;
    justify-content: space-between;
    text-align: center;
    padding-top: 60px;
    max-width: 900px;
    margin: auto
}

.tl::before {
    content: "";
    position: absolute;
    top: 44px;
    inset-inline: 6%;
    height: 2px;
    background: var(--red)
}

.tl div {
    position: relative;
    flex: 1
}

.tl div::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--red);
    transform: translateX(-50%)
}

.tl .em {
    position: absolute;
    top: -62px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem
}

.tl b {
    font-family: 'Reem Kufi'
}

/* values */
.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
    gap: 10px;
    text-align: center
}

.values div {
    padding: 0 10px;
    border-inline-start: 1px solid #e2cdbb
}

.values div:first-child {
    border: 0
}

.dot {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 3rem;
    box-shadow: 0 6px 14px #0003
}

.values h3 {
    font-size: 1.2rem
}

.values small {
    color: #6a5348
}

/* celebrate */
.cel {
    background: linear-gradient(110deg, #e0b080, var(--dred) 40%, var(--red));
    color: #fff;
    padding: 50px 0
}

.cel .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center
}

.cel h2 {
    font-size: 2.4rem;
    margin-bottom: 14px
}

.cel li {
    list-style: none;
    margin: 8px 0;
    display: flex;
    gap: 10px
}

.cel li::before {
    content: "✓";
    background: #fff;
    color: var(--green);
    width: 24px;
    height: 24px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    font-weight: 700;
    flex: none
}

.form {
    background: #fff;
    color: var(--ink);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 12px 30px #0004
}

.form h3 {
    text-align: center;
    color: var(--green);
    margin-bottom: 12px
}

.form input,
.form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid #e7d6c6;
    border-radius: 6px;
    font: inherit
}

.form .btn {
    width: 100%;
    border-radius: 6px
}

#ok {
    display: none;
    text-align: center;
    color: var(--green);
    font-weight: 700;
    margin-top: 8px
}

/* gallery */
.gal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

.gal div {
    height: 190px;
    border-radius: 8px;
    background-image: var(--img), var(--bg);
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px #0003
}

footer {
    background: var(--green);
    color: #fff;
    padding: 34px 0;
    font-size: .9rem
}

footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px
}

footer nav {
    gap: 14px;
    font-size: .85rem
}

footer nav a:hover {
    color: var(--gold);
    border-color: transparent
}

.soc {
    display: flex;
    gap: 14px;
    font-size: 1.2rem
}

@media(max-width:900px) {
    nav {
        display: none
    }

    .cards,
    .regions,
    .values,
    .gal {
        grid-template-columns: 1fr
    }

    .cel .wrap {
        grid-template-columns: 1fr
    }

    .flag {
        width: 120px;
        top: 60px
    }

    .kasbah {
        display: none
    }

    .tl {
        flex-direction: column;
        gap: 50px
    }

    .tl::before {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {
    .flag {
        animation: none
    }

    html {
        scroll-behavior: auto
    }
}

/* lightbox */
.reg,
.gal div {
    cursor: zoom-in;
    transition: transform .25s
}

.reg:hover,
.gal div:hover {
    transform: scale(1.03)
}

.reg:focus-visible,
.gal div:focus-visible {
    outline: 4px solid var(--gold);
    outline-offset: 3px
}

#lb {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000d;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    padding: 20px
}

#lb.open {
    display: flex
}

#lb img {
    max-width: min(94vw, 1400px);
    max-height: 78vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px #000a;
    background: #222
}

#lb figcaption {
    color: #fff;
    font-size: 1rem;
    text-align: center;
    min-height: 1.5em
}

#lb button {
    position: absolute;
    background: #ffffff26;
    color: #fff;
    border: 0;
    border-radius: 50%;
    width: 2.2em;
    height: 2.2em;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1
}

#lb button:hover {
    background: var(--red)
}

#lb button:focus-visible {
    outline: 3px solid var(--gold)
}

#lb .x {
    top: 16px;
    left: 16px
}

#lb .p {
    right: 16px;
    top: 50%
}

#lb .n {
    left: 16px;
    top: 50%
}

#lb .c {
    position: absolute;
    bottom: 14px;
    color: #fff9;
    font-size: .7rem
}

body {
    overflow-x: hidden;
    overflow-wrap: anywhere
}

@media(max-width:700px) {

    .cards,
    .regions,
    .values,
    .gal {
        grid-template-columns: 1fr
    }

    .pill {
        border-radius: 24px
    }

    .title h2::before,
    .title h2::after {
        display: none
    }
}

.tl {
    max-width: 1200px
}

.tl b {
    display: block;
    font-size: 1rem
}

.flag {
    top: 70px;
    width: 210px
}

.pill {
    font-size: 1rem
}

.btn {
    font-size: 1rem
}

@media(max-width:900px) {
    .flag {
        width: 110px;
        top: 80px
    }
}

header {
    padding: 0 0 10px
}

.school {
    background: var(--green);
    color: #fff;
    text-align: center;
    padding: .35em 16px;
    margin-bottom: 12px;
    border-bottom: 3px solid var(--gold);
    font-family: 'MaghribiCustom', 'Reem Kufi', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .02em
}

.school span {
    display: inline-flex;
    align-items: center;
    gap: .6em
}

.school span::before,
.school span::after {
    content: "✦";
    color: var(--gold);
    font-size: .8em
}

.hero {
    padding-top: 190px
}

@media(max-width:900px) {
    .hero {
        padding-top: 170px
    }

    .school {
        font-size: .95rem
    }
}

.flag {
    top: 135px
}

@media(max-width:900px) {
    .flag {
        top: 150px
    }
}

/* image: map of Morocco */
.showcase {
    background: linear-gradient(90deg, #fdeee0, var(--cream))
}

.sc-grid {
    display: grid;
    grid-template-columns: minmax(0, 480px) 1fr;
    gap: 40px;
    align-items: center;
    justify-content: center
}

.shot {
    aspect-ratio: 1194/1600;
    max-height: 640px;
    width: 100%;
    border-radius: 14px;
    background-image: var(--img), var(--bg);
    background-size: cover;
    background-position: center;
    box-shadow: 0 14px 40px #0005;
    cursor: zoom-in;
    transition: transform .25s
}

.shot:hover {
    transform: scale(1.02)
}

.shot:focus-visible {
    outline: 4px solid var(--gold);
    outline-offset: 3px
}

.sc-txt h2 {
    color: var(--red);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.3;
    margin: 0 0 14px
}

.sc-txt p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #4a2a1c;
    margin: 0 0 22px
}

@media(max-width:800px) {
    .sc-grid {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .shot {
        max-width: 420px;
        margin: auto
    }

    .sc-txt {
        text-align: center
    }
}

/* hero banner image */
.hero {
    min-height: 600px;
    background: linear-gradient(180deg, #000a 0%, #0003 40%, #0005 100%), url(/eid/images/hero-banner.jpg) 22% 60%/cover no-repeat, #1f4f8f
}

.hero::before,
.hero::after {
    display: none
}

.hero h1 {
    color: #fff;
    text-shadow: 0 3px 16px #000b, 0 1px 2px #0008
}

.hero p {
    color: #fff;
    text-shadow: 0 2px 10px #000c
}

.hero .pill {
    box-shadow: 0 6px 18px #0006
}

header .brand,
header nav a {
    color: #fff;
    text-shadow: 0 2px 8px #000a
}

header nav a:hover,
header nav a.on {
    color: var(--gold);
    border-color: var(--gold)
}

@media(max-width:900px) {
    .hero {
        min-height: 560px;
        background-position: 30% 60%
    }
}