/* ==========================================================================
   Topaz Art Academy — visit.css
   The Visit page: dark editorial hero with a live open/closed status,
   and a gold-framed Google Maps embed beside address / hours / contact.
   Reuses base.css tokens, .reveal motion, .btn and .cta-link —
   everything here is scoped to .vi-* classes.
   ========================================================================== */

/* ------------------------------------------------------------------
   HERO — dark editorial band (same language as the programs hero)
   ------------------------------------------------------------------ */
.vi-hero {
  position: relative;
  background: var(--bg-philosophy);
  color: var(--cream);
  padding: clamp(64px, 9vh, 104px) 0;
  overflow: hidden;
}

/* faint copper grain over the dark field, as on the team roster */
.vi-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/textures/copper-texture.webp") center / cover;
  opacity: 0.06;
  pointer-events: none;
}

.vi-hero .container { position: relative; }

.vi-hero .eyebrow {
  margin-bottom: 20px;
  animation: vi-fade-in 1.1s var(--ease-out) 0.1s both;
}

.vi-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--cream);
  animation: vi-title-in 1.5s var(--ease-out) 0.2s both;
}

@keyframes vi-title-in {
  from { opacity: 0; transform: translateY(48px); letter-spacing: 0.02em; }
  to   { opacity: 1; transform: none;           letter-spacing: -0.02em; }
}

/* gold rule that draws in under the title */
.vi-rule {
  width: min(340px, 44%);
  height: 1px;
  margin: clamp(18px, 2.6vh, 28px) 0;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: left center;
  animation: vi-rule-in 1.3s var(--ease-out) 0.85s both;
}

@keyframes vi-rule-in { to { transform: scaleX(1); } }

.vi-lede {
  max-width: 620px;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.7;
  color: var(--cream-soft);
  animation: vi-fade-in 1.2s var(--ease-out) 0.65s both;
}

.vi-lede em { font-style: italic; color: var(--cream); }

@keyframes vi-fade-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* live status pill — "Open now · until 8 p.m." */
.vi-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 8px 16px;
  border: 1px solid var(--rule-light);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  animation: vi-fade-in 1.2s var(--ease-out) 0.8s both;
}

.vi-status[hidden] { display: none; }

.vi-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6FBF8E;
  box-shadow: 0 0 0 0 rgba(111, 191, 142, 0.6);
  animation: vi-dot 2.4s var(--ease-soft) infinite;
}

.vi-status.is-closed .vi-status-dot {
  background: var(--gold-bright);
  animation: none;
}

@keyframes vi-dot {
  0%   { box-shadow: 0 0 0 0 rgba(111, 191, 142, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(111, 191, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 191, 142, 0); }
}

.vi-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: clamp(28px, 4vh, 40px);
  animation: vi-fade-in 1.2s var(--ease-out) 0.95s both;
}

/* ------------------------------------------------------------------
   MAP + DETAILS
   ------------------------------------------------------------------ */
.vi-find {
  background: var(--bg-light);
  padding: clamp(56px, 8vh, 96px) 0;
}

.vi-find-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: stretch;
}

/* gold double frame around the map, echoing the team portraits */
.vi-map {
  position: relative;
  min-height: 460px;
  background: var(--bg-contact);
  border: 2px solid var(--gold);
  padding: 10px;
  box-shadow: 0 22px 54px rgba(23, 36, 42, 0.16), 0 5px 14px rgba(23, 36, 42, 0.08);
}

.vi-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 436px;
  border: 1px solid rgba(176, 132, 56, 0.55);
  /* soften Google's colours toward the palette; full colour on hover */
  filter: grayscale(0.35) sepia(0.08) contrast(1.02);
  transition: filter 0.6s var(--ease-out);
}

.vi-map:hover iframe,
.vi-map:focus-within iframe { filter: none; }

.vi-info {
  display: flex;
  flex-direction: column;
}

.vi-block {
  padding: 26px 0;
  border-top: 1px solid var(--rule-dark);
}

.vi-block:first-child { padding-top: 0; border-top: 0; }
.vi-block:last-child  { padding-bottom: 0; }

.vi-label {
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.vi-address {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.22;
  color: var(--ink);
}

.vi-dir {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-faint);
}

.vi-dir a,
.vi-contact a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(176, 132, 56, 0.6);
  text-underline-offset: 4px;
  transition: color 0.3s var(--ease-out), text-decoration-color 0.3s var(--ease-out);
}

.vi-dir a:hover,
.vi-contact a:hover {
  color: var(--teal-deep);
  text-decoration-color: var(--teal-deep);
}

/* hours — today's row is marked by visit.js */
.vi-hours { list-style: none; padding: 0; }

.vi-hours li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 5px 10px;
  margin: 0 -10px;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: 2px;
}

.vi-hours li.is-today {
  background: rgba(176, 132, 56, 0.12);
  color: var(--ink);
  font-weight: 600;
}

.vi-hours li.is-today span:first-child::after {
  content: "Today";
  margin-left: 10px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.vi-note {
  margin-top: 12px;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-faint);
}

.vi-contact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 36px;
}

.vi-contact a { font-size: 16px; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .vi-find-grid { grid-template-columns: 1fr; }
  .vi-map { min-height: 0; padding: 8px; }
  .vi-map iframe { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .vi-map iframe { aspect-ratio: 1 / 1; }
  .vi-contact { grid-template-columns: 1fr; }
  .vi-actions .btn { width: 100%; }
}

/* ------------------------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .vi-hero .eyebrow,
  .vi-hero h1,
  .vi-lede,
  .vi-status,
  .vi-actions { animation: none; }
  .vi-rule { animation: none; transform: none; }
  .vi-status-dot { animation: none; }
}
