:root {
    --ink: #282019;
    --ink-soft: #65594e;
    --sand: #c5ae8a;
    --gold: #a9814c;
    --gold-dark: #795b35;
    --cream: #f7f3eb;
    --paper: #fffdf8;
    --stone: #e9e1d4;
    --white: #fff;
    --shadow: 0 24px 70px rgba(50, 37, 24, .12);
    --radius: 1.5rem;
    --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    background: var(--cream);
    color: var(--ink);
    direction: rtl;
    font-family: "Cairo", sans-serif;
    font-weight: 400;
    line-height: 1.8;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.gtm-frame { display: none; visibility: hidden; }
.skip-link {
    position: fixed; inset: 10px auto auto 10px; z-index: 9999;
    background: var(--paper); color: var(--ink); padding: .65rem 1rem;
    transform: translateY(-150%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.site-header {
    position: fixed; inset: 0 0 auto; z-index: 1000; height: 88px;
    color: var(--white); border-bottom: 1px solid rgba(255,255,255,.15);
    transition: background .3s, box-shadow .3s, transform .3s;
}
.site-header.is-scrolled {
    background: rgba(40,32,25,.96); box-shadow: 0 8px 30px rgba(0,0,0,.15);
    backdrop-filter: blur(12px);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 3rem; }
.brand { margin-inline-end: auto; }
.brand img, .footer-logo { width: 118px; height: auto; filter: brightness(0) invert(1); }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a, .footer-links a { text-decoration: none; font-size: .92rem; }
.main-nav a { position: relative; }
.main-nav a::after {
    content: ""; position: absolute; inset: auto 0 -.45rem; height: 1px;
    background: var(--sand); transform: scaleX(0); transition: transform .25s;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .85rem; }
.lang-switch {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 46px; min-height: 40px; padding: .45rem .75rem;
    border: 1px solid rgba(255,255,255,.45); color: white; text-decoration: none;
    font-size: .82rem; font-weight: 700; letter-spacing: .04em;
}
.lang-switch:hover { background: rgba(255,255,255,.1); }
.lang-switch--mobile { display: none; }
.header-cta {
    display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.1rem;
    border: 1px solid rgba(255,255,255,.45); text-decoration: none; font-size: .85rem;
}
.menu-toggle { display: none; border: 0; background: none; width: 42px; padding: 8px; }
.menu-toggle span { display: block; height: 1px; background: white; margin: 7px 0; transition: .25s; }
html[dir="ltr"] body { direction: ltr; text-align: left; font-family: "Marcellus", "Cairo", serif; }
html[dir="ltr"] body, html[dir="ltr"] p, html[dir="ltr"] a, html[dir="ltr"] button, html[dir="ltr"] li, html[dir="ltr"] span, html[dir="ltr"] summary {
    font-family: "Cairo", sans-serif;
}
html[dir="ltr"] h1, html[dir="ltr"] h2, html[dir="ltr"] .project-intro, html[dir="ltr"] .launch-content h2, html[dir="ltr"] .project-card h3 {
    font-family: "Marcellus", "Cairo", serif;
}
html[dir="ltr"] .floating-contact { inset: auto 22px 22px auto; }
html[dir="ltr"] .footer-note { text-align: right; }
html[dir="ltr"] .modal-close { inset: 20px 25px auto auto; }

.hero {
    min-height: 100svh; display: grid; align-items: end; position: relative;
    color: var(--white); background-size: cover; background-position: center;
    isolation: isolate; padding: 170px 0 90px;
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(27,21,16,.2), rgba(27,21,16,.78)),
                linear-gradient(0deg, rgba(27,21,16,.75), transparent 55%);
}
.hero-content { max-width: 760px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .75rem; color: var(--gold-dark);
    font-size: .78rem; font-weight: 700; letter-spacing: .16em; margin-bottom: 1rem;
}
.hero .eyebrow, .section-heading--light .eyebrow { color: #ddc59f; }
.eyebrow::before { content: ""; width: 42px; height: 1px; background: currentColor; }
.hero h1, .project-hero h1 {
    font-family: "Marcellus", "Cairo", serif; font-size: clamp(3rem, 7vw, 6.6rem);
    font-weight: 400; line-height: 1.08; margin-bottom: 1.4rem;
}
.hero h1 span { display: block; color: #e2cba7; font-size: .42em; margin-top: .4rem; }
.hero p { max-width: 650px; font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.button {
    display: inline-flex; justify-content: center; align-items: center; gap: .7rem;
    min-height: 52px; padding: .75rem 1.6rem; border: 1px solid var(--ink);
    background: var(--ink); color: var(--white); text-decoration: none; cursor: pointer;
    transition: color .25s, background .25s, border-color .25s, transform .25s;
}
.button:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); }
.button--outline { background: transparent; border-color: rgba(255,255,255,.6); }
.button--outline:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.button--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.button--light:hover { color: white; }
.text-link { display: inline-flex; align-items: center; gap: .7rem; text-underline-offset: 5px; }
.text-link--light { color: white; }

.section { padding: clamp(5rem, 10vw, 8rem) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--white); }
.section-heading { max-width: 680px; margin-bottom: 3.25rem; }
.section-heading--center { text-align: center; margin-inline: auto; }
.section-heading--center .eyebrow { justify-content: center; }
.section-heading--light { color: white; }
.section-heading h2 {
    font-family: "Marcellus", "Cairo", serif; font-size: clamp(2.1rem, 4.5vw, 4rem);
    font-weight: 400; line-height: 1.2; margin-bottom: 1rem;
}
.section-heading p { color: var(--ink-soft); font-size: 1.05rem; }
.section-heading--light p { color: rgba(255,255,255,.7); }

.about-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7vw; align-items: center; }
.about-visual { position: relative; padding: 0 0 3rem 3rem; }
.about-visual img { width: 100%; height: 600px; object-fit: cover; }
.experience-card {
    position: absolute; inset: auto auto 0 0; width: 190px; padding: 1.4rem;
    background: var(--ink); color: white;
}
.experience-card strong { display: block; font-family: "Marcellus", serif; color: #dec39b; font-size: 3rem; line-height: 1; }
.about-copy > p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--stone); margin-top: 2.5rem; padding-top: 2rem; }
.stat { padding-inline: 1rem; border-inline-start: 1px solid var(--stone); }
.stat:first-child { padding-inline-start: 0; border-inline-start: 0; }
.stat strong { display: block; font-family: "Marcellus", serif; font-size: 2rem; color: var(--gold-dark); }
.stat span { color: var(--ink-soft); font-size: .85rem; }

.launch-section { background: #d8c9b1; position: relative; overflow: hidden; }
.launch-section::before {
    content: "TOWNSIDE"; position: absolute; direction: ltr; inset: -2.5rem auto auto -1rem;
    color: rgba(255,255,255,.18); font: 400 clamp(5rem, 15vw, 13rem)/1 "Marcellus", serif;
}
.launch-card {
    position: relative; display: grid; grid-template-columns: 1fr 1.05fr;
    min-height: 580px; background: var(--paper); box-shadow: var(--shadow);
}
.launch-image { min-height: 100%; overflow: hidden; position: relative; }
.launch-image img { width: 100%; height: 100%; object-fit: cover; }
.launch-badge {
    position: absolute; inset: 1.5rem 1.5rem auto auto; background: var(--ink); color: white;
    padding: .55rem 1rem; font-size: .78rem;
}
.launch-content { padding: clamp(2rem, 5vw, 4.5rem); }
.launch-content h2 { font: 400 clamp(2.4rem, 5vw, 4.5rem)/1 "Marcellus", serif; margin-bottom: .5rem; }
.launch-content h3 { color: var(--gold-dark); font-weight: 500; margin-bottom: 1.25rem; }
.launch-location { color: var(--ink-soft); margin-bottom: 1.5rem; }
.launch-facts { display: flex; gap: 2rem; margin-bottom: 1.5rem; }
.launch-facts strong { display: block; font: 400 1.8rem "Marcellus", serif; }
.launch-facts span { color: var(--ink-soft); font-size: .8rem; }
.feature-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.2rem 0 1.6rem; list-style: none; }
.feature-chips li { border: 1px solid var(--stone); padding: .45rem .8rem; font-size: .78rem; }
.launch-details { border-top: 1px solid var(--stone); padding-top: 1.2rem; margin-top: 1.2rem; }
.launch-details summary { cursor: pointer; font-weight: 600; color: var(--gold-dark); }
.launch-detail-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 1rem; padding-top: 1rem; }
.launch-detail-grid ul { list-style: none; color: var(--ink-soft); font-size: .86rem; }
.launch-detail-grid b { color: var(--ink); }
.launch-cta { margin-top: 1.6rem; }

.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.project-card {
    grid-column: span 6; position: relative; min-height: 520px; overflow: hidden;
    color: white; text-decoration: none; background: var(--ink);
}
.project-card:nth-child(3n) { grid-column: span 12; min-height: 580px; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; opacity: .84; }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(25,18,13,.9), transparent 70%); }
.project-card__content { position: absolute; inset: auto 0 0; z-index: 1; padding: 2rem; }
.project-card__content span { color: #dfc59d; font-size: .76rem; }
.project-card h3 { font: 400 clamp(1.8rem, 4vw, 3rem) "Marcellus", serif; margin: .35rem 0; }
.project-card p { max-width: 610px; color: rgba(255,255,255,.75); }
.project-card:hover img { transform: scale(1.045); }

.gallery-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; grid-auto-rows: 260px; gap: 1rem; }
.gallery-item { border: 0; cursor: zoom-in; overflow: hidden; background: var(--stone); }
.gallery-item:first-child { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.04); }

.brochure-card {
    display: flex; justify-content: space-between; align-items: center; gap: 2rem;
    padding: clamp(2rem, 5vw, 4rem); background: var(--stone);
}
.brochure-card h2 { font: 400 clamp(2rem, 4vw, 3.5rem) "Marcellus", serif; }
.brochure-message { display: none; margin-top: 1rem; color: var(--gold-dark); }

.project-hero {
    min-height: 78svh; display: grid; align-items: end; position: relative; isolation: isolate;
    padding: 180px 0 80px; color: white; background-size: cover; background-position: center;
}
.project-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(30,22,16,.88), rgba(30,22,16,.18)); }
.project-hero__copy { max-width: 760px; }
.project-hero p { max-width: 620px; color: rgba(255,255,255,.78); font-size: 1.1rem; }
.project-overview { display: grid; grid-template-columns: .85fr 1.15fr; gap: 7vw; }
.project-intro { font: 400 clamp(1.6rem, 3vw, 2.6rem)/1.6 "Marcellus", "Cairo", serif; }
.project-description p { color: var(--ink-soft); margin-bottom: 1rem; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.info-card { padding: 1.5rem; border: 1px solid var(--stone); }
.info-card i { color: var(--gold); margin-bottom: .9rem; }
.info-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.info-card p { color: var(--ink-soft); font-size: .88rem; }
.amenities-grid, .units-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.amenity, .unit-card { padding: 1.6rem; border: 1px solid rgba(255,255,255,.14); }
.amenity i { color: #dec39b; font-size: 1.4rem; margin-bottom: 1rem; }
.amenity h3, .unit-card h3 { font-size: 1rem; font-weight: 600; }
.amenity p, .unit-card p { color: rgba(255,255,255,.65); font-size: .86rem; margin-top: .35rem; }
.unit-card { border-color: var(--stone); background: var(--paper); }
.unit-card p { color: var(--ink-soft); }
.payment-list { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--stone); }
.payment-item { padding: 1.7rem; border-inline-start: 1px solid var(--stone); }
.payment-item:first-child { border-inline-start: 0; }
.payment-item strong { color: var(--gold-dark); font: 400 1.6rem "Marcellus", serif; display: block; }

.contact-section { background: var(--ink); color: white; padding: 5rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-layout { display: flex; justify-content: space-between; align-items: end; gap: 3rem; }
.contact-layout .section-heading { margin: 0; }
.contact-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.site-footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 4rem 0; font-size: .86rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .6fr 1fr; gap: 4rem; align-items: start; }
.footer-logo { margin-bottom: 1.2rem; }
.footer-links { display: flex; flex-direction: column; gap: .75rem; color: white; }
.footer-note { text-align: left; }
.floating-contact { position: fixed; inset: auto auto 22px 22px; z-index: 900; display: flex; flex-direction: column; gap: .6rem; }
.floating-contact a { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; text-decoration: none; box-shadow: 0 8px 25px rgba(0,0,0,.18); }
.floating-contact__whatsapp { background: #276b4f !important; }

.image-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(23,18,14,.94); display: grid; place-items: center; padding: 4rem; }
.image-modal[hidden] { display: none; }
.image-modal img { max-height: 85vh; max-width: 90vw; object-fit: contain; }
.modal-close { position: absolute; inset: 20px auto auto 25px; border: 0; background: none; color: white; font-size: 2.4rem; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

@media (max-width: 900px) {
    .site-header { height: 74px; background: rgba(40,32,25,.96); }
    .header-inner { gap: 1rem; }
    .brand img { width: 96px; }
    .menu-toggle { display: block; order: -1; }
    .header-cta { display: none; }
    .header-actions .lang-switch { min-width: 42px; min-height: 36px; padding: .35rem .6rem; }
    .lang-switch--mobile { display: inline-flex; width: fit-content; margin-top: .75rem; }
    .main-nav {
        position: fixed; inset: 74px 0 auto; display: flex; flex-direction: column; align-items: stretch;
        gap: 0; padding: 1.5rem 20px 2rem; background: var(--ink); transform: translateY(-130%);
        visibility: hidden; z-index: 1001; box-shadow: 0 20px 35px rgba(0,0,0,.18);
        transition: transform .3s, visibility .3s;
    }
    .main-nav.is-open { transform: none; visibility: visible; }
    .main-nav a { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .about-layout, .launch-card, .project-overview { grid-template-columns: 1fr; }
    .about-visual img { height: 440px; }
    .launch-image { min-height: 400px; }
    .project-card, .project-card:nth-child(3n) { grid-column: span 12; min-height: 470px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-item:first-child { grid-column: span 2; grid-row: auto; }
    .amenities-grid, .units-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { align-items: start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-note { grid-column: span 2; text-align: right; }
    html[dir="ltr"] .footer-note { text-align: left; }
}

@media (max-width: 600px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .hero { min-height: 90svh; padding-bottom: 55px; }
    .hero-actions, .hero-actions .button { width: 100%; }
    .about-visual { padding: 0 0 2rem 1.2rem; }
    .about-visual img { height: 360px; }
    .experience-card { width: 155px; }
    .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
    .stat { border: 0; border-top: 1px solid var(--stone); padding: 1rem 0 0; }
    .launch-card { min-height: auto; }
    .launch-image { min-height: 280px; }
    .launch-content { padding: 1.6rem; }
    .launch-facts { gap: 1rem; }
    .launch-detail-grid, .info-grid, .amenities-grid, .units-grid, .payment-list { grid-template-columns: 1fr; }
    .payment-item { border-inline-start: 0; border-top: 1px solid var(--stone); }
    .payment-item:first-child { border-top: 0; }
    .project-card, .project-card:nth-child(3n) { min-height: 420px; }
    .project-card__content { padding: 1.35rem; }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .gallery-item:first-child { grid-column: auto; }
    .brochure-card { align-items: stretch; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-note { grid-column: auto; }
    .image-modal { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .reveal { opacity: 1; transform: none; }
}
