/* Orya Retreat, company portfolio site (orya1). Clear, editorial, photography first.
   Orya colours: the logo gold and black, on white and Orya paper. Mobile first; 720 and 1024 px add upward. */

@font-face { font-family: "DM Sans"; src: url(../fonts/DMSans-var.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  color-scheme: light;
  --white: #FFFFFF;
  --paper: #F6F4EE;
  --sand: #ECE8DE;
  --ink: #141412;        /* the logo's black */
  --body: #3F3D38;
  --muted: #6A675F;      /* 5.6:1 on white, 5.1:1 on paper */
  --line: #E2DED5;
  --gold: #8F7C00;       /* the logo gold: mark, numbers, icons */
  --gold-deep: #7A6A00;  /* buttons and small gold text, 5.4:1 with white */
  --gold-press: #665800;
  --gold-light: #CDB65A; /* gold on black, 8.6:1 */
  --on-ink: #F3F1EA;
  --on-ink-2: rgba(243, 241, 234, .72);
  --line-ink: rgba(243, 241, 234, .16);

  --font: "DM Sans", -apple-system, system-ui, "Segoe UI", sans-serif;
  --r: 14px;
  --r-sm: 8px;
  --gutter: 20px;
  --max: 1240px;
  --hdr: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
html:has(dialog[open]), html:has(.menu:popover-open) { overflow: hidden; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.sec--ink :focus-visible, .ftr :focus-visible, .lb :focus-visible { outline-color: var(--gold-light); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mark { display: block; width: 30px; height: 30px; background: var(--gold); -webkit-mask: url(../img/mark.png) center / contain no-repeat; mask: url(../img/mark.png) center / contain no-repeat; }

/* type */
h1 { font-size: clamp(2.4rem, 1.7rem + 3.6vw, 4.4rem); font-weight: 600; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.45rem + 2vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.label { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep); }
.head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.note { margin-top: 20px; font-size: .875rem; color: var(--muted); }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--r-sm); font-size: 1rem; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn--primary { background: var(--gold-deep); color: #fff; }
.btn--primary:hover { background: var(--gold-press); }
.btn--line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; font-size: .9375rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; cursor: pointer; }
.link:hover { text-decoration-color: currentColor; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--paper); }

/* header */
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 16px; height: var(--hdr); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.brand__name { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.02em; }
.nav, .hdr__cta { display: none; }
.menu-btn { margin-right: -10px; }
.menu { inset: 0 0 auto; width: 100%; max-width: none; margin: 0; padding: 12px var(--gutter) 28px; border: 0; background: var(--white); color: var(--ink); box-shadow: 0 24px 48px rgba(0, 0, 0, .14); }
.menu::backdrop { background: rgba(20, 20, 18, .4); }
.menu__top { display: flex; align-items: center; height: 44px; margin-bottom: 12px; }
.menu nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
.menu__book { width: 100%; margin-top: 24px; }

/* hero: text left, three-photo collage right */
.hero { display: grid; gap: 32px; padding-block: 36px 56px; }
.hero__lead { margin-top: 20px; max-width: 34rem; font-size: 1.125rem; color: var(--body); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { font-size: 1.75rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.stats dt { margin-top: 4px; font-size: .8125rem; color: var(--muted); }
.hero__collage { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: min(118vw, 520px); }
.hero__collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.hero__a { grid-row: 1 / -1; }

/* sections */
.sec { padding-block: clamp(64px, 4rem + 4vw, 120px); }
.sec--paper { background: var(--paper); }
.sec--ink { background: var(--ink); color: var(--on-ink); }
.sec--ink .label { color: var(--gold-light); }
.sec--ink .note { color: var(--on-ink-2); }

.about { max-width: 960px; }
.about__body { margin-top: 24px; max-width: 42rem; font-size: 1.125rem; color: var(--body); }

/* portfolio overview */
.overview { display: grid; gap: 28px 20px; }
.ov { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; text-decoration: none; }
.ov__img { grid-column: 1 / -1; display: block; overflow: hidden; margin-bottom: 14px; border-radius: var(--r); }
.ov__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.ov:hover .ov__img img { transform: scale(1.04); }
.ov__num { grid-row: span 2; font-size: .875rem; font-weight: 600; color: var(--gold-deep); padding-top: 4px; }
.ov__name { font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.ov__meta { font-size: .9375rem; color: var(--muted); }
.ov:hover .ov__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* a villa showcase */
.villa { padding-block: clamp(56px, 3rem + 4vw, 112px); border-top: 1px solid var(--line); }
.villa__num { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border: 1px solid currentColor; border-radius: 999px; font-size: .75rem; letter-spacing: 0; }
.villa__head h2 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem); }
.villa__tag { margin-top: 10px; font-size: 1.125rem; color: var(--body); }
.g { display: block; width: 100%; padding: 0; border: 0; overflow: hidden; border-radius: var(--r); background: var(--paper); cursor: zoom-in; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.g:hover img { transform: scale(1.03); }
.villa__hero { margin-top: 28px; aspect-ratio: 4 / 3; }
.villa__info { display: grid; gap: 28px; margin-top: 32px; }
.villa__about p { color: var(--body); }
.villa__about p + p { margin-top: 14px; }
.facts { border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .875rem; color: var(--muted); }
.facts dd { font-size: .9375rem; font-weight: 500; }
.villa__amen h3 { padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.villa__amen li { position: relative; padding: 9px 0 9px 20px; border-bottom: 1px solid var(--line); font-size: .9375rem; color: var(--body); }
.villa__amen li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--gold); }
.strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 32px; }
.strip .g { aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
.strip .g:nth-child(n + 5) { display: none; }
.villa__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }

/* destinations */
.dest { display: grid; gap: 20px; }
.dest__card { overflow: hidden; border-radius: var(--r); background: var(--white); }
.dest__card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dest__body { padding: 24px; }
.dest__body h3 { display: flex; align-items: center; gap: 10px; font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; }
.dest__body h3 .ico { width: 24px; height: 24px; color: var(--gold); }
.dest__body > p { margin-top: 8px; color: var(--body); }
.dest__body ul { margin-top: 18px; border-top: 1px solid var(--line); }
.dest__body li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; color: var(--body); }

/* the Orya way */
.std { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--line); }
.std li { padding: 28px 24px; background: var(--white); }
.std .ico { width: 28px; height: 28px; stroke-width: 1.4; color: var(--gold); }
.std h3 { margin-top: 16px; font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.std p { margin-top: 6px; font-size: .9375rem; color: var(--muted); }

/* offers on black */
.offers { display: grid; gap: 12px; }
.offer { display: flex; flex-direction: column; padding: 28px 24px 22px; border: 1px solid var(--line-ink); border-radius: var(--r); text-decoration: none; transition: border-color .2s, background .2s; }
.offer:hover { border-color: var(--gold-light); background: rgba(255, 255, 255, .03); }
.offer__where { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-light); }
.offer__title { margin-top: 12px; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.offer__line { margin-top: 8px; color: var(--on-ink-2); font-size: .9375rem; }
.offer__price { margin-top: auto; padding-top: 22px; font-size: 1.125rem; font-weight: 600; }
.offer__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-ink); font-size: .9375rem; color: var(--on-ink-2); }
.offer:hover .offer__go { color: var(--on-ink); }

/* reviews */
.reviews { display: grid; gap: 20px; }
.review { display: flex; flex-direction: column; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--r); }
.review blockquote { flex: 1; }
.review blockquote p { font-size: 1.0625rem; line-height: 1.55; }
.review blockquote p::before { content: "\201C"; }
.review blockquote p::after { content: "\201D"; }
.review figcaption { display: flex; flex-direction: column; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.review figcaption strong { color: var(--ink); font-size: .9375rem; }

/* contact and enquiry */
.contact { display: grid; gap: 40px; }
.contact__text > p:not(.label) { margin-top: 16px; max-width: 30rem; color: var(--body); }
.channels { margin-top: 28px; border-top: 1px solid var(--line); }
.channels li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.channels .ico { color: var(--gold); }
.channels span { display: flex; flex-direction: column; min-width: 0; }
.channels small { font-size: .8125rem; color: var(--muted); }
.channels a { font-size: 1.0625rem; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.channels a:hover { text-decoration: underline; text-underline-offset: 4px; }
.enquiry { display: grid; gap: 16px; padding: 24px; border-radius: var(--r); background: var(--white); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06); }
.field { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: .875rem; font-weight: 500; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); font-size: 1rem; -webkit-appearance: none; appearance: none; transition: border-color .15s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field__chev { position: absolute; right: 14px; bottom: 15px; pointer-events: none; color: var(--muted); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.enquiry .btn { width: 100%; }

/* footer: the logo's black and gold */
.ftr { padding-block: 56px calc(96px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--on-ink-2); font-size: .9375rem; }
.ftr__top { display: grid; gap: 32px; }
.mark--lg { width: 56px; height: 56px; background: var(--gold-light); }
.ftr__name { margin-top: 14px; font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; color: var(--on-ink); }
.ftr h3 { margin-bottom: 12px; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-light); }
.ftr li { padding-block: 4px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--on-ink); text-decoration: underline; }
.ftr__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-ink); font-size: .875rem; }
.ftr__social { display: flex; gap: 4px; }
.ftr__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--on-ink); }
.ftr__social a:hover { background: rgba(255, 255, 255, .08); }

/* floating WhatsApp */
.fab { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 20; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--gold-deep); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); transition: background .15s, transform .15s; }
.fab:hover { background: var(--gold-press); transform: translateY(-2px); }
.fab .ico { width: 26px; height: 26px; }

/* photo viewer */
.lb { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14, 14, 12, .97); color: #fff; }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb::backdrop { background: transparent; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); }
.lb__bar:first-child { padding-top: max(10px, env(safe-area-inset-top)); }
.lb .icon-btn { color: #fff; }
.lb .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.lb__count { padding-left: 8px; font-size: .875rem; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.lb__stage { display: grid; place-items: center; min-height: 0; padding: 0 12px; }
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb__cap { flex: 1; text-align: center; font-size: .875rem; color: rgba(255, 255, 255, .78); }
.lb[open] .lb__img { animation: fade .3s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 720 px and up */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .stats { grid-template-columns: repeat(4, auto); justify-content: start; gap: 24px 40px; }
  .hero__collage { height: 520px; }
  .overview { grid-template-columns: repeat(3, 1fr); }
  .ov__img img { aspect-ratio: 4 / 5; }
  .villa__hero { aspect-ratio: 16 / 9; }
  .strip { grid-template-columns: repeat(4, 1fr); }
  .dest { grid-template-columns: 1fr 1fr; }
  .std { grid-template-columns: repeat(2, 1fr); }
  .offers { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .ftr__top { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
}

/* 1024 px and up */
@media (min-width: 1024px) {
  :root { --gutter: 40px; --hdr: 76px; }
  .nav { display: flex; gap: 4px; margin-right: 8px; }
  .nav a { padding: 8px 14px; border-radius: 999px; font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--body); transition: background .15s, color .15s; }
  .nav a:hover { background: var(--paper); color: var(--ink); }
  .hdr__cta { display: inline-flex; }
  .menu-btn { display: none; }
  .hero { grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; padding-block: 64px 96px; }
  .hero__collage { height: 600px; }
  .villa__info { grid-template-columns: 1.15fr 1fr 1fr; gap: 48px; }
  .std { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  .enquiry { padding: 32px; }
}
