/* Casa Sera: fictional sample by Venant Studio (redesign 2026-09-28).
   Sera means evening. The page opens on the villa by afternoon light and, as you scroll, the light
   turns gold, then blue, the lamps come on and the sun in the mark settles onto the sea.
   Night-sea blue, limestone and a sunset orange; Italiana for display, Albert Sans for reading. */
:root {
  --night: #132436;
  --night-2: #1a3047;
  --deep: #0c1826;
  --stone: #f1e4cc;
  --stone-2: #c8baa1;
  --white: #fff5e4;
  --sun: #e0874f;
  --sun-2: #c96d36;
  --display: "Italiana", Didot, Georgia, serif;
  --body: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --hdr: 72px;
  --edge: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font: 400 1.0625rem/1.65 var(--body); color: var(--stone); background: var(--night); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; color: var(--white); text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--hdr) + 16px); }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--sun); color: var(--deep); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
.notice { background: var(--deep); color: var(--stone-2); font-size: .8125rem; }
.notice .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 8px; }
.notice a { color: var(--stone); }

.hdr { position: sticky; top: 0; z-index: 40; background: rgba(19,36,54,.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(241,228,204,.12); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--hdr); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--stone); }
.mark { width: 44px; height: 44px; flex: none; }
.brand span { font: 400 1.75rem/1 var(--display); color: var(--white); }
.brand small { display: block; margin-top: 5px; font: 500 .78rem/1.2 var(--body); color: var(--stone-2); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav a { text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--sun); }
.menu-btn { display: none; border: 1.5px solid var(--stone); background: none; color: var(--stone); border-radius: 999px; padding: 8px 16px; font: 600 .95rem var(--body); cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--sun); color: #1d140c; font: 700 1rem/1.1 var(--body); text-decoration: none; cursor: pointer; transition: background-color .18s; }
.btn:hover { background: #eca274; }
.lede { font-size: 1.2rem; color: var(--stone-2); max-width: 30em; }
.imgnote { font-size: .8rem; color: var(--stone-2); }

/* the stage: one view of the house while the evening arrives */
.stage { position: relative; }
.stage .sticky { position: relative; height: calc(100vh - var(--hdr)); height: calc(100svh - var(--hdr)); max-height: 980px; overflow: hidden; container-type: size; background: var(--deep); }
.stage.is-live { height: 300vh; }
.stage.is-live .sticky { position: sticky; top: var(--hdr); max-height: none; }
.scene { position: absolute; left: 50%; top: 50%; width: max(100cqw, 150cqh); aspect-ratio: 3 / 2; transform: translate(calc(-1 * var(--fx, 50%)), -50%); }
.scene img { width: 100%; height: 100%; object-fit: cover; }
.grade { position: absolute; inset: 0; pointer-events: none; }
.gold { background: linear-gradient(180deg, rgba(255,160,70,.9) 0%, rgba(255,122,52,.75) 52%, rgba(150,64,28,.85) 100%); mix-blend-mode: soft-light; opacity: var(--gold, 0); }
.glow { background: radial-gradient(56% 20% at 76% 54%, rgba(255,150,118,.8), rgba(255,150,118,0) 70%); mix-blend-mode: screen; opacity: var(--glow, 0); }
.dusk { background: linear-gradient(180deg, #0b1a36 0%, #1f3563 50%, #342c4f 100%); mix-blend-mode: multiply; opacity: calc(var(--dusk, 0) * .84); }
.lamps { width: 100%; height: 100%; mix-blend-mode: screen; opacity: var(--lamps, 0); }
.scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(10,20,34,.8) 0%, rgba(10,20,34,.24) 40%, rgba(10,20,34,0) 60%); }
.stage-text { position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 64px); }
.stage h1 { font-size: clamp(4.2rem, 1rem + 10vw, 10.5rem); line-height: .9; }
.stage .sub { margin-top: 16px; max-width: 29em; font-size: 1.15rem; color: #efe3cc; }
.times { position: absolute; right: var(--edge); bottom: clamp(34px, 6vh, 70px); width: min(330px, 34%); }
.times li { font: 400 1.75rem/1.2 var(--display); color: var(--white); }
.times li span { display: block; margin-bottom: 6px; font: 700 .9rem/1 var(--body); color: var(--sun); letter-spacing: .02em; }
.stage:not(.is-live) .times { display: grid; gap: 16px; }
.stage:not(.is-live) .times li { font-size: 1.35rem; }
.is-live .times li { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.is-live .times li.on { opacity: 1; transform: none; }
.stage .imgnote { position: absolute; top: 14px; right: var(--edge); color: rgba(255,245,228,.82); }

/* the house */
.house { padding-block: clamp(90px, 11vw, 160px); }
.house h2, .days h2, .enquire h2, .faq h2 { font-size: clamp(2.5rem, 1rem + 4vw, 4.6rem); }
.house h2 { max-width: 15em; }
.house .cols { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.rooms > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(241,228,204,.18); }
.rooms > div:last-child { border-bottom: 1px solid rgba(241,228,204,.18); }
.rooms dt { font-weight: 700; color: var(--sun); }
.rooms dd { font-size: 1.125rem; color: var(--stone); }

/* the days: three details of the same view */
.days { background: var(--night-2); padding-block: clamp(90px, 11vw, 160px); }
.moments { margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.moments li:nth-child(2) { margin-top: clamp(0px, 6vw, 84px); }
.crop { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--deep); }
.crop img { width: 100%; height: 100%; object-fit: cover; object-position: var(--o); transform: scale(var(--s)); transform-origin: var(--o); }
.crop.terrace { --o: 10% 72%; --s: 1.45; }
.crop.loggia { --o: 43% 50%; --s: 2; }
.crop.horizon { --o: 90% 46%; --s: 1.55; }
.moments h3 { margin-top: 18px; font-size: 2rem; }
.moments p { margin-top: 6px; color: var(--stone-2); max-width: 24em; }
.days .imgnote { margin-top: 28px; }

/* plan a stay */
.enquire { padding-block: clamp(90px, 11vw, 160px); }
.enquire .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.enquire .lede { margin-top: 18px; }
.demo-note { margin-top: 22px; padding-left: 16px; border-left: 3px solid var(--sun); color: var(--stone-2); font-size: .95rem; max-width: 32em; }
.form { background: var(--stone); color: var(--night); border-radius: 6px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; margin-bottom: 6px; font-weight: 700; }
.form select, .form input { width: 100%; min-height: 50px; font: 500 1rem var(--body); color: var(--night); background: #fbf6ec; border: 1.5px solid #cdbd9f; border-radius: 4px; padding: 12px 14px; }
.form select:focus-visible, .form input:focus-visible { border-color: var(--sun-2); }
.form .err { margin-top: 6px; font-weight: 700; font-size: .9rem; color: #a3261c; }
.form .err:empty { display: none; }
.preview { background: #e4d3b4; border-radius: 4px; padding: 14px 16px; }
.preview[hidden] { display: none; }
.preview b { display: block; margin-bottom: 4px; font: 400 1.55rem/1.2 var(--display); }

/* faq: the toggle is the half sun from the mark */
.faq { background: var(--night-2); padding-block: clamp(90px, 11vw, 160px); }
.faq .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.qs details { border-top: 1px solid rgba(241,228,204,.2); }
.qs details:last-child { border-bottom: 1px solid rgba(241,228,204,.2); }
.qs summary { list-style: none; cursor: pointer; position: relative; padding: 20px 52px 20px 0; font: 400 1.55rem/1.3 var(--display); color: var(--white); }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 24px; height: 12px; margin-top: -6px; border-radius: 24px 24px 0 0; background: var(--sun); transition: transform .3s ease; }
.qs details[open] summary::after { transform: rotate(180deg); }
.qs summary:hover { color: var(--sun); }
.qs details p { padding-bottom: 22px; max-width: 38em; color: var(--stone-2); }
.qs a { color: var(--sun); }

.ftr { background: var(--deep); color: var(--stone-2); padding-block: 56px 30px; }
.ftr .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.ftr .brand + p { margin-top: 14px; }
.ftr h3 { font: 700 .95rem var(--body); color: var(--stone); }
.ftr ul { margin-top: 10px; display: grid; gap: 6px; }
.ftr a { text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr .base { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 16px; padding-top: 20px; border-top: 1px solid rgba(241,228,204,.14); font-size: .85rem; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--night); border-bottom: 1px solid rgba(241,228,204,.14); padding: 8px var(--pad) 20px; }
  .nav.open { display: flex; }
  .nav a { display: block; padding: 12px 0; font-size: 1.1rem; }
  .nav .btn { margin-top: 8px; }
  .stage.is-live { height: 260vh; }
  .scrim { background: linear-gradient(0deg, rgba(10,20,34,.82) 0%, rgba(10,20,34,.2) 42%, rgba(10,20,34,0) 58%), linear-gradient(180deg, rgba(10,20,34,.6) 0%, rgba(10,20,34,0) 30%); }
  .times { top: 22px; bottom: auto; left: var(--pad); right: var(--pad); width: auto; }
  .is-live .times li { top: 0; bottom: auto; }
  .times li { font-size: 1.5rem; }
  .stage:not(.is-live) .times li { font-size: 1.15rem; }
  .stage .imgnote { top: auto; bottom: 10px; }
  .stage-text { bottom: 42px; }
  .house .cols, .enquire .wrap, .faq .wrap, .ftr .wrap { grid-template-columns: 1fr; }
  .rooms > div { grid-template-columns: 1fr; gap: 4px; }
  .moments { grid-template-columns: 1fr; max-width: 460px; }
  .moments li:nth-child(2) { margin-top: 0; }
}
@media (max-aspect-ratio: 1 / 1) { .scene { --fx: 40%; } }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
