@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/poppins-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/poppins-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/poppins-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/poppins-latin-700-normal.woff2') format('woff2');}
@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/roboto-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/roboto-latin-700-normal.woff2') format('woff2');}

/* ==========================================================================
   Finesse in Otology - mobile-first stylesheet
   Base = phones. Larger layouts are added with min-width queries.
   Breakpoints: 600px (large phone/tablet), 960px (desktop nav + 2-col layouts)
   ========================================================================== */

:root {
  --primary: #4c1864;
  --secondary: #fad03b;
  --navy: #0c0630;
  --dark: #111;
  --footer: #111111;
  --cta: #090f2e;
  --gold: #dd9c3d;
  --footer-dark: #0a0a0a;
  --muted: #b3b3b3;
  --text: #444;
  --header-h: 80px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1240px;
  --font-hero: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font: 400 1rem/1.65 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: #fff;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; }

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

/* Shared SVG icon defaults (stroke icons) */
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: #7a2b9c; text-decoration: underline; }

button { font: inherit; color: inherit; }

/* Focus */
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
.organisers :focus-visible, .site-footer :focus-visible, .cta-bar :focus-visible,
.site-header :focus-visible, .hero :focus-visible { outline-color: #fff; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

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

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 2000;
  background: var(--secondary); color: var(--dark);
  padding: 0.75rem 1.25rem; border-radius: 4px; font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 2rem;
  border: 2px solid var(--secondary); border-radius: 5px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { text-decoration: none; }
.btn-fill { background: var(--secondary); color: var(--dark); }
.btn-fill:hover { background: #fff; border-color: #fff; color: var(--primary); }
.btn-ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-ghost:hover { background: var(--secondary); border-color: var(--secondary); color: var(--dark); }
.hero .btn-ghost { font-family: var(--font-hero); font-weight: 700; letter-spacing: 0.15em; border-radius: 12px; padding-inline: 2.25rem; }
.btn-sm { min-height: 44px; padding: 0.4rem 1.1rem; font-size: 0.85rem; }
.header-actions .btn { font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled,
.site-header.menu-open { background: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,.25); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--header-h);
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.logo { display: block; flex-shrink: 0; }
.logo img { height: 70px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer; color: #fff;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile navigation panel (default) */
.main-nav {
  display: none;
  position: fixed; top: var(--header-h); left: 0; right: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.12);
  padding-bottom: env(safe-area-inset-bottom);
}
.main-nav.open { display: block; }

.main-nav a,
.main-nav .dropdown-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 48px; padding: 0.75rem var(--gutter);
  color: #fff; background: none; border: 0; text-align: left; cursor: pointer;
  font-weight: 600; font-size: 0.95rem; text-transform: uppercase; text-decoration: none;
}
.main-nav > ul > li { border-top: 1px solid rgba(255,255,255,.08); }
.main-nav > ul > li:first-child { border-top: 0; }
.main-nav a:hover, .main-nav .dropdown-toggle:hover { color: var(--secondary); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--secondary); }

.dropdown-toggle::after {
  content: ""; width: 8px; height: 8px; flex-shrink: 0; margin-left: 0.6rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s;
}
.dropdown-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }

.submenu { display: none; background: rgba(255,255,255,.06); border-left: 3px solid var(--secondary); }
.has-dropdown.open > .submenu,
.has-submenu.open > .submenu { display: block; }
.submenu a, .submenu .dropdown-toggle {
  text-transform: none; font-weight: 500; font-size: 0.95rem;
  padding-left: calc(var(--gutter) + 0.75rem);
}
.submenu-nested a { padding-left: calc(var(--gutter) + 2rem); }

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  min-height: clamp(34rem, 92vh, 52rem);
  min-height: clamp(34rem, 92svh, 52rem);
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}
.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--header-h) + 2.5rem) var(--gutter) 4rem;
  opacity: 0; visibility: hidden;
  transition: opacity 1s ease, visibility 0s linear 1s;
}
.hero-slide.active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }

.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(10,10,20,.18), rgba(10,10,20,.38));
}
.hero-text { position: relative; z-index: 2; max-width: 56rem; margin-inline: auto; }

.hero-eyebrow { font: 400 clamp(1rem, 3vw, 1.5rem)/1.3 var(--font-hero); margin-bottom: 2rem; }
.hero-title { font-size: clamp(1.875rem, 7vw, 3.25rem); font-weight: 600; line-height: 1.1; margin: 2rem 0 1rem; text-wrap: balance; }
.hero-sub { font: 400 clamp(1rem, 3vw, 1.5rem)/1.3 var(--font-hero); margin-bottom: 3.5rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-slide.active .hero-text > * { animation: hero-rise .7s ease both; }
  .hero-slide.active .hero-text > :nth-child(2) { animation-delay: .1s; }
  .hero-slide.active .hero-text > :nth-child(3) { animation-delay: .2s; }
  .hero-slide.active .hero-text > :nth-child(4) { animation-delay: .3s; }
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-nav {
  display: none;
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; padding: 0; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6); background: rgba(0,0,0,.25); color: #fff;
  align-items: center; justify-content: center; cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
.hero-nav svg { width: 20px; height: 20px; }
.hero-nav:hover { background: var(--secondary); border-color: var(--secondary); color: var(--dark); }
.hero-prev { left: 1.25rem; }
.hero-next { right: 1.25rem; }

.hero-controls {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 0.75rem;
  display: flex; align-items: center; justify-content: center; gap: 0.25rem;
  padding-bottom: env(safe-area-inset-bottom);
}
.hero-dots { display: flex; }
.hero-dot {
  position: relative; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.hero-dot::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border: 2px solid #fff; border-radius: 50%; transition: background .25s;
}
.hero-dot.active::before { background: var(--secondary); border-color: var(--secondary); }

.hero-pause {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; color: #fff;
}
.hero-pause svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.hero-pause .icon-play { display: none; }
.hero-pause[aria-pressed="true"] .icon-play { display: block; }
.hero-pause[aria-pressed="true"] .icon-pause { display: none; }
.hero-pause:hover { color: var(--secondary); }

/* ---------- Notice bar (scrolling marquee, pauses on hover/focus) ---------- */
.notice-bar {
  overflow: hidden; background: #e8f1fb; color: #1d3557;
  font-size: 0.95rem; line-height: 1.5;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee-scroll 20s linear infinite;
}
.marquee-item {
  flex: 0 0 auto; min-width: 100vw; margin: 0;
  padding: 0.85rem 4rem 0.85rem 0; white-space: nowrap;
}
.notice-bar:hover .marquee-track,
.notice-bar:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.notice-bar strong, .notice-date, .notice-venue { font-weight: 500; }
.notice-date { color: #b3202e; }
.notice-sep { margin: 0 0.35rem; }
.notice-bar a { color: #1d3557; text-decoration: underline; }
.notice-bar a:hover { color: #b3202e; }

@media (min-width: 960px) { .marquee-track { animation-duration: 30s; } }

/* Reduced motion: no scrolling, show the notice as normal wrapped text */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; width: auto; display: block; }
  .marquee-item { min-width: 0; white-space: normal; text-align: center; padding: 0.85rem var(--gutter); }
  .marquee-item[aria-hidden="true"] { display: none; }
}

/* ---------- Intro ---------- */
.intro-section {
  display: grid; gap: 2rem;
  padding-block: clamp(2.5rem, 8vw, 5rem);
}
.section-heading {
  position: relative; color: #282828;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  padding-bottom: 1rem; margin-bottom: 1.25rem;
}
.section-heading::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 60px; height: 3px; background: var(--primary);
}

.video-wrap {
  position: relative; aspect-ratio: 16 / 9;
  background: #000; border-radius: 6px; overflow: hidden;
}
.video-wrap iframe, .video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { padding: 0; background: #000; cursor: pointer; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .25s; }
.video-play:hover img { opacity: 1; }
.video-play-icon {
  position: absolute; top: 50%; left: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--secondary); color: var(--dark); border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.video-play-icon svg { width: 30px; height: 30px; margin-left: 3px; fill: currentColor; stroke: none; }
.video-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; }

.intro-video { display: contents; }
.text-section { padding-block: clamp(2.5rem, 8vw, 5rem) 0; }
.finesse-intro-row > .elementor-container { max-width: var(--max); margin-inline: auto; padding: 0 var(--gutter) clamp(2.5rem, 8vw, 5rem); gap: 0; }
.finesse-intro-row .elementor-column:first-child { padding-right: 0; }
.finesse-intro-row .elementor-widget-wrap { padding: 0 !important; }
@media (min-width: 768px) { .finesse-intro-row .elementor-column:first-child .elementor-widget-wrap { padding-right: 3rem !important; } }
@media (max-width: 767px) { .finesse-intro-row .elementor-column + .elementor-column { margin-top: 2rem; } }
.intro-section .section-heading { grid-area: head; }
.video-wrap { grid-area: video; }
.info-box-list { grid-area: list; display: grid; gap: 0.75rem; align-content: center; }
.info-box {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; background: #f7f5fa; border-radius: 8px;
}
.info-box .icon { flex-shrink: 0; display: flex; width: 36px; height: 36px; color: var(--primary); }
.info-box .icon svg { width: 100%; height: 100%; }
/* Gold icons on a light background fail contrast, so darken it slightly */
.info-box .icon-secondary { color: #b8860b; }
.info-box h3 { font-size: 1.125rem; color: #222; }

/* ---------- Organisers ---------- */
.organisers {
  background: linear-gradient(180deg, rgba(10,21,68,.3) 98%, rgba(204,41,242,.3) 100%), #2a1160;
  color: #fff; text-align: center;
  padding-block: clamp(2.5rem, 8vw, 4.5rem);
}
.organisers h2 { font-size: clamp(1.5rem, 5vw, 2.25rem); text-transform: uppercase; color: #efefef; margin-bottom: 0.5rem; }
.organisers-sub { color: #efefef; margin-bottom: 2.25rem; }
.organiser-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
.organiser-card img {
  width: clamp(96px, 26vw, 160px); aspect-ratio: 1; height: auto;
  object-fit: cover; border-radius: 50%; margin: 0 auto 0.75rem;
  background: rgba(255,255,255,.12);
}
.organiser-card h3 { font-size: 1rem; font-weight: 500; line-height: 1.4; }

/* ---------- Gallery ---------- */
.gallery-section { padding: clamp(2.5rem, 8vw, 5rem) var(--gutter); text-align: center; }
.gallery-section h2 { font-size: clamp(1.5rem, 5vw, 2.25rem); color: #282828; margin-bottom: 0.75rem; text-wrap: balance; }
.gallery-section .sub { color: #444; margin: 0 auto 2rem; max-width: 40rem; }
.gallery-grid {
  max-width: var(--max); margin-inline: auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
}
.gallery-item {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: #e9e6ee; border-radius: 6px; overflow: hidden;
  box-shadow: 0 0 14px rgba(0,0,0,.4);
}
.gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .25s; }
@media (hover: hover) { .gallery-item:hover img { transform: scale(1.04); } }

/* ---------- Lightbox (<dialog>) ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lb-figure { margin: 0; max-width: 100%; padding: 4rem 0.75rem; text-align: center; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 8rem); max-height: calc(100dvh - 8rem); width: auto; margin-inline: auto; border-radius: 6px; }
.lb-count { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted); }
.lb-btn {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; color: #fff; cursor: pointer;
  background: rgba(255,255,255,.12); border: 0; border-radius: 50%;
}
.lb-btn svg { width: 24px; height: 24px; }
.lb-btn:hover { background: var(--secondary); color: var(--dark); }
.lb-close { top: max(0.75rem, env(safe-area-inset-top)); right: 0.75rem; }
.lb-prev, .lb-next { bottom: max(0.75rem, env(safe-area-inset-bottom)); }
.lb-prev { left: calc(50% - 56px); }
.lb-next { right: calc(50% - 56px); }

/* ---------- CTA bar ---------- */
.cta-bar { background: var(--cta); color: #efefef; }
.cta-bar-inner {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem;
  padding: 2rem var(--gutter);
}
.cta-text { font-size: clamp(1.125rem, 3.5vw, 1.375rem); font-weight: 500; line-height: 1.4; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--muted); }
.footer-top { padding: 3rem var(--gutter) 2rem; }
.footer-grid { max-width: var(--max); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
.footer-logo img { width: 150px; margin-bottom: 1rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid #555; border-radius: 50%; color: var(--muted);
}
.footer-social a:hover { color: var(--dark); background: var(--secondary); border-color: var(--secondary); text-decoration: none; }
.footer-social svg { width: 20px; height: 20px; }

.footer-heading {
  position: relative; font-size: 1.125rem; color: #fff;
  padding-bottom: 0.65rem; margin-bottom: 1.25rem;
}
.footer-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--secondary); }
.site-footer nav li a { display: inline-block; padding: 0.4rem 0; color: var(--muted); }
.site-footer a:hover { color: var(--secondary); }

.footer-bottom { background: var(--footer-dark); color: #8f8f8f; text-align: center; padding: 1.1rem var(--gutter); font-size: 0.875rem; }
.footer-bottom a { color: #b3b3b3; text-decoration: underline; }
.footer-bottom a:hover { color: var(--secondary); }

/* ---------- Back to top ---------- */
.scroll-top {
  position: fixed; z-index: 50;
  right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: var(--primary); color: #fff; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.scroll-top svg { width: 22px; height: 22px; }
.scroll-top.visible { display: flex; }

/* ==========================================================================
   >= 600px
   ========================================================================== */
@media (min-width: 600px) {
  .hero-nav { display: flex; }
  .organiser-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { gap: 1rem; }
  .cta-bar-inner { flex-direction: row; align-items: center; justify-content: space-between; padding-block: 2.5rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   >= 960px  (desktop navigation + two-column layouts)
   ========================================================================== */
@media (min-width: 960px) {
  :root { --header-h: 108px; }
  .logo img { height: 92px; }
  .nav-toggle { display: none; }
  .header-actions { margin-left: 0; }

  .main-nav {
    display: block; position: static; max-height: none; overflow: visible;
    background: none; border: 0; padding: 0; margin-left: auto; margin-right: 1.5rem;
  }
  .main-nav > ul { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.75rem); }
  .main-nav > ul > li { border: 0; }
  .main-nav a, .main-nav .dropdown-toggle {
    width: auto; min-height: 44px; padding: 0.5rem 0; font-size: 0.9rem; justify-content: flex-start;
  }

  .has-dropdown, .has-submenu { position: relative; }
  .submenu {
    position: absolute; top: 100%; left: -1rem; z-index: 50; min-width: 260px;
    padding: 0.5rem 0; background: #fff; border: 0; border-top: 3px solid var(--secondary);
    box-shadow: 0 12px 24px rgba(0,0,0,.18);
  }
  .submenu a, .submenu .dropdown-toggle {
    width: 100%; justify-content: space-between; white-space: nowrap;
    padding: 0.7rem 1.25rem; color: #111; font-size: 0.9375rem; font-weight: 500;
  }
  .submenu a:hover, .submenu .dropdown-toggle:hover { color: var(--primary); background: #f7f5fa; }
  .submenu-nested { top: -0.5rem; left: 100%; min-width: 250px; }
  .submenu .dropdown-toggle::after { transform: rotate(-45deg); }
  .submenu .dropdown-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }
  .main-nav :focus-visible { outline-color: var(--secondary); }
  .submenu :focus-visible { outline-color: var(--primary); outline-offset: -3px; }
}
@media (min-width: 960px) and (hover: hover) {
  .has-dropdown:hover > .submenu,
  .has-submenu:hover > .submenu { display: block; }
}

@media (min-width: 960px) {
  .intro-section {
    grid-template-columns: 1.2fr 1fr; column-gap: 3rem; row-gap: 0;
    grid-template-areas: "head head" "video list";
    align-items: stretch;
  }
  .info-box-list { gap: 0; grid-auto-rows: 1fr; align-content: stretch; height: 100%; }
  .info-box { background: none; border-radius: 0; padding: 1.35rem 0; gap: 1.25rem; border-bottom: 1px solid #e1e1e1; }
  .info-box:last-child { border-bottom: 0; }
  .info-box .icon { width: 44px; height: 44px; }
  .info-box h3 { font-size: 1.375rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .footer-top { padding-top: 5rem; }
  .footer-grid { grid-template-columns: 1.5fr 1fr; }
  .lb-prev { left: 1.5rem; bottom: 50%; transform: translateY(50%); }
  .lb-next { right: 1.5rem; bottom: 50%; transform: translateY(50%); }
}

/* Small phones */
@media (max-width: 380px) {
  .logo img { height: 58px; }
  .btn-sm { padding-inline: 0.8rem; }
  .btn { padding-inline: 1.25rem; }
}

/* Reduced motion: no fades or zoom */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Inner page banner + contact page ---------- */
.page-banner {
  position: relative; isolation: isolate; overflow: hidden; background: #0c035c; color: #fff;
  padding: calc(var(--header-h) + 3rem) 0 3.5rem; text-align: center;
}
.page-banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,3,92,.82), rgba(12,6,48,.7)); }
.page-title { margin: 0 0 .75rem; font: 600 clamp(2rem, 6vw, 3rem)/1.15 var(--font-hero); color: #fff; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .6rem; font-size: .95rem; color: #fff; }
.breadcrumb li + li::before { content: ">"; margin-right: .6rem; }
.breadcrumb a { color: var(--secondary); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

.contact-section { padding: clamp(2.5rem, 8vw, 5rem) 0; }
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: flex-start; gap: .85rem; font-size: 1.0625rem; overflow-wrap: anywhere; }
.contact-list svg { flex: none; width: 22px; height: 22px; margin-top: .15rem; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--primary); text-decoration: underline; }
.venue-address { font-style: normal; font-weight: 600; color: var(--navy); margin-bottom: 1.25rem; line-height: 1.6; }
.map-embed { position: relative; aspect-ratio: 4 / 3; background: #eee; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 960px) {
  .page-banner { padding: calc(var(--header-h) + 4rem) 0 4.5rem; }
  .contact-grid { grid-template-columns: 1fr 1.4fr; gap: 4rem; }
  .map-embed { aspect-ratio: 16 / 10; }
}

/* ---------- Gallery page ---------- */
.gallery-page { padding: clamp(2rem, 6vw, 4rem) 0 clamp(2.5rem, 8vw, 5rem); }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem .6rem; margin-bottom: 1rem; }
.filter-btn {
  font-family: inherit; font-size: 1rem; font-weight: 400; line-height: 1.2; cursor: pointer;
  min-height: 48px; padding: .8rem 1.5rem; border: 1px solid var(--secondary); border-radius: 3px;
  background: #fff; color: #333; transition: background .2s, color .2s;
}
.filter-btn:hover, .filter-btn:focus-visible { background: var(--secondary); color: #111; }
.filter-btn[aria-pressed="true"] { background: var(--secondary); color: #111; font-weight: 500; }
.filter-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.gallery-status { text-align: center; color: #666; font-size: .875rem; margin: 0 0 1.5rem; min-height: 1.3em; }
.gallery-grid-page { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.gallery-grid-page li[hidden] { display: none; }
.gallery-grid-page .gallery-item img { aspect-ratio: 3 / 2; height: auto; background: #eee; }
@media (min-width: 600px) { .gallery-grid-page { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 960px) { .gallery-grid-page { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }


/* ==========================================================================
   WordPress layer
   ========================================================================== */
.screen-reader-text { position:absolute!important; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.screen-reader-text:focus { clip:auto; width:auto; height:auto; margin:0; padding:.75rem 1rem; background:#fff; color:#000; z-index:100000; top:5px; left:5px; }
.alignleft { float:left; margin:0 1.5rem 1rem 0; } .alignright { float:right; margin:0 0 1rem 1.5rem; }
.aligncenter { display:block; margin-inline:auto; } .wp-caption { max-width:100%; } .wp-caption-text { font-size:.875rem; color:#666; }
img { max-width:100%; height:auto; }

/* Header: solid on pages that do not start with a hero or banner */
body:not(.has-hero) .site-header { background: var(--navy); }
body:not(.has-hero) #main { padding-top: var(--header-h); }
body:not(.sticky-header) .site-header { position: absolute; }
.admin-bar .site-header { top: 32px; }
.admin-bar .main-nav { top: calc(var(--header-h) + 32px); }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } .admin-bar .main-nav { top: calc(var(--header-h) + 46px); } }
.logo img { height: var(--logo-h-m, 70px); }
@media (min-width: 960px) { .logo img { height: var(--logo-h-d, 92px); } }
.site-header .custom-logo-link { display: block; }

/* Mega menu (desktop) */
.mega-menu { display: none; }
@media (min-width: 960px) {
  .has-dropdown.is-mega { position: static; }
  .has-dropdown.is-mega > .mega-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-top: 3px solid var(--secondary); padding: 1.5rem var(--gutter); display: none; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
  .has-dropdown.is-mega.open > .mega-menu { display: grid; }
  .mega-menu .mega-heading { display: block; padding: 0 0 .5rem; color: var(--secondary); font-weight: 600; text-transform: uppercase; font-size: .85rem; }
  .mega-menu ul { list-style: none; margin: 0; padding: 0; }
  .mega-menu a { min-height: 36px; padding: .35rem 0; text-transform: none; font-weight: 500; }
}
@media (max-width: 959px) {
  .has-dropdown.is-mega.open > .mega-menu { display: block; background: rgba(255,255,255,.06); border-left: 3px solid var(--secondary); }
  .mega-menu .mega-heading { display: block; padding: .5rem var(--gutter) .25rem calc(var(--gutter) + .75rem); color: var(--secondary); font-size: .8rem; text-transform: uppercase; font-weight: 600; }
  .mega-menu ul { list-style: none; margin: 0; padding: 0; }
  .mega-menu a { padding-left: calc(var(--gutter) + 1.25rem); text-transform: none; font-weight: 500; }
}

/* Social links in footer */
.footer-social a svg { fill: none; stroke: currentColor; }

/* Generic content (posts, search, 404) */
.content-wrap { max-width: 860px; margin-inline: auto; padding: 2.5rem var(--gutter) 4rem; }
.content-wrap h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); color: var(--navy); margin-bottom: 1rem; }
.entry-content > * + * { margin-top: 1rem; }
.post-card { padding: 1.25rem 0; border-bottom: 1px solid #e1e1e1; }
.post-card h2 { font-size: 1.35rem; margin: 0 0 .35rem; }
.post-card h2 a { color: var(--navy); text-decoration: none; } .post-card h2 a:hover { color: var(--primary); }
.pagination, .nav-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.search-form { display: flex; gap: .5rem; } .search-form input[type=search] { flex: 1; min-height: 48px; padding: 0 .75rem; border: 1px solid #ccc; border-radius: 4px; }
.search-form input[type=submit] { min-height: 48px; padding: 0 1.25rem; background: var(--secondary); border: 0; border-radius: 4px; font-weight: 600; cursor: pointer; }

/* Enquiry form */
.enquiry-section { padding: 0 0 clamp(2.5rem, 8vw, 5rem); }
.enquiry-wrap { max-width: 760px; }
.finesse-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.finesse-form label { display: block; font-weight: 500; margin-bottom: .35rem; }
.finesse-form input[type=text], .finesse-form input[type=email], .finesse-form textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1px solid #c9c9c9; border-radius: 4px; font: inherit; color: var(--text); background: #fff;
}
.finesse-form textarea { min-height: 150px; resize: vertical; }
.finesse-form input:focus, .finesse-form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.finesse-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.finesse-form .btn { justify-self: start; }
.finesse-form .btn[disabled] { opacity: .6; cursor: wait; }
.form-status { padding: .85rem 1rem; border-radius: 4px; font-weight: 500; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #e7f6ec; color: #17623a; border: 1px solid #b7e1c5; }
.form-status.err { background: #fdecec; color: #8a1f1f; border: 1px solid #f2bcbc; }
.map-embed { position: relative; aspect-ratio: 4 / 3; background: #eee; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery-more { margin: 2rem 0 0; }

/* Elementor pages: full width, no theme chrome interference */
.elementor-page #main { padding-top: 0; }
body.elementor-page:not(.has-hero) #main { padding-top: var(--header-h); }
