/* ========== DESIGN TOKENS ========== */
:root {
  --primary: #1a5276;
  --primary-light: #2980b9;
  --accent: #27ae60;
  --dark: #2c3e50;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-light: #f8f9fa;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 24px 70px rgba(16,19,20,0.09);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }
h1,h2,h3,h4,h5,h6 { margin: 0 0 14px; color: var(--dark); font-weight: 700; line-height: 1.2; }
p { margin: 0 0 14px; }
ul { margin: 0; padding: 0; list-style: none; }

/* ========== HEADER ========== */
.site-header {
  position: fixed; top: 0; left: 0; z-index: 1000;
  width: 100%;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; padding-bottom: 8px;
  max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px;
}

.header-logo { flex: 0 0 auto; }
.header-logo img { height: 50px; width: auto; object-fit: contain; }
.logo-text { font-size: 18px; font-weight: 700; color: var(--dark); }

.header-nav { flex: 1 1 auto; display: flex; justify-content: center; }

.nav-list {
  display: flex; align-items: center; gap: 0;
  list-style: none; margin: 0; padding: 0;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block; padding: 14px 16px;
  font-size: 14px; font-weight: 600; color: var(--text);
  transition: color 0.2s;
}
.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a { color: var(--primary); }

.nav-list .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 200px; background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12); border-radius: var(--radius);
  padding: 4px 0; list-style: none; margin: 0;
}
.nav-list > li:hover .sub-menu { display: block; }
.nav-list .sub-menu li a {
  display: block; padding: 10px 18px; font-size: 13px; font-weight: 400;
  color: var(--text); transition: background 0.2s;
}
.nav-list .sub-menu li a:hover { background: var(--bg-light); color: var(--primary); }

.header-right { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.header-cta {
  display: inline-block; padding: 8px 20px;
  background: var(--primary); color: #fff;
  border-radius: 3px; font-size: 13px; font-weight: 700;
  transition: background 0.2s;
}
.header-cta:hover { background: var(--primary-light); color: #fff; }

.mobile-menu-btn {
  display: none; background: none; border: none;
  font-size: 22px; color: var(--text); cursor: pointer; padding: 8px;
}

/* ========== MAIN CONTENT ========== */
.site-main { margin-top: 66px; }
.content-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }

/* ========== PAGE CONTENT (from WP editor) ========== */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* ========== MI-HERO ========== */
.mi-hero {
  min-height: 500px;
  background: linear-gradient(135deg, #f8f9fa 0%, #eef4f3 100%);
  display: flex; align-items: center;
  padding: 80px 0 60px;
  margin-top: 0;
}
.mi-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
.mi-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.mi-kicker {
  font-size: 13px; font-weight: 800; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 14px;
}
.mi-hero__copy h1 {
  font-size: clamp(28px, 5vw, 48px); line-height: 1.08;
  margin: 0 0 18px; color: var(--dark);
}
.mi-lead { font-size: 16px; color: var(--text-light); line-height: 1.7; margin: 0 0 28px; max-width: 540px; }

.mi-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 0 0 32px; padding: 20px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.mi-hero-stats div { text-align: center; }
.mi-hero-stats strong { display: block; font-size: clamp(18px,2.5vw,26px); color: var(--primary); line-height: 1.2; margin-bottom: 4px; }
.mi-hero-stats span { display: block; font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 0.06em; }

.mi-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mi-btn {
  display: inline-block; padding: 12px 28px; font-size: 14px; font-weight: 700;
  border-radius: 3px; transition: all 0.2s; text-decoration: none !important; line-height: 1.4;
}
.mi-btn--primary { background: var(--primary); color: #fff !important; }
.mi-btn--primary:hover { background: var(--primary-light); color: #fff !important; }
.mi-btn--ghost { background: #fff; color: var(--primary) !important; border: 1px solid var(--primary); }
.mi-btn--ghost:hover { background: var(--primary); color: #fff !important; }

.mi-hero__photo {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 8px; box-shadow: var(--shadow-lg);
  padding: 40px; min-height: 400px;
}
.mi-product-img { max-height: 320px; object-fit: contain; }

/* ========== MI-BAND ========== */
.mi-band { padding: 70px 0; background: var(--bg); }
.mi-band--light { background: var(--bg-light); }
.mi-band h2 { font-size: clamp(24px,3.5vw,36px); margin: 0 0 12px; color: var(--dark); }
.mi-band > .mi-wrap > p:not(.mi-kicker):not(.mi-btn) { font-size: 15px; color: var(--text-light); line-height: 1.8; max-width: 720px; margin-bottom: 30px; }

/* ========== MI-CARDS ========== */
.mi-cards { display: grid; gap: 20px; margin-top: 30px; }
.mi-cards--4 { grid-template-columns: repeat(4, 1fr); }
.mi-cards--3 { grid-template-columns: repeat(3, 1fr); }

.mi-card {
  display: block; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none !important; color: var(--text) !important;
}
.mi-card:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); color: var(--text) !important; }
.mi-card__num {
  display: inline-block; padding: 3px 10px; background: var(--bg-light);
  color: var(--primary); font-size: 11px; font-weight: 800;
  border-radius: 3px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}
.mi-card h3 { font-size: 16px; color: var(--dark); margin: 0 0 8px; line-height: 1.3; }
.mi-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; margin: 0; }

/* ========== MI-SPLIT ========== */
.mi-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mi-split h2 { margin-bottom: 16px; }
.mi-split p { font-size: 15px; color: var(--text-light); line-height: 1.8; }
.mi-link { display: inline-block; color: var(--primary) !important; font-weight: 700; border-bottom: 2px solid var(--primary); padding-bottom: 2px; transition: color 0.2s; }
.mi-link:hover { color: var(--primary-light) !important; border-bottom-color: var(--primary-light); }
.mi-image-stack { display: grid; gap: 20px; }
.mi-image-stack img { border-radius: 4px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); max-height: 280px; object-fit: contain; background: var(--bg-light); padding: 20px; }

/* ========== MI-MINI ========== */
.mi-mini { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform 0.3s; }
.mi-mini:hover { transform: translateY(-4px); }
.mi-mini h3 { font-size: 17px; color: var(--dark); margin: 0 0 10px; }
.mi-mini p { font-size: 14px; color: var(--text-light); line-height: 1.6; margin: 0; }

/* ========== MI-CTA ========== */
.mi-cta { background: var(--bg-light) !important; text-align: center; padding: 60px 0; }
.mi-cta h2 { margin-bottom: 14px; }
.mi-cta p { font-size: 15px; color: var(--text-light); max-width: 600px; margin: 0 auto 24px; }

/* ========== BLOG / POSTS ========== */
.post-item {
  display: grid; grid-template-columns: 280px 1fr; gap: 30px;
  padding: 30px 0; border-bottom: 1px solid var(--border);
}
.post-item:first-child { padding-top: 0; }
.post-thumb img { border-radius: var(--radius); width: 100%; height: 200px; object-fit: cover; }
.post-title { font-size: 22px; margin: 0 0 8px; }
.post-title a { color: var(--dark); }
.post-title a:hover { color: var(--primary); }
.post-meta { font-size: 12px; color: #999; margin-bottom: 10px; }
.post-excerpt { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 14px; }
.read-more {
  display: inline-block; padding: 6px 16px; background: var(--primary);
  color: #fff !important; border-radius: 3px; font-size: 13px; font-weight: 600; transition: background 0.2s;
}
.read-more:hover { background: var(--primary-light); color: #fff !important; }

/* ========== SINGLE POST ========== */
.single-post { max-width: 800px; margin: 0 auto; }
.single-header { margin-bottom: 30px; }
.single-title { font-size: clamp(24px,4vw,36px); margin-bottom: 10px; }
.single-thumb { margin-bottom: 30px; border-radius: var(--radius); overflow: hidden; }
.single-thumb img { width: 100%; }
.single-body { font-size: 15px; line-height: 1.9; }
.single-body h2 { font-size: 26px; margin: 30px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: inline-block; }
.single-body h3 { font-size: 20px; margin: 24px 0 10px; }
.single-body img { border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); margin: 16px 0; }
.single-body table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.single-body th, .single-body td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; font-size: 14px; }
.single-body th { background: var(--bg-light); font-weight: 700; color: var(--dark); }
.single-body blockquote { border-left: 4px solid var(--primary); padding: 12px 20px; margin: 20px 0; background: var(--bg-light); font-style: italic; color: var(--text-light); }

/* ========== PAGINATION ========== */
.pagination { margin: 40px 0; text-align: center; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; border: 1px solid var(--border);
  border-radius: 3px; font-size: 14px; font-weight: 600; color: var(--text);
  background: #fff; transition: all 0.2s; padding: 0 12px; text-decoration: none;
}
.pagination .page-numbers:hover, .pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ========== FOOTER ========== */
.site-footer { background: var(--dark); color: #ccc; padding: 50px 0 0; }
.site-footer .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-box { margin-bottom: 30px; }
.footer-box h4 { font-size: 16px; color: #fff; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-box p { font-size: 13px; line-height: 1.8; color: #aaa; }
.footer-box strong { color: #ccc; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links li a { font-size: 13px; color: #aaa; transition: color 0.2s; }
.footer-links li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; margin-top: 20px; }
.footer-bottom p { font-size: 12px; color: #888; margin: 0; }
.footer-bottom a { font-size: 12px; color: #aaa; }
.footer-bottom a:hover { color: #fff; }
.text-right { text-align: right; }

/* ========== FLUENTFORM ========== */
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform textarea,
.fluentform select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; outline: none; transition: border-color 0.2s;
}
.fluentform input:focus, .fluentform textarea:focus, .fluentform select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,82,118,0.1);
}
.fluentform .ff-btn-submit {
  background: var(--primary) !important; color: #fff !important; border: none !important;
  padding: 12px 32px !important; font-weight: 700 !important; border-radius: 3px !important;
}
.fluentform .ff-btn-submit:hover { background: var(--primary-light) !important; }

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
  .mi-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .mi-hero__photo { min-height: 300px; padding: 30px; }
  .mi-cards--4 { grid-template-columns: repeat(2, 1fr); }
  .mi-split { grid-template-columns: 1fr; gap: 40px; }
  .mi-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .post-item { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-header .container { flex-wrap: wrap; }
  .header-nav { display: none; width: 100%; order: 3; }
  .header-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list > li > a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-list .sub-menu { position: static; box-shadow: none; display: none; }
  .nav-list > li:hover .sub-menu { display: none; }
  .nav-list > li.open .sub-menu { display: block; padding-left: 16px; }
  .header-cta { display: none; }
  .mobile-menu-btn { display: block; }
  .site-main { margin-top: 56px; }
  .mi-hero { padding: 60px 0 40px; min-height: auto; }
  .mi-hero__copy h1 { font-size: 28px; }
  .mi-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mi-actions { flex-direction: column; }
  .mi-btn { width: 100%; text-align: center; }
  .mi-cards--4, .mi-cards--3 { grid-template-columns: 1fr; }
  .mi-band { padding: 50px 0; }
  .mi-hero__photo { min-height: 240px; padding: 20px; }
  .mi-product-img { max-height: 220px; }
}

@media (max-width: 480px) {
  .mi-hero { padding: 40px 0 30px; }
  .mi-hero__copy h1 { font-size: 24px; }
  .mi-band { padding: 40px 0; }
  .mi-band h2 { font-size: 22px; }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.mi-hero__copy { animation: fadeInUp 0.6s ease; }
.mi-hero__photo { animation: fadeInUp 0.6s ease 0.15s both; }
.mi-card, .mi-mini { animation: fadeInUp 0.5s ease; }
