/* ================================================================
   Template B — Warm & Bold
   Quicklaunch / Starlifter.co

   Claude Code: swap --primary and --secondary in :root to match
   the customer's industry. Everything else flows from those vars.
   ================================================================ */

/* ── Web fonts (self-hosted, OFL licensed) ───────────────────── */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/plus-jakarta-sans-variable.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-variable.woff2') format('woff2-variations');
  font-weight: 100 1000;
  font-display: swap;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Colour tokens ───────────────────────────────────────────── */
:root {
  --primary:           #3a4a5c;
  --primary-dark:      #313e4e;
  --primary-light:     #f5f5f6;
  --secondary:         #5ba4cf;
  --secondary-light:   #f6fafc;
  --text-on-primary:   #ffffff;
  --text-on-secondary: #1a1a1a;
  --text:              #1a1a1a;
  --body:              #3a3a3a;
  --muted:             #6b7280;
  --border:            #e2e8ed;
  --surface:           #f7f9fa;
  --white:             #ffffff;
  --radius:            4px;
  --shadow-sm:         none;
  --shadow-md:         none;
}

/* ── Base ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── Preview mode ────────────────────────────────────────────── */
html.is-preview .footer-attribution,
html.is-preview .admin-link { display: none !important; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

/* ── Layout ──────────────────────────────────────────────────── */
.inner {
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-on-primary);
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.hero-actions .btn-primary { font-weight: 700; color: #fff; }

.btn-secondary-btn {
  background: var(--secondary);
  color: var(--text-on-secondary);
}

.btn-secondary-btn:hover { background: #d99200; transform: translateY(-1px); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.75);
  border-radius: 100px;
}

.btn-outline-white:hover { background: rgba(255,255,255,0.14); }

/* ── Nav ─────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.site-nav.is-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.nav-logo { height: 42px; width: auto; flex-shrink: 0; }

.nav-name-wrap { min-width: 0; overflow: hidden; }

.nav-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-tagline {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-cta { flex-shrink: 0; color: #fff; }

/* ── Hero — 50/50 split ──────────────────────────────────────── */
.site-hero {
  background: var(--primary);
  overflow: hidden;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  flex: 1;
}

.hero-text-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Left padding tracks the nav inner container so the h1 aligns with
     the logo above it at all desktop viewport widths. Right padding is
     fixed. No max-width — the grid column handles the width. */
  padding: 5rem 3rem 5rem max(2rem, calc((100vw - 1060px) / 2 + 2rem));
  color: var(--text-on-primary);
}

/* Enforce text-on-primary on every child — exclude secondary CTA which has its own contrast colour */
.hero-text-side *:not(.btn-secondary-btn) { color: var(--text-on-primary); }

.hero-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-on-primary);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  line-height: 1.5;
  color: var(--text-on-primary);
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-image-side {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

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

/* Gradient fallback if no hero image */
.site-hero.no-hero .hero-image-side {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 60%, var(--secondary)) 0%,
    var(--secondary-light) 100%
  );
  opacity: 0.6;
}

.site-hero.no-hero .hero-text-side {
  grid-column: 1 / -1;
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
  align-items: center;
}

/* ── Sections — alternating backgrounds ──────────────────────── */
.site-section { padding: 5rem 0; }

.site-section:nth-of-type(odd) {
  background: var(--white);
}

.site-section:nth-of-type(even) {
  background: var(--primary-light);
}

.section-eyebrow {
  display: inline-block;
  background: var(--secondary-light);
  color: var(--primary-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.625rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  max-width: 680px;
}

.section-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--body);
  max-width: 680px;
}

/* Rich About content (headings / lists / multiple paragraphs).
   Colour is inherited from .section-body so section-tinted contrast holds. */
.section-body > p { margin: 0 0 1rem; }
.section-body h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 1.75rem 0 0.6rem;
}
.section-body h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 1.4rem 0 0.4rem;
}
.section-body ul,
.section-body ol {
  margin: 0.75rem 0 1rem;
  padding-left: 1.35rem;
}
.section-body li { margin-bottom: 0.4rem; }
.section-body > :first-child { margin-top: 0; }
.section-body > :last-child { margin-bottom: 0; }

/* ── Gallery — rounded corners, slight size variation ────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 2.5rem;
}

/* Feature first item slightly taller */
.gallery-item:first-child {
  grid-row: span 1;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  outline: none;
  background: var(--border);
}

.gallery-item:focus-visible { box-shadow: 0 0 0 3px var(--secondary); }

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.06); }

/* ── Hours ───────────────────────────────────────────────────── */
.hours-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 2rem;
  max-width: 700px;
}

.hours-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 0.875rem;
  border: 1.5px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.hours-card.is-open {
  border-color: var(--primary);
  background: var(--white);
}

.hours-card-day {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.hours-card-time {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.4;
}

.hours-card-time.closed {
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
}

/* ── Contact ─────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-top: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: calc(var(--radius) * 0.65);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-value { font-size: 1rem; font-weight: 500; }

.contact-value a {
  color: var(--primary);
  text-decoration: none;
}

.contact-value a:hover { text-decoration: underline; }

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
}

.social-link svg { width: 2.5rem; height: 2.5rem; }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  border: 1.5px solid var(--border);
}

.contact-map iframe {
  width: 100%;
  height: 340px;
  border: none;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer h1, .site-footer h2,
.site-footer h3, .site-footer h4 { color: inherit; }

.site-footer {
  background: var(--primary);
  color: var(--text-on-primary);
  padding: 3rem 0;
  text-align: center;
}

.footer-name {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-attribution {
  font-size: 0.8125rem;
  opacity: 0.65;
  margin-top: 0.75rem;
}

.footer-attribution a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  opacity: 1;
}

.footer-attribution a:hover { text-decoration: underline; }

/* ── Lightbox ────────────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 0;
}

#lightbox.is-open { display: flex; }

#lb-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
}

#lb-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80vw;
}

.lb-btn {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background 0.15s;
}

.lb-btn:hover { background: rgba(255,255,255,0.24); }

#lb-close { top: 1rem; right: 1rem; font-size: 1.5rem; }
#lb-prev  { left: 1rem;  top: 50%; transform: translateY(-50%); }
#lb-next  { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-text-side {
    padding: 4rem 2rem;
    max-width: 100%;
  }

  .hero-image-side {
    min-height: 280px;
    order: -1;
  }
}

@media (max-width: 768px) {
  .site-section { padding: 3.5rem 0; }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hours-cards { grid-template-columns: repeat(4, 1fr); }

  .nav-tagline { display: none; }
  .nav-logo ~ .nav-name-wrap { display: none; }
}

@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item img,
  .gallery-item:nth-child(n) img { aspect-ratio: 1 / 1; }
  .hours-cards { grid-template-columns: repeat(2, 1fr); }
  .inner { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* ── Hero layout variants (Claude Code adds class to .site-hero) ── */
.site-hero.hero-reversed .hero-split { direction: rtl; }
.site-hero.hero-reversed .hero-text-side {
  direction: ltr;
  text-align: left;
  align-items: flex-start;
  /* Mirror the left-padding formula to the right so the text content edge
     aligns with the nav's right edge (where the Get in touch button sits). */
  padding: 5rem max(2rem, calc((100vw - 1060px) / 2 + 2rem)) 5rem 3rem;
}

.site-hero.hero-wide .hero-split { grid-template-columns: 3fr 2fr; }

/* ── Shape mood (Claude Code adds class to <body>) ─────────────── */
body.mood-sharp  { --radius: 4px; }
body.mood-soft   { --radius: 14px; }
body.mood-bubbly { --radius: 24px; }

/* ── Shadow weight (Claude Code adds class to <body>) ──────────── */
body.shadow-flat {
  --shadow-sm: none;
  --shadow-md: none;
}
body.shadow-bold {
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.10);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.16);
}

/* ── Typeface (Claude Code adds class to <body>) ───────────────── */
body.font-inter         { font-family: 'Inter', system-ui, sans-serif; }
body.font-plus-jakarta  { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
body.font-dm-sans       { font-family: 'DM Sans', system-ui, sans-serif; }

/* ── Display serif headings (system stack — editorial pairing) ── */
/* Body stays in the base sans; headings switch to a serif for character */
body.font-display-serif h1,
body.font-display-serif h2,
body.font-display-serif h3,
body.font-display-serif h4,
body.font-display-serif .nav-name,
body.font-display-serif .footer-name {
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', ui-serif, serif;
  font-weight: 600;
}

/* ── Gallery featured layout ─────────────────────────────────── */
body.gallery-featured .gallery-grid .gallery-item:first-child {
  grid-column: 1 / -1;
}
body.gallery-featured .gallery-grid .gallery-item:first-child img {
  aspect-ratio: 16 / 6;
}

/* ── Hero colour block ───────────────────────────────────────── */
/* Replace the photo side with a bold secondary-colour block */
body.hero-colour .hero-image-side {
  background: linear-gradient(
    160deg,
    var(--secondary) 0%,
    color-mix(in srgb, var(--secondary) 70%, var(--primary)) 100%
  );
}
body.hero-colour .hero-image-side img { display: none; }

/* ── Hero gradient (primary → secondary diagonal) ────────────── */
body.hero-gradient .hero-image-side {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    color-mix(in srgb, var(--primary) 40%, var(--secondary)) 55%,
    var(--secondary) 100%
  );
}
body.hero-gradient .hero-image-side img { display: none; }

/* ── Section accent (bold) ────────────────────────────────────── */
/* About and hours (odd sections) become full-bleed primary blocks;
   gallery and contact (even) stay white so photos/map keep contrast */
body.section-tinted .site-section:nth-of-type(odd) {
  /* Starts at primary-dark so the boundary with the solid-primary hero
     reads as a distinct plane (they used to start at the same colour). */
  background: linear-gradient(155deg, var(--primary-dark) 0%, var(--primary) 100%);
}
body.section-tinted .site-section:nth-of-type(even) {
  background: var(--white);
}
body.section-tinted .site-section:nth-of-type(odd) .section-title,
body.section-tinted .site-section:nth-of-type(odd) .section-body {
  color: var(--text-on-primary);
}
body.section-tinted .site-section:nth-of-type(odd) .section-eyebrow {
  background: color-mix(in srgb, var(--text-on-primary) 18%, transparent);
  color: var(--text-on-primary);
}
body.section-tinted.accent-line .site-section:nth-of-type(odd) .section-eyebrow {
  border-bottom-color: var(--text-on-primary);
}

/* ── Embed players ───────────────────────────────────────────── */
/* In template B the embed sits below the hero-split, full width */
.site-hero > .hero-embed {
  background: var(--primary-dark);
  padding: 2rem max(2rem, calc((100vw - 1060px) / 2 + 2rem));
}
.hero-embed {
  width: 100%;
}
.hero-embed iframe {
  display: block;
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  border: none;
  border-radius: var(--radius);
}
.gallery-embed {
  margin-bottom: 2rem;
}
.gallery-embed iframe {
  display: block;
  width: 100%;
  border: none;
  border-radius: var(--radius);
}

/* ── Heading caps ────────────────────────────────────────────── */
/* Uppercase tight-tracked headings — editorial / music / arts feel */
body.heading-caps .section-eyebrow,
body.heading-caps .section-title {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
body.heading-caps .section-title { font-weight: 700; }

/* ── Accent line ─────────────────────────────────────────────── */
/* Coloured rule under each section eyebrow */
body.accent-line .section-eyebrow {
  display: inline-block;
  padding-bottom: 0.35em;
  border-bottom: 2px solid var(--primary);
}

/* ── Footer logo ─────────────────────────────────────────────── */
.footer-logo {
  display: block;
  width: 220px;
  max-width: 85vw;
  object-fit: contain;
  object-position: center;
  margin: 0 auto 1.25rem;
}

/* ── Footer split (logo left, name right on desktop) ─────────── */
@media (min-width: 640px) {
  body.footer-split .site-footer { text-align: left; }
  body.footer-split .site-footer .inner {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 2rem;
    align-items: center;
  }
  body.footer-split .site-footer .footer-logo {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
    width: 100px;
  }
  body.footer-split .site-footer .footer-name {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    align-self: end;
  }
  body.footer-split .site-footer .ql-footer-divider {
    grid-column: 1 / -1;
    margin-top: 1.5rem;
  }
  body.footer-split .site-footer .ql-footer-tagline,
  body.footer-split .site-footer .ql-webring,
  body.footer-split .site-footer .footer-attribution {
    grid-column: 1 / -1;
    text-align: center;
  }
}

/* ── EPK download button ─────────────────────────────────────── */
.epk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  padding: 9px 18px;
  border: 1.5px solid var(--primary);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.epk-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.epk-btn:hover { background: var(--primary); color: var(--text-on-primary); text-decoration: none; }

/* ── QuickLaunch footer tagline ──────────────────────────────── */
.ql-footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 1.25rem 0 1rem;
}
.ql-footer-tagline {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
  font-style: normal;
  letter-spacing: 0.01em;
}
.ql-footer-tagline em {
  font-style: italic;
  color: rgba(255,255,255,0.7);
}

/* ── QuickLaunch webring ─────────────────────────────────────── */
.ql-webring {
  text-align: center;
  margin-bottom: 1rem;
}
.ql-webring-btns {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.ql-webring-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  padding: 5px 14px;
  transition: border-color 0.15s, color 0.15s, opacity 0.15s;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.ql-webring-btn:hover {
  border-color: rgba(255,255,255,0.8);
  color: #fff;
  text-decoration: none;
}
.ql-webring-btn.loading { opacity: 0.45; pointer-events: none; }
.ql-webring-icon {
  width: 11px;
  height: 11px;
  opacity: 0.75;
  flex-shrink: 0;
}
