/* DTC Rajarhat | shared styles
   Palette: Midnight Navy, Champagne Gold, Warm Ivory, Deep Charcoal, White */
:root {
  --navy: #071A2E;
  --navy-2: #0E2A45;
  --gold: #C7A051;
  --gold-deep: #7F6122;
  --ivory: #F8F5EF;
  --ivory-2: #EFEADF;
  --char: #18232F;
  --white: #FFFFFF;
  --line: rgba(24, 35, 47, .14);
  --line-light: rgba(255, 255, 255, .18);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --r: 6px;
  --hdr: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--char); background: var(--ivory); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.45rem; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 68ch; }
ul { padding-left: 1.2em; margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: .6em 1em; z-index: 200; }
.skip:focus { left: 0; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 60; background: var(--navy); color: var(--white); border-bottom: 1px solid var(--line-light); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--hdr); gap: 1rem; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; letter-spacing: .01em; }
.brand small { font-size: .72rem; color: var(--gold); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; font-size: .95rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav .btn { border-bottom: 0; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-light); color: var(--white); padding: .5rem .8rem; border-radius: var(--r); font: inherit; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 .98rem/1 var(--sans); padding: .95rem 1.4rem; border-radius: var(--r); border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; min-height: 48px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #D8B365; }
.btn-line { border-color: currentColor; background: transparent; color: inherit; }
.btn-line:hover { background: rgba(255, 255, 255, .1); }
.ivory .btn-line:hover, .white .btn-line:hover { background: rgba(7, 26, 46, .06); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

/* Sections */
.sec { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.sec.dark { background: var(--navy); color: var(--white); }
.sec.dark2 { background: var(--char); color: var(--white); }
.sec.ivory { background: var(--ivory); }
.sec.white { background: var(--white); }
.sec.tint { background: var(--ivory-2); }
.sec-head { margin-bottom: 2.2rem; max-width: 62ch; }
.sec-head p { color: inherit; opacity: .85; }
.dark .gold-t, .dark2 .gold-t { color: var(--gold); }
.gold-t { color: var(--gold-deep); }
.lead { font-size: 1.2rem; line-height: 1.6; }

/* Home hero: two addresses, one seam */
.top-band { background: var(--navy); color: var(--white); padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.top-band h1 { max-width: 16ch; margin-bottom: .4em; }
.top-band p { font-size: 1.15rem; max-width: 58ch; color: rgba(255, 255, 255, .86); }
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); }
.panel { position: relative; min-height: clamp(460px, 68vh, 640px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; isolation: isolate; }
.panel + .panel { border-left: 2px solid var(--gold); }
.panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.panel.villa::after { background: linear-gradient(180deg, rgba(7, 26, 46, .15) 0%, rgba(7, 26, 46, .55) 45%, rgba(7, 26, 46, .94) 100%); }
.panel.apt::after { background: linear-gradient(180deg, rgba(7, 26, 46, .05) 0%, rgba(7, 26, 46, .45) 45%, rgba(7, 26, 46, .9) 100%); }
.panel-in { padding: 2rem clamp(1.25rem, 3vw, 3rem) 2.4rem; width: 100%; }
.panel h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: .2em; }
.panel .cfg { font-size: 1.05rem; margin-bottom: .3em; }
.panel .from { color: var(--gold); font-weight: 600; margin-bottom: 1em; }
.panel p.sm { font-size: .98rem; opacity: .9; max-width: 44ch; }
.hero-seam { animation: seam 1.1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes seam { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* Project hero */
.phero { position: relative; color: var(--white); min-height: clamp(520px, 78vh, 720px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.phero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 26, 46, .35) 0%, rgba(7, 26, 46, .6) 50%, rgba(7, 26, 46, .95) 100%); }
.phero .wrap { padding: 4rem 0 3rem; }
.phero h1 { max-width: 14ch; }
.phero .lead { max-width: 52ch; color: rgba(255, 255, 255, .9); }
.crumbs { font-size: .9rem; margin-bottom: 1rem; opacity: .85; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }

/* Facts strip */
.facts { background: var(--navy); color: var(--white); border-top: 1px solid var(--line-light); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.facts li { padding: 1.4rem 1.2rem; border-left: 1px solid var(--line-light); }
.facts li:first-child { border-left: 0; }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; color: var(--gold); line-height: 1.1; }
.facts span { font-size: .94rem; opacity: .88; }

/* Two-column text + image */
.two { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.two.flip { grid-template-columns: .95fr 1.05fr; }
.two.flip > :first-child { order: 2; }
.fig img { border-radius: var(--r); width: 100%; }
.fig figcaption { font-size: .86rem; opacity: .75; margin-top: .5rem; }

/* Choose cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-b { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card-b .btn-row { margin-top: auto; padding-top: 1rem; }
.card.dk { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Tables */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.dark .tw { background: transparent; border-color: var(--line-light); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.dark th, .dark td { border-bottom-color: var(--line-light); }
th { font-weight: 700; background: var(--ivory-2); white-space: nowrap; }
.dark th { background: rgba(255, 255, 255, .06); }
tr:last-child td { border-bottom: 0; }
.cmp td:first-child, .cmp th:first-child { font-weight: 700; white-space: nowrap; }
.note { font-size: .88rem; opacity: .8; margin-top: .8rem; max-width: 80ch; }

/* Amenity groups */
.amen { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem 2rem; }
.amen h3 { font-size: 1.25rem; color: var(--gold); margin-bottom: .4em; }
.amen ul { list-style: none; padding: 0; margin: 0; }
.amen li { padding: .35rem 0; border-bottom: 1px solid var(--line-light); font-size: .98rem; }
.amen.lt h3 { color: var(--gold-deep); }
.amen.lt li { border-bottom-color: var(--line); }

/* Specs */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.spec { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.4rem; }
.spec h3 { font-size: 1.25rem; }
.spec ul { margin: 0; font-size: .96rem; }
.spec li { margin-bottom: .35rem; }

/* Gallery */
.gal { display: grid; grid-template-columns: repeat(12, 1fr); gap: .8rem; }
.gal button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r); overflow: hidden; display: block; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gal button:hover img { transform: scale(1.03); }
.g4 { grid-column: span 4; aspect-ratio: 4 / 3; }
.g6 { grid-column: span 6; aspect-ratio: 16 / 10; }
.g8 { grid-column: span 8; aspect-ratio: 16 / 9; }

/* Plan cards */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.plan button { display: block; width: 100%; padding: 0; border: 0; background: var(--white); cursor: zoom-in; }
.plan img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--white); }
.plan-b { padding: 1rem 1.2rem 1.3rem; border-top: 1px solid var(--line); }
.plan-b h3 { font-size: 1.3rem; margin-bottom: .2em; }
.plan-b p { font-size: .94rem; margin-bottom: .5em; }
.plan-b .tl { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; color: var(--gold-deep); }

/* Zoomable images */
.zoom { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; border-radius: var(--r); overflow: hidden; }
.zoom img { width: 100%; }

/* Location */
.times { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.times li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.times b { font-weight: 600; white-space: nowrap; }
.dark .times li { border-bottom-color: var(--line-light); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 2.2rem 1.1rem 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold-deep); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.1rem; margin: 0; }

/* Enquiry form */
.enq { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.form { background: var(--white); color: var(--char); border-radius: var(--r); padding: clamp(1.3rem, 3vw, 2rem); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fld { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.fld label { font-size: .92rem; font-weight: 600; }
.fld input, .fld select { font: inherit; padding: .8rem .9rem; border: 1.5px solid #B9B4A8; border-radius: var(--r); background: var(--white); color: var(--char); min-height: 48px; width: 100%; }
.fld input:focus, .fld select:focus { border-color: var(--navy); outline: 3px solid rgba(199, 160, 81, .5); outline-offset: 0; }
.ph { display: grid; grid-template-columns: 112px 1fr; gap: .5rem; }
.chk { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; margin: .2rem 0 1rem; }
.chk input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fmsg { min-height: 1.4em; font-size: .94rem; margin-top: .8rem; }
.fmsg.err { color: #9B1C1C; font-weight: 600; }
.fld .e { color: #9B1C1C; font-size: .85rem; min-height: 1em; }
.form .btn { width: 100%; }
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.contact-list li { margin-bottom: .5rem; }
.contact-list a { text-decoration: underline; text-underline-offset: 3px; }

/* Dialog */
dialog { border: 0; padding: 0; border-radius: 10px; width: min(560px, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); background: var(--white); color: var(--char); }
dialog::backdrop { background: rgba(7, 26, 46, .72); }
.dlg-h { display: flex; justify-content: space-between; align-items: flex-start; padding: 1.2rem 1.4rem .2rem; gap: 1rem; }
.dlg-h h2 { font-size: 1.7rem; margin: 0; }
.x { background: none; border: 1px solid var(--line); width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; flex: none; }
dialog .form { padding: 1rem 1.4rem 1.4rem; }
dialog.lb { width: min(1200px, calc(100% - 1rem)); background: var(--navy); color: var(--white); }
dialog.lb img { width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; background: var(--white); }
dialog.lb p { padding: .8rem 1.2rem; margin: 0; font-size: .95rem; }
dialog.lb .dlg-h { padding: .8rem 1rem 0; justify-content: flex-end; }
dialog.lb .x { color: var(--white); border-color: var(--line-light); }

/* Footer */
.ftr { background: var(--navy); color: rgba(255, 255, 255, .88); padding: 3.5rem 0 6rem; font-size: .95rem; }
.ftr .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.ftr h4 { color: var(--gold); margin-bottom: .6em; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: .4rem; }
.ftr a { text-underline-offset: 3px; }
.ftr .legal { border-top: 1px solid var(--line-light); margin-top: 2rem; padding-top: 1.4rem; font-size: .86rem; opacity: .9; }
.ftr .legal p { max-width: 100ch; }

/* Sticky mobile bar */
.mbar { display: none; }

/* Legal pages */
.doc { padding: 3rem 0 5rem; }
.doc h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.doc h2 { font-size: 1.7rem; margin-top: 1.8em; }
.doc p, .doc li { max-width: 78ch; }

/* Thank you */
.ty { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.ty .btn-row { justify-content: center; }

/* Responsive */
@media (max-width: 960px) {
  .menu-btn { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: var(--hdr); background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.2rem; border-bottom: 1px solid var(--line-light); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line-light); }
  .nav .btn { margin-top: .8rem; }
  .split, .two, .two.flip, .cards, .enq, .ftr .cols { grid-template-columns: 1fr; }
  .two.flip > :first-child { order: 0; }
  .panel + .panel { border-left: 0; border-top: 2px solid var(--gold); }
  .panel { min-height: 440px; }
  .times { columns: 1; }
  .gal .g4, .gal .g6, .gal .g8 { grid-column: span 12; }
  .gal .g4 { grid-column: span 6; }
  .facts li { border-left: 0; border-top: 1px solid var(--line-light); }
  .facts li:first-child { border-top: 0; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: var(--navy); border-top: 2px solid var(--gold); padding-bottom: env(safe-area-inset-bottom); }
  .mbar a, .mbar button { min-height: 54px; display: flex; align-items: center; justify-content: center; font: 600 .95rem var(--sans); color: var(--white); text-decoration: none; background: none; border: 0; border-right: 1px solid var(--line-light); cursor: pointer; }
  .mbar button { background: var(--gold); color: var(--navy); border-right: 0; }
}
@media (max-width: 560px) {
  .frow { grid-template-columns: 1fr; }
  .ph { grid-template-columns: 104px 1fr; }
  .gal .g4 { grid-column: span 12; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
