:root {
    --ink: #0b0b0f;
    --cream: #f4efe6;
    --velvet: #3b0a57;
    --velvet-mid: #5b1a8a;
    --gold: #c9a45c;
    --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-ar: 'Tajawal', 'Noto Kufi Arabic', var(--font-ui);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 26px;
    --radius-pill: 999px;
    --ease-apple: cubic-bezier(0.32, 0.72, 0, 1);
    --gutter: clamp(1.25rem, 5vw, 1.5rem);
    --header-h: 3.25rem;
    --wa-offset: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    --glass-velvet: rgb(59 10 87 / 0.72);
    --focus-ring: 0 0 0 3px rgb(201 164 92 / 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background: var(--ink);
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 1.0625rem;
    color: var(--cream);
    background: var(--ink);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.font-ar { font-family: var(--font-ar); }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

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

.display-serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.02em; }

.measure { max-width: 36ch; overflow-wrap: anywhere; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.sr-only:focus {
    position: fixed; width: auto; height: auto; margin: 1rem; padding: 0.5rem 1rem;
    clip: auto; z-index: 100; background: var(--velvet); border-radius: var(--radius-sm);
}

.grain {
    pointer-events: none; position: fixed; inset: 0; z-index: 60; opacity: 0.28;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

/* Header — frosted bar */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 70;
    background: rgb(11 11 15 / 0.62);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid rgb(255 255 255 / 0.06);
    padding-top: env(safe-area-inset-top, 0px);
}

.header-inner {
    max-width: 72rem; margin: 0 auto; padding: 0.5rem var(--gutter);
    min-height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}

.logo {
    font-size: 1.15rem; letter-spacing: 0.14em;
    min-height: 44px; display: inline-flex; align-items: center;
}

.header-actions { display: flex; align-items: center; gap: 0.4rem; }

.nav-main {
    display: none; gap: 1.25rem; font-size: 0.8125rem; font-weight: 500;
    color: rgb(244 239 230 / 0.72);
}
.nav-main a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }
.nav-main a:hover { color: var(--cream); }

.lang-chip {
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
    padding: 0.4rem 0.65rem; min-height: 36px; border-radius: var(--radius-pill);
    background: rgb(255 255 255 / 0.06); color: rgb(244 239 230 / 0.9);
    display: inline-flex; align-items: center; justify-content: center;
}

.header-cta {
    display: none;
}

.menu-toggle {
    position: relative;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; padding: 0; border: none; border-radius: var(--radius-sm);
    background: rgb(255 255 255 / 0.06); cursor: pointer; color: var(--cream);
}
.menu-toggle-bar {
    display: block; height: 1.5px; width: 18px; background: currentColor; border-radius: 1px;
    transition: transform 0.35s var(--ease-apple), opacity 0.25s ease, width 0.25s ease;
}
.menu-toggle[aria-expanded='true'] .menu-toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle[aria-expanded='true'] .menu-toggle-bar:nth-child(2) {
    opacity: 0; width: 0;
}
.menu-toggle[aria-expanded='true'] .menu-toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 480px) {
    .header-cta { display: inline-flex; }
}

@media (min-width: 900px) {
    .menu-toggle { display: none; }
    .nav-main { display: flex; }
}

.btn-pill {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 0 1.1rem; border-radius: var(--radius-pill);
    font-size: 0.8125rem; font-weight: 600; letter-spacing: -0.01em;
    background: rgb(255 255 255 / 0.1); color: var(--cream);
    border: 1px solid rgb(255 255 255 / 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}
.header-cta.btn-pill {
    background: var(--cream); color: var(--ink); border-color: transparent;
}
.btn-pill--fill {
    background: linear-gradient(135deg, var(--velvet-mid), var(--velvet));
    border: none; color: var(--cream); width: 100%;
}

/* Mobile menu — floating glass sheet */
.mobile-menu {
    position: fixed; inset: 0; z-index: 85;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 10px) 14px 14px;
    pointer-events: none;
}
[dir='rtl'] .mobile-menu { justify-content: flex-end; }
.mobile-menu:not([hidden]) { pointer-events: auto; }

.mobile-menu-backdrop {
    position: absolute; inset: 0; border: none; cursor: pointer;
    background: rgb(0 0 0 / 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.35s var(--ease-apple);
}
.mobile-menu.is-open .mobile-menu-backdrop { opacity: 1; }

.mobile-menu-panel {
    position: relative; z-index: 1;
    width: min(100%, 20.5rem);
    max-height: calc(100svh - var(--header-h) - env(safe-area-inset-top, 0px) - 28px);
    overflow: auto;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.25rem 1rem;
    display: flex; flex-direction: column; gap: 1rem;
    background: var(--glass-velvet);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 28px 80px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(255 255 255 / 0.08) inset;
    opacity: 0;
    transform: translate3d(0, -16px, 0) scale(0.96);
    transition: transform 0.35s var(--ease-apple), opacity 0.35s var(--ease-apple);
}
[dir='ltr'] .mobile-menu-panel { transform: translate3d(-12px, -16px, 0) scale(0.96); }
[dir='rtl'] .mobile-menu-panel { transform: translate3d(12px, -16px, 0) scale(0.96); }

.mobile-menu.is-open .mobile-menu-panel {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.mobile-menu-label {
    margin: 0; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.2em; color: rgb(201 164 92 / 0.9);
}

.mobile-menu nav { display: flex; flex-direction: column; gap: 0.15rem; }
.mobile-menu nav a {
    font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em;
    padding: 0.7rem 0.5rem; min-height: 48px; display: flex; align-items: center;
    border-radius: var(--radius-sm);
    opacity: 0;
    transform: translateY(8px);
}
.mobile-menu nav a:hover { background: rgb(255 255 255 / 0.06); }

.mobile-menu.is-open nav a {
    animation: menu-link-in 0.45s var(--ease-apple) forwards;
    animation-delay: calc(0.05s + (var(--i, 0) * 0.045s));
}

@keyframes menu-link-in {
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-footer {
    margin-top: auto; display: flex; flex-direction: column; gap: 0.65rem; padding-top: 0.5rem;
}

/* Hero */
.site-main { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }

.hero {
    position: relative; min-height: 100svh; margin-top: calc(-1 * (var(--header-h) + env(safe-area-inset-top, 0px)));
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

.hero-media { position: absolute; inset: 0; background: var(--ink); overflow: hidden; }

.hero-media-inner {
    width: 100%; height: 100%;
    will-change: transform;
}

.hero-picture, .hero-img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 767px) {
    .hero-media .hero-img { object-position: 82% 12%; }
    .hero-overlay {
        background: linear-gradient(to top, rgb(11 11 15 / 0.97) 0%, rgb(11 11 15 / 0.88) 30%, rgb(11 11 15 / 0.35) 58%, transparent 80%);
    }
    .hero-content {
        justify-content: flex-end;
        min-height: calc(100svh - var(--header-h) - env(safe-area-inset-top, 0px));
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }
    .hero-title { font-size: clamp(2rem, 9vw, 2.65rem); line-height: 1.05; }
    .cta-row { flex-direction: column; width: 100%; }
    .btn-cta { width: 100%; }
}

@media (min-width: 768px) {
    .hero { min-height: 92svh; }
    .hero-overlay {
        background: linear-gradient(105deg, #0b0b0f 0%, #0b0b0fe3 36%, #0b0b0f55 58%, transparent 76%);
    }
    [dir='rtl'] .hero-overlay {
        background: linear-gradient(-105deg, #0b0b0f 0%, #0b0b0fe3 36%, #0b0b0f55 58%, transparent 76%);
    }
    .hero-media .hero-img { object-position: right center; }
    [dir='rtl'] .hero-media .hero-img { object-position: left center; }
    .hero-content {
        max-width: 42rem; margin: 0 auto; padding: 2rem var(--gutter) 4rem;
        min-height: calc(92svh - var(--header-h)); justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-content { padding-inline-end: 42%; max-width: 72rem; margin-inline: auto; }
    [dir='rtl'] .hero-content { padding-inline-end: var(--gutter); padding-inline-start: 42%; }
}

.hero-content {
    position: relative; z-index: 2; max-width: 72rem; margin: 0 auto;
    padding: 1.5rem var(--gutter); display: flex; flex-direction: column;
}

.eyebrow {
    font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.18em; color: rgb(201 164 92 / 0.95); margin: 0 0 0.5rem;
}

h1, h2, h3 { margin: 0; overflow-wrap: anywhere; }
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
}
.section-lead { margin-top: 0.75rem; }
.lead { margin-top: 0.75rem; color: rgb(244 239 230 / 0.78); font-size: 1.125rem; line-height: 1.5; font-weight: 400; }
.cta-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.65rem; }

.btn-primary, .btn-outline, .btn-submit {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 1.35rem; font-size: 0.875rem; font-weight: 600; letter-spacing: -0.01em;
    cursor: pointer; font-family: inherit; min-height: 48px; border-radius: var(--radius-pill);
    transition: transform 0.2s ease, background 0.2s ease;
}
.btn-primary, .btn-submit {
    border: none; background: var(--cream); color: var(--ink);
}
.btn-outline {
    border: 1px solid rgb(255 255 255 / 0.22); color: var(--cream); background: rgb(255 255 255 / 0.06);
}
.btn-primary:active, .btn-outline:active, .btn-submit:active { transform: scale(0.98); }
.link-gold { color: var(--gold); word-break: break-all; min-height: 44px; display: inline-flex; align-items: center; }

.section { padding: clamp(4rem, 11vw, 7rem) 0; }
.section + .section { border-top: 1px solid rgb(255 255 255 / 0.06); }
.section-gradient {
    background: radial-gradient(ellipse 90% 50% at 50% 0%, rgb(91 26 138 / 0.22), transparent 55%);
}

.container { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); width: 100%; }

.section-head {
    margin-bottom: 2rem;
}
@media (min-width: 1024px) {
    .section-head--sticky {
        position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px);
    }
}

.grid-2 { display: grid; gap: 2rem; }
.section-body { margin-top: 0.5rem; }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }

.text-muted { color: rgb(244 239 230 / 0.68); font-size: 1.0625rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }

/* Service tiles */
.services-scroller { margin-top: 0.25rem; }
@media (max-width: 1023px) {
    .services-scroller {
        margin-inline: calc(-1 * var(--gutter));
        padding-inline: var(--gutter);
    }
    .services-track {
        display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 0.25rem;
    }
    .services-track::-webkit-scrollbar { display: none; }
    .service-card { flex: 0 0 min(86vw, 18rem); scroll-snap-align: start; }
}
@media (min-width: 1024px) {
    .services-track { display: flex; flex-direction: column; gap: 0.75rem; }
}

.service-card {
    padding: 1.25rem 1.15rem;
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgb(91 26 138 / 0.22), rgb(59 10 87 / 0.14));
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.06) inset;
}
.service-card h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; }
.service-card p { margin: 0.4rem 0 0; font-size: 0.9375rem; color: rgb(244 239 230 / 0.62); line-height: 1.5; }
.price-tag { margin-top: 0.75rem; font-size: 0.75rem; font-weight: 600; color: var(--gold); }

/* Forms */
.form-section { padding-bottom: var(--wa-offset); }
.form-card {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: rgb(255 255 255 / 0.04);
    border: 1px solid rgb(255 255 255 / 0.06);
}
.form-stack { display: flex; flex-direction: column; gap: 0.85rem; }
.form-field label {
    display: block; margin-bottom: 0.35rem; font-size: 0.8125rem; font-weight: 500;
    color: rgb(244 239 230 / 0.55);
}
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 0.8rem 1rem; border: 1px solid rgb(255 255 255 / 0.1);
    background: rgb(11 11 15 / 0.55); color: var(--cream);
    font: inherit; font-size: 1rem; min-height: 48px; border-radius: var(--radius-sm);
}
.form-field textarea { min-height: 6.5rem; resize: vertical; border-radius: var(--radius-md); }
.form-row { display: grid; gap: 0.85rem; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }

.form-optional {
    border-radius: var(--radius-sm); padding: 0.5rem 0.75rem;
    background: rgb(255 255 255 / 0.03);
}
.form-optional summary {
    cursor: pointer; font-size: 0.8125rem; font-weight: 600; color: rgb(201 164 92 / 0.9);
    min-height: 44px; display: flex; align-items: center; list-style: none;
}
.form-optional summary::-webkit-details-marker { display: none; }
.form-optional-inner { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.85rem; }
@media (min-width: 768px) {
    .form-optional { padding: 0; background: transparent; }
    .form-optional summary { display: none; }
}

.site-main > .form-feedback {
    max-width: 40rem; margin: 0.5rem auto 1rem; padding: 0.9rem 1.1rem; font-size: 0.9375rem;
    width: calc(100% - var(--gutter) * 2); border-radius: var(--radius-pill);
    text-align: center;
}
.form-feedback ul { margin: 0; padding-inline-start: 1.15rem; text-align: start; }
.form-feedback p { margin: 0; }
.form-feedback--success {
    background: rgb(59 10 87 / 0.55); border: 1px solid rgb(201 164 92 / 0.25); color: var(--cream);
}
.form-feedback--error {
    background: rgb(69 10 10 / 0.45); border: 1px solid rgb(248 113 113 / 0.35); color: #fecaca;
}

.img-frame {
    width: 100%; object-fit: cover; border-radius: var(--radius-md);
    box-shadow: 0 16px 48px rgb(0 0 0 / 0.35);
}
.aspect-4-3 { aspect-ratio: 4/3; }
.aspect-16-10 { aspect-ratio: 16/10; }
.aspect-3-4 { aspect-ratio: 3/4; }
.aspect-square { aspect-ratio: 1; max-width: 20rem; }

.portfolio-grid { display: grid; gap: 0.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 0.65rem; }
    .portfolio-item:first-child { grid-column: span 2; grid-row: span 2; }
}

.portfolio-item {
    position: relative; padding: 0; border: none; border-radius: var(--radius-md);
    background: var(--ink); overflow: hidden; cursor: pointer; aspect-ratio: 4/5; min-height: 44px;
}
.portfolio-item img { height: 100%; object-fit: cover; transition: transform 0.55s var(--ease-apple); }
.portfolio-item:hover img { transform: scale(1.03); }
.portfolio-frame { display: none; }

.lightbox {
    position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
    background: rgb(0 0 0 / 0.94); padding: env(safe-area-inset-top, 0px) var(--gutter) env(safe-area-inset-bottom, 0px);
}
.lightbox.hidden { display: none; }
.lightbox-img { max-height: 85svh; max-width: 100%; border-radius: var(--radius-sm); object-fit: contain; user-select: none; }
.lightbox-close, .lightbox-nav {
    border-radius: var(--radius-pill); background: rgb(255 255 255 / 0.08); border: none; color: var(--cream);
}
.lightbox-close {
    position: absolute; top: calc(0.75rem + env(safe-area-inset-top, 0px)); inset-inline-end: var(--gutter);
    font-size: 1.75rem; min-width: 48px; min-height: 48px; cursor: pointer;
}
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    min-width: 48px; min-height: 48px; font-size: 2rem; cursor: pointer;
}
.lightbox-prev { inset-inline-start: 0.25rem; }
.lightbox-next { inset-inline-end: 0.25rem; }

.site-footer {
    padding: 2.5rem 0 calc(2rem + var(--wa-offset));
    border-top: 1px solid rgb(255 255 255 / 0.06);
}
.footer-inner {
    max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter);
    display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center;
    font-size: 0.75rem; color: rgb(244 239 230 / 0.45);
}
@media (min-width: 768px) {
    .footer-inner { flex-direction: row; justify-content: space-between; text-align: start; }
}

.whatsapp-float {
    position: fixed;
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    inset-inline-end: calc(0.85rem + env(safe-area-inset-right, 0px));
    z-index: 55; width: 3.25rem; height: 3.25rem; border-radius: var(--radius-pill);
    display: flex; align-items: center; justify-content: center;
    background: var(--velvet); color: var(--cream);
    box-shadow: 0 10px 32px rgb(0 0 0 / 0.4);
    border: 1px solid rgb(255 255 255 / 0.1);
}

.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.reveal {
    opacity: 0; transform: translate3d(0, 16px, 0);
    transition: opacity 0.65s var(--ease-apple), transform 0.65s var(--ease-apple);
    transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }

.gold-line { display: none; }
.order-first-mobile { order: -1; }
@media (min-width: 1024px) {
    .order-first-mobile, .order-second-mobile { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
    .portfolio-item img { transition: none; }
    .mobile-menu-panel, .mobile-menu-backdrop { transition: none; }
    .mobile-menu.is-open nav a { animation: none; opacity: 1; transform: none; }
    .menu-toggle-bar { transition: none; }
    .hero-media-inner { transform: none !important; }
}

.hero-content, .container, .header-inner, .form-feedback { max-width: 100%; }