/* ==========================================================================
   Vista Blocks: front-end styles for the logo, mega menu, phone drawer,
   hero slider and scene reel. Colours, fonts and sizes come from the
   WordPress Global Styles (theme.json) with brand fallbacks.
   ========================================================================== */
:root {
  --ivory: var(--wp--preset--color--ivory, #F5F1E8);
  --charcoal: var(--wp--preset--color--charcoal, #242522);
  --terracotta: var(--wp--preset--color--terracotta, #A65F43);
  --brass: var(--wp--preset--color--brass, #B08A52);
  --brass-deep: var(--wp--preset--color--brass-deep, #7A5B30);
  --brass-light: var(--wp--preset--color--brass-light, #DCC49A);
  --paper: var(--wp--preset--color--paper, #FBF8F2);
  --cream: var(--wp--preset--color--cream, #ECE5D8);
  --line: var(--wp--preset--color--line, #DDD4C4);
  --ink-soft: var(--wp--preset--color--ink-soft, #5A5B53);
  --white: #FFFDF9;
  --display: var(--wp--preset--font-family--display, "Cinzel", Georgia, serif);
  --serif: var(--wp--preset--font-family--accent, "Cormorant Garamond", Georgia, serif);
  --sans: var(--wp--preset--font-family--body, "Montserrat", Arial, sans-serif);
  --fs-hero: var(--wp--preset--font-size--hero, clamp(34px, 4.6vw, 64px));
  --maxw: 1360px;
  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Shared bits ---------- */
.wp-block-vista-menu-toggle, .drawer, .hero, .film { box-sizing: border-box; }
.drawer *, .hero *, .film *, .nav * { box-sizing: border-box; }
.nav svg, .drawer svg, .hero svg, .header__burger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; position: relative; transition: background .25s, color .25s; }
.icon-btn:hover { background: var(--cream); color: var(--terracotta); }

/* ---------- Logo ---------- */
.logo { display: grid; place-items: center; line-height: 0; text-decoration: none; color: inherit; }
.logo > img { grid-area: 1 / 1; width: auto; max-width: none; transition: height .35s var(--ease), opacity .35s var(--ease); }
.logo--header { justify-self: start; justify-items: start; }
.logo--header .logo__full { height: 104px; }
.logo--header .logo__compact { height: 40px; opacity: 0; }
.site-header.is-scrolled .logo--header .logo__full { height: 48px; opacity: 0; }
.site-header.is-scrolled .logo--header .logo__compact { opacity: 1; }
.logo--footer { justify-items: start; }
.logo--footer .logo__full { height: 124px; }
.logo__text { font-family: var(--display); font-size: 22px; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }

/* ---------- Menu button (phones) ---------- */
.header__burger { display: none; }

/* ---------- Mega menu ---------- */
.wp-block-vista-mega-menu.nav { border-top: 1px solid var(--line); }
.nav__list { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--maxw); display: flex; justify-content: center; gap: clamp(14px, 2.2vw, 38px); }
.nav__item { position: static; margin: 0; }
.nav__trigger {
  display: block; position: relative; padding: 14px 0 16px; color: var(--charcoal); text-decoration: none;
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; white-space: nowrap; transition: color .25s;
}
.nav__trigger::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: center; transition: transform .35s var(--ease); }
.nav__item.is-open .nav__trigger::after, .nav__trigger:hover::after { transform: scaleX(1); }
.nav__item--accent .nav__trigger { color: var(--terracotta); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(36,37,34,.18);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s linear .28s;
  z-index: 40; max-height: calc(100vh - 150px); overflow-y: auto; overscroll-behavior: contain;
  font-family: var(--sans); color: var(--charcoal);
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega a { text-decoration: none; color: inherit; }
.mega__inner { display: grid; grid-template-columns: 260px 1fr; gap: 48px; padding: 36px var(--gutter) 40px; max-width: var(--maxw); margin: 0 auto; }
.mega__inner--plain { grid-template-columns: 1fr; }
.mega__feature { display: block; }
.mega__feature-img { aspect-ratio: 4/5; margin-bottom: 14px; }
.mega__feature-kicker { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-deep); }
.mega__feature-title { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin-top: 4px; }
.mega__feature-cta { display: inline-block; margin-top: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.mega__inner--cards { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
.mega__cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.mega__card { display: block; }
.mega__card-img { aspect-ratio: 3/2; margin-bottom: 10px; }
.mega__card span { font-family: var(--serif); font-size: 18px; line-height: 1.2; transition: color .2s; }
.mega__card:hover span { color: var(--brass-deep); }
/* "mega-item--duo" (Additional CSS class on the item): two square cards beside the links */
.mega-item--duo .mega__inner--cards { grid-template-columns: auto 1fr; gap: 48px; padding-top: 36px; }
.mega-item--duo .mega__cards { grid-template-columns: repeat(2, 220px); }
.mega-item--duo .mega__card-img { aspect-ratio: 1; }
.mega__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 32px; align-content: start; }
.mega__col--split { grid-column: span 2; }
.mega__col--split ul { columns: 2; column-gap: 28px; }
.mega__col--split li { break-inside: avoid; }
.mega__col-title { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--charcoal); margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 600; }
.mega__col ul { list-style: none; margin: 0; padding: 0; }
.mega__col li { margin: 0; }
.mega__col li a { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; color: var(--ink-soft); transition: color .2s, transform .25s var(--ease); }
.mega__col li a:hover { color: var(--terracotta); transform: translateX(4px); }
.mega__col .swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); flex: none; }
.mega__all { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-deep) !important; }
.mega__all:hover { color: var(--terracotta) !important; }
.mega-scrim { position: fixed; left: 0; right: 0; top: 0; height: 100vh; background: rgba(36,37,34,.28); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: -1; pointer-events: none; }
.mega-active .mega-scrim { opacity: 1; visibility: visible; }

/* ---------- Image frames (photos, with a painted stand-in when missing) ---------- */
.art { position: relative; overflow: hidden; background: var(--cream); isolation: isolate; }
.art > img, .art > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1.4s var(--ease), opacity .6s var(--ease); }
.mega__feature:hover .art > img, .mega__card:hover .art > img { transform: scale(1.06); }
.art--placeholder {
  background:
    radial-gradient(ellipse 18% 9% at 22% 62%, #e9a3b8 0 40%, transparent 70%),
    radial-gradient(ellipse 14% 7% at 64% 74%, #f2c1cf 0 40%, transparent 70%),
    radial-gradient(ellipse 22% 10% at 78% 48%, #8fbf7a 0 45%, transparent 72%),
    radial-gradient(ellipse 26% 12% at 36% 80%, #6ea06a 0 45%, transparent 72%),
    radial-gradient(ellipse 30% 40% at 50% 15%, #5b8a78 0 35%, transparent 75%),
    linear-gradient(180deg, #2f5d63 0%, #4d8594 35%, #7fb2b8 60%, #3f6f7a 100%);
}
.art--placeholder::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255,255,255,.55) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.55) 1px, transparent 1px);
  background-size: 25% 25%; mix-blend-mode: soft-light;
}

/* ---------- Phone drawer ---------- */
.drawer {
  position: fixed; inset: 0 auto 0 0; width: min(88vw, 400px); background: var(--ivory); color: var(--charcoal); z-index: 100000;
  transform: translateX(-100%); transition: transform .45s var(--ease), visibility 0s linear .45s; visibility: hidden; display: flex; flex-direction: column; font-family: var(--sans);
}
.drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer__head .logo__compact { height: 34px; width: auto; }
.drawer__body { overflow-y: auto; flex: 1; padding-bottom: 40px; }
.drawer a { color: inherit; text-decoration: none; }
.acc { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-align: left; }
.acc__btn svg { transition: transform .3s; width: 18px; height: 18px; flex: none; }
.acc.is-open > .acc__btn svg { transform: rotate(45deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc.is-open > .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc .acc { border: 0; }
.acc .acc__btn { padding: 12px 16px 12px 28px; font-size: 12px; color: var(--ink-soft); }
.acc .acc__panel ul { list-style: none; margin: 0; padding: 0; }
.acc .acc__panel li { margin: 0; }
.acc .acc__panel li a { display: block; padding: 8px 16px 8px 40px; font-size: 15px; color: var(--ink-soft); }
.acc__all { color: var(--brass-deep) !important; }
.drawer-scrim { position: fixed; inset: 0; background: rgba(36,37,34,.45); z-index: 99999; opacity: 0; visibility: hidden; transition: opacity .35s; }
.drawer-scrim.is-open { opacity: 1; visibility: visible; }
.search--drawer { display: flex; align-items: center; gap: 10px; margin: 14px 16px 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 40px; padding: 10px 16px; }
.search--drawer:focus-within { border-color: var(--charcoal); }
.search--drawer svg { width: 18px; height: 18px; color: var(--ink-soft); flex: none; }
.search--drawer input[type="search"] { border: 0; background: transparent; outline: 0; font: inherit; font-size: 15px; width: 100%; color: var(--charcoal); padding: 0; }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: clamp(520px, 78vh, 820px); overflow: hidden; background: var(--charcoal); color: var(--white); margin: 0; }
.hero__slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 0s linear 1.2s; }
.slide:first-child { opacity: 1; visibility: visible; }
.hero.is-ready .slide { opacity: 0; visibility: hidden; }
.hero.is-ready .slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.slide__media { position: absolute; inset: 0; transform: scale(1.14); transition: transform 7.5s cubic-bezier(.25,.46,.45,.94); background: var(--charcoal); }
.slide.is-active .slide__media { transform: scale(1); }
.slide__media video { opacity: 0; transition: opacity .8s var(--ease); z-index: 0 !important; }
.slide__media video.is-playing { opacity: 1; }
.slide__media > img { z-index: 0 !important; }
/* no tint on the photo or video (client, Oct 1): the text carries a soft shadow instead */
.slide__content { text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 2px 16px rgba(0,0,0,.4); }
.slide__content .wp-block-button__link, .slide__content .btn { text-shadow: none; }
.slide__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 60px; }
.slide--right .slide__content { align-items: flex-end; text-align: right; }
.slide__content > * { max-width: 560px; margin: 0; opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.slide.is-active .slide__content > *, .hero:not(.is-ready) .slide:first-child .slide__content > * { opacity: 1; transform: none; }
.slide.is-active .slide__content > :nth-child(1) { transition-delay: .35s; }
.slide.is-active .slide__content > :nth-child(2) { transition-delay: .5s; }
.slide.is-active .slide__content > :nth-child(3) { transition-delay: .65s; }
.slide.is-active .slide__content > :nth-child(4) { transition-delay: .8s; }
.hero .slide__kicker { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--ivory); margin-bottom: 20px; text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 0 10px rgba(0,0,0,.55), 0 2px 22px rgba(0,0,0,.45); }
.hero .slide__title { font-family: var(--display); font-weight: 500; font-size: var(--fs-hero); line-height: 1.12; letter-spacing: .03em; color: var(--white); text-transform: none; }
.hero .slide__title em { display: inline-block; margin-top: .06em; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.18em; letter-spacing: 0; color: var(--brass-light); line-height: 1.12; padding-bottom: .04em; text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 0 10px rgba(0,0,0,.55), 0 2px 22px rgba(0,0,0,.45); }
.hero .slide__text { font-family: var(--sans); font-size: clamp(14.5px, 1.2vw, 17px); font-weight: 400; line-height: 1.7; margin-top: 20px; color: var(--white); text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 0 10px rgba(0,0,0,.55), 0 2px 22px rgba(0,0,0,.45); }
.hero .slide__cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.slide--right .slide__cta { justify-content: flex-end; }

.hero__ui { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 5; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: center; }
.hero__dots { display: flex; gap: 14px; }
.hero__dot { width: 64px; padding: 10px 0; border: 0; background: none; cursor: pointer; }
.hero__dot span { display: block; height: 2px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero__dot i { position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.hero__arrows { display: flex; gap: 10px; }
.hero__arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: none; color: var(--white); display: grid; place-items: center; cursor: pointer; transition: background .3s, border-color .3s, color .3s; }
.hero__arrow:hover { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.hero__arrow svg { width: 18px; height: 18px; }

/* ---------- Scene reel ----------
   The message sits on the dark band above the pictures, so the scenes play clear,
   with no tint and nothing covering them (client, Oct 1). */
.film { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--white); background: var(--charcoal); overflow: hidden; margin: 0; padding-top: clamp(56px, 7vw, 96px); }
.film__media { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 85vh; min-height: 240px; }
.film__scene { position: absolute; inset: 0; opacity: 0; overflow: hidden; transition: opacity 1.6s var(--ease); }
.film__scene.is-active { opacity: 1; }
.film__scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 7s linear; }
.film__scene.is-active img { transform: scale(1); }
.film--videos .film__scene img, .film--videos .film__scene.is-active img { transform: none; transition: none; }
.film__scene video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.film__scene video.is-playing { opacity: 1; }
.film__pause { position: absolute; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(33,27,22,.35); color: var(--white); cursor: pointer; }
.film__pause:hover { background: rgba(33,27,22,.6); }
.film__pause svg { width: 15px; height: 15px; fill: currentColor; }
.film__pause .i-play, .film__pause.is-paused .i-pause { display: none; }
.film__pause.is-paused .i-play { display: block; }
.film__body { order: -1; position: relative; max-width: 680px; padding: 0 var(--gutter) clamp(36px, 4vw, 56px); }
.film__body > * { margin: 0; }
.film .film__title { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.15; letter-spacing: .03em; color: var(--white); }
.film .film__title em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.18em; letter-spacing: 0; color: var(--brass-light); }
.film__body > p:not(.eyebrow) { margin: 20px auto 32px; max-width: 520px; color: rgba(255,255,255,.86); font-weight: 300; font-size: 17px; }
.film__body .wp-block-buttons { justify-content: center; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1180px) {
  .nav__list { gap: 18px; }
  .nav__trigger { font-size: 11.5px; letter-spacing: .12em; }
}
@media (max-width: 1060px) {
  .nav__list { gap: 10px; } /* eleven items (Ready to Hang added Oct 5) still fit on one line just above the phone menu */
}
@media (max-width: 980px) {
  .wp-block-vista-mega-menu.nav { display: none; }
  .header__burger { display: inline-grid; }
  .logo--header .logo__full { display: none; }
  .logo--header .logo__compact { height: 38px; opacity: 1; }
}
@media (max-width: 640px) {
  .slide__content, .slide--right .slide__content { justify-content: flex-end; align-items: flex-start; text-align: left; padding-bottom: 110px; }
  .slide--right .slide__cta { justify-content: flex-start; }
  .hero__dot { width: 36px; }
  .hero__arrow { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide__media, .film__scene img { transform: none !important; transition: none !important; }
  .slide, .slide__content > *, .film__scene, .mega, .drawer, .acc__panel { transition-duration: .01ms !important; }
}

/* WooCommerce's stylesheet sets "height: auto" on every image in store pages
   (.woocommerce img). Keep our image frames filled there too. */
body .art > img, body .art > video { height: 100%; max-width: none; }
body .logo > img { max-width: none; }
