/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+Pro:wght@400;600;700&display=swap');

/* === VARIABLES === */
:root {
  --bg: #0a0a0a;
  --bg-surface: #141414;
  --bg-elevated: #1c1c1c;
  --text: #f0f0f0;
  --text-muted: #8a8a8a;
  --accent: #c1121f;
  --accent-hover: #da1a28;
  --accent-gold: #c49a6c;
  --border: #262626;
  --nav-bg: rgba(10, 10, 10, 0.92);
  --hero-brightness: 0.55;
  --hero-gradient: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.1) 40%,
    rgba(10, 10, 10, 0.85) 100%
  );
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;
  --radius: 12px;
  --max-width: 1200px;
  --nav-height: 72px;
  --transition: 0.25s ease;
}

/* === LIGHT THEME === */
[data-theme="light"] {
  --bg: #f7f5f4;
  --bg-surface: #ffffff;
  --bg-elevated: #f0eeed;
  --text: #141414;
  --text-muted: #555555;
  --accent: #a31018;
  --accent-hover: #c1121f;
  --accent-gold: #a07544;
  --border: #dcd9d6;
  --nav-bg: rgba(247, 245, 244, 0.92);
  --hero-brightness: 0.65;
  --hero-gradient: linear-gradient(
    180deg,
    rgba(247, 245, 244, 0.8) 0%,
    rgba(247, 245, 244, 0.65) 40%,
    rgba(247, 245, 244, 0.95) 100%
  );
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === NAVIGATION === */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}

.nav-inner {
  width: 100%; max-width: var(--max-width);
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex; gap: 32px; align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links a.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}

.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.theme-toggle {
  background: none; border: 1px solid var(--border);
  border-radius: 100px; cursor: pointer;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  flex-shrink: 0; padding: 0;
}

.theme-toggle svg {
  width: 18px; height: 18px; display: block;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--bg-surface);
}

.nav-right {
  display: flex; align-items: center; gap: 16px;
}

/* === HERO === */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: var(--nav-height);
}

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

.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: brightness(var(--hero-brightness)) contrast(1.1);
}

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

.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-width);
  margin: 0 auto; padding: 120px 24px 80px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  border-radius: 100px;
  padding: 6px 20px; margin-bottom: 32px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700; font-size: clamp(42px, 7vw, 80px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 20px; max-width: 700px;
}

.hero-title span { color: var(--accent); }

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 400; font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-muted);
  max-width: 520px; margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: none; border-radius: var(--radius);
  padding: 16px 36px; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.hero-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex; gap: 48px; margin-top: 64px;
  flex-wrap: wrap;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 32px;
  color: var(--text);
}

.hero-stat-label {
  font-family: var(--font-body);
  font-weight: 600; font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* === SECTIONS === */
.section {
  padding: 100px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700; font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 16px; color: var(--text-muted);
  max-width: 500px; margin-bottom: 56px;
  line-height: 1.6;
}

/* === DIRECTIONS GRID === */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.dir-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color var(--transition), transform var(--transition);
  position: relative; overflow: hidden;
}

.dir-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.dir-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent);
  opacity: 0; transition: opacity var(--transition);
}

.dir-card:hover::before { opacity: 1; }

.dir-card-icon {
  margin-bottom: 16px; color: var(--accent);
}

.dir-card-icon svg {
  width: 32px; height: 32px; display: block;
}

.dir-card-title {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.dir-card-desc {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 16px;
}

.dir-card-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
}

.dir-tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.dir-tag.online { color: var(--accent-gold); }
.dir-tag.group { color: var(--accent); }

/* === ABOUT PAGE === */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-weight: 700; font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.1; margin-bottom: 24px;
}

.about-text p {
  font-size: 16px; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 20px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 32px;
}

.about-highlight {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.about-highlight-value {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 28px;
  color: var(--accent);
}

.about-highlight-label {
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* === CONTACTS === */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition);
}

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

.contact-card-icon {
  margin-bottom: 16px; color: var(--accent);
}

.contact-card-icon svg {
  width: 28px; height: 28px; display: block;
}

.contact-card-title {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 18px;
  margin-bottom: 8px;
}

.contact-card-value {
  font-size: 15px; color: var(--text-muted);
  word-break: break-all;
}

.contact-card a {
  color: var(--accent);
  transition: color var(--transition);
}

.contact-card a:hover { color: var(--text); }

/* === BLOG PAGE === */
.blog-header {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 40px;
  text-align: center;
}

.blog-header h1 {
  font-family: var(--font-heading);
  font-weight: 700; font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.02em;
}

.blog-header p {
  color: var(--text-muted);
  margin-top: 12px; font-size: 16px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.blog-card-image {
  aspect-ratio: 16/10;
  background: var(--bg-elevated);
  overflow: hidden;
}

.blog-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-topic {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 18px;
  line-height: 1.3; margin-bottom: 8px;
}

.blog-card-summary {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.5; margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-date {
  font-size: 12px; color: var(--text-muted);
  font-weight: 600; letter-spacing: 0.04em;
}

.blog-empty {
  text-align: center; padding: 80px 24px;
  color: var(--text-muted);
}

.blog-empty-icon {
  margin-bottom: 16px; color: var(--text-muted);
}

.blog-empty-icon svg {
  width: 48px; height: 48px; display: block; margin: 0 auto;
}

.blog-empty-text {
  font-size: 16px;
}

/* === POST PAGE === */
.post-page {
  padding-top: calc(var(--nav-height) + 40px);
  max-width: 720px; margin: 0 auto;
  padding-left: 24px; padding-right: 24px;
}

.post-header {
  margin-bottom: 40px;
}

.post-topic {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.post-title {
  font-family: var(--font-heading);
  font-weight: 700; font-size: clamp(28px, 5vw, 42px);
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.post-meta {
  display: flex; gap: 16px; align-items: center;
  font-size: 13px; color: var(--text-muted);
}

.post-cover {
  border-radius: var(--radius);
  overflow: hidden; margin-bottom: 40px;
  aspect-ratio: 16/9;
}

.post-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.post-content {
  font-size: 17px; line-height: 1.75; color: #ddd;
}

.post-content p { margin-bottom: 20px; }
.post-content h2 {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 24px;
  margin: 40px 0 16px;
}
.post-content h3 {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 20px;
  margin: 32px 0 12px;
}
.post-content ul, .post-content ol {
  margin-bottom: 20px; padding-left: 24px;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; color: var(--text-muted); }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px; margin: 24px 0;
  background: var(--bg-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted); font-style: italic;
}
.post-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}

.post-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 48px; margin-bottom: 60px;
  transition: color var(--transition);
}

.post-back:hover { color: var(--text); }

/* === GALLERY (directions page photos) === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}

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

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item {
  cursor: pointer;
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  user-select: none; -webkit-user-select: none;
}

.lightbox.open {
  opacity: 1; pointer-events: auto;
}

.lightbox img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain; border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease;
}

.lightbox img.switching {
  opacity: 0;
}

.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px;
  background: none; border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.lightbox-close:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  transition: background 0.25s ease, border-color 0.25s ease;
  z-index: 1001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 40px; height: 40px;
    font-size: 16px;
  }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox img {
    max-width: 92vw; max-height: 70vh;
  }
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}

.footer-copy {
  font-size: 13px; color: var(--text-muted);
}

.footer-social {
  display: flex; gap: 20px;
}

.footer-social a {
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-social a:hover { color: var(--text); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--bg);
    backdrop-filter: blur(12px);
    flex-direction: column; gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0; pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1; pointer-events: auto;
  }

  .nav-links a {
    display: block; padding: 14px 24px;
    font-size: 16px;
  }

  .nav-toggle { display: flex; }

  .hero-content { padding: 100px 24px 60px; }

  .hero-stats { gap: 28px; }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .directions-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column; text-align: center;
  }
}
