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

:root {
    --ink: #162033;
    --muted: #607086;
    --paper: #fffaf1;
    --surface: #ffffff;
    --falaj: #0f766e;
    --falaj-dark: #0f5e59;
    --date: #8f642f;
    --stone: #d8c7aa;
    --line: #dfd6c5;
    --sky: #d9eef8;
    --shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

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

body {
    background: #f5f2ec;
    color: var(--ink);
    direction: ltr;
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    line-height: 1.8;
    margin: 0;
    overflow-x: hidden;
    text-align: right;
}

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

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

.site-header {
    align-items: center;
    background: rgba(255, 250, 241, 0.94);
    border-bottom: 1px solid rgba(216, 199, 170, 0.72);
    direction: ltr;
    display: grid;
    gap: 18px;
    grid-template-columns: auto 1fr auto;
    inset-inline: 0;
    padding: 12px 32px;
    position: fixed;
    top: 0;
    z-index: 50;
}

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

.site-brand--logo-only {
    gap: 0;
}

.site-brand__logo {
    height: auto;
    max-height: 66px;
    object-fit: contain;
    width: 148px;
}

.site-brand__mark {
    align-items: center;
    background: var(--falaj);
    border-radius: var(--radius);
    color: #fff;
    display: inline-flex;
    font-family: "Noto Kufi Arabic", "Cairo", sans-serif;
    font-weight: 700;
    height: 42px;
    justify-content: center;
    overflow: hidden;
    width: 42px;
}

.site-brand__mark img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.site-brand__mark--image {
    background: #fffaf1;
    border: 1px solid var(--line);
}

.site-brand strong,
.site-brand small {
    display: block;
}

.site-brand strong {
    font-family: "Noto Kufi Arabic", "Cairo", sans-serif;
}

.site-brand small {
    color: var(--muted);
    font-size: 12px;
}

.site-nav {
    align-items: center;
    direction: rtl;
    display: flex;
    gap: 6px;
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
}

.site-nav a {
    border-radius: 999px;
    color: #34435a;
    font-size: 14px;
    padding: 7px 12px;
}

.site-nav a:hover {
    background: rgba(15, 118, 110, 0.1);
    color: var(--falaj-dark);
}

.site-login,
.btn {
    align-items: center;
    border-radius: var(--radius);
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
}

.site-login {
    background: var(--falaj);
    color: #fff;
    direction: rtl;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

.site-login:hover,
.btn--light:hover {
    background: var(--falaj-dark);
}

.hero {
    align-items: end;
    background-position: center;
    background-size: cover;
    color: #fff;
    direction: ltr;
    display: grid;
    min-height: 88vh;
    padding: 120px 32px 34px;
    position: relative;
}

.hero::before {
    background: rgba(4, 18, 30, 0.28);
    content: "";
    inset: 0;
    position: absolute;
}

.hero::after {
    background: rgba(143, 100, 47, 0.12);
    bottom: 0;
    content: "";
    height: 42%;
    inset-inline: 0;
    position: absolute;
}

.hero__content,
.hero__quickfacts {
    direction: rtl;
    justify-self: end;
    position: relative;
    z-index: 1;
}

.hero__content {
    max-width: 860px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.42);
    width: 100%;
}

.hero__logo {
    filter:
        drop-shadow(0 2px 2px rgba(4, 18, 30, 0.5))
        drop-shadow(0 12px 22px rgba(0, 0, 0, 0.22));
    height: auto;
    margin: 0 0 14px auto;
    max-width: min(540px, 100%);
    width: 62%;
}

.hero__eyebrow,
.section-kicker {
    color: #e8c37d;
    display: inline-flex;
    font-family: "Noto Kufi Arabic", "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero h1 {
    font-family: "Noto Kufi Arabic", "Cairo", sans-serif;
    font-size: 64px;
    line-height: 1.25;
    margin: 0 0 16px;
}

.hero p {
    font-family: "Amiri", serif;
    font-size: 25px;
    line-height: 1.9;
    margin: 0;
    max-width: 780px;
    text-align: right;
    color: #fffaf1;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.btn--light {
    background: var(--falaj);
    color: #fff;
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #fff;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hero__quickfacts {
    align-items: stretch;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 42px;
    max-width: 780px;
}

.hero__quickfacts div {
    background: rgba(255, 250, 241, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    color: var(--ink);
    padding: 14px 16px;
}

.hero__quickfacts strong {
    color: var(--falaj-dark);
    display: block;
    font-size: 26px;
    line-height: 1.2;
}

.hero__quickfacts span {
    color: #475569;
    font-size: 13px;
}

.section {
    direction: ltr;
    padding: 76px 32px;
}

.section__inner {
    direction: rtl;
    margin: 0 auto;
    max-width: 1180px;
}

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

.section-kicker {
    color: var(--date);
}

h2 {
    font-family: "Noto Kufi Arabic", "Cairo", sans-serif;
    font-size: 34px;
    line-height: 1.45;
    margin: 0 0 12px;
}

h3 {
    font-family: "Noto Kufi Arabic", "Cairo", sans-serif;
    font-size: 18px;
    margin: 0 0 8px;
}

p {
    color: #334155;
    margin: 0;
}

.section--story {
    background: var(--paper);
}

.story-grid {
    align-items: center;
    display: grid;
    gap: 38px;
    grid-template-columns: minmax(0, 1fr) 390px;
}

.story-copy p,
.location-grid p {
    font-family: "Amiri", serif;
    font-size: 24px;
    line-height: 2;
}

.story-image {
    margin: 0;
}

.story-image img {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: auto;
    object-fit: cover;
    width: 100%;
}

figcaption {
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
}

.section--facts {
    background: #ffffff;
}

.facts-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact-card {
    background: #fffaf1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}

.fact-card i {
    color: var(--falaj);
    height: 28px;
    margin-bottom: 12px;
    width: 28px;
}

.fact-card p {
    color: #475569;
    font-size: 15px;
}

.fact-card--wide {
    background: #eef8f5;
    grid-column: span 2;
}

.section--gallery {
    background: #f3eadb;
}

.gallery-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1.4fr 1fr 1fr;
}

.gallery-item {
    background: var(--surface);
    border: 1px solid rgba(216, 199, 170, 0.9);
    border-radius: var(--radius);
    margin: 0;
    overflow: hidden;
}

.gallery-item img {
    aspect-ratio: 4 / 3;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.gallery-item--large img {
    aspect-ratio: 5 / 4;
}

.gallery-item figcaption {
    margin: 0;
    padding: 10px 12px;
}

.section--location {
    background: var(--ink);
    color: #fff;
}

.section--location p,
.section--location h2 {
    color: #fff;
}

.location-grid {
    align-items: center;
    display: grid;
    gap: 36px;
    grid-template-columns: 1fr 360px;
}

.location-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    padding: 22px;
}

.location-panel i {
    color: #e8c37d;
    height: 34px;
    margin-bottom: 14px;
    width: 34px;
}

.location-panel strong,
.location-panel span {
    display: block;
}

.location-panel strong {
    font-size: 25px;
    margin-bottom: 10px;
}

.location-panel span {
    color: #cbd5e1;
    margin-bottom: 16px;
}

.location-panel a {
    background: #e8c37d;
    border-radius: var(--radius);
    color: #162033;
    display: inline-flex;
    font-weight: 700;
    padding: 9px 14px;
}

.section--contact {
    background: #fffaf1;
}

.contact-grid {
    align-items: start;
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
}

.contact-copy p {
    font-family: "Amiri", serif;
    font-size: 23px;
    line-height: 2;
}

.contact-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

.contact-form__grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
}

.contact-form label,
.contact-form span {
    display: block;
}

.contact-form label {
    color: #34435a;
    font-weight: 700;
}

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

.contact-form input,
.contact-form textarea {
    background: #f8fafc;
    border: 1px solid #d8c7aa;
    border-radius: var(--radius);
    color: var(--ink);
    font: inherit;
    margin-top: 6px;
    min-height: 44px;
    outline: none;
    padding: 9px 12px;
    text-align: right;
    width: 100%;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--falaj);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.landing-alert {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 14px;
    padding: 10px 12px;
}

.landing-alert--success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.landing-alert--error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

.landing-footer {
    align-items: center;
    background: #fffaf1;
    border-top: 1px solid var(--line);
    color: var(--muted);
    direction: ltr;
    display: flex;
    justify-content: space-between;
    padding: 20px 32px;
}

.landing-footer span {
    direction: rtl;
    order: 3;
}

.landing-footer small {
    color: #8a97aa;
    direction: rtl;
    font-size: 11px;
    order: 2;
    text-align: center;
}

.landing-footer a {
    color: var(--falaj-dark);
    direction: rtl;
    font-weight: 700;
    order: 1;
}

.back-to-top {
    align-items: center;
    background: var(--falaj);
    border: 1px solid rgba(255, 250, 241, 0.46);
    border-radius: var(--radius);
    bottom: 22px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.2);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    height: 46px;
    justify-content: center;
    left: 22px;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transform: translateY(10px);
    transition: opacity 140ms ease, transform 140ms ease, background 140ms ease;
    width: 46px;
    z-index: 70;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: var(--falaj-dark);
}

@media print {
    .back-to-top {
        display: none !important;
    }
}

@media (max-width: 980px) {
    .site-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .site-brand {
        order: 3;
    }

    .site-nav {
        order: 2;
    }

    .site-login {
        order: 1;
    }

    .site-nav {
        display: none;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p,
    .story-copy p,
    .location-grid p,
    .contact-copy p {
        font-size: 21px;
    }

    .story-grid,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .story-image {
        max-width: 520px;
    }

    .facts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body,
    .site-header,
    .hero,
    .section,
    .landing-footer {
        max-width: 100%;
        width: 100%;
    }

    .site-header {
        left: 0;
        max-width: none;
        padding: 10px 54px 10px 16px;
        right: 0;
        width: auto;
    }

    .site-brand small {
        display: none;
    }

    .site-brand__mark {
        display: none;
    }

    .site-brand {
        min-width: 0;
        transform: none;
    }

    .site-brand__logo {
        max-height: 54px;
        width: 118px;
    }

    .site-brand strong {
        max-width: none;
        overflow: hidden;
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-login {
        padding-inline: 10px;
    }

    .hero {
        background-position: center;
        min-height: 86vh;
        padding: 104px 36px 24px 18px;
    }

    .hero__content {
        justify-self: center;
        margin-inline: auto;
        max-width: 100%;
        text-align: center;
        transform: translateX(-32px);
        width: 100%;
    }

    .hero__logo {
        margin-left: auto;
        margin-right: auto;
        max-width: min(100%, 330px);
        width: 100%;
    }

    .hero p {
        text-align: center;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 19px;
        margin-left: auto;
        margin-right: auto;
        max-width: 340px;
    }

    .hero__actions {
        align-items: stretch;
        flex-direction: column;
        margin-left: auto;
        margin-right: auto;
        max-width: none;
        width: min(100%, 260px);
    }

    .hero__quickfacts {
        justify-self: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 320px;
        text-align: center;
        transform: translateX(-32px);
        width: min(100%, 320px);
    }

    .hero__quickfacts {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

    .section {
        padding: 54px 18px;
    }

    .section__inner,
    .section-heading,
    .story-copy,
    .contact-copy,
    .facts-grid,
    .gallery-grid,
    .location-grid,
    .contact-grid {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .section-heading,
    .story-copy,
    .contact-copy,
    .location-grid > div {
        text-align: center;
    }

    h2 {
        font-size: 26px;
    }

    .facts-grid {
        grid-template-columns: 1fr;
    }

    .fact-card--wide {
        grid-column: auto;
    }

    .contact-form {
        padding: 16px;
    }

    .contact-form__grid {
        grid-template-columns: 1fr;
    }

    .landing-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding-inline: 18px;
    }

    .landing-footer small {
        text-align: right;
    }

    .back-to-top {
        bottom: 16px;
        left: 16px;
    }
}
