/* ═══════════════════════════════════════════════════════════════════════════
   NovaByte CMS — Public Site CSS
   Uses CSS custom properties from db.php get_css_variables().
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

body {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: var(--body-size, 16px);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}

/* ── Container ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading, 'Exo 2', sans-serif);
  line-height: 1.15;
  color: var(--text-primary);
}
h1 { font-size: var(--h1-size, 3.5rem); font-weight: 700; }
h2 { font-size: var(--h2-size, 2.25rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }

code, pre {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.875em;
}
code {
  background: var(--surface-2);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--color-primary);
}
pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
pre code { background: none; padding: 0; color: inherit; }

blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--surface-2);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--btn-radius, 6px);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-btn-text, #000);
  border-color: var(--color-primary);
}
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-btn-text, #000);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.0625rem; }

/* ── Section spacing ──────────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Site Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(var(--bg-rgb, 3,7,18), 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img  { max-height: 44px; width: auto; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

/* Navigation */
.site-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.nav-link:hover,
.nav-link.active { color: var(--text-primary); }
.nav-link.active { color: var(--color-primary); }

.chevron {
  width: 14px; height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.2s;
}
.nav-item.open .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 200px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  z-index: 999;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.open .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.6rem 0.875rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.15s;
}
.dropdown-link:hover,
.dropdown-link.active {
  background: var(--surface-2);
  color: var(--color-primary);
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--color-primary); border-color: var(--color-primary); }
.theme-toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }

.icon-sun  { stroke-linecap: round; }
.icon-moon { fill: currentColor; stroke: none; }
[data-theme='dark']  .icon-moon { display: none; }
[data-theme='light'] .icon-sun  { display: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ── Hero Slider ──────────────────────────────────────────────────────────── */
#hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3,7,18,0.75) 0%, rgba(3,7,18,0.45) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 2rem;
}
.hero-slide-content.align-left   { text-align: left; }
.hero-slide-content.align-center { text-align: center; max-width: 800px; margin: 0 auto; }
.hero-slide-content.align-right  { text-align: right; }

.hero-slide-content h1 {
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-slide-content p {
  color: rgba(255,255,255,0.82);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
}
.align-center .hero-slide-content p { margin-left: auto; margin-right: auto; }

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.align-center .hero-btns { justify-content: center; }
.align-right  .hero-btns { justify-content: flex-end; }

/* Slider controls */
.slider-prev, .slider-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }
.slider-prev:hover, .slider-next:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.slider-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%; transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
}
.slider-dot.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 4px;
}

/* ── Two-column Hero ──────────────────────────────────────────────────────── */
.hero-two-col {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.hero-text h1 { margin-bottom: 1.25rem; }
.hero-text p  { font-size: 1.125rem; margin-bottom: 2rem; }
.hero-btns    { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  display: block;
}
.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  display: block;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

/* ── Cards grid ───────────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.card h3 { margin-bottom: 0.625rem; font-size: 1.125rem; }
.card p  { font-size: 0.9375rem; color: var(--text-secondary); margin: 0; }

/* ── Reviews / Testimonials ───────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.review-stars { color: #f59e0b; font-size: 1.125rem; letter-spacing: 1px; }
.review-text  { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.75; flex: 1; }
.review-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}
.review-avatar-placeholder {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}
.review-name { font-weight: 600; font-size: 0.9375rem; }
.review-role { font-size: 0.8125rem; color: var(--text-muted); }

/* ── Gallery grid ─────────────────────────────────────────────────────────── */
.gallery-grid { display: grid; gap: 0.75rem; }
.gallery-grid-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-grid-6 { grid-template-columns: repeat(6, 1fr); }

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.gallery-item:hover .gallery-item-overlay { background: rgba(0,0,0,0.35); }

/* Albums grid */
.albums-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.album-card  {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.album-card:hover { border-color: var(--color-primary); transform: translateY(-3px); }
.album-cover { position: relative; height: 200px; background: var(--surface-2); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-badge {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: rgba(0,0,0,0.6);
  color: #fff; font-size: 12px;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.album-info { padding: 1.25rem; }
.album-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.35rem; }
.album-desc  { font-size: 0.875rem; color: var(--text-muted); }

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
#lightbox.open { opacity: 1; pointer-events: all; }

.lb-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lb-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  margin-top: 0.875rem;
  text-align: center;
}
.lb-close {
  position: fixed;
  top: 1.25rem; right: 1.25rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none; color: #fff;
  font-size: 1.125rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.lb-close:hover { background: rgba(255,255,255,0.25); }

.lb-prev, .lb-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1.25rem;
  cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }
.lb-prev:hover, .lb-next:hover { background: var(--color-primary); border-color: var(--color-primary); }

/* ── Blog ─────────────────────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.post-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { border-color: var(--color-primary); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.2); }
.post-card-img { height: 200px; background: var(--surface-2); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.625rem;
}
.post-card-body h3 { font-size: 1.125rem; margin-bottom: 0.625rem; line-height: 1.4; }
.post-card-body h3 a { color: inherit; transition: color 0.2s; }
.post-card-body h3 a:hover { color: var(--color-primary); }
.post-excerpt { font-size: 0.9rem; color: var(--text-secondary); flex: 1; margin-bottom: 1.25rem; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* Post content styles */
.post-content { max-width: 760px; }
.post-content h2 { font-size: 1.75rem; margin: 2rem 0 0.875rem; }
.post-content h3 { font-size: 1.375rem; margin: 1.75rem 0 0.75rem; }
.post-content h4 { font-size: 1.125rem; margin: 1.5rem 0 0.625rem; }
.post-content p  { margin-bottom: 1.25rem; font-size: 1.0625rem; line-height: 1.8; }
.post-content ul, .post-content ol { margin: 1rem 0 1.25rem 1.5rem; }
.post-content li { margin-bottom: 0.5rem; color: var(--text-secondary); }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content blockquote { margin: 1.75rem 0; }
.post-content img { border-radius: 10px; margin: 1.5rem 0; }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9375rem; }
.post-content th { background: var(--surface-2); padding: 0.75rem 1rem; text-align: left; border: 1px solid var(--border); }
.post-content td { padding: 0.625rem 1rem; border: 1px solid var(--border); color: var(--text-secondary); }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.sidebar-widget {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.sidebar-search { display: flex; gap: 0.5rem; }
.sidebar-search input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}
.sidebar-search input:focus { border-color: var(--color-primary); }
.sidebar-search button {
  background: var(--color-primary);
  color: var(--color-btn-text, #000);
  border: none;
  border-radius: 8px;
  padding: 0.625rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
}

.cat-list { display: flex; flex-direction: column; gap: 0.35rem; }
.cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  transition: all 0.2s;
}
.cat-link:hover { background: var(--surface-2); color: var(--color-primary); }
.cat-count { font-size: 0.8125rem; color: var(--text-muted); }

.recent-post-item { display: flex; gap: 0.875rem; margin-bottom: 1rem; }
.recent-post-item:last-child { margin-bottom: 0; }
.recent-post-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--surface-2); }
.recent-post-title { font-size: 0.875rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.25rem; }
.recent-post-date  { font-size: 0.75rem; color: var(--text-muted); }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--color-primary); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  gap: 1rem;
}
.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--color-primary); color: #000; }
.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}
.faq-answer-inner { padding: 0 1.5rem 1.5rem; color: var(--text-secondary); line-height: 1.7; }

/* ── Contact Form ─────────────────────────────────────────────────────────── */
.contact-form .form-group { margin-bottom: 1.125rem; }
.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.12);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

.form-msg {
  padding: 0.875rem 1.125rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  margin-top: 1rem;
}
.form-msg-success { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.form-msg-error   { background: rgba(239,68,68,0.12);  color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }

/* ── Spec table ───────────────────────────────────────────────────────────── */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border: none; }
.spec-table th {
  width: 40%; padding: 0.875rem 1rem;
  text-align: left; font-size: 0.875rem;
  font-weight: 600; color: var(--text-muted);
  background: var(--surface-2);
}
.spec-table td { padding: 0.875rem 1rem; color: var(--text-primary); font-size: 0.9375rem; }

/* ── Process steps ────────────────────────────────────────────────────────── */
.steps-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}
.step-body h4 { margin-bottom: 0.375rem; }
.step-body p  { color: var(--text-muted); font-size: 0.9375rem; margin: 0; }

/* ── Category pills ───────────────────────────────────────────────────────── */
.cat-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cat-pill {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.cat-pill:hover,
.cat-pill.active {
  background: var(--color-primary);
  color: var(--color-btn-text, #000);
  border-color: var(--color-primary);
}

/* ── Tags ─────────────────────────────────────────────────────────────────── */
.tag-list { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag {
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}
.tag:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ── Share buttons ────────────────────────────────────────────────────────── */
.share-btns { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--surface-2);
}
.share-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ── Author box ───────────────────────────────────────────────────────────── */
.author-box {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.author-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}
.author-name  { font-weight: 700; font-size: 1.0625rem; margin-bottom: 0.25rem; }
.author-label { font-size: 0.8125rem; color: var(--text-muted); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-cols-1 { grid-template-columns: 1fr; }
.footer-cols-2 { grid-template-columns: repeat(2, 1fr); }
.footer-cols-3 { grid-template-columns: repeat(3, 1fr); }
.footer-cols-4 { grid-template-columns: repeat(4, 1fr); }

.footer-widget-title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.footer-brand .footer-logo { max-height: 44px; margin-bottom: 0.875rem; }
.footer-site-name { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--color-primary); display: block; margin-bottom: 0.75rem; }
.footer-tagline   { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.footer-social    { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.social-icon:hover { background: var(--color-primary); border-color: var(--color-primary); color: #000; }

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.9375rem; color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--color-primary); }

.footer-contact-list { display: flex; flex-direction: column; gap: 0.625rem; font-size: 0.9375rem; }
.footer-contact-list li { display: flex; gap: 0.5rem; color: var(--text-secondary); align-items: flex-start; }
.footer-contact-list a { color: inherit; transition: color 0.2s; }
.footer-contact-list a:hover { color: var(--color-primary); }

.footer-posts { display: flex; flex-direction: column; gap: 0.875rem; }
.footer-posts li { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-posts a { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.footer-posts a:hover { color: var(--color-primary); }
.post-date { font-size: 0.75rem; color: var(--text-muted); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ── Scroll animations ────────────────────────────────────────────────────── */
[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos="fade-right"] { transform: translateX(-24px); }
[data-aos="fade-left"]  { transform: translateX(24px); }
[data-aos="zoom-in"]    { transform: scale(0.94); }
[data-aos].aos-animate  { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  h1 { font-size: calc(var(--h1-size, 3.5rem) * 0.75); }
  h2 { font-size: calc(var(--h2-size, 2.25rem) * 0.85); }
  .blog-layout { grid-template-columns: 1fr; }
  .gallery-grid-5, .gallery-grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .site-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--surface-1);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 400;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; }
  .nav-list { flex-direction: column; gap: 0; width: 100%; }
  .nav-link { width: 100%; }
  /* On mobile, disable hover dropdown - use click/open class only */
  .nav-item.has-dropdown:hover .dropdown { opacity: 0; pointer-events: none; transform: translateY(8px); }
  .nav-item.open .dropdown { opacity: 1 !important; pointer-events: all !important; transform: translateY(0) !important; }
  .dropdown { position: static; box-shadow: none; opacity: 1 !important; pointer-events: all !important; transform: none !important; border: none; background: var(--surface-2); margin-top: 0.25rem; display: none; }
  .nav-item.open .dropdown { display: flex !important; }
  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { order: -1; }
  .hero-stats { gap: 1.25rem; }

  .cards-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .gallery-grid-3, .gallery-grid-4, .gallery-grid-5, .gallery-grid-6 { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-cols-2, .footer-cols-3, .footer-cols-4 { grid-template-columns: 1fr; }

  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .section { padding: 3.5rem 0; }
  .gallery-grid-2, .gallery-grid-3 { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.text-primary   { color: var(--color-primary) !important; }
.text-secondary-color { color: var(--color-secondary) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-center    { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.page-top { padding-top: 72px; }