/* ══════════════════════════════════════════════════════
   ANALYTIX VENDOR THEME — MAIN STYLESHEET
   Colors: #00664F (green) | #1B3C72 (navy) | #C9A020 (gold) | #E8520A (cta)
══════════════════════════════════════════════════════ */

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

:root {
  --green:   #00664F;
  --navy:    #1B3C72;
  --gold:    #C9A020;
  --cta:     #E8520A;
  --cta-h:   #c44409;
  --light:   #F6F8FA;
  --white:   #FFFFFF;
  --text:    #1E1E2E;
  --muted:   #546E7A;
  --border:  #E0E7EF;
  --shadow:  0 4px 24px rgba(0,0,0,0.08);
  --radius:  10px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  padding-top: var(--header-h);
  overflow-x: hidden;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }

/* ── Header ──────────────────────────────────────── */
.avt-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--green);
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,102,79,0.25);
  transition: background 0.3s, box-shadow 0.3s;
}
.avt-header.scrolled {
  background: #004d3b;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.avt-header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.avt-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1.1;
}
.avt-logo-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}
.avt-logo-tag {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Mega Navigation ──────────────────────────────── */
.avt-nav { flex: 1; display: flex; justify-content: center; }

.avt-nav-list {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}

.avt-nav-item { position: relative; }

.avt-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.avt-nav-link:hover,
.avt-nav-item:hover > .avt-nav-link {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.avt-nav-link .avt-chevron {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.2s;
}
.avt-nav-item:hover > .avt-nav-link .avt-chevron { transform: rotate(180deg); }

/* Dropdown */
.avt-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  border: 1px solid var(--border);
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s, transform 0.18s;
  z-index: 200;
}
.avt-nav-item:hover > .avt-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.avt-dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.12s, color 0.12s;
}
.avt-dropdown a:last-child { border-bottom: none; }
.avt-dropdown a:hover { background: var(--light); color: var(--green); }
.avt-dropdown-label {
  display: block;
  padding: 8px 18px 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #f0f0f0;
}

/* Mega Menu */
.avt-mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  border: 1px solid var(--border);
  width: 820px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 200;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.avt-nav-item:hover > .avt-mega {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.avt-mega-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--light);
}
.avt-mega-col a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: none;
  transition: color 0.12s;
}
.avt-mega-col a:hover { color: var(--green); }

/* Header CTA */
.avt-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cta);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
  text-decoration: none;
}
.avt-header-cta:hover { background: var(--cta-h); transform: translateY(-1px); color: #fff; }

/* Hamburger */
.avt-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.avt-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.25s;
}
.avt-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.avt-hamburger.open span:nth-child(2) { opacity: 0; }
.avt-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.avt-mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: #004d3b;
  z-index: 999;
  overflow-y: auto;
  max-height: calc(100vh - var(--header-h));
  padding: 16px 0 24px;
}
.avt-mobile-nav.open { display: block; }
.avt-mobile-nav a {
  display: block;
  padding: 12px 24px;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.avt-mobile-nav a:hover { background: rgba(255,255,255,0.07); color: #fff; }
.avt-mobile-nav .avt-mob-cat {
  display: block;
  padding: 14px 24px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.avt-mobile-cta {
  display: block;
  margin: 16px 24px 0;
  background: var(--cta);
  color: #fff !important;
  padding: 14px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

/* ── Page Content Wrapper ─────────────────────────── */
.avt-main { width: 100%; overflow-x: hidden; }

/* Override any theme-injected narrow containers */
.avt-main .entry-content,
.avt-main .page-content,
.avt-main article { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }

/* ── Blog / Archive ──────────────────────────────── */
.avt-blog-hero {
  background: linear-gradient(135deg, var(--green) 0%, #004d3b 100%);
  padding: 80px 24px;
  text-align: center;
}
.avt-blog-hero h1 { color: #fff; font-size: 42px; font-weight: 800; margin-bottom: 12px; }
.avt-blog-hero p { color: rgba(255,255,255,0.8); font-size: 18px; }

.avt-blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.avt-post-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.avt-post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.avt-post-card-body { padding: 24px; }
.avt-post-cat { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.avt-post-card h2 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 12px; line-height: 1.4; }
.avt-post-card h2 a { color: inherit; }
.avt-post-card h2 a:hover { color: var(--green); }
.avt-post-excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.avt-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}
.avt-read-more:hover { gap: 10px; }

/* ── Single Post ─────────────────────────────────── */
.avt-single-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #122b5a 100%);
  padding: 80px 24px;
  text-align: center;
}
.avt-single-hero h1 {
  color: #fff;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.3;
}
.avt-single-meta { color: rgba(255,255,255,0.6); font-size: 14px; }
.avt-single-meta span { margin: 0 8px; }

.avt-single-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px;
}
.avt-single-body h2 { color: var(--navy); font-size: 26px; font-weight: 700; margin: 36px 0 14px; }
.avt-single-body h3 { color: var(--navy); font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.avt-single-body p { color: var(--muted); font-size: 16px; line-height: 1.85; margin-bottom: 20px; }
.avt-single-body ul, .avt-single-body ol { padding-left: 24px; margin-bottom: 20px; }
.avt-single-body li { color: var(--muted); font-size: 16px; line-height: 1.8; margin-bottom: 6px; }
.avt-single-body table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.avt-single-body th { background: var(--navy); color: #fff; padding: 12px 16px; text-align: left; font-size: 14px; }
.avt-single-body td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.avt-single-body tr:nth-child(even) td { background: var(--light); }
.avt-single-body a { color: var(--green); font-weight: 600; }

.avt-post-cta-box {
  background: linear-gradient(135deg, var(--green) 0%, var(--navy) 100%);
  border-radius: var(--radius);
  padding: 36px;
  margin: 40px 0;
  text-align: center;
}
.avt-post-cta-box h3 { color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.avt-post-cta-box p { color: rgba(255,255,255,0.82); margin-bottom: 20px; }
.avt-post-cta-box a {
  display: inline-block;
  background: var(--cta);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
}

/* ── Footer ──────────────────────────────────────── */
.avt-footer {
  background: var(--navy);
  padding: 70px 24px 0;
}
.avt-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}
.avt-footer-brand {}
.avt-footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  display: block;
}
.avt-footer-logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 18px;
}
.avt-footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 24px;
}
.avt-footer-contacts a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.15s;
}
.avt-footer-contacts a:hover { color: var(--gold); }
.avt-footer-contacts .ico { font-size: 16px; flex-shrink: 0; }

.avt-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.08);
}
.avt-footer-col ul { list-style: none; }
.avt-footer-col li { margin-bottom: 10px; }
.avt-footer-col a {
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  transition: color 0.15s;
}
.avt-footer-col a:hover { color: #fff; }

.avt-footer-bar {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.avt-footer-bar p { font-size: 13px; color: rgba(255,255,255,0.4); }
.avt-footer-bar-links { display: flex; gap: 20px; }
.avt-footer-bar-links a { font-size: 13px; color: rgba(255,255,255,0.4); }
.avt-footer-bar-links a:hover { color: rgba(255,255,255,0.8); }

/* ── Floating WhatsApp ───────────────────────────── */
.avt-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 900;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: avt-pulse 2.5s infinite;
}
.avt-whatsapp:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
@keyframes avt-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%      { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
}

/* ── Back to top ─────────────────────────────────── */
.avt-totop {
  position: fixed;
  bottom: 28px;
  right: 96px;
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  border: none;
}
.avt-totop.visible { opacity: 1; pointer-events: all; }
.avt-totop:hover { transform: translateY(-3px); }

/* ── Utilities ───────────────────────────────────── */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .avt-nav { display: none; }
  .avt-header-cta { display: none; }
  .avt-hamburger { display: flex; }
  .avt-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .avt-mega { width: 95vw; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .avt-footer-inner { grid-template-columns: 1fr; }
  .avt-footer-bar { justify-content: center; text-align: center; }
  .avt-blog-grid { grid-template-columns: 1fr; }
}
