/* ============================================
   BrideInRussia.com — Modern Design System
   Mobile-first, responsive, lightweight
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #333;
  line-height: 1.7;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #c0392b; text-decoration: none; transition: color 0.2s; }
a:hover { color: #e74c3c; }
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', Georgia, serif; color: #2c2c2c; line-height: 1.3; }

/* === Container === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* === Topbar === */
.topbar {
  background: #2d2d2d;
  color: #aaa;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #ccc; }
.topbar a:hover { color: #fff; }
.topbar .social-links { display: flex; gap: 12px; align-items: center; }
.topbar .social-links a { font-size: 14px; }
.topbar .lang-switch { display: flex; gap: 10px; align-items: center; }
.topbar .lang-switch a { display: flex; align-items: center; gap: 4px; }
.topbar .lang-switch a.active { color: #fff; font-weight: 600; }
.topbar .lang-switch img { width: 22px; height: 14px; vertical-align: middle; }

/* === Main Navigation === */
.site-nav {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.site-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.site-nav .logo img { height: 50px; width: auto; }
.site-nav .nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}
.site-nav .nav-links li a {
  display: block;
  padding: 8px 16px;
  color: #555;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.site-nav .nav-links li a:hover,
.site-nav .nav-links li a.active {
  color: #c0392b;
  background: #fdf2f2;
}
/* Mobile menu toggle */
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; padding: 8px; color: #333; }

/* === Hero Section (Homepage) === */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 20px;
  max-width: 700px;
}
.hero p { font-size: 1.15rem; opacity: 0.92; max-width: 600px; margin-bottom: 24px; }
.hero .btn-hero {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s;
}
.hero .btn-hero:hover { background: #e74c3c; color: #fff; }

/* === Section spacing === */
.section { padding: 60px 0; }
.section-alt { padding: 60px 0; background: #f8f8f8; }
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.section-title p {
  color: #777;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === Card Grid (Blog listing) === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.card .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card .card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card .card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
}
.card .card-body h3 a { color: #333; }
.card .card-body h3 a:hover { color: #c0392b; }
.card .card-body p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .card-body .btn-read {
  display: inline-block;
  margin-top: 14px;
  color: #c0392b;
  font-weight: 600;
  font-size: 0.9rem;
}
.card .card-body .btn-read:hover { color: #e74c3c; }
.btn-read::after { content: ' \2192'; }

/* === Article Page === */
.article-header {
  padding: 40px 0 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 30px;
}
.article-header .breadcrumb {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 16px;
}
.article-header .breadcrumb a { color: #888; }
.article-header .breadcrumb a:hover { color: #c0392b; }
.article-header h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  max-width: 800px;
}
.article-header .meta {
  font-size: 0.9rem;
  color: #888;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.article-header .meta .reading-time {
  background: #c0392b;
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.article-hero {
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.article-summary {
  background: #f8f9fa;
  border-left: 4px solid #c0392b;
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 30px;
  font-style: italic;
  color: #555;
}

.article-toc {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 30px;
}
.article-toc h4 { font-family: 'Source Sans 3', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.article-toc ol { padding-left: 20px; }
.article-toc ol li { margin-bottom: 6px; }
.article-toc ol li a { color: #c0392b; font-size: 0.95rem; }

.article-body h2 { font-size: 1.6rem; margin-top: 40px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #f0f0f0; }
.article-body h3 { font-size: 1.2rem; margin-top: 28px; margin-bottom: 12px; color: #444; }
.article-body p { margin-bottom: 16px; color: #444; }
.article-body ul, .article-body ol { margin-bottom: 16px; padding-left: 24px; color: #444; }
.article-body li { margin-bottom: 6px; }
.article-body img { border-radius: 8px; margin: 24px 0; }
.article-body blockquote {
  border-left: 4px solid #c0392b;
  padding: 16px 20px;
  margin: 24px 0;
  background: #fdf8f8;
  color: #555;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.95rem; }
.article-body table th { background: #f8f8f8; padding: 10px 14px; text-align: left; font-weight: 600; border: 1px solid #e8e8e8; }
.article-body table td { padding: 10px 14px; border: 1px solid #e8e8e8; }

/* FAQ Section */
.faq-section { margin-top: 40px; }
.faq-section h2 { border-bottom: 2px solid #c0392b; }
.faq-item { border-bottom: 1px solid #eee; padding: 16px 0; }
.faq-item h3 { font-size: 1.05rem; cursor: default; color: #333; font-family: 'Source Sans 3', sans-serif; margin-bottom: 8px; }
.faq-item p { color: #555; margin: 0; }

/* Related articles sidebar */
.sidebar { position: sticky; top: 90px; }
.sidebar-widget { background: #f8f8f8; border-radius: 8px; padding: 20px; margin-bottom: 24px; }
.sidebar-widget h4 { font-family: 'Source Sans 3', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #c0392b; }
.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li { margin-bottom: 10px; }
.sidebar-widget ul li a { color: #555; font-size: 0.9rem; }
.sidebar-widget ul li a:hover { color: #c0392b; }

/* === Stories Section === */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.story-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  text-align: center;
  padding-bottom: 20px;
}
.story-card img { width: 100%; height: 200px; object-fit: cover; }
.story-card h4 { font-size: 1rem; margin: 14px 16px 8px; font-family: 'Source Sans 3', sans-serif; }
.story-card p { font-size: 0.85rem; color: #666; padding: 0 16px; line-height: 1.5; max-height: 100px; overflow: hidden; }

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}
.cta-section h2 { color: #fff; margin-bottom: 12px; }
.cta-section p { opacity: 0.9; margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-section .btn-cta {
  display: inline-block;
  background: #fff;
  color: #c0392b;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.2s;
}
.cta-section .btn-cta:hover { transform: scale(1.05); color: #c0392b; }

/* === Footer === */
.site-footer {
  background: #2d2d2d;
  color: #aaa;
  padding: 40px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.site-footer h4 { color: #fff; font-family: 'Source Sans 3', sans-serif; font-size: 1rem; margin-bottom: 14px; }
.site-footer .footer-about img { height: 40px; margin-bottom: 12px; }
.site-footer .footer-about p { font-size: 0.9rem; line-height: 1.6; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a { color: #aaa; font-size: 0.9rem; }
.site-footer ul li a:hover { color: #fff; }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-social a { color: #aaa; font-size: 18px; }
.footer-social a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 0.85rem;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary { background: #c0392b; color: #fff; }
.btn-primary:hover { background: #e74c3c; color: #fff; }
.btn-outline { border: 2px solid #c0392b; color: #c0392b; background: transparent; }
.btn-outline:hover { background: #c0392b; color: #fff; }

/* === Responsive === */
@media (max-width: 992px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .article-header h1 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .site-nav .nav-links.open { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 350px; }
  .hero h1 { font-size: 1.8rem; }
  .section { padding: 40px 0; }
  .article-header h1 { font-size: 1.5rem; }
  .article-body h2 { font-size: 1.3rem; }
  .topbar .social-links { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .card .card-img { height: 160px; }
  .topbar .lang-switch { gap: 6px; font-size: 12px; }
}

/* === Testimonial Slider === */
.slider-container {
  position: relative;
  overflow: hidden;
  padding: 0 50px;
}
.slider-track {
  display: flex;
  gap: 16px;
  transition: transform 0.6s ease;
}
.slider-track .card {
  min-width: calc(25% - 12px);
  max-width: calc(25% - 12px);
  flex-shrink: 0;
}
.slider-track .card .card-img {
  height: 180px;
  object-fit: cover;
}
.slider-track .card .card-body {
  min-height: 140px;
}
.slider-track .card .card-body h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.slider-track .card .card-body p {
  font-size: 0.8rem;
  line-height: 1.4;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #c0392b;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.slider-btn:hover { background: #e74c3c; }
.slider-btn-prev { left: 4px; }
.slider-btn-next { right: 4px; }
@media (max-width: 992px) {
  .slider-track .card { min-width: calc(33.333% - 11px); max-width: calc(33.333% - 11px); }
  .slider-container { padding: 0 40px; }
}
@media (max-width: 768px) {
  .slider-track .card { min-width: calc(50% - 8px); max-width: calc(50% - 8px); }
  .slider-container { padding: 0 35px; }
}
@media (max-width: 480px) {
  .slider-track .card { min-width: 100%; max-width: 100%; }
}
