/* ================================================================
   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.
   ================================================================ */

/* ── 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:        #1D4E89;
  --primary-dark:   #194274;
  --primary-light:  #F4F6F9;
  --secondary:      #E8A838;
  --secondary-light:#FEFBF5;
  --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 ────────────────────────────────────────────── */
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(--white);
}

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

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

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

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

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

.hero-text-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3rem 5rem 4rem;
  color: var(--white);
  max-width: 600px;
}

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

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

.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, 3.5vw, 2.375rem);
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

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

/* ── 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: 16px;
  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:nth-child(2) img { aspect-ratio: 1 / 1; }
.gallery-item:nth-child(3) img { aspect-ratio: 1 / 1; }

.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: 14px;
  padding: 1rem 0.875rem;
  border: 1.5px solid var(--border);
  text-align: center;
}

.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: 20px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  border: 1.5px solid var(--border);
  transition: border-color 0.15s;
}

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

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  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: 46px;
  height: 46px;
  border-radius: 14px;
  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: 20px; height: 20px; }

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

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

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--primary);
  color: var(--white);
  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; }
}

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