﻿/* Magic Vacation / Iriana — design CSS from design/site/assets/css
   Body rules scoped to .client-theme-iriana. Component classes are design-unique.
*/
:root {
  --ivory: #f7f3ea;
  --cream: #efe7d8;
  --ink: #15120f;
  --charcoal: #1c1915;
  --muted: #6d6458;
  --forest: #2f3d32;
  --forest-deep: #243028;
  --gold: #c4a35a;
  --gold-soft: #d8bf86;
  --line: rgba(21, 18, 15, 0.12);
  --glass: rgba(28, 25, 21, 0.72);
  --radius: 2px;
  --header-h: 4.5rem;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.client-theme-iriana {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
}

h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

p {
  margin: 0;
}

em {
  font-style: italic;
  color: var(--gold);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.6rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.section-pad {
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 3rem);
}

.wrap {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 180ms var(--ease), background 180ms var(--ease),
    color 180ms var(--ease), border-color 180ms var(--ease);
}

.button:hover {
  transform: translateY(-1px);
}

.button-gold {
  background: var(--gold);
  color: var(--ink);
}

.button-gold:hover {
  background: var(--gold-soft);
}

.button-ghost {
  border-color: rgba(247, 243, 234, 0.45);
  color: var(--ivory);
  background: transparent;
}

.button-dark {
  background: var(--forest);
  color: var(--ivory);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
  color: var(--ivory);
  background: transparent;
  transition: background 280ms var(--ease), backdrop-filter 280ms var(--ease),
    color 280ms var(--ease), box-shadow 280ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(28, 25, 21, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.site-brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  object-fit: cover;
}

.site-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-brand small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 1px;
  margin: 0.35rem auto;
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.5vw, 1.35rem);
}

.site-nav a {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.88;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  opacity: 1;
  color: var(--gold-soft);
}

.header-cta {
  flex-shrink: 0;
}

.has-dropdown {
  position: relative;
}

.has-dropdown > button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.88;
  padding: 0;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 0;
  min-width: 12rem;
  padding: 0.7rem;
  background: rgba(28, 25, 21, 0.96);
  border: 1px solid rgba(247, 243, 234, 0.08);
}

.has-dropdown:focus-within .dropdown,
.has-dropdown:hover .dropdown {
  display: grid;
  gap: 0.45rem;
}

.dropdown a {
  padding: 0.35rem 0.4rem;
}

.site-footer {
  background: var(--charcoal);
  color: rgba(247, 243, 234, 0.82);
  padding: 3.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
}

.site-footer h4 {
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.site-footer a {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--ivory);
}

.footer-brand p {
  margin-top: 0.85rem;
  max-width: 22rem;
  color: rgba(247, 243, 234, 0.65);
  font-size: 0.95rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 243, 234, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(247, 243, 234, 0.55);
}

/* Visible by default so content never blanks if JS fails.
   Animation only engages after html.js-reveal is set by site.js. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
  will-change: opacity, transform;
}

html.js-reveal .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(36px);
}

html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}
.reveal-delay-2 {
  transition-delay: 0.24s;
}
.reveal-delay-3 {
  transition-delay: 0.36s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  html.js-reveal .reveal,
  html.js-reveal .reveal:not(.is-visible) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
    order: 2;
  }

  .header-cta {
    order: 1;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(28, 25, 21, 0.97);
  }

  .site-nav.is-open {
    display: flex;
  }

  .has-dropdown .dropdown {
    position: static;
    display: grid;
    margin-top: 0.5rem;
    background: transparent;
    border: 0;
    padding: 0 0 0 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-brand small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* ---- pages.css ---- */
.page-hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  color: var(--ivory);
  background: var(--charcoal) center / cover no-repeat;
  padding: calc(var(--header-h) + 3rem) clamp(1.25rem, 4vw, 3rem) 3.5rem;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(21, 18, 15, 0.2) 0%,
    rgba(21, 18, 15, 0.35) 45%,
    rgba(21, 18, 15, 0.62) 100%
  );
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.home-hero {
  min-height: calc(100dvh - 6.5rem);
  align-items: center;
  padding-bottom: 3.5rem;
}

.home-hero-copy {
  width: min(100%, 40rem);
}

.home-hero-copy p.lead {
  margin: 1.1rem 0 1.75rem;
  max-width: 32rem;
  font-size: 1.08rem;
  color: rgba(247, 243, 234, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.booking-bar {
  position: relative;
  z-index: 5;
  width: min(100% - 2rem, 64rem);
  margin: -1.25rem auto 1.25rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
  padding: 1rem 1.1rem;
  background: rgba(28, 25, 21, 0.92);
  backdrop-filter: blur(14px);
  color: var(--ivory);
  border: 1px solid rgba(247, 243, 234, 0.08);
}

.booking-bar label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.65);
}

.booking-bar input,
.booking-bar select {
  width: 100%;
  min-height: 2.5rem;
  border: 0;
  border-bottom: 1px solid rgba(247, 243, 234, 0.2);
  background: transparent;
  color: var(--ivory);
  outline: none;
}

.booking-bar option {
  color: var(--ink);
}

.booking-bar .button {
  align-self: end;
  white-space: nowrap;
  min-height: 2.85rem;
}

.booking-error {
  grid-column: 1 / -1;
  margin: 0;
  color: #ffb4a2;
  font-size: 0.85rem;
  min-height: 0;
}

.booking-error:empty {
  display: none;
}

.fact-ticker {
  overflow: hidden;
  background: var(--gold);
  color: var(--ink);
  padding: 0.85rem 0;
}

.fact-ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.fact-ticker-track span {
  padding: 0 2.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.fact-ticker-track i {
  font-style: normal;
  opacity: 0.45;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pillar-card {
  position: relative;
  min-height: 24rem;
  overflow: hidden;
  color: var(--ivory);
  background: var(--charcoal) center / cover no-repeat;
}

.pillar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(21, 18, 15, 0.8));
}

.pillar-card > * {
  position: relative;
  z-index: 1;
}

.pillar-card .inner {
  position: absolute;
  inset: auto 1.25rem 1.25rem;
}

.pillar-card p {
  margin: 0.7rem 0 1.1rem;
  color: rgba(247, 243, 234, 0.82);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.property-card {
  display: grid;
  background: #fff;
  border: 1px solid var(--line);
}

.property-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.property-card .body {
  padding: 1.2rem 1.25rem 1.4rem;
}

.property-card .meta {
  margin: 0.45rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.property-card .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
}

.property-card .facts li {
  border: 1px solid var(--line);
  padding: 0.3rem 0.55rem;
}

.property-card .rate {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.magazine-panel {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  color: var(--ivory);
  overflow: hidden;
}

.magazine-panel.left .venue-card {
  justify-self: start;
}

.magazine-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  /* scroll is more reliable than fixed across mobile/GPU; avoids blank panels */
  background-attachment: scroll;
}

.magazine-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(21, 18, 15, 0.15),
    rgba(21, 18, 15, 0.55)
  );
}

.venue-card {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 28rem);
  margin: 0 clamp(1.25rem, 6vw, 5rem);
  padding: 1.6rem 1.5rem 1.7rem;
  background: rgba(28, 25, 21, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(247, 243, 234, 0.08);
}

.venue-card .venue-index {
  margin-bottom: 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.venue-card p {
  margin: 0.85rem 0 1.1rem;
  color: rgba(247, 243, 234, 0.86);
}

.venue-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.venue-card li {
  border: 1px solid rgba(247, 243, 234, 0.28);
  padding: 0.35rem 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.muted {
  color: var(--muted);
}

.lead {
  font-size: 1.08rem;
}

.stack > * + * {
  margin-top: 1rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.faq p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  min-height: 2.7rem;
  border: 1px solid var(--line);
  background: var(--ivory);
  padding: 0.65rem 0.8rem;
  color: var(--ink);
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.cabin-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.cabin-hero-facts span {
  border: 1px solid rgba(247, 243, 234, 0.3);
  padding: 0.4rem 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sticky-mobile-cta {
  display: none;
}

@media (max-width: 900px) {
  .booking-bar {
    grid-template-columns: 1fr 1fr;
    margin-top: -2rem;
  }

  .pillar-grid,
  .property-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .magazine-bg {
    background-attachment: scroll;
  }

  .sticky-mobile-cta {
    display: block;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 900;
  }

  .sticky-mobile-cta .button {
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  }
}

@media (max-width: 640px) {
  .booking-bar {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fact-ticker-track {
    animation: none;
  }

  .magazine-bg {
    background-attachment: scroll;
  }
}

