:root {
    --ink: #241b1c;
    --muted: #766c67;
    --paper: #fffaf5;
    --soft: #f6efe7;
    --rose: #b76f7a;
    --rose-deep: #7d4654;
    --sage: #6f836c;
    --wood: #55352c;
    --line: rgba(36, 27, 28, 0.14);
    --shadow: 0 24px 80px rgba(36, 27, 28, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    line-height: 1.6;
}

body.lang-ar {
    direction: rtl;
    text-align: right;
}

body.lang-en {
    direction: ltr;
    text-align: left;
}

[data-lang="en"] {
    display: none;
}

body.lang-en [data-lang="ar"] {
    display: none;
}

body.lang-en [data-lang="en"] {
    display: revert;
}

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

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

main,
section,
header,
footer {
    max-width: 100%;
}

p,
h1,
h2,
h3,
a,
span,
dd,
dt,
label {
    overflow-wrap: anywhere;
}

.site-header {
    position: fixed;
    z-index: 40;
    top: 18px;
    left: 50%;
    display: flex;
    width: min(1180px, calc(100% - 32px));
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 16px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    background: rgba(36, 27, 28, 0.36);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
    transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
    color: var(--ink);
    background: rgba(255, 250, 245, 0.94);
    box-shadow: 0 16px 48px rgba(36, 27, 28, 0.12);
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand {
    min-width: 0;
    flex: 0 1 auto;
}

.brand > span:last-child {
    min-width: 0;
}

.brand-mark {
    flex: 0 0 auto;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    line-height: 1;
}

.brand strong,
.footer-brand strong {
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0;
}

.brand strong {
    max-width: min(34vw, 330px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand em {
    display: block;
    max-width: min(34vw, 330px);
    font-style: normal;
    font-size: 0.78rem;
    opacity: 0.82;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
}

.site-nav a {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.92rem;
    transition: background 160ms ease;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.18);
}

.language-switch {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    border: 1px solid currentColor;
    border-radius: 999px;
}

.language-switch button {
    display: grid;
    min-width: 34px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: inherit;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
}

.language-switch button.is-active {
    color: var(--ink);
    background: #fff;
}

.site-header.is-scrolled .language-switch button.is-active {
    color: #fff;
    background: var(--rose-deep);
}

.site-header.is-scrolled .site-nav a:hover {
    background: rgba(36, 27, 28, 0.08);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid currentColor;
    border-radius: 8px;
    color: inherit;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.hero {
    position: relative;
    display: grid;
    min-height: 88svh;
    align-items: end;
    padding: 132px 24px 74px;
    color: #fff;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(20, 14, 15, 0.74), rgba(20, 14, 15, 0.22) 54%, rgba(20, 14, 15, 0.54)),
        linear-gradient(0deg, rgba(20, 14, 15, 0.68), rgba(20, 14, 15, 0.08) 48%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--rose);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #ffd6d0;
}

.hero h1 {
    width: min(900px, 100%);
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 7vw, 6.7rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-copy {
    display: grid;
    max-width: 620px;
    gap: 8px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.28rem);
}

.hero-copy p {
    margin: 0;
}

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

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.button-primary {
    color: #fff;
    background: var(--rose-deep);
}

.button-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.12);
}

.hero-scroll {
    position: absolute;
    right: 28px;
    bottom: 26px;
    z-index: 1;
    display: grid;
    width: 42px;
    height: 64px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 999px;
}

.hero-scroll span {
    width: 6px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    animation: scrollHint 1.4s ease-in-out infinite;
}

@keyframes scrollHint {
    0%, 100% {
        transform: translateY(-8px);
        opacity: 0.35;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

.intro-band,
.services-band,
.gallery-band,
.contact-band {
    padding: 86px 24px;
}

.intro-band {
    background: var(--paper);
}

.services-band {
    background: #efe7df;
}

.gallery-band {
    background: #faf6f1;
}

.contact-band {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 44px;
    background: var(--ink);
    color: #fff;
}

.section-heading,
.intro-layout,
.service-grid,
.gallery-grid,
.contact-band {
    width: min(1180px, 100%);
    margin-inline: auto;
}

.section-heading {
    margin-bottom: 36px;
}

.section-heading.compact {
    margin-bottom: 24px;
}

.section-heading h2,
.contact-copy h2,
.admin-heading h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 4.1rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.contact-copy p {
    max-width: 720px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.contact-copy p {
    color: rgba(255, 255, 255, 0.74);
}

.intro-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
    gap: 48px;
    align-items: center;
}

.intro-media {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.intro-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.intro-text > p {
    margin: 0;
    font-size: clamp(1.25rem, 2.4vw, 2.25rem);
    line-height: 1.25;
}

.signature-list {
    display: grid;
    gap: 18px;
    margin: 32px 0 0;
}

.signature-list div {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.signature-list dt {
    color: var(--rose-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
}

.signature-list dd {
    margin: 0;
    color: var(--muted);
}

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

.service-card {
    min-height: 260px;
    padding: 22px;
    border: 1px solid rgba(36, 27, 28, 0.12);
    border-radius: 8px;
    background: rgba(255, 250, 245, 0.72);
}

.service-card span {
    display: block;
    color: var(--sage);
    font-size: 0.94rem;
    font-weight: 700;
}

.service-card h3 {
    margin: 52px 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.6rem;
    line-height: 1.1;
}

.service-card p {
    margin: 0;
    color: var(--muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.gallery-item {
    aspect-ratio: 4 / 5;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #ddd;
    cursor: zoom-in;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease, filter 360ms ease;
}

.gallery-item:hover img {
    transform: scale(1.035);
    filter: saturate(1.06);
}

.contact-copy,
.contact-form {
    min-width: 0;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.contact-links a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
}

.address {
    margin-top: 22px;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

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

.contact-form label {
    display: grid;
    gap: 7px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.contact-form input {
    min-height: 48px;
    padding: 11px 12px;
}

.contact-form textarea {
    min-height: 144px;
    padding: 12px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ffd6d0;
    box-shadow: 0 0 0 3px rgba(255, 214, 208, 0.18);
}

.contact-form ::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.form-alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.form-alert.success {
    color: #dff8e5;
    background: rgba(111, 131, 108, 0.32);
}

.form-alert.error {
    color: #ffe4e4;
    background: rgba(183, 111, 122, 0.28);
}

.trap {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 24px;
    color: #fff;
    background: #171112;
}

.footer-brand {
    max-width: 650px;
}

.footer-brand p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.62);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(16, 12, 13, 0.88);
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-height: 88svh;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.lightbox-close {
    position: fixed;
    top: 22px;
    right: 22px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 980px) {
    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        inset-inline-end: 0;
        display: none;
        width: min(360px, calc(100vw - 20px));
        max-height: calc(100svh - 96px);
        overflow-y: auto;
        padding: 10px;
        border-radius: 8px;
        color: var(--ink);
        background: var(--paper);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: grid;
        justify-items: stretch;
    }

    .site-nav a {
        display: flex;
        width: 100%;
        align-items: center;
    }

    .language-switch {
        width: 100%;
        justify-content: center;
    }

    .site-nav a:hover {
        background: rgba(36, 27, 28, 0.08);
    }

    .menu-toggle {
        display: block;
    }

    .intro-layout,
    .contact-band {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 680px) {
    .site-header {
        top: 10px;
        width: calc(100% - 20px);
        min-height: 62px;
        padding: 10px;
        gap: 10px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        font-size: 1.35rem;
    }

    .brand strong {
        max-width: calc(100vw - 164px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand em {
        display: none;
    }

    .hero {
        min-height: 84svh;
        padding: 112px 18px 64px;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 13vw, 4.3rem);
    }

    .hero-scroll {
        display: none;
    }

    .intro-band,
    .services-band,
    .gallery-band,
    .contact-band {
        padding: 62px 18px;
    }

    .section-heading h2,
    .contact-copy h2 {
        font-size: clamp(2rem, 10vw, 3.1rem);
    }

    .service-grid,
    .field-pair {
        grid-template-columns: 1fr;
    }

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

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

    .contact-form {
        padding: 18px;
    }

    .site-footer {
        display: grid;
        justify-items: start;
    }

    .footer-links {
        justify-content: flex-start;
    }
}
