/*
  Westmark Global: the "website under renovation" page. One screen: the off-white panel with the hanging badge,
  the message and the WhatsApp action, beside a full-height room photograph. Same palette, type and badge as the
  site (app/theme/tokens.css, components/ui/arrow.tsx).
*/
:root {
  --teal: #166468;
  --teal-900: #0c383a;
  --teal-950: #082426;
  --gold: #e0b27d;
  --gold-text: #8a5f2e;
  --off-white: #fdfbf9;
  --muted: #56625f;
  --line: #ece5da;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gut: clamp(24px, 5vw, 80px);
  --badge-w: clamp(112px, 10vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100svh; background: var(--off-white); color: var(--teal-900);
  font: 400 17px/1.6 "Mona Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}

.page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; }

/* ---------------------------------------------------------------- the panel */
.panel {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(24px, 4vh, 48px);
  /* the text starts under the hanging badge (its height is 0.754 of its width), so it fits short laptop screens */
  padding: calc(var(--badge-w) * .754 + clamp(24px, 6vh, 64px)) var(--gut) clamp(14px, 3vh, 40px);
}

/* the badge hangs from the top edge, as in the site's header; its colours are the logo file's own */
.badge { position: absolute; top: 0; left: var(--gut); width: var(--badge-w); height: auto; overflow: visible; animation: drop 900ms var(--ease) both; }
.badge__shield { fill: var(--teal); }
.badge__frame { fill: none; stroke: var(--gold); stroke-width: 3.12; }
.badge__mark { fill: #c5a476; }
.badge__name { font: 800 62.4px/1 "Open Sans", system-ui, sans-serif; fill: #e8dccf; }
@keyframes drop { from { transform: translateY(-100%); } }

.content { display: grid; justify-items: start; gap: clamp(14px, 2.6vh, 22px); max-width: 520px; animation: rise 800ms var(--ease) both 250ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.kicker { display: inline-flex; align-items: center; gap: 14px; margin: 0; font: italic 400 20px/1.2 "Fraunces", Georgia, serif; color: var(--gold-text); }
.kicker::before { content: ""; width: 32px; height: 2px; background: linear-gradient(180deg, #f2dfc6, var(--gold) 38%, #b98549 70%, var(--gold)); }

h1 { margin: 0; font: 400 clamp(38px, min(5vw, 8.5vh), 72px)/1.02 "Fraunces", Georgia, serif; letter-spacing: -0.025em; }
h1 em { font-style: italic; color: var(--gold-text); }

.lead { max-width: 44ch; margin: 0; font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); }
.note { max-width: 44ch; margin: 4px 0 0; padding-top: clamp(12px, 2.2vh, 20px); border-top: 1px solid var(--line); color: var(--muted); }

/* six tiles laid one after another, twice, then left in place: the page's one moving detail */
.tiles { display: flex; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.tiles li { width: 22px; height: 22px; background: var(--teal); opacity: .14; animation: lay 2.4s var(--ease) 2 forwards; }
.tiles li:nth-child(2) { animation-delay: .15s; }
.tiles li:nth-child(3) { animation-delay: .3s; }
.tiles li:nth-child(4) { animation-delay: .45s; }
.tiles li:nth-child(5) { animation-delay: .6s; }
.tiles li:nth-child(6) { animation-delay: .75s; background: var(--gold); }
@keyframes lay {
  0% { opacity: .14; transform: translateY(-6px); }
  30%, 100% { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 2px;
  background: var(--teal); color: var(--off-white); font: 600 16px/1 "Mona Sans", system-ui, sans-serif; text-decoration: none;
  transition: background-color 200ms, transform 150ms;
}
.btn:hover { background: var(--teal-900); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); }
.btn--ghost:hover { background: var(--teal); color: var(--off-white); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.legal { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- the photograph */
.photo { position: relative; margin: 0; overflow: hidden; background: var(--teal-950); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: settle 1600ms var(--ease) both; }
.photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 4px 0 0 var(--gold); }
@keyframes settle { from { transform: scale(1.06); } }

/* ---------------------------------------------------------------- tablets and phones: text first, the photo under it */
@media (max-width: 1150px) {
  /* small laptops and below: the panel is narrow, so the two actions drop their arrows and tighten to stay on one line */
  .btn { padding: 0 18px; }
  .btn svg { display: none; }
}
@media (max-width: 860px) {
  .page { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(42svh, 1fr); }
  :root { --badge-w: clamp(96px, 22vw, 128px); }
  .panel { gap: 40px; }
  .photo::after { box-shadow: inset 0 4px 0 var(--gold); }
}
@media (max-width: 480px) {
  .actions { width: 100%; }
  .btn { flex: 1 1 auto; justify-content: center; padding: 0 12px; font-size: 15px; }
}
@media (max-width: 400px) {
  .btn { font-size: 14px; }
}

/* reduced motion: everything rests in place */
@media (prefers-reduced-motion: reduce) {
  .badge, .content, .photo img, .tiles li { animation: none; }
  .tiles li { opacity: 1; }
}
