/* =====================================================
   Living Stones Church — Bespoke Dark Theme
   Design 3 Hybrid: stained glass, teal accents, icon nav
   Applied via ThemeManager when branding.theme = 'livingstones'
   ===================================================== */

/* ── Design Tokens ───────────────────────────────── */

:root {
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --ls-teal: #86CAD7;
  --ls-navy: #0F172A;
  --ls-charcoal: #373839;
  --ls-overlay: rgba(15, 23, 42, 0.6);
  --container-max-width: 1200px;
}

/* ── Global Dark Background ──────────────────────── */

html, body {
  background-color: var(--ls-navy);
  color: #ffffff;
}

h1, h2, h3, h4, h5, h6 { color: #ffffff; font-weight: 700; }

/* Heading type scale. The app.css Tailwind preflight resets every heading to
   font-size:inherit (body size), and nothing restored a scale — so any heading
   without a component class (inner-hero <h1>, rich_content section titles, etc.)
   collapsed to 1rem. These element rules restore a consistent hierarchy;
   component classes (.callouts-heading, .callout-title, .ls-hero-title,
   .page-content h2/h3, .rich-section-content h2 …) have higher specificity and
   keep their own sizes. */
h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.55rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

a:hover { color: var(--ls-teal); }

/* ── Container ───────────────────────────────────── */

.ls-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Section Base ────────────────────────────────── */

.ls-section { padding: 6rem 0; }

.ls-section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ls-teal);
  margin-bottom: 3rem;
}

/* ── Notification Bar ────────────────────────────── */

.ls-notification-bar {
  background-color: var(--ls-teal);
  color: var(--ls-navy);
  padding: 0.75rem 0;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  position: relative;
  z-index: 101;
}

.ls-notification-bar a { color: var(--ls-navy); text-decoration: underline; margin-left: 0.5rem; }

.ls-badge {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Main Wrapper (positions header below notification bar) ── */

#ls-main-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header — transparent overlay ────────────────── */

.ls-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}

.ls-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Logo — icon + stacked wordmark ──────────────── */

.ls-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  text-decoration: none;
}

.ls-logo-icon, .ls-logo-img {
  height: 42px;
  width: auto;
}

.ls-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.ls-logo-top {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ls-logo-bottom {
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* ── Icon Nav (Design 3 — circular icon buttons) ── */

.ls-icon-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.ls-icon-nav a,
.ls-icon-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.ls-icon-nav a:hover,
.ls-icon-nav button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.ls-icon-nav svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.ls-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
  padding: 0;
}

.ls-hamburger:hover { background-color: rgba(255, 255, 255, 0.1); }

/* ── Full-Screen Mobile Overlay ──────────────────── */

.ls-mobile-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.ls-mobile-overlay.active { display: flex; opacity: 1; }

.ls-mobile-overlay-content {
  text-align: center;
  position: relative;
  width: 100%;
}

.ls-mobile-overlay-content ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ls-mobile-overlay-content a {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.ls-mobile-overlay-content a:hover { color: var(--ls-teal); }

.ls-mobile-close {
  position: absolute;
  top: -6rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
}

.ls-mobile-cta {
  background-color: var(--ls-teal);
  color: var(--ls-navy);
  padding: 1rem 3rem;
  border-radius: 50px;
  display: inline-block;
}

/* ── Hero ────────────────────────────────────────── */

.ls-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.ls-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(74, 76, 77, 1), var(--ls-navy));
  z-index: 0;
}

.ls-hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ls-hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.ls-hero-image-bg {
  position: absolute;
  inset: -20px;
  background-image: url('/stained_glass_bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: blur(8px);
  transform: scale(1.1);
  z-index: 1;
}

.ls-hero-image-bg--photo {
  inset: 0;
  filter: none;
  transform: none;
  background-attachment: scroll;
}

.ls-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--ls-overlay);
  z-index: 2;
}

.ls-hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 0 1.5rem;
}

.ls-hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.05;
  margin-bottom: 0.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, var(--ls-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ls-hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.9);
}

.ls-hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────── */

.ls-btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.ls-btn-primary {
  background-color: var(--ls-teal);
  color: var(--ls-navy);
  border-color: var(--ls-teal);
}

.ls-btn-primary:hover { transform: translateY(-2px); opacity: 0.9; color: var(--ls-navy); }

.ls-btn-secondary {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.ls-btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; }

.ls-btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.9);
}

.ls-btn-outline:hover { border-color: rgba(255, 255, 255, 0.8); color: #ffffff; }

/* Also style framework .btn inside LS layout */
.btn-primary {
  background-color: var(--ls-teal);
  color: var(--ls-navy);
  border-radius: 50px;
}
.btn-primary:hover { background-color: #ffffff; color: var(--ls-navy); }
.btn-outline { border-color: var(--ls-teal); color: var(--ls-teal); border-radius: 50px; }
.btn-outline:hover { background: var(--ls-teal); color: var(--ls-navy); }

/* ── Service Times ───────────────────────────────── */

.ls-service-times { background-color: var(--ls-navy); }

.ls-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.ls-service-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.ls-service-day {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.ls-service-time {
  font-size: 3rem;
  font-weight: 800;
  color: var(--ls-teal);
  line-height: 1;
}

.ls-service-lang {
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.9;
}

/* ── Framework Section Overrides (for fallback sections) ── */

.hero { background: linear-gradient(135deg, var(--ls-navy) 0%, var(--ls-charcoal) 100%); }
.hero-content .subtitle { color: var(--ls-teal); }

.section { color: #ffffff; }

.inner-hero-banner { background: linear-gradient(135deg, var(--ls-navy) 0%, var(--ls-charcoal) 100%); }
.inner-hero-overlay {
  background: linear-gradient(180deg, rgba(15,23,42,0.45) 0%, rgba(15,23,42,0.65) 100%);
}
.inner-hero-overlay h1 {
  font-size: clamp(2.2rem, 6vw, 3.25rem);
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
  position: relative;
  z-index: 2;
}
/* Inner-page WYSIWYG content sits on a light reading panel (theme body is dark navy) */
.inner-content {
  background: #ffffff;
  color: var(--color-text, #393939);
  padding: 3.5rem 1.5rem 4rem;
}
.inner-content > .page-content { max-width: 760px; margin: 0 auto; }
.inner-content h2, .inner-content h3 { color: #0f172a; }
@media (max-width: 768px) { .inner-content { padding: 2.5rem 1.25rem 3rem; } }

/* Framework cards on dark bg */
.service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #ffffff;
}
.service-card:hover { background: rgba(255, 255, 255, 0.08); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); }
.service-card .icon-wrap { background: rgba(134, 202, 215, 0.15); color: var(--ls-teal); border-radius: 50%; }
.service-card:hover .icon-wrap { background: var(--ls-teal); color: var(--ls-navy); }

/* Framework footer on dark bg */
.footer {
  background-color: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer h3 { color: var(--ls-teal); font-size: 1.05rem; }
.footer-links a { color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover { color: var(--ls-teal); }
.social-links a { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.7); }
.social-links a:hover { background: var(--ls-teal); color: var(--ls-navy); }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.4); }
.footer-bottom a { color: var(--ls-teal); }

/* Footer brand row — small logo + name/location stacked next to it */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.footer-brand-name {
  color: var(--ls-teal);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.footer-brand-loc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* Smaller logo paired with brand text */
.footer .footer-brand .footer-logo {
  height: 36px;
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

/* Quick Links → 2 columns on desktop */
.footer-links--two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 0.6rem;
}
.footer-links--two-col li { margin-bottom: 0; }

@media (max-width: 600px) {
  .footer-links--two-col { grid-template-columns: 1fr; }
}

/* Framework nav (for fallback if framework layout used) */
.nav-link { color: rgba(255, 255, 255, 0.9); }
.nav-link:hover { color: var(--ls-teal); }
.nav-link::after { background: var(--ls-teal); }
.dropdown { background: rgba(15, 23, 42, 0.95); border-color: rgba(255, 255, 255, 0.1); }
.dropdown li a { color: rgba(255, 255, 255, 0.8); }
.dropdown li a:hover { background: rgba(134, 202, 215, 0.15); color: var(--ls-teal); }
.mobile-toggle span { background-color: #ffffff; }
.header { background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent); border: none; }
.header.scrolled { background: rgba(15, 23, 42, 0.95); border: none; }

/* ── Contact Split ───────────────────────────────── */

.contact-split .info-side { background: var(--ls-teal); color: var(--ls-navy); }
.contact-split .form-side { background: var(--ls-navy); color: #ffffff; }
.contact-split .form-side input,
.contact-split .form-side textarea { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #fff; }
.contact-split .form-side input:focus,
.contact-split .form-side textarea:focus { border-color: var(--ls-teal); box-shadow: 0 0 0 3px rgba(134,202,215,0.2); }

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 768px) {
  .ls-hero { height: 90vh; min-height: 500px; }
  .ls-hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .ls-hero-subtitle { font-size: clamp(1rem, 4vw, 1.4rem); margin-bottom: 2rem; }
  .ls-hero-actions { flex-direction: column; align-items: center; gap: 1rem; }
  .ls-hero-actions .ls-btn { width: 100%; max-width: 280px; text-align: center; }

  .ls-header-content { padding: 0 1rem; }
  .ls-logo-icon, .ls-logo-img { height: 32px; }
  .ls-logo-top { font-size: 1rem; }
  .ls-logo-bottom { font-size: 0.7rem; }
  .ls-icon-nav ul { gap: 0.5rem; }
  .ls-icon-nav a, .ls-icon-nav button { width: 36px; height: 36px; }
  .ls-icon-nav svg { width: 20px; height: 20px; }

  .ls-services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
