/* Votazz Redesign v2.0 - Global CSS Overrides for WordPress/Astra */

/* ===== GLOBAL FONT ===== */
body, .entry-content, .entry-content p, .entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: 'Inter', -apple-system, sans-serif !important;
}

/* ===== NAVIGATION ===== */
.ast-primary-header-bar {
  background: #fff !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}
/* Logo blue */
.site-title a,
.site-title a:focus,
.site-title a:hover,
.site-title a:visited {
  color: #1a56db !important;
  font-weight: 800 !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
}
/* Menu links */
.ast-builder-menu-1 a,
.ast-header-break-point .ast-builder-menu-1 a {
  color: #425466 !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
}
.ast-builder-menu-1 a:hover {
  color: #1a56db !important;
}

/* ===== HEADINGS ===== */
.entry-content h1 {
  font-size: 52px !important;
  font-weight: 800 !important;
  letter-spacing: -1.5px !important;
  line-height: 1.1 !important;
  color: #0a2540 !important;
}
.entry-content h2 {
  font-weight: 700 !important;
  color: #0a2540 !important;
}
.entry-content h3 {
  font-weight: 700 !important;
  color: #0a2540 !important;
}

/* ===== BUTTONS (override Astra weird border-radius) ===== */
.wp-block-button .wp-block-button__link {
  border-radius: 8px !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-weight: 600 !important;
  text-transform: none !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  padding: 14px 32px !important;
  border-width: 1.5px !important;
  transition: all 0.2s ease !important;
}
.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 !important;
  color: #344054 !important;
  border-color: #d0d5dd !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: #1a56db !important;
  color: #1a56db !important;
  background: transparent !important;
}

/* ===== FULL WIDTH PAGES ===== */
.ast-page-builder-template .entry-content > .wp-block-group {
  max-width: 100% !important;
}

/* ===== HIDE PAGE TITLES ===== */
.page .entry-header,
.page .ast-archive-description {
  display: none !important;
}

/* ===== INNER PAGE HERO (replace blue banners) ===== */
.votazz-page-hero {
  background: linear-gradient(180deg, #e0ebff 0%, #f0f2fc 40%, #fff 100%);
  padding: 64px 64px 48px;
  text-align: center;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}
.votazz-page-hero h1 {
  font-size: 42px !important;
  font-weight: 800 !important;
  color: #0a2540 !important;
  margin-bottom: 12px;
}
.votazz-page-hero p {
  font-size: 18px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SECTION INNER PADDING ===== */
.entry-content > .wp-block-group {
  padding-left: 64px !important;
  padding-right: 64px !important;
}

/* ===== HERO IMAGE SHADOW ===== */
.entry-content .wp-block-columns .wp-block-image img {
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  border-radius: 12px;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  background: #f8fafc;
}
/* First image sets the height, rest are absolute */
.hero-slide {
  display: none;
  width: 100%;
  border-radius: 12px;
}
.hero-slide.active {
  display: block;
  animation: fadeIn 0.8s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== STATS NUMBERS ===== */
.entry-content .wp-block-columns .wp-block-column p[style*="font-size:42px"] {
  margin-bottom: 0 !important;
}

/* ===== CTA BANNER BUTTON ===== */
.entry-content .has-border-color .wp-block-button__link {
  background: #1a56db !important;
  color: #fff !important;
}
.entry-content .has-border-color .wp-block-button__link:hover {
  background: #1443b5 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,86,219,0.25);
}

/* ===== LOGO STRIP (gallery) ===== */
.votazz-logo-strip .wp-block-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.votazz-logo-strip .wp-block-image img {
  filter: grayscale(100%);
  opacity: 0.4;
  transition: all 0.3s ease;
  max-height: 40px !important;
  width: auto !important;
  object-fit: contain;
}
.votazz-logo-strip .wp-block-image img:hover {
  filter: grayscale(0%);
  opacity: 0.8;
}
.votazz-logo-strip.wp-block-gallery {
  align-items: center;
  justify-content: center;
}
.votazz-logo-strip .wp-block-image figcaption {
  display: none;
}

/* ===== PRODUCT CARDS ===== */
.votazz-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 32px auto 0;
}
.votazz-card,
.votazz-card:link,
.votazz-card:visited {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  text-decoration: none !important;
  color: inherit !important;
  display: block;
  transition: all 0.3s ease;
}
.votazz-card *,
.votazz-card h3,
.votazz-card p,
.votazz-card .vc-meta,
.votazz-card .vc-rating,
.votazz-card .vc-body {
  text-decoration: none !important;
  color: inherit;
}
.votazz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: #c7d2fe;
  text-decoration: none !important;
  color: inherit !important;
}
.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);
}
img.vc-icon {
  object-fit: cover;
}
.votazz-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  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: 1200px;
  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 !important;
  padding: 0 !important;
  border: none !important;
}
.vt-author {
  font-size: 14px;
  font-weight: 600;
  color: #0a2540;
}
.vt-company {
  font-size: 13px;
  color: #98a2b3;
}

/* ===== ASTRA FOOTER HIDE ===== */
.site-footer,
.ast-footer-overlay,
#colophon {
  display: none !important;
}

/* ===== CUSTOM FOOTER ===== */
.votazz-footer {
  background: linear-gradient(135deg, #0f172a 0%, #162544 40%, #1a56db 100%);
  color: rgba(255,255,255,0.7);
  font-family: 'Inter', -apple-system, sans-serif;
  padding: 64px 64px 32px;
  margin: 0 -64px -64px !important;
  width: calc(100% + 128px) !important;
  max-width: none !important;
}
.ast-page-builder-template .votazz-footer {
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}
.vf-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.vf-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.vf-brand .vf-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.vf-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.vf-links {
  display: contents;
}
.vf-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vf-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.vf-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.vf-col a:hover {
  color: #fff;
}
.vf-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);
}

@media (max-width: 768px) {
  .votazz-footer { padding: 40px 20px 24px; }
  .vf-top { flex-direction: column; gap: 32px; }
  .vf-links { flex-direction: column; gap: 24px; }
  .vf-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ===== 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;
}
.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;
}
.team-role {
  font-size: 14px;
  color: #1a56db;
  font-weight: 500;
}
@media (max-width: 768px) {
  .votazz-team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ===== PARTNERS GRID ===== */
.votazz-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  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 ease;
  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 ease;
}
.partner-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
@media (max-width: 1024px) {
  .votazz-partners-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .votazz-partners-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .partner-card { padding: 24px 16px; }
}

/* ===== CONTACT CARDS EQUAL HEIGHT ===== */
.page-id-7 .wp-block-columns .vt-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== BLOG PAGE ===== */
.blog .votazz-footer,
.archive .votazz-footer {
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

/* Blog hero */
.blog .votazz-blog-hero,
.archive .votazz-blog-hero {
  background: linear-gradient(180deg, #e0ebff 0%, #f0f2fc 40%, #fff 100%);
  padding: 64px 64px 48px;
  text-align: center;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}
.votazz-blog-hero h1 {
  font-size: 42px;
  font-weight: 800;
  color: #0a2540;
  margin-bottom: 8px;
}
.votazz-blog-hero p {
  font-size: 18px;
  color: #64748b;
}

/* Blog post cards */
.blog .ast-article-post,
.archive .ast-article-post {
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  overflow: hidden;
  transition: all 0.3s ease !important;
  margin-bottom: 24px !important;
  background: #fff !important;
}
.blog .ast-article-post:hover,
.archive .ast-article-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06) !important;
  border-color: #c7d2fe !important;
}
.blog .ast-article-inner,
.archive .ast-article-inner {
  padding: 0 !important;
}

/* Post title */
.blog .entry-title a,
.archive .entry-title a {
  color: #0a2540 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  transition: color 0.2s;
}
.blog .entry-title a:hover,
.archive .entry-title a:hover {
  color: #1a56db !important;
}

/* Post content area */
.blog .ast-article-post .entry-content,
.blog .ast-article-post .entry-header,
.archive .ast-article-post .entry-content,
.archive .ast-article-post .entry-header {
  padding: 24px 28px !important;
}

/* Post meta */
.blog .entry-meta,
.archive .entry-meta {
  color: #94a3b8 !important;
  font-size: 13px !important;
}
.blog .entry-meta a,
.archive .entry-meta a {
  color: #64748b !important;
  text-decoration: none !important;
}

/* Read more link */
.blog .ast-read-more-container a,
.archive .ast-read-more-container a,
.blog .read-more a,
.archive .read-more a {
  color: #1a56db !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-size: 14px;
}

/* Post thumbnail placeholder */
.blog .ast-article-post .post-thumb-img-content,
.archive .ast-article-post .post-thumb-img-content {
  border-radius: 16px 16px 0 0 !important;
  overflow: hidden;
}

/* Grid layout for blog */
.blog .ast-container .site-main,
.archive .ast-container .site-main {
  max-width: 900px;
  margin: 0 auto;
}

/* Blog page title hide (Astra shows it) */
.blog .page-title,
.archive .page-title,
.blog .ast-archive-description,
.archive .ast-archive-description {
  display: none !important;
}

/* ===== SMOOTH SCROLL ===== */
html {
  scroll-behavior: smooth;
}

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 1024px) {
  .entry-content > .wp-block-group {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
  .votazz-product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .votazz-testimonials { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .entry-content h1 { font-size: 40px !important; }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 768px) {
  .entry-content > .wp-block-group {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .entry-content h1 { font-size: 32px !important; letter-spacing: -1px !important; }
  .entry-content h2 { font-size: 26px !important; }
  .votazz-product-grid { grid-template-columns: 1fr; gap: 12px; }
  .votazz-testimonials { grid-template-columns: 1fr; gap: 12px; }
  .votazz-card { padding: 20px; }
  .vt-card { padding: 24px; }
  .votazz-logo-strip .wp-block-image img { max-height: 28px !important; }
  .wp-block-button .wp-block-button__link { padding: 12px 24px !important; }
}
