/* ================================================================
   Template A — Clean & Minimal
   Quicklaunch / Starlifter.co

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

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

/* ── Colour tokens (trades default — Claude Code sets these) ─── */
:root {
  --primary:        #2c2c6e;
  --primary-dark:   #25255d;
  --primary-light:  #f4f4f8;
  --secondary:      #f0a080;
  --secondary-light:#fefaf9;
  --text:           #1a1a1a;
  --body:           #3a3a3a;
  --muted:          #6b7280;
  --border:         #e2e8ed;
  --surface:        #f7f9fa;
  --white:          #ffffff;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

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

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.7);
}

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

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

.site-nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.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; }

.nav-name {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text);
  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; }

/* ── Hero ────────────────────────────────────────────────────── */
.site-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s;
}

/* Gradient fallback — Claude Code adds .no-hero class when no hero image */
.site-hero.no-hero .hero-bg {
  background-image: linear-gradient(
    145deg,
    var(--primary-dark) 0%,
    var(--primary) 60%,
    color-mix(in srgb, var(--primary) 70%, var(--secondary)) 100%
  );
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.site-hero.no-hero .hero-overlay { background: rgba(0,0,0,0.2); }

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 3rem 2rem;
  max-width: 760px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  font-weight: 300;
  opacity: 0.92;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

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

.section-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 1.75rem;
}

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

/* ── Gallery ─────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 2.5rem;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  outline: none;
}

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

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

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

/* ── Hours ───────────────────────────────────────────────────── */
.hours-list {
  list-style: none;
  max-width: 440px;
  margin-top: 2rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  gap: 1rem;
}

.hours-row:last-child { border-bottom: none; }

.hours-day { font-weight: 500; color: var(--text); min-width: 90px; }

.hours-time { color: var(--muted); }

.hours-time.closed { font-style: italic; }

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 1.5rem;
}

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

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

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

.contact-value { font-size: 1.0625rem; }

.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.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  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: 18px; height: 18px; }

.contact-map {
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
}

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

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.footer-name {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

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

.footer-attribution a {
  color: inherit;
  font-weight: 500;
  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;
}

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

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

#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: 44px;
  height: 44px;
  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.22); }

#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: 768px) {
  .site-section { padding: 3.5rem 0; }

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

  .gallery-grid { gap: 4px; }

  .nav-tagline { display: none; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-title { font-size: 2rem; }

  .inner { padding-left: 1.25rem; padding-right: 1.25rem; }
}
