/* ═══════════════════════════════════════════════════════
   LOCATIONS PAGE — Page-Specific Styles
   ═══════════════════════════════════════════════════════ */

/* ── 1. Hero ───────────────────────────────────────── */
/* 23 Sept: the mockup leaves this image bare, which left the page with no visible heading and
   only a hidden H1. The title now sits over the photograph, following the Awards hero so the
   two read as the same treatment. */
.loc-hero {
  position: relative;
  height: 64vh;              /* 16 Sept: matched to Locations Page.png: ~490px at 1366x768 */
  min-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.loc-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loc-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.35);
}

.loc-hero__content {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter);
}

.loc-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 2.7306vw, 3.28rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.08;
}

.loc-hero__subtitle {
  margin-top: 1rem;
  font-size: clamp(0.95rem, 1.17vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

/* ── 2. Locations accordion ────────────────────────── */
.loc-item {
  background: var(--color-bg);
  transition: background 0.4s ease;
}

.loc-item--copper {
  background: var(--color-copper);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.loc-item--copper .loc-item__icon::before,
.loc-item--copper .loc-item__icon::after {
  background: #fff;
}

/* 16 Sept: matched to Locations Page.png: thumbnail left, city dead centre on the page, a bold + set in from
   the right edge (centre ~x1130 of 1366). */
.loc-item__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 3.28vw, 2.46rem);
  padding: 14px var(--gutter);
  cursor: pointer;
}

.loc-item__thumb {
  width: 130px;
  aspect-ratio: 5/3;
  overflow: hidden;
  border-radius: 0;
}

.loc-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loc-item__name {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 2.3vw, 2.7rem);   /* 16 Sept: ~31px capitals at 1366 per mockup */
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-text);
}

.loc-item--copper .loc-item__name {
  color: #fff;
}

.loc-item__icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  justify-self: end;
  margin-right: clamp(0px, 9.2vw, 125px);
}

.loc-item__icon::before,
.loc-item__icon::after {
  content: '';
  position: absolute;
  background: var(--color-text);
  transition: transform 0.3s var(--ease-out);
}

.loc-item__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 3.5px;
  transform: translateY(-50%);
}

.loc-item__icon::after {
  left: 50%;
  top: 0;
  width: 3.5px;
  height: 100%;
  transform: translateX(-50%);
}

.loc-item--active .loc-item__icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.loc-item__panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
}

.loc-item--active .loc-item__panel {
  max-height: 640px;
  opacity: 1;
}

/* 16 Sept: matched to Locations Page.png: the open panel is the light off-white (copper rows keep their colour) */
.loc-item:not(.loc-item--copper) .loc-item__panel {
  background: var(--color-surface-light);
}

.loc-item__grid {
  display: grid;
  grid-template-columns: 1fr 370px 1fr;
  gap: clamp(1.5rem, 3.28vw, 2.46rem);
  align-items: center;
  padding: 3.5rem var(--gutter);
}
.loc-item__address p {
  font-size: 1.2rem;             /* 16 Sept: matched to Locations Page.png: ~17px on a 31px line */
  line-height: 1.8;
  text-align: center;
  color: var(--color-text);
}

.loc-item--copper .loc-item__address p {
  color: rgba(255, 255, 255, 0.85);
}

.loc-item__viewmap {
  display: block;
  text-align: center;
  margin-top: 0;
  font-size: 1.2rem;             /* plain text line in the mockup, same as the address */
  line-height: 1.8;
  font-weight: 400;
  color: var(--color-text);
}

.loc-item--copper .loc-item__viewmap {
  color: #fff;
  text-decoration: underline;
}

.loc-item__map {
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 4/3;
}

.loc-item__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* 25 Sept: in the Webflow build each map is an HtmlEmbed, and Webflow wraps
   that in a .w-embed div of its own. Without a height on the wrapper the
   iframe's height: 100% resolves against an auto-height box and collapses to
   nothing, so the 4:3 container renders empty. The hand-coded page has the
   iframe as a direct child and is unaffected. */
.loc-item__map > .w-embed {
  width: 100%;
  height: 100%;
}

.loc-item__cta {
  display: flex;
  justify-content: center;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .loc-item__row {
    grid-template-columns: 120px 1fr auto;
  }

  .loc-item__thumb {
    width: 120px;
  }

  .loc-item__icon {
    margin-right: 0;
  }

  .loc-item__grid {
    grid-template-columns: 1fr;
  }

  .loc-item--active .loc-item__panel {
    max-height: 1100px;
  }
}

@media (max-width: 768px) {
  .loc-hero {
    height: 32vh;
    min-height: 240px;
  }

  .loc-item__row {
    grid-template-columns: 84px 1fr auto;
    gap: 1rem;
    padding: 1.25rem var(--gutter);
  }

  .loc-item__thumb {
    width: 84px;
  }

  .loc-item__name {
    font-size: 1.025rem;
    letter-spacing: 0.04em;
  }
}

/* 16 Sept: the "Let's start a conversation" heading is set in capitals on this page's mockup */
.contact__heading { text-transform: uppercase; }
