:root {
  color-scheme: light;
  --paper: #fffaf3;
  --white: #fff;
  --ink: #3a251d;
  --sand: #f6e8d8;
  --stone: #f4e0ca;
  --action: #824529;
  --action-hover: #66311d;
  --gold: #ab6631;
  --gold-dark: #703b22;
  --muted: #674b3c;
  --line: #e2cbb7;
  --header-height: 5.25rem;
  --hero-gradient-direction: 90deg;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }
figure { margin: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h2, h3, .metrics span { overflow-wrap: anywhere; }
section[id], footer[id] { scroll-margin: 1.5rem; }
:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 5px; }
.wrap { width: min(100% - 7rem, 78.5rem); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; inset: 1rem auto auto 1rem; z-index: 5; background: var(--paper); padding: .75rem; }

.header-shell { position: absolute; z-index: 2; inset: 0 0 auto; background: #fce8d1a8; border-bottom: 1px solid #85503333; backdrop-filter: blur(4px); }
.header { min-height: var(--header-height); display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.brand { display: inline-flex; gap: .73rem; align-items: center; width: fit-content; text-decoration: none; }
.brand-mark { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; width: 2.35rem; height: 2.35rem; gap: .16rem; padding: .35rem; border: 1px solid var(--gold); }
.brand-mark i { display: block; background: var(--gold); height: 66%; }
.brand-mark i:nth-child(2) { height: 100%; }
.brand-name { display: grid; gap: .11rem; font: 500 1.1rem/.94 var(--serif); letter-spacing: .015em; white-space: nowrap; }
.brand-name small { font: 650 .66rem/1.2 'Segoe UI', sans-serif; text-transform: uppercase; letter-spacing: .2em; color: var(--gold-dark); }
.navigation { display: flex; align-items: center; gap: clamp(1rem, 3.1vw, 3rem); }
.navigation a, .header-contact { font-size: .9rem; font-weight: 550; text-decoration: none; white-space: nowrap; }
.navigation a:hover, .footer-bottom a:hover { color: var(--gold-dark); text-decoration: underline; text-underline-offset: .26em; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: .55rem; }
.header-contact { padding: .63rem 1.06rem; border: 1px solid #a17256; color: var(--gold-dark); }
.header-contact:hover { background: var(--sand); }
.language-switch { position: relative; }
.language-trigger { display: flex; align-items: center; gap: .42rem; min-height: 2.6rem; padding: .42rem .6rem; border: 1px solid #a17256; background: #fffaf3a6; color: var(--ink); font-size: .78rem; font-weight: 700; list-style: none; cursor: pointer; }
.language-trigger::-webkit-details-marker { display: none; }
.language-trigger::after { content: ''; width: .38rem; height: .38rem; margin-block-start: -.2rem; border-inline-end: 1px solid currentColor; border-block-end: 1px solid currentColor; transform: rotate(45deg); }
[dir="rtl"] .language-trigger::after { transform: rotate(-45deg); }
.language-trigger:hover, .language-switch[open] .language-trigger { background: var(--paper); }
.language-flag { flex: 0 0 auto; width: 1.5rem; height: 1.125rem; object-fit: cover; box-shadow: 0 0 0 1px #3a251d22; }
.language-options { position: absolute; z-index: 3; inset-block-start: calc(100% + .4rem); inset-inline-end: 0; min-width: 10.25rem; max-height: 70vh; margin: 0; padding: .3rem; overflow: auto; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 .45rem 1.6rem #3a251d21; list-style: none; }
.language-options button { display: flex; align-items: center; gap: .65rem; width: 100%; min-height: 2.35rem; padding: .4rem .55rem; border: 0; background: transparent; text-align: start; white-space: nowrap; cursor: pointer; }
.language-options button:hover, .language-options [aria-current="true"] { background: var(--sand); }
.language-options [aria-current="true"] { font-weight: 700; }
.language-options button:focus-visible { outline-offset: -2px; }

.opening { background: var(--sand); }
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(36rem, 52vw, 46rem); padding-block: calc(var(--header-height) + 1.3rem) 2.45rem; }
.hero-copy { max-width: 29rem; }
.eyebrow { color: var(--gold-dark); font-size: .8rem; font-weight: 720; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.hero-location { display: flex; align-items: center; gap: .66rem; }
.hero-location::before { content: ''; width: 1.8rem; height: 1px; background: var(--gold); }
.hero h1 { margin-top: .88rem; font: 400 clamp(5rem, 10.1vw, 9.4rem)/.83 var(--serif); letter-spacing: -.077em; }
.hero h1 span { color: var(--gold); }
.hero-description { margin-top: 1.45rem; max-width: 20rem; color: #4f3023; font-size: clamp(1.08rem, 1.7vw, 1.35rem); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.6rem; margin-top: 1.75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .66rem 1.15rem; border: 1px solid transparent; text-align: center; font-size: .92rem; font-weight: 700; text-decoration: none; }
.button-primary { background: var(--action); color: var(--white); }
.button-primary:hover { background: var(--action-hover); }
.text-link { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .26em; text-decoration-thickness: 1px; font-size: .94rem; font-weight: 650; }
.text-link:hover { text-decoration-thickness: 2px; }
.hero-link { color: var(--ink); }
.hero-figure { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #e69b63; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 6%; }
.hero-figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(var(--hero-gradient-direction), #ffe8d1e8 0%, #f9d5b3e0 18%, #f6c99fa8 30%, #efbb8c52 41%, transparent 58%); }
.hero-photo-credit { display: none; }
[data-hero="gardens"] .hero { min-height: max(36rem, 51vw); padding-bottom: 4rem; }
[data-hero="gardens"] .hero-figure img { object-position: 50% 100%; }
[data-hero="gardens"] .hero-figure::after { background: linear-gradient(var(--hero-gradient-direction), #fff1dfea 0%, #fee9cde0 16%, #fbe0bcbe 28%, #fbdab971 37%, transparent 54%); mask-image: linear-gradient(#000 84%, #0002); }
[data-hero="gardens"] .hero-photo-credit { display: block; padding-top: .65rem; color: var(--muted); font-size: .75rem; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 1.6rem; }
.metrics > div { display: flex; align-items: center; gap: clamp(.6rem, 2.1vw, 1.65rem); padding: .75rem clamp(.5rem, 2.6vw, 2.25rem); background: #fffaf3db; border-block: 1px solid var(--line); }
.metrics > div:first-child { border-inline-start: 1px solid var(--line); }
.metrics > div { border-inline-end: 1px solid var(--line); }
.metrics strong { font: 400 clamp(2.45rem, 4.75vw, 4.4rem)/1 var(--serif); color: var(--action); letter-spacing: -.06em; }
.metrics span { color: var(--muted); font-size: .93rem; line-height: 1.4; }

.project { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 8vw, 7.4rem); padding-block: clamp(3.6rem, 8vw, 7rem) 2.3rem; }
.project-figure img { width: 100%; height: clamp(24rem, 38vw, 34rem); object-fit: cover; object-position: center 55%; }
.project-figure figcaption, .gallery figcaption { padding-top: .56rem; font-size: .82rem; color: var(--muted); }
h2 { margin-top: .38rem; font: 400 clamp(2.3rem, 4.75vw, 4.6rem)/.99 var(--serif); letter-spacing: -.055em; }
.project-copy > p:not(.eyebrow), .section-text, .location-inner p:not(.eyebrow), .footer-inner p:not(.eyebrow) { color: var(--muted); font-size: 1rem; line-height: 1.65; }
.project-copy > p:not(.eyebrow) { margin-top: .95rem; max-width: 35rem; }
.project-links { margin: 1.4rem 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.project-links li { border-bottom: 1px solid var(--line); }
.project-links a { display: flex; justify-content: space-between; align-items: center; gap: .45rem 1rem; flex-wrap: wrap; padding-block: .7rem; text-decoration: none; font-weight: 680; }
.project-links a:hover span { text-decoration: underline; text-underline-offset: .22em; }
.project-links small { color: var(--muted); font-size: .86rem; font-weight: 500; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.55rem, 2vw, 1.5rem); padding-block: 0 clamp(3.6rem, 7vw, 6.2rem); }
.gallery img { width: 100%; height: clamp(8rem, 18vw, 15rem); object-fit: cover; object-position: center 55%; }

.catalog-section { background: var(--sand); padding-block: clamp(3.1rem, 6.6vw, 6rem); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 1rem 2rem; align-items: end; margin-bottom: 1.8rem; }
.section-heading h2 { font-size: clamp(2.3rem, 4.5vw, 4.3rem); }
.catalog-toolbar { display: flex; justify-content: space-between; gap: .7rem; flex-wrap: wrap; align-items: center; padding: .7rem; background: var(--white); border: 1px solid var(--line); }
.unit-types { display: flex; align-items: stretch; gap: .15rem; flex-wrap: wrap; }
.unit-types button { border: 0; background: transparent; min-height: 2.76rem; padding: .55rem .8rem; text-align: center; font-size: .9rem; font-weight: 650; cursor: pointer; }
.unit-types button:hover { background: var(--sand); }
.unit-types button[aria-pressed="true"] { background: var(--action); color: var(--white); }
.catalog-fields { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.catalog-fields input, .catalog-fields select { min-height: 2.76rem; max-width: 100%; min-width: 0; padding: .48rem .6rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: .9rem; }
.catalog-fields select { cursor: pointer; }
.result-count { margin: 1.1rem 0 .65rem; color: var(--muted); font-size: .9rem; font-weight: 650; }
.unit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.unit-card { display: grid; gap: .45rem; align-content: start; position: relative; min-width: 0; padding: 1rem 1.05rem; background: var(--white); border: 1px solid var(--line); }
.unit-card:has(.unit-open:hover) { border-color: var(--gold); }
.unit-title { font: 500 clamp(1.3rem, 1.8vw, 1.7rem)/1.08 var(--serif); letter-spacing: -.04em; overflow-wrap: anywhere; }
.unit-type { color: var(--gold-dark); font-size: .81rem; font-weight: 720; }
.unit-facts { color: var(--muted); font-size: .91rem; line-height: 1.5; }
.unit-photo { width: 100%; height: auto; aspect-ratio: 1.52; object-fit: cover; }
.unit-open { justify-self: start; min-height: 2.15rem; margin-top: .15rem; padding: 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: .22em; font-size: .86rem; font-weight: 680; cursor: pointer; }
.unit-open::after { content: ''; position: absolute; inset: 0; }
.catalog-note { margin-top: 1.15rem; }
.catalog-note, .unit-empty { color: var(--muted); font-size: .93rem; line-height: 1.6; }
.unit-empty { padding: 1rem; border: 1px solid var(--line); background: var(--paper); }

.plans-section { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); padding-block: clamp(3.6rem, 8vw, 7rem); }
.plans-intro .section-text { margin-top: 1rem; }
.plan-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-block: 1.15rem; }
.plan-tabs button { min-width: 2.68rem; min-height: 2.68rem; border: 1px solid #c6a48b; background: var(--white); font-size: .92rem; font-weight: 700; cursor: pointer; }
.plan-tabs button:hover { border-color: var(--gold-dark); }
.plan-tabs button[aria-pressed="true"] { color: var(--white); background: var(--action); border-color: var(--action); }
.plan-label { margin: .38rem 0 .8rem; color: var(--muted); font-size: .92rem; }
.plan-frame { padding: .8rem; border: 1px solid var(--line); background: var(--white); }
.plan-frame img { width: 100%; height: clamp(15rem, 29vw, 24rem); object-fit: contain; background: #fff; }
.plan-frame figcaption { padding: .65rem .1rem .1rem; text-align: end; }

.location-section { background: var(--stone); padding-block: clamp(3.35rem, 6vw, 5.15rem); }
.location-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.8rem, 7.5vw, 6rem); align-items: center; }
.location-inner p:not(.eyebrow) { margin: .85rem 0 .8rem; }
.location-figure img { width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; object-position: center 28%; filter: sepia(.24) saturate(.9); }
.location-figure figcaption { margin-top: .55rem; color: var(--muted); font-size: .75rem; }
.footer { background: var(--paper); padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.3rem 2rem; }
.footer h2 { font-size: clamp(2rem, 3.4vw, 3.15rem); }
.footer-inner p:not(.eyebrow) { margin-top: .75rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-top: 2.25rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }

.unit-dialog { width: min(100% - 2rem, 34rem); max-height: calc(100% - 2rem); padding: 1.6rem; border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
.unit-dialog::backdrop { background: #2f1e15ad; }
.unit-dialog h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); padding-inline-end: 2rem; }
.unit-dialog p { margin-top: .8rem; line-height: 1.55; }
.unit-dialog #unit-documents { margin-top: 1rem; }
.dialog-close { position: absolute; inset-block-start: .7rem; inset-inline-end: .7rem; width: 2.65rem; height: 2.65rem; background: none; border: 1px solid var(--line); cursor: pointer; font-size: 1.55rem; line-height: 1; }
.dialog-close:hover { background: var(--stone); }

html[dir="rtl"] { --hero-gradient-direction: 270deg; }
html[dir="rtl"] .hero h1 { text-align: right; }
html:lang(ar) :is(h2, h3, .eyebrow), html:lang(hi) :is(h2, h3, .eyebrow) { line-height: 1.35; letter-spacing: normal; }
html:lang(hi) { font-family: 'Nirmala UI', 'Noto Sans Devanagari', sans-serif; --serif: 'Nirmala UI', 'Noto Sans Devanagari', serif; }
html:lang(hi) .hero h1, html:lang(hi) .brand-name { font-family: Georgia, 'Times New Roman', serif; }
html:lang(ar) { font-family: Tahoma, 'Segoe UI', sans-serif; }

@media (max-width: 1040px) {
  .wrap { width: calc(100% - 4rem); }
  .hero h1 { font-size: clamp(4.9rem, 11.2vw, 7.15rem); }
  .unit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-height: 6.65rem; }
  .header { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; padding-block: .8rem .55rem; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .navigation { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: .6rem; }
  .navigation a { padding-block: .55rem; }
}

@media (max-width: 735px) {
  .wrap { width: calc(100% - 2.5rem); }
  .hero { align-items: end; min-height: clamp(36rem, 89svh, 42rem); padding-bottom: 1.85rem; }
  .hero h1 { font-size: clamp(4rem, 13vw, 6rem); }
  .hero-actions { column-gap: .85rem; margin-top: 1.12rem; }
  .hero-description { margin-top: .9rem; }
  .hero-figure img { object-position: 55% 40%; }
  .hero-figure::after { background: linear-gradient(0deg, #f8e6d3 0%, #f6d5b8f5 25%, #f3c6a099 46%, transparent 66%); }
  [data-hero="gardens"] .hero { align-items: start; min-height: clamp(36rem, 94svh, 43rem); padding-top: calc(var(--header-height) + 1.65rem); padding-bottom: 2rem; }
  [data-hero="gardens"] .hero-figure img { object-position: 43% 100%; }
  [data-hero="gardens"] .hero-figure::after { background: linear-gradient(180deg, #ffe9d0b5 0%, #fff0d6df 20%, #fbdcb9bf 39%, #fbdab9a6 57%, transparent 73%); mask-image: none; }
  .metrics > div { align-items: flex-start; flex-direction: column; gap: .4rem; padding: .75rem .65rem; }
  .metrics span { font-size: .83rem; }
  .project, .plans-section, .location-inner { grid-template-columns: 1fr; }
  .project-figure { order: 2; }
  .project-figure img { height: clamp(16rem, 95vw, 27rem); }
  .section-heading { grid-template-columns: 1fr; }
  .unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 400px) {
  .wrap { width: calc(100% - 1.5rem); }
  .header { column-gap: .35rem; }
  .header-actions { gap: .35rem; }
  .header-contact { padding-inline: .5rem; }
  .language-trigger { gap: .36rem; padding-inline: .46rem; }
  .language-code { display: none; }
  .navigation { gap: .35rem; }
  .navigation a { font-size: .82rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .95rem; }
  .gallery figure:last-child { grid-column: 1 / -1; }
  .catalog-fields { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .catalog-fields input, .catalog-fields select { width: 100%; }
  .unit-grid { gap: .5rem; }
  .unit-card { padding: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
