/* ============================================
   Votazz Theme — Main Stylesheet v1.0
   ============================================ */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; padding: 0; }
html { scroll-behavior: smooth; }

/* ===== ACCESSIBILITY ===== */
.vz-skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  padding: 12px 24px;
  background: #1a56db;
  color: #fff;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
}
.vz-skip-link:focus {
  top: 0;
}

/* ===== BASE ===== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #0a2540;
  background-color: #fff;
  /* Top gradient extends behind the transparent sticky header so it visually
     blends into the hero (which starts with the same #e0ebff color). */
  background-image: linear-gradient(180deg, #e0ebff 0%, #e0ebff 50%, rgba(224,235,255,0) 100%);
  background-size: 100% 220px;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: #0a2540; }
h1 { font-size: 52px; font-weight: 800; letter-spacing: -1.5px; }
h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; }
h3 { font-size: 20px; }
p { color: #64748b; line-height: 1.7; }
a { transition: color 0.2s; }

/* ===== LAYOUT ===== */
.vz-main { width: 100%; }
.vz-container { max-width: 1540px; margin: 0 auto; padding: 0 48px; }
.vz-page-content,
.vz-front-page-content { width: 100%; }

/* Full-width layout — blocks control their own width */
.vz-full-width {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}
.vz-full-width > .wp-block-group {
  width: 100%;
  max-width: 100%;
}
.vz-full-width > .wp-block-group > * {
  max-width: 1540px;
  margin-left: auto;
  margin-right: auto;
}
/* Hero from Custom HTML blocks in page content */
.votazz-page-hero {
  background: linear-gradient(180deg, #e0ebff 0%, #f0f2fc 30%, #fffcfa 60%, #fff 100%) !important;
  padding: 64px 48px 48px !important;
  text-align: center !important;
  margin: 0 !important;
}
.votazz-page-hero h1 {
  font-size: 42px !important;
  font-weight: 800 !important;
  color: #0a2540 !important;
  margin-bottom: 12px !important;
  text-align: center !important;
}
.votazz-page-hero p {
  font-size: 18px !important;
  color: #64748b !important;
  max-width: 700px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

/* Hero meta badges (product pages) */
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e0e7ff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}
.hero-meta-item .accent {
  color: #1a56db;
  font-weight: 700;
}

/* ===== HEADER ===== */
.vz-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    backdrop-filter 0.25s ease,
    -webkit-backdrop-filter 0.25s ease;
}
.vz-header.is-scrolled {
  background: #ffffff;
  border-bottom-color: rgba(15,23,42,0.08);
  box-shadow: 0 4px 16px rgba(15,23,42,0.06), 0 1px 0 rgba(15,23,42,0.04);
}
body.admin-bar .vz-header { top: 32px; }
.vz-header-inner {
  max-width: 1540px;
  margin: 0 auto;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vz-logo {
  font-size: 32px;
  font-weight: 800;
  color: #1a56db;
  text-decoration: none;
}
.vz-logo:hover { color: #1443b5; }

/* Nav */
.vz-nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}
.vz-nav-link {
  font-size: 18px;
  font-weight: 500;
  color: #0a2540;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.15s;
}
.vz-nav-link:hover { color: #1a56db; }
.vz-nav-item.is-active .vz-nav-link { color: #1a56db; }

/* Mobile menu toggle */
.vz-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.vz-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0a2540;
  transition: all 0.3s;
}

/* ===== PAGE HERO ===== */
.vz-page-hero {
  background: linear-gradient(180deg, #e0ebff 0%, #f0f2fc 30%, #fffcfa 60%, #fff 100%);
  padding: 64px 48px 48px;
  text-align: center;
}
/* Blog/archive hero — no negative margin to avoid overflow */
.vz-page-hero h1 {
  font-size: 42px;
  margin-bottom: 12px;
}
.vz-page-hero p {
  font-size: 18px;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.vz-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.vz-btn-primary {
  background: #1a56db;
  color: #fff;
}
.vz-btn-primary:hover {
  background: #1443b5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}
.vz-btn-outline {
  background: #fff;
  color: #344054;
  border: 1.5px solid #d0d5dd;
}
.vz-btn-outline:hover {
  border-color: #1a56db;
  color: #1a56db;
}

/* WP Gutenberg buttons */
.wp-block-button .wp-block-button__link {
  border-radius: 8px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600;
  text-transform: none;
  font-size: 15px;
  line-height: 1.4;
  padding: 14px 32px;
  transition: all 0.2s;
}
.wp-block-button .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: #344054;
  border: 1.5px solid #d0d5dd;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: #1a56db;
  color: #1a56db;
  background: transparent;
}

/* ===== LOGO STRIP ===== */
.votazz-logo-strip .wp-block-image img {
  filter: grayscale(100%);
  opacity: 0.4;
  transition: all 0.3s;
  max-height: 40px;
  width: auto;
  object-fit: contain;
}
.votazz-logo-strip .wp-block-image img:hover {
  filter: grayscale(0%);
  opacity: 0.8;
}

/* ===== PRODUCT CARDS ===== */
.votazz-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1540px;
  margin: 32px auto 0;
}
.votazz-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.3s ease;
}
.votazz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: #c7d2fe;
  text-decoration: none;
  color: inherit;
}
.votazz-card *, .votazz-card:link *, .votazz-card:visited * {
  text-decoration: none;
}
.votazz-card .vc-icon {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.votazz-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: #0a2540; }
.votazz-card .vc-rating { font-size: 12px; color: #94a3b8; margin-bottom: 8px; }
.votazz-card .vc-stars { color: #f59e0b; font-size: 14px; }
.votazz-card p { font-size: 14px; color: #64748b; line-height: 1.6; margin-bottom: 16px; }
.votazz-card .vc-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #64748b; }
.votazz-card .vc-meta strong { color: #0a2540; }
.vc-badge { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.vc-badge.cloud { background: #f0f5ff; color: #1a56db; }
.vc-badge.dc { background: #f1f5f9; color: #475569; }

/* ===== TESTIMONIALS ===== */
.votazz-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1540px;
  margin: 32px auto 0;
}
.vt-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
}
.vt-stars { color: #f59e0b; font-size: 18px; margin-bottom: 16px; }
.vt-card blockquote {
  font-size: 15px; color: #334155; line-height: 1.7;
  font-style: italic; margin: 0 0 20px; padding: 0; border: none;
}
.vt-author { font-size: 14px; font-weight: 600; color: #0a2540; }
.vt-company { font-size: 13px; color: #98a2b3; }

/* ===== TEAM GRID ===== */
.votazz-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: 900px; margin: 0 auto; }
.team-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.team-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; border: 3px solid #e5e7eb; }
.team-card h3 { font-size: 16px; font-weight: 700; color: #0a2540; margin-bottom: 4px; text-align: center; }
.team-role { font-size: 14px; color: #1a56db; font-weight: 500; text-align: center; }

/* ===== PARTNERS GRID ===== */
.votazz-partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1540px; margin: 0 auto; }
.partner-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  padding: 32px 24px; display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all 0.3s; min-height: 100px;
}
.partner-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); border-color: #c7d2fe; }
.partner-card img { max-width: 140px; max-height: 50px; object-fit: contain; filter: grayscale(30%); opacity: 0.8; transition: all 0.3s; }
.partner-card:hover img { filter: grayscale(0%); opacity: 1; }

/* ===== PRICING TABLE ===== */
.votazz-pricing-table { max-width: 500px; margin: 0 auto; }
.votazz-pricing-table table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden;
}
.votazz-pricing-table th {
  background: #f8fafc; padding: 14px 24px; text-align: left;
  font-size: 13px; font-weight: 600; color: #64748b;
  text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #e5e7eb;
}
.votazz-pricing-table td { padding: 14px 24px; font-size: 15px; color: #334155; border-bottom: 1px solid #f1f5f9; }
.votazz-pricing-table tr:last-child td { border-bottom: none; }
.votazz-pricing-table td strong { color: #0a2540; font-size: 17px; }

/* ===== FAQ ===== */
.votazz-faq { max-width: 700px; margin: 32px auto 0; }
.faq-item { border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 12px; overflow: hidden; transition: all 0.2s; }
.faq-item[open] { border-color: #c7d2fe; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.faq-item summary {
  padding: 18px 24px; font-size: 16px; font-weight: 600; color: #0a2540;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: #94a3b8; font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 24px 18px; font-size: 15px; color: #64748b; line-height: 1.7; margin: 0; }

/* ===== FOOTER ===== */
/* Hide duplicate footer from page content — theme footer (.vz-footer) is used */
.votazz-footer {
  display: none !important;
}

.vz-footer {
  background: linear-gradient(135deg, #0f172a 0%, #162544 40%, #1a56db 100%);
  color: rgba(255,255,255,0.7);
  padding: 64px 48px 32px;
}
.vz-footer-inner { max-width: 1540px; margin: 0 auto; }
.vz-footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.vz-footer-logo { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.vz-footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); margin: 0; }
.vz-footer-links { display: contents; }
.vz-footer-col { display: flex; flex-direction: column; gap: 10px; }
.vz-footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.vz-footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.vz-footer-col a:hover { color: #fff; }
.vz-footer-bottom {
  display: flex; justify-content: space-between; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; color: rgba(255,255,255,0.35);
}

/* ===== BLOG ===== */
.vz-blog-list { max-width: 900px; margin: 48px auto 0; padding: 0 48px; }
.vz-blog-card {
  border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden;
  transition: all 0.3s; margin-bottom: 24px; background: #fff;
}
.vz-blog-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.06); border-color: #c7d2fe; }
.vz-blog-thumb img { width: 100%; height: 220px; object-fit: cover; }
.vz-blog-card-body { padding: 24px 28px; }
.vz-blog-date { font-size: 13px; color: #94a3b8; }
.vz-blog-title { font-size: 20px; margin: 8px 0 12px; }
.vz-blog-title a { color: #0a2540; text-decoration: none; }
.vz-blog-title a:hover { color: #1a56db; }
.vz-blog-excerpt { font-size: 15px; color: #64748b; line-height: 1.6; margin-bottom: 16px; }
.vz-blog-read-more { font-size: 14px; color: #1a56db; font-weight: 600; text-decoration: none; }

/* Single post */
.vz-single .vz-article { max-width: 800px; margin: 0 auto; padding: 48px; }
.vz-single-header { margin-bottom: 32px; }
.vz-single-date { font-size: 14px; color: #94a3b8; }
.vz-single-title { font-size: 36px; margin-top: 8px; }
.vz-single-thumb { margin-bottom: 32px; border-radius: 12px; overflow: hidden; }
.vz-single-content { font-size: 17px; line-height: 1.8; }
.vz-single-content h2 { margin: 40px 0 16px; }
.vz-single-content h3 { margin: 32px 0 12px; }
.vz-single-content p { margin-bottom: 16px; color: #334155; }
.vz-single-content img { border-radius: 8px; margin: 24px 0; }
.vz-single-content ul, .vz-single-content ol { padding-left: 24px; margin-bottom: 16px; color: #334155; }
.vz-single-content li { margin-bottom: 8px; line-height: 1.7; }
.vz-single-content blockquote { border-left: 3px solid #1a56db; padding-left: 16px; margin: 24px 0; font-style: italic; color: #64748b; }
.vz-single-content a { color: #1a56db; text-decoration: underline; }
.vz-single-content code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.vz-single-content pre { background: #0f172a; color: #e2e8f0; padding: 24px; border-radius: 12px; overflow-x: auto; margin: 24px 0; }
.vz-single-content pre code { background: none; padding: 0; color: inherit; }

/* Post navigation */
.vz-post-nav { margin-top: 48px; padding-top: 24px; border-top: 1px solid #e5e7eb; }
.vz-post-nav a { color: #1a56db; text-decoration: none; font-weight: 500; }

/* Pagination */
.vz-pagination { text-align: center; margin: 48px 0; }
.vz-pagination .page-numbers { padding: 8px 16px; margin: 0 4px; border-radius: 8px; text-decoration: none; color: #64748b; }
.vz-pagination .page-numbers.current { background: #1a56db; color: #fff; }

/* ===== 404 ===== */
.vz-404-content { text-align: center; padding: 48px; }

/* ===== GUTENBERG OVERRIDES ===== */
.wp-block-columns { gap: 48px; }
.wp-block-image img { border-radius: 12px; }
.has-background { border-radius: 0; }

/* Block spacing — restore vertical rhythm */
.vz-full-width .wp-block-heading,
.vz-full-width h1.wp-block-heading,
.vz-full-width h2.wp-block-heading {
  margin-bottom: 16px;
}
.vz-full-width .wp-block-paragraph,
.vz-full-width p.has-text-color {
  margin-bottom: 20px;
}
.vz-full-width .wp-block-buttons {
  margin-top: 24px;
  margin-bottom: 16px;
}
.vz-full-width .wp-block-image {
  margin-bottom: 24px;
}
.vz-full-width .wp-block-columns {
  margin-bottom: 24px;
}
.vz-full-width .wp-block-group + .wp-block-group {
  margin-top: 0;
}

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 1024px) {
  h1 { font-size: 40px; }
  .vz-header-inner { padding: 14px 32px; }
  .vz-container, .wp-block-group { padding-left: 32px; padding-right: 32px; }
  .vz-page-hero { padding: 48px 32px 40px; }
  .votazz-product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .votazz-testimonials { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .votazz-partners-grid { grid-template-columns: repeat(3, 1fr); }
  .vz-footer { padding: 48px 32px 24px; }
  .vz-footer-top { grid-template-columns: repeat(2, 1fr); }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 768px) {
  h1 { font-size: 32px; letter-spacing: -1px; }
  h2 { font-size: 26px; }
  .vz-header-inner { padding: 12px 20px; }
  .vz-logo { font-size: 24px; }

  /* Mobile nav */
  .vz-menu-toggle { display: flex; }
  .vz-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e5e7eb; padding: 16px 20px; }
  .vz-nav.is-open { display: block; }
  .vz-nav-list { flex-direction: column; gap: 4px; }
  .vz-nav-link { display: block; padding: 12px 0; font-size: 17px; }

  .vz-container, .wp-block-group { padding-left: 20px; padding-right: 20px; }
  .vz-page-hero { padding: 40px 20px 32px; }
  .vz-page-hero h1 { font-size: 32px; }

  .votazz-product-grid { grid-template-columns: 1fr; gap: 12px; }
  .votazz-testimonials { grid-template-columns: 1fr; gap: 12px; }
  .votazz-partners-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .votazz-team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .vz-footer { padding: 40px 20px 20px; }
  .vz-footer-top { grid-template-columns: 1fr; gap: 24px; }
  .vz-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .vz-blog-list { padding: 0 20px; }
  .vz-single { padding: 24px 20px; }
  .vz-single-title { font-size: 28px; }

  .wp-block-button .wp-block-button__link { padding: 12px 24px; }
  .wp-block-columns { flex-direction: column; }
}
