/* ===== TOKENS ===== */
:root {
    --paper: #FBF8F3;
    --cream: #F3EADD;
    --espresso: #1E1611;
    --brown: #3B2A1F;
    --honey: #C27A35;
    --honey-light: #E2B07A;
    --ink: #2A211B;
    --muted: #7A6B5F;
    --line: #E3D7C6;
    --display: 'Libre Caslon Display', Georgia, serif;
    --script: 'Pinyon Script', cursive;
    --sans: 'Jost', 'Helvetica Neue', sans-serif;
    --ar-display: 'Noto Naskh Arabic', serif;
    --ar-sans: 'Tajawal', sans-serif;
}

/* ===== BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
html,
body {
    overflow-x: hidden;
    overflow-x: clip;
}
body {
    font-family: var(--sans);
    font-weight: 300;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body {
    font-family: var(--ar-sans);
    font-weight: 400;
}
body.menu-open {
    overflow: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    display: block;
    max-width: 100%;
}
figure {
    margin: 0;
}
button {
    font: inherit;
    color: inherit;
}
:focus-visible {
    outline: 1px solid var(--honey);
    outline-offset: 4px;
}
::selection {
    background: var(--honey);
    color: #fff;
}

/* ===== HEADINGS ===== */
.heading {
    margin-bottom: 28px;
}
.heading-center {
    text-align: center;
}
.script {
    display: block;
    font-family: var(--script);
    font-size: 1.9rem;
    line-height: 1;
    color: var(--honey);
    margin-bottom: 6px;
}
html[lang="ar"] .script {
    font-family: var(--ar-display);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 10px;
}
.title {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2.3rem, 4.4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: 0.01em;
}
html[lang="ar"] .title {
    font-family: var(--ar-display);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
}
.ornament {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    color: var(--honey);
    font-size: 0.7rem;
}
.ornament i {
    width: 36px;
    height: 1px;
    background: var(--honey-light);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: 1px solid transparent;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
}
html[lang="ar"] .btn {
    font-family: var(--ar-sans);
    letter-spacing: 0;
    font-size: 0.95rem;
    text-transform: none;
}
.btn-light {
    background: var(--paper);
    color: var(--espresso);
}
.btn-light:hover {
    background: var(--honey);
    color: #fff;
}
.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}
.btn-outline-light:hover {
    background: #fff;
    color: var(--espresso);
}
.btn-outline {
    border-color: var(--honey-light);
    color: var(--ink);
}
.btn-outline:hover {
    background: var(--honey);
    border-color: var(--honey);
    color: #fff;
}
.btn-dark {
    background: var(--espresso);
    color: #fff;
}
.btn-dark:hover {
    background: var(--honey);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    color: #fff;
    transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.header.solid {
    background: rgba(251, 248, 243, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--ink);
    box-shadow: 0 1px 0 var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 18px 32px;
}
.brand {
    font-family: var(--display);
    font-size: 1.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.brand small {
    font-family: var(--sans);
    font-size: 0.55rem;
    letter-spacing: 0.4em;
    margin-top: 4px;
    opacity: 0.8;
}
.nav {
    display: flex;
    gap: 30px;
}
.nav a {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
}
html[lang="ar"] .nav a {
    letter-spacing: 0;
    font-size: 0.95rem;
}
.nav a::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.nav a:hover::after {
    transform: scaleX(1);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}
.lang {
    display: flex;
    gap: 2px;
}
.lang button {
    background: none;
    border: none;
    padding: 4px 6px;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.lang button[lang="ar"] {
    font-family: var(--ar-sans);
    font-size: 0.9rem;
    letter-spacing: 0;
}
.lang button:hover,
.lang button[aria-pressed="true"] {
    opacity: 1;
}
.lang button[aria-pressed="true"] {
    text-decoration: underline;
    text-underline-offset: 5px;
}
.header .btn {
    padding: 11px 20px;
}
.header.solid .btn-outline-light {
    border-color: var(--honey-light);
    color: var(--ink);
}
.header.solid .btn-outline-light:hover {
    background: var(--honey);
    border-color: var(--honey);
    color: #fff;
}
.burger {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}
.burger span {
    position: absolute;
    left: 9px;
    right: 9px;
    height: 1px;
    background: currentColor;
    transition: transform 0.3s ease, top 0.3s ease;
}
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    animation: heroZoom 18s ease-out both;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 50% 50%, rgba(20, 13, 9, 0.45), transparent 75%),
        linear-gradient(180deg, rgba(20, 13, 9, 0.55) 0%, rgba(20, 13, 9, 0.3) 40%, rgba(20, 13, 9, 0.75) 100%);
    z-index: -1;
}
@keyframes heroZoom {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}
.hero-content {
    padding: 0 24px;
}
.hero-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 18px;
    opacity: 0.9;
}
html[lang="ar"] .hero-kicker {
    letter-spacing: 0;
    font-size: 1rem;
}
.hero-title {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(4rem, 13vw, 10rem);
    line-height: 0.95;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    font-size: clamp(0.8rem, 1.4vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #F3D3AC;
}
.hero-tagline::before,
.hero-tagline::after {
    content: '';
    width: 40px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}
html[lang="ar"] .hero-tagline {
    font-family: var(--ar-display);
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    letter-spacing: 0;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
}
.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.8;
}
.hero-scroll i {
    width: 1px;
    height: 40px;
    background: linear-gradient(#fff, transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%, 100% { transform: scaleY(0.4); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
}

/* ===== INTRO ===== */
.intro {
    max-width: 860px;
    margin: 0 auto;
    padding: 120px 24px;
    text-align: center;
}
.intro-text {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.7;
    color: var(--brown);
}

/* ===== SPLIT ===== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 680px;
    background: #fff;
}
.split-media {
    overflow: hidden;
}
.split-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}
.split:hover .split-media img {
    transform: scale(1.03);
}
.split-text {
    align-self: center;
    max-width: 520px;
    padding: 80px 64px;
    position: relative;
}
.split-text > p {
    color: var(--muted);
    margin-bottom: 28px;
}
.split-reverse .split-media {
    order: 2;
}
.split-reverse .split-text {
    justify-self: end;
}
.split:not(.split-reverse) + .split-reverse {
    background: var(--cream);
}
.menu-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
    margin-bottom: 32px;
    border-top: 1px solid var(--line);
}
.menu-list li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: 1.12rem;
    color: var(--ink);
}
html[lang="ar"] .menu-list li {
    font-family: var(--ar-display);
    font-size: 1.05rem;
}
.roman {
    font-family: var(--display);
    font-size: 0.8rem;
    color: var(--honey);
    min-width: 22px;
}

/* ===== GALLERY ===== */
.gallery {
    padding: 120px 32px;
    max-width: 1320px;
    margin: 0 auto;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 250px);
    grid-template-areas:
        "a b c d"
        "a e e d"
        "f e e g";
    gap: 14px;
    margin-top: 48px;
}
.g-a { grid-area: a; }
.g-b { grid-area: b; }
.g-c { grid-area: c; }
.g-d { grid-area: d; }
.g-e { grid-area: e; }
.g-f { grid-area: f; }
.g-g { grid-area: g; }
.g-item {
    overflow: hidden;
    position: relative;
}
.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s ease;
}
.g-item:hover img {
    transform: scale(1.05);
}
.g-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
}
.g-tile-title {
    font-family: var(--display);
    font-size: 1.9rem;
    line-height: 1.1;
    margin-bottom: 16px;
}
html[lang="ar"] .g-tile-title {
    font-family: var(--ar-display);
    font-weight: 600;
    font-size: 1.5rem;
}

/* ===== REVIEWS BAND ===== */
.band {
    position: relative;
    background:
        radial-gradient(circle at 15% 20%, rgba(226, 176, 122, 0.18), transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(194, 122, 53, 0.22), transparent 50%),
        var(--espresso);
    color: #fff;
    padding: 120px 24px;
    overflow: hidden;
}
.band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 2 54 17v30L28 62 2 47V17z' fill='none' stroke='%23E2B07A' stroke-opacity='.08'/%3E%3C/svg%3E");
    background-size: 56px 64px;
    pointer-events: none;
}
.band-inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.band .script {
    color: var(--honey-light);
}
.review blockquote {
    font-family: var(--display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.4;
    margin: 12px 0 18px;
}
.review figcaption {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--honey-light);
}
.band-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

/* ===== CONTACT ===== */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
    background: #fff;
}
.contact-text {
    align-self: center;
    justify-self: end;
    max-width: 560px;
    width: 100%;
    padding: 96px 64px;
}
.contact-text > p {
    color: var(--muted);
    margin-bottom: 28px;
}
.contact-list {
    list-style: none;
    border-top: 1px solid var(--line);
    margin-bottom: 32px;
}
.contact-list li {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.contact-list a {
    font-family: var(--display);
    font-size: 1.15rem;
}
.contact-list a:hover {
    color: var(--honey);
}
.contact-label {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 4px;
}
html[lang="ar"] .contact-label {
    letter-spacing: 0;
    font-size: 0.9rem;
}
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    filter: sepia(0.25) saturate(0.85);
}

/* ===== FOOTER ===== */
.footer {
    background: #15100C;
    color: rgba(255, 255, 255, 0.65);
    padding: 88px 32px 32px;
    font-size: 0.92rem;
}
.footer-brand {
    font-family: var(--display);
    font-size: 2.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    margin-bottom: 56px;
    line-height: 1.1;
}
.footer-brand small {
    display: block;
    font-family: var(--script);
    font-size: 1.5rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--honey-light);
}
html[lang="ar"] .footer-brand small {
    font-family: var(--ar-display);
    font-size: 1.05rem;
    margin-top: 8px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 56px;
}
.footer h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 12px;
}
html[lang="ar"] .footer h3 {
    font-family: var(--ar-display);
    font-weight: 600;
}
.footer a:hover {
    color: var(--honey-light);
}
.socials {
    display: flex;
    gap: 16px;
    font-size: 1.15rem;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}
.footer-bottom a {
    color: #fff;
    font-weight: 500;
}

/* ===== FLOATING BOOK BUTTON ===== */
.float-book {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--paper);
    color: var(--espresso);
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px -18px rgba(30, 22, 17, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s ease, color 0.3s ease;
}
.float-book.show {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.float-book:hover {
    background: var(--honey);
    color: #fff;
}
.float-book i {
    color: var(--honey);
}
.float-book:hover i {
    color: #fff;
}
html[lang="ar"] .float-book {
    letter-spacing: 0;
    font-size: 0.95rem;
    text-transform: none;
}

/* ===== REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in {
    opacity: 1;
    transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
    .nav {
        gap: 20px;
    }
    .split-text,
    .contact-text {
        padding: 72px 44px;
    }
}

@media (max-width: 960px) {
    .burger {
        display: block;
    }
    .header-book {
        display: none;
    }
    .nav {
        position: fixed;
        inset: 0;
        z-index: -1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 26px;
        background: var(--espresso);
        color: #fff;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }
    .nav.open {
        opacity: 1;
        pointer-events: auto;
    }
    .nav a {
        font-family: var(--display);
        font-size: 1.9rem;
        letter-spacing: 0.04em;
        text-transform: none;
    }
    html[lang="ar"] .nav a {
        font-family: var(--ar-display);
        font-size: 1.6rem;
    }
    body.menu-open .header {
        color: #fff;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }
    .split,
    .contact {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .split-media {
        height: 70vw;
        max-height: 560px;
    }
    .split-reverse .split-media {
        order: 0;
    }
    .split-text,
    .contact-text,
    .split-reverse .split-text {
        max-width: 640px;
        justify-self: center;
        padding: 64px 24px;
    }
    .contact-map iframe {
        min-height: 360px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 220px);
        grid-template-areas:
            "a b"
            "a c"
            "e e"
            "d f"
            "d g";
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .header-inner {
        padding: 14px 18px;
    }
    .brand {
        font-size: 1.35rem;
    }
    .header-actions {
        gap: 8px;
    }
    .hero-actions .btn {
        flex: 1 1 100%;
    }
    .intro,
    .gallery {
        padding: 80px 18px;
    }
    .band {
        padding: 80px 18px;
    }
    .menu-list {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-rows: repeat(5, 170px);
        gap: 8px;
    }
    .g-tile-title {
        font-size: 1.4rem;
    }
    .g-tile .btn {
        padding: 10px 14px;
        font-size: 0.65rem;
    }
    .contact-list li {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .contact-actions .btn {
        flex: 1 1 100%;
    }
    .footer {
        padding: 64px 18px 96px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }
    .socials {
        justify-content: center;
    }
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
    .float-book {
        inset-inline: 16px;
        bottom: 16px;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}
