/* =============================================
   ZYPERN HOLDING – Main Stylesheet
   Elegant, refined design with gold accents
   ============================================= */

/* CSS Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #8B7632;
  --gold-light: #B8982E;
  --gold-soft: #D4C078;
  --gold-bg: #F7F3E8;
  --navy: #1a1a2e;
  --navy-light: #2d2d4a;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --text-muted: #888;
  --bg: #FAFAF7;
  --bg-white: #FFFFFF;
  --bg-cream: #F5F2EB;
  --border: #E8E4DA;
  --border-light: #F0EDE5;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --radius: 6px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --header-height: 80px;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Font display optimization */
@font-face { font-display: swap; }

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.8rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.6rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; display: block; }

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-top {
  background: var(--navy);
  color: #ccc;
  font-size: 0.8rem;
  padding: 6px 0;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.header-top a { color: var(--gold-soft); }
.header-top a:hover { color: #fff; }

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 44px; width: auto; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 1px;
}
.logo-text span { color: var(--gold); font-weight: 400; }

/* Desktop Nav */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2px;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--gold);
  background: var(--gold-bg);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.88rem;
  border-radius: 0;
}
.dropdown-menu a:hover { background: var(--gold-bg); }

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  transition: all 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* CTA Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover {
  background: var(--gold-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139,118,50,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: #fff;
}
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: var(--navy-light);
  color: #fff;
  transform: translateY(-1px);
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.content-wrap {
  padding-top: calc(var(--header-height) + 36px);
}

section { padding: 80px 0; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  padding: 120px 0 100px;
  background: linear-gradient(135deg, var(--navy) 0%, #0f0f23 60%, #1a1a2e 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,118,50,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1.2rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-soft);
}
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-portrait {
  position: relative;
}
.hero-portrait img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
}
.hero-portrait::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(139,118,50,0.3);
  border-radius: calc(var(--radius-lg) + 4px);
  pointer-events: none;
}

/* Stats Bar */
.stats-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats-bar .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 700;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* =============================================
   SECTION STYLES
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--gold-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--gold-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--gold);
}
.card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 0; }

/* Article Cards */
.article-card {
  display: block;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  border-color: var(--gold-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: inherit;
}
.article-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card-img img[src$=".svg"] {
  object-fit: contain;
  padding: 0;
}
.article-card-img .placeholder-icon {
  font-size: 3rem;
  opacity: 0.3;
  color: var(--gold-soft);
}
.article-card-body { padding: 24px; }
.article-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.article-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}
.article-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =============================================
   ARTICLE PAGE STYLES
   ============================================= */
.article-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f0f23 100%);
  color: #fff;
  padding: 60px 0 50px;
  text-align: center;
}
.article-hero h1 {
  color: #fff;
  max-width: 800px;
  margin: 0 auto 16px;
}
.article-hero .breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.article-hero .breadcrumb a { color: var(--gold-soft); }
.article-meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.article-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold-bg);
}
.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}
.article-content p {
  font-size: 1.05rem;
  color: var(--text);
}
.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text);
}
.article-content li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}
.article-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  margin: 2rem 0;
  background: var(--gold-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy);
}
.article-content img {
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

/* Info Box */
.info-box {
  background: var(--gold-bg);
  border: 1px solid var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px;
  margin: 2rem 0;
}
.info-box h4 { color: var(--gold); margin-bottom: 8px; }
.info-box p:last-child { margin-bottom: 0; }

.tip-box {
  background: #f0f7f0;
  border: 1px solid #b8d4b8;
  border-left: 4px solid #4a8c4a;
  border-radius: var(--radius);
  padding: 24px;
  margin: 2rem 0;
}
.tip-box h4 { color: #2d6a2d; margin-bottom: 8px; }
.tip-box p:last-child { margin-bottom: 0; }

.warning-box {
  background: #fff8f0;
  border: 1px solid #e8c496;
  border-left: 4px solid #c47d2c;
  border-radius: var(--radius);
  padding: 24px;
  margin: 2rem 0;
}
.warning-box h4 { color: #a06020; margin-bottom: 8px; }

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.article-content table thead {
  background: var(--navy);
  color: #fff;
}
.article-content table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 0.88rem;
}
.article-content table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.article-content table tbody tr:last-child td { border-bottom: none; }
.article-content table tbody tr:nth-child(even) { background: var(--bg); }
.article-content table tbody tr:hover { background: var(--gold-bg); }

/* Responsive table wrapper */
.table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  -webkit-overflow-scrolling: touch;
}
.table-wrap table { margin: 0; }

/* FAQ Accordion */
.faq-section { margin: 2.5rem 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--bg-white);
}
.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg); }
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-question { background: var(--gold-bg); }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner { padding: 0 24px 18px; color: var(--text-light); }
.faq-item.open .faq-answer { max-height: 500px; }

/* =============================================
   TABLE OF CONTENTS (in articles)
   ============================================= */
.toc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin: 2rem 0;
}
.toc h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
}
.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}
.toc li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.toc a { color: var(--text); }
.toc a:hover { color: var(--gold); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-top: 16px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold-soft); }

/* =============================================
   WHATSAPP BUTTON
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: all var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--gold-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--gold);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-white);
  transition: border-color var(--transition);
  margin-bottom: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(139,118,50,0.1);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

/* =============================================
   ARTICLE LISTING PAGE
   ============================================= */
.article-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}
.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--bg-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { margin: 0 6px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-portrait { display: none; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }

  .header-top { display: none; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
    z-index: 999;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--border-light); }
  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
  }
  .menu-toggle { display: block; }

  section { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-bar .container { gap: 16px; }
  .stat-number { font-size: 1.6rem; }

  .article-content { padding: 32px 16px 60px; }
  .article-content h2 { font-size: 1.3rem; }
  .article-content p, .article-content li { font-size: 1rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  .hero { padding: 80px 0 60px; }
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 20px; right: 20px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.bg-cream { background: var(--bg-cream); }
.bg-white { background: var(--bg-white); }
.hidden { display: none; }

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Decorative gold line for sections */
.gold-line { width: 60px; height: 3px; background: var(--gold); margin: 0 auto 24px; border-radius: 2px; }
.gold-line-left { width: 60px; height: 3px; background: var(--gold); margin: 0 0 24px; border-radius: 2px; }

/* Key figures boxes in articles */
.key-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 2rem 0;
}
.key-figure {
  background: var(--gold-bg);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.key-figure .number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}
.key-figure .label { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }

/* Comparison highlights */
.comparison-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 2rem 0;
}
.comparison-highlight > div {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.comparison-highlight .pro { background: #f0f7f0; border-color: #b8d4b8; }
.comparison-highlight .con { background: #fff8f0; border-color: #e8c496; }
.comparison-highlight h4 { margin-bottom: 12px; }
@media (max-width: 600px) { .comparison-highlight { grid-template-columns: 1fr; } }

/* Article sidebar author box */
.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 2rem 0;
}
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author-box .info { flex: 1; }
.author-box .name { font-weight: 700; color: var(--navy); }
.author-box .role { font-size: 0.85rem; color: var(--text-muted); }

/* Step-by-step process */
.process-steps { margin: 2rem 0; }
.process-step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}
.process-step:last-child { border-bottom: none; }
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.step-content h4 { margin-bottom: 4px; }
.step-content p { margin-bottom: 0; color: var(--text-light); }

/* Internal link cards at article bottom */
.related-articles {
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.related-articles h3 { margin-bottom: 16px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.related-link {
  display: block;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  text-decoration: none;
}
.related-link:hover {
  border-color: var(--gold);
  background: var(--gold-bg);
  color: var(--gold);
}
.related-link span { display: block; font-size: 0.78rem; font-weight: 400; color: var(--text-muted); margin-top: 4px; }

/* Checklist style */
.checklist { list-style: none; padding: 0; margin: 1.5rem 0; }
.checklist li {
  padding: 8px 0 8px 32px;
  position: relative;
  font-size: 1.05rem;
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Print styles */
@media print {
  .site-header, .site-footer, .whatsapp-float, .article-filter, .related-articles { display: none; }
  .content-wrap { padding-top: 0; }
  body { background: #fff; }
  .article-hero { background: #f5f5f5 !important; color: #1a1a2e !important; }
  .article-hero h1 { color: #1a1a2e !important; }
  .article-content { padding: 24px 0; }
}

/* Selection color */
::selection { background: var(--gold-bg); color: var(--navy); }

/* Smooth image loading */
img { transition: opacity 0.3s; }
img[loading="lazy"] { opacity: 0; }
img[loading="lazy"].loaded, img:not([loading="lazy"]) { opacity: 1; }

/* Better focus styles for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Gold accent for h2 in articles */
.article-content h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 0.85em;
  background: var(--gold);
  margin-right: 12px;
  border-radius: 2px;
  vertical-align: middle;
}


/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* Better link hover in articles */
.article-content a:not(.btn):not(.related-link) {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.article-content a:not(.btn):not(.related-link):hover {
  color: var(--gold-light);
}

/* Florian portrait section responsive */
@media (max-width: 768px) {
  .container > div[style*="grid-template-columns:280px"] {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 24px !important;
  }
  .container > div[style*="grid-template-columns:280px"] img {
    width: 200px !important;
    height: auto !important;
    margin: 0 auto;
  }
  .container > div[style*="grid-template-columns:280px"] div:last-child {
    text-align: left;
  }
}

/* Stats bar responsive */
@media (max-width: 600px) {
  .stats-bar .container > div {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
