/* Villa Alena — Coming Soon
   Brand tokens. Change colours here and they update everywhere. */
:root {
  --ivory: #F8F5EB;
  --sand: #EDE6D6;
  --champagne: #D9C9A3;
  --gold: #A6863D;
  --gold-deep: #775F29;
  --taupe: #6E6457;
  --charcoal: #2A2722;
  --shade: 24, 21, 17;

  --font-display: "Gilda Display", "Didot", "Bodoni 72", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-text: "Jost", "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--ivory);
  font-family: var(--font-text);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.hero__media, .hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero__media { z-index: -2; }
.hero__media img {
  object-fit: cover;
  object-position: 50% 58%;
  animation: settle 14s cubic-bezier(.2,.6,.2,1) both;
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(var(--shade), .62) 0%,
    rgba(var(--shade), .38) 36%,
    rgba(var(--shade), .55) 62%,
    rgba(var(--shade), .88) 100%);
}

.hero__content {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 72px) 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__logo { width: clamp(132px, 15vw, 200px); height: auto; }
.hero__spacer { flex: 1 1 auto; min-height: 28px; max-height: 12vh; }

.eyebrow {
  margin: 0;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--champagne);
}
.hero__title {
  margin: .3em 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 1.03;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.hero__lede {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--sand);
  text-wrap: pretty;
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(560px, 100%);
  margin-top: clamp(28px, 5vh, 44px);
  border-top: 1px solid rgba(217, 201, 163, .45);
  border-bottom: 1px solid rgba(217, 201, 163, .45);
}
.countdown__unit {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: clamp(12px, 2vh, 18px) 0;
}
.countdown__unit + .countdown__unit { border-left: 1px solid rgba(217, 201, 163, .3); }
.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  font-size: clamp(10px, .9vw, 11px);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--champagne);
}
.countdown-done {
  margin: clamp(28px, 5vh, 44px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
}

/* Button */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px;
  margin-top: clamp(26px, 4.5vh, 40px);
  padding: 0 40px;
  background: var(--ivory);
  color: var(--charcoal);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.button:hover { background: var(--champagne); }
.button:active { transform: translateY(1px); }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 4px;
}

.hero__contact { margin: 18px 0 0; font-size: 15px; color: var(--sand); }
.hero__contact a { text-decoration: none; border-bottom: 1px solid rgba(217, 201, 163, .6); padding-bottom: 1px; }
.hero__contact a:hover { color: var(--champagne); }
.hero__note { margin: 10px 0 0; font-size: 13px; color: var(--champagne); }

.hero__footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 20px clamp(20px, 4vw, 56px) max(24px, env(safe-area-inset-bottom));
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--champagne);
}

/* Phones */
@media (max-width: 600px) {
  .hero__media img { object-position: 46% 50%; }
  .hero__content { padding-left: 22px; padding-right: 22px; }
  .eyebrow { letter-spacing: .24em; }
  .button { width: 100%; padding: 0 20px; letter-spacing: .18em; }
  .countdown__label { letter-spacing: .16em; }
  .hero__footer { justify-content: center; text-align: center; }
}

/* Shorter laptop screens */
@media (max-height: 920px) and (min-width: 601px) {
  .hero__content { padding-top: 32px; }
  .hero__logo { width: 140px; }
  .hero__spacer { min-height: 16px; }
  .hero__title { font-size: clamp(44px, 6vw, 76px); }
  .hero__lede { margin-top: 12px; }
  .countdown { margin-top: 24px; }
  .countdown__unit { padding: 10px 0; }
  .countdown__num { font-size: clamp(30px, 3.4vw, 44px); }
  .button { margin-top: 24px; min-height: 52px; }
  .hero__contact { margin-top: 12px; }
  .hero__footer { padding-top: 12px; padding-bottom: 16px; }
}

/* Short landscape screens (e.g. phones turned sideways) */
@media (max-height: 560px) and (orientation: landscape) {
  .hero__spacer { display: none; }
  .hero__logo { width: 96px; margin-bottom: 16px; }
}

/* Gentle entrance motion */
.reveal { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.reveal--2 { animation-delay: .15s; }
.reveal--3 { animation-delay: .3s; }
.reveal--4 { animation-delay: .45s; }
.reveal--5 { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }

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