/* ===== Design tokens: light nude palette ===== */
:root {
  --bg: #F6EEE8;        /* page background (soft nude) */
  --surface: #FCF8F4;   /* panels */
  --alt: #EFE3D9;       /* alternate section band */
  --line: #E0D0C3;      /* hairlines */
  --nude: #E6D3C4;      /* placeholder tint */
  --taupe: #B79F8C;     /* decorative accents */
  --ink: #43372F;       /* text */
  --muted: #6F6055;     /* secondary text (AA on bg/alt) */
  --accent: #5F4A3C;    /* buttons, focus */
  --todo-bg: #F3DDD0;
  --todo-ink: #7A4636;
  --serif: "Sahel", "Vazirmatn", Tahoma, sans-serif; /* one family site-wide */
  --sans: "Sahel", "Vazirmatn", Tahoma, sans-serif;
  --r: 22px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.9 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.35; margin: 0; }
h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 1rem; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 5; background: rgb(246 238 232 / .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font: 700 1.3rem var(--serif); text-decoration: none; }
nav { display: flex; gap: 1.4rem; font-size: .92rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }
@media (max-width: 560px) {
  /* On phones keep only the contact link, shown as a pill */
  nav a:not(:last-child) { display: none; }
  nav a:last-child { background: var(--accent); color: var(--surface); padding: .1rem 1rem; border-radius: 99px; }
}

/* ===== Hero ===== */
.hero { display: grid; gap: 2.5rem; align-items: center; padding-block: 3rem 4rem; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr .9fr; padding-block: 5rem 6rem; } }
.tags { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { border: 1px solid var(--taupe); border-radius: 99px; padding: .1rem .9rem; font-size: .85rem; color: var(--muted); }
h1 { font-size: clamp(2.9rem, 10vw, 5.2rem); font-weight: 900; }
.h1-sub { display: block; margin-top: .6rem; font: 400 clamp(1.1rem, 3vw, 1.5rem) var(--sans); color: var(--muted); }
.lead { max-width: 34rem; font-size: 1.1rem; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-block: 1.6rem; }
.btn { padding: .7rem 1.7rem; border: 1px solid var(--accent); border-radius: 99px; text-decoration: none; font-weight: 600; transition: background .2s, color .2s; }
.btn-main { background: var(--accent); color: var(--surface); }
.btn-ghost { color: var(--accent); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.where { margin: 0; font-size: .92rem; color: var(--muted); }

/* Arched frame (signature element) + a single entrance on page load */
.hero-art { width: min(100%, 400px); margin-inline: auto; padding: 12px; border: 1px solid var(--taupe); border-radius: 999px 999px 34px 34px; animation: rise .9s ease-out both; }
.arch { margin: 0; aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ===== Photo slot / placeholder (shared) ===== */
.ph { position: relative; overflow: hidden; display: grid; place-items: center; padding: 0; border: 0; font: inherit; color: var(--muted); background: linear-gradient(160deg, var(--nude), var(--alt)); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s, transform .6s; }
.ph.is-loaded img { opacity: 1; }
.ph-label { padding: .3rem 1rem; text-align: center; font-size: .85rem; border: 1px dashed var(--taupe); border-radius: 99px; background: rgb(252 248 244 / .7); }
.ph.is-loaded .ph-label { display: none; }

/* ===== Sections ===== */
.sec { padding-block: clamp(3.5rem, 8vw, 6rem); }
.alt { background: var(--alt); }
.sub { max-width: 36rem; margin: 0 0 2.2rem; color: var(--muted); }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; } }
.split p { max-width: 34rem; margin-block: 0 1rem; color: var(--muted); }

/* Facts list */
.facts { margin: 0; border-block-start: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-block-end: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font: 700 1.15rem var(--serif); }

/* Rooms: one panel, three columns on desktop */
.rooms { list-style: none; margin: 0; padding: 0; display: grid; overflow: hidden; background: var(--surface); border: 1px solid var(--taupe); border-radius: var(--r); }
.rooms li { display: flex; align-items: center; gap: 1.5rem; padding: 1.8rem 1.5rem; border-block-end: 1px solid var(--line); }
.rooms li:last-child { border: 0; }
.rooms h3 { font-size: 1.35rem; }
.dots { display: grid; grid-template-columns: repeat(4, 14px); gap: 8px; flex: none; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--taupe); }
@media (min-width: 760px) {
  .rooms { grid-template-columns: repeat(3, 1fr); }
  .rooms li { flex-direction: column; align-items: flex-start; padding: 2.2rem 2rem; border-block-end: 0; border-inline-end: 1px solid var(--line); }
  .rooms li:last-child { border-inline-end: 0; }
}
.note { margin: 1.2rem 0 0; }

/* Visible TODO markers (must be replaced before launch) */
.todo { display: inline-block; padding: .1rem .8rem; font-size: .9rem; color: var(--todo-ink); background: var(--todo-bg); border: 1px dashed var(--todo-ink); border-radius: 10px; }

/* Gallery mosaic: 12 cells on desktop (4 cols x 3 rows), item 1 big, item 5 wide */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; grid-auto-flow: dense; gap: 10px; }
.g-item { width: 100%; height: 100%; border-radius: 18px; cursor: default; }
.g-item.is-loaded { cursor: zoom-in; }
.g-item.is-loaded:hover img { transform: scale(1.04); }
.g-item:first-child, .g-item:nth-child(5) { grid-column: span 2; }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; }
  .g-item:first-child { grid-row: span 2; }
}

/* FAQ: native <details>, same surface/border/radius tokens */
.faq { max-width: 46rem; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.faq details { border-block-end: 1px solid var(--line); }
.faq details:last-child { border: 0; }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.4rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.4rem; line-height: 1.4; color: var(--taupe); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0; padding: 0 1.4rem 1.1rem; color: var(--muted); }
.faq a { color: var(--accent); text-underline-offset: 3px; }

/* Guides: "coming soon" cards */
.guides { display: grid; gap: 1rem; }
@media (min-width: 760px) { .guides { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; } }
.guide { display: grid; gap: .6rem; justify-items: start; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.guide h3 { font-size: 1.25rem; }
.guide p { margin: 0; color: var(--muted); }
.soon { padding: 0 .8rem; font-size: .8rem; font-weight: 600; color: var(--muted); border: 1px solid var(--taupe); border-radius: 99px; }

/* Contact */
address { margin-bottom: .8rem; font: 600 1.2rem/1.8 var(--serif); }
.contact-box { display: grid; gap: 1.2rem; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.contact-box p { display: grid; gap: .3rem; margin: 0; justify-items: start; }
.contact-box strong { font-weight: 600; color: var(--ink); }

footer { padding: 2rem 0; text-align: center; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
footer p { margin: 0; }

/* ===== Lightbox ===== */
.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; padding: 1rem; border: 0; background: rgb(67 55 47 / .93); }
.lb[open] { display: grid; place-items: center; }
.lb img { max-height: 86vh; border-radius: 16px; }
.lb-btn { position: absolute; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lb-close { top: 1rem; right: 1rem; font-size: 1.1rem; }
.lb-prev { right: 1rem; top: 50%; }
.lb-next { left: 1rem; top: 50%; }

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