/*
Theme Name: CCMS Dashboard
Theme URI: https://apps.caridig.online
Author: CARIDIG Marketing, Conrad Guthrie
Author URI: https://apps.caridig.online
Description: Caribbean Courier Management System (CCMS) Dashboard — a modern, mobile-responsive WordPress theme for courier, logistics, and parcel delivery businesses across the Caribbean. Includes customizable hero (image/video), tracking, Quick View Calculator, testimonials, WhatsApp button, WooCommerce support, and a full Theme Options panel. Demo: https://apps.caridig.online
Version: 1.7.8
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ccms
Domain Path: /languages
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, theme-options, translation-ready, e-commerce, block-styles
*/

/* ==========================================================================
   CSS Variables - CCMS Logo Color Palette (Green + Yellow/Gold)
   ========================================================================== */
:root {
  --pf-primary: #1a7a3a;       /* Deep green from logo */
  --pf-primary-dark: #0f5c28;
  --pf-primary-light: #2e9b4f;
  --pf-accent: #e6b800;        /* Yellow/gold from logo top */
  --pf-accent-hover: #c99a00;
  --pf-dark: #0f172a;
  --pf-gray-900: #1e293b;
  --pf-gray-700: #334155;
  --pf-gray-500: #64748b;
  --pf-gray-300: #cbd5e1;
  --pf-gray-100: #f1f5f9;
  --pf-white: #ffffff;
  --pf-bg: #f8fafc;
  --pf-radius: 12px;
  --pf-radius-sm: 8px;
  --pf-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --pf-shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.12);
  --pf-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --pf-transition: all 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--pf-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--pf-gray-700);
  background: var(--pf-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--pf-transition); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--pf-dark);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin-bottom: 1rem; }

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--pf-primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title { margin-bottom: 12px; }
.section-desc { color: var(--pf-gray-500); max-width: 600px; margin-bottom: 40px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--pf-transition);
  text-align: center;
}

.btn-primary {
  background: var(--pf-accent);
  color: var(--pf-white);
}
.btn-primary:hover {
  background: var(--pf-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}

.btn-secondary {
  background: var(--pf-primary);
  color: var(--pf-white);
}
.btn-secondary:hover {
  background: var(--pf-primary-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--pf-primary);
  color: var(--pf-primary);
}
.btn-outline:hover {
  background: var(--pf-primary);
  color: var(--pf-white);
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.pf-topbar {
  background: var(--pf-dark);
  color: var(--pf-gray-300);
  font-size: 0.85rem;
  padding: 10px 0;
}
.pf-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.pf-topbar a { color: var(--pf-gray-300); }
.pf-topbar a:hover { color: var(--pf-white); }
.pf-topbar-contact { display: flex; gap: 24px; flex-wrap: wrap; }
.pf-topbar-contact span { display: flex; align-items: center; gap: 6px; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.pf-header {
  background: var(--pf-white);
  box-shadow: var(--pf-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.pf-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.site-branding { display: flex; align-items: center; gap: 10px; }
.site-logo { font-size: 1.6rem; font-weight: 800; color: var(--pf-primary); letter-spacing: -0.5px; }
.site-logo span { color: var(--pf-accent); }

.main-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-weight: 500;
  color: var(--pf-gray-700);
  font-size: 0.95rem;
}
.main-nav a:hover,
.main-nav .current-menu-item a { color: var(--pf-primary); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-login { font-weight: 500; color: var(--pf-gray-700); }
.header-login:hover { color: var(--pf-primary); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--pf-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.pf-hero {
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 50%, #fff7ed 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.pf-hero.has-bg-image {
  background-color: #0f172a;
}
.pf-hero.has-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(26, 122, 58, 0.65) 100%);
  z-index: 0;
}
.pf-hero.has-bg-image .container {
  position: relative;
  z-index: 1;
}
.pf-hero.has-bg-image .hero-title,
.pf-hero.has-bg-image .hero-desc {
  color: #fff;
}
.pf-hero.has-bg-image .section-badge {
  background: rgba(230, 184, 0, 0.25);
  color: #fff;
}
.pf-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content .section-badge { background: rgba(249, 115, 22, 0.12); color: var(--pf-accent); }
.hero-title { margin-bottom: 20px; }
.hero-desc { font-size: 1.1rem; color: var(--pf-gray-500); margin-bottom: 32px; max-width: 480px; }

.tracking-box {
  background: var(--pf-white);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--pf-shadow-lg);
  display: flex;
  gap: 8px;
  max-width: 520px;
}
.tracking-box input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  border-radius: 12px;
  outline: none;
  background: var(--pf-gray-100);
}
.tracking-box .btn { border-radius: 12px; padding: 14px 24px; white-space: nowrap; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--pf-shadow-lg);
  width: 100%;
  max-width: 380px;
}
.hero-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 20px;
}
.hero-stats-mini { display: flex; gap: 24px; margin-top: 24px; }
.hero-stats-mini div { text-align: center; }
.hero-stats-mini strong { display: block; font-size: 1.4rem; color: var(--pf-primary); }
.hero-stats-mini span { font-size: 0.8rem; color: var(--pf-gray-500); }

/* ==========================================================================
   Partners / Logos
   ========================================================================== */
.pf-partners {
  padding: 40px 0;
  background: var(--pf-white);
  border-bottom: 1px solid var(--pf-gray-100);
}
.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.6;
}
.partner-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--pf-gray-500);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.pf-features { padding: 80px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: stretch;
}
.feature-card {
  background: var(--pf-white);
  border-radius: var(--pf-radius);
  padding: 32px 24px;
  box-shadow: var(--pf-shadow);
  transition: var(--pf-transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--pf-shadow-lg);
}
/* Feature images (Features section only — independent of country flags) */
.feature-image-box {
  /* No horizontal auto margins — alignment is controlled by the card's align-items */
  margin: 0 0 18px;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, 0.08);
  border-radius: 16px;
}
.feature-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.feature-image-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  background: rgba(15, 118, 110, 0.12);
  border-radius: 12px;
}

/* Feature card alignment (left / center / right).
   Parent flex align-items positions the image box + text together. */
.pf-features.feature-align-left .feature-card {
  text-align: left;
  align-items: flex-start;
}
.pf-features.feature-align-center .feature-card {
  text-align: center;
  align-items: center;
}
.pf-features.feature-align-right .feature-card {
  text-align: right;
  align-items: flex-end;
}
.feature-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.feature-card p { font-size: 0.9rem; color: var(--pf-gray-500); margin: 0; }

/* ==========================================================================
   About Section
   ========================================================================== */
.pf-about {
  padding: 80px 0;
  background: var(--pf-white);
}
.pf-about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-light));
  border-radius: 20px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.about-image.has-image {
  font-size: 0;
  color: transparent;
}
.about-image.has-image::after {
  background: rgba(0,0,0,0.15);
}
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.about-content .section-desc { margin-bottom: 28px; }
.about-list { margin-bottom: 32px; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 500;
}
.about-list li::before {
  content: '✓';
  color: var(--pf-primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ==========================================================================
   Services
   ========================================================================== */
.pf-services { padding: 80px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--pf-white);
  border-radius: var(--pf-radius);
  padding: 32px;
  box-shadow: var(--pf-shadow);
  display: flex;
  gap: 20px;
  transition: var(--pf-transition);
}
.service-card:hover { box-shadow: var(--pf-shadow-lg); }
.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--pf-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; color: var(--pf-gray-500); margin: 0; }

/* ==========================================================================
   Stats Counter
   ========================================================================== */
.pf-stats {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--pf-primary-dark), var(--pf-primary));
  color: white;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.stat-item span { font-size: 0.95rem; opacity: 0.85; }

/* ==========================================================================
   Pricing / Calculator
   ========================================================================== */
.pf-pricing { padding: 80px 0; background: var(--pf-white); }
.pricing-box {
  background: var(--pf-bg);
  border-radius: 20px;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--pf-shadow);
}
.pricing-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--pf-dark);
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--pf-gray-300);
  border-radius: var(--pf-radius-sm);
  font-size: 0.95rem;
  background: var(--pf-white);
  outline: none;
  transition: var(--pf-transition);
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--pf-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}
.pricing-result {
  background: var(--pf-white);
  border-radius: var(--pf-radius-sm);
  padding: 20px;
  text-align: center;
  margin-top: 16px;
  display: none;
}
.pricing-result.active { display: block; }
.pricing-result strong { font-size: 1.8rem; color: var(--pf-primary); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.pf-testimonials { padding: 80px 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--pf-white);
  border-radius: var(--pf-radius);
  padding: 32px;
  box-shadow: var(--pf-shadow);
}
.testimonial-text {
  font-size: 0.95rem;
  color: var(--pf-gray-700);
  margin-bottom: 24px;
  font-style: italic;
  line-height: 1.7;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--pf-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.author-info strong { display: block; font-size: 0.95rem; }
.author-info span { font-size: 0.8rem; color: var(--pf-gray-500); }

/* ==========================================================================
   CTA / Merchant
   ========================================================================== */
.pf-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--pf-dark), #1e293b);
  color: white;
  text-align: center;
}
.pf-cta h2 { color: white; margin-bottom: 16px; }
.pf-cta p { color: var(--pf-gray-300); max-width: 560px; margin: 0 auto 32px; }
.pf-cta .btn-primary { font-size: 1.05rem; padding: 16px 36px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.pf-contact { padding: 80px 0; background: var(--pf-white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}
.contact-info h3 { margin-bottom: 20px; }
.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--pf-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-form {
  background: var(--pf-bg);
  padding: 32px;
  border-radius: var(--pf-radius);
}
.contact-form .form-group { margin-bottom: 18px; }
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--pf-gray-300);
  border-radius: var(--pf-radius-sm);
  min-height: 120px;
  resize: vertical;
  outline: none;
}
.contact-form textarea:focus {
  border-color: var(--pf-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.pf-footer {
  background: var(--pf-dark);
  color: var(--pf-gray-300);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .site-logo { color: white; margin-bottom: 16px; display: inline-block; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--pf-primary-light); }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   Page Content (inner pages)
   ========================================================================== */
.page-header {
  background: linear-gradient(135deg, var(--pf-primary-dark), var(--pf-primary));
  color: white;
  padding: 60px 0;
  text-align: center;
}
.page-header h1 { color: white; }
.site-content { padding: 60px 0; }
.entry-content { max-width: 800px; margin: 0 auto; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .pf-hero .container,
  .pf-about .container,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; }
  .features-grid,
  .services-grid,
  .testimonials-grid,
  .stats-grid,
  .footer-grid,
  .pricing-form {
    grid-template-columns: 1fr;
  }
  .main-nav { display: none; }
  .main-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--pf-shadow);
    padding: 20px;
  }
  .main-nav.active ul { flex-direction: column; gap: 16px; }
  .mobile-toggle { display: block; }
  .header-actions .btn { display: none; }
  .tracking-box { flex-direction: column; }
}

@media (max-width: 480px) {
  .pf-topbar-contact { font-size: 0.8rem; gap: 12px; }
  .hero-title { font-size: 1.9rem; }
}
/* ==========================================================================
   CCMS Logo
   ========================================================================== */
.site-branding .custom-logo,
.site-branding .ja-logo,
.site-logo-link img {
  max-height: 56px;
  width: auto;
  display: block;
}
.site-logo-link {
  display: inline-flex;
  align-items: center;
}
.pf-footer .site-logo-link img {
  max-height: 48px;
}

/* Floating WhatsApp Button */
.ccms-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.ccms-whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
  color: #fff;
}
.ccms-whatsapp-float svg {
  display: block;
}
@media (max-width: 480px) {
  .ccms-whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
}

/* WooCommerce custom titles */
.ccms-wc-page-title {
  margin-bottom: 1rem;
}
.ccms-wc-custom-msg {
  margin-bottom: 1.25rem;
}



/* Stats with optional background image */
.pf-stats.has-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.pf-stats.has-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 118, 110, 0.82);
  z-index: 0;
}
.pf-stats.has-bg-image .container {
  position: relative;
  z-index: 1;
}

/* Footer 3-column layout (Services removed) */
.footer-grid-3 {
  grid-template-columns: 1.4fr 1fr 1fr !important;
}
@media (max-width: 768px) {
  .footer-grid-3 {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================================
   Market Trends Page (refined)
   ========================================================================== */
.pf-trends-page {
  padding: 48px 0 80px;
  background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 180px, #f8fafc 100%);
}
.trends-hero { text-align: center; margin-bottom: 28px; }
.trends-lead {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  color: var(--pf-gray-500, #64748b);
}
.trends-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 auto 36px;
  max-width: 960px;
}
.trends-stat {
  background: #fff;
  border: 1px solid var(--pf-gray-100, #e2e8f0);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.trends-stat strong {
  display: block;
  font-size: 1.45rem;
  color: var(--pf-primary, #1a7a3a);
  margin-bottom: 4px;
}
.trends-stat span {
  font-size: 0.8rem;
  color: var(--pf-gray-500, #64748b);
  line-height: 1.3;
}
.trends-toolbar {
  background: #fff;
  border: 1px solid var(--pf-gray-100, #e2e8f0);
  border-radius: 16px;
  padding: 20px 22px 14px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.trends-search-wrap { max-width: 100%; margin-bottom: 14px; }
.trends-search-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--pf-gray-200, #e2e8f0);
  border-radius: 12px;
  font-size: 1rem;
}
.trends-search-input:focus {
  outline: none;
  border-color: var(--pf-primary, #1a7a3a);
  box-shadow: 0 0 0 3px rgba(26, 122, 58, 0.15);
}
.trends-search-meta {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--pf-gray-500, #64748b);
}
.trends-clear-btn {
  background: none;
  border: none;
  color: var(--pf-primary, #1a7a3a);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
}
.trends-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trends-filter {
  border: 1px solid var(--pf-gray-200, #e2e8f0);
  background: #fff;
  color: var(--pf-gray-700, #334155);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.trends-filter:hover,
.trends-filter.active {
  background: var(--pf-primary, #1a7a3a);
  border-color: var(--pf-primary, #1a7a3a);
  color: #fff;
}
.trends-customs-ref {
  background: #fff;
  border: 1px solid var(--pf-gray-100, #e2e8f0);
  border-radius: 16px;
  padding: 22px 20px 16px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.trends-ref-title {
  font-size: 1.15rem;
  margin: 0 0 14px;
}
.trends-ref-table-wrap { overflow-x: auto; }
.trends-ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 640px;
}
.trends-ref-table th,
.trends-ref-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--pf-gray-100, #f1f5f9);
  vertical-align: top;
}
.trends-ref-table th {
  background: rgba(26, 122, 58, 0.06);
  color: var(--pf-dark, #0f172a);
  font-weight: 700;
}
.trends-ref-table tr:last-child td { border-bottom: none; }
.trends-ref-note {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--pf-gray-500, #64748b);
}
.trends-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.trend-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 22px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border: 1px solid var(--pf-gray-100, #f1f5f9);
  display: flex;
  flex-direction: column;
}
.trend-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.trend-cat {
  background: rgba(26, 122, 58, 0.1);
  color: var(--pf-primary, #1a7a3a);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.trend-audience {
  background: rgba(230, 184, 0, 0.15);
  color: #92650a;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.trend-card h2 {
  font-size: 1.12rem;
  margin: 0 0 10px;
  line-height: 1.35;
}
.trend-summary {
  color: var(--pf-gray-500, #64748b);
  font-size: 0.92rem;
  margin-bottom: 12px;
  flex: 0 0 auto;
}
.trend-points {
  margin: 0 0 14px;
  padding-left: 18px;
  list-style: disc;
}
.trend-points li {
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--pf-gray-700, #334155);
}
.trend-action {
  font-size: 0.88rem;
  background: rgba(26, 122, 58, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  margin: auto 0 0;
}
.trends-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--pf-gray-500, #64748b);
  font-size: 1.05rem;
}
.trends-disclaimer {
  margin-top: 40px;
  text-align: center;
  padding: 28px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--pf-gray-100, #f1f5f9);
}
.trends-disclaimer p { color: var(--pf-gray-500, #64748b); font-size: 0.88rem; }
.trends-disclaimer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .trends-stats-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .trends-grid { grid-template-columns: 1fr; }
  .trends-stats-strip { grid-template-columns: 1fr 1fr; }
}


/* Flags marquee under hero — size from --ccms-flag-size (Theme Options / Hero tab) */
.ccms-flags-marquee {
  --ccms-flag-size: 3rem;
  --ccms-flag-scale: 1;
  overflow: hidden;
  background: #0f172a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 16px 0;
  white-space: nowrap;
}
.ccms-flags-track {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  animation: ccms-flags-scroll 40s linear infinite;
  will-change: transform;
}
.ccms-flag-item {
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 1.2vw, 10px);
  color: rgba(255,255,255,0.9);
  font-size: calc(var(--ccms-flag-size) * var(--ccms-flag-scale) * 0.55);
  font-weight: 500;
  flex-shrink: 0;
}
.ccms-flag-emoji {
  font-size: calc(var(--ccms-flag-size) * var(--ccms-flag-scale));
  line-height: 1;
  display: block;
}
.ccms-flag-name {
  opacity: 0.85;
  white-space: nowrap;
}
@keyframes ccms-flags-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* Responsive flag layouts — scale down on smaller screens so large admin sizes still fit */
@media (max-width: 1024px) {
  .ccms-flags-marquee {
    --ccms-flag-scale: 0.9;
    padding: 14px 0;
  }
}
@media (max-width: 768px) {
  .ccms-flags-marquee {
    --ccms-flag-scale: 0.75;
    padding: 12px 0;
  }
  .ccms-flags-track {
    animation-duration: 32s;
  }
}
@media (max-width: 480px) {
  .ccms-flags-marquee {
    --ccms-flag-scale: 0.65;
    padding: 10px 0;
  }
  /* Hide long country names on very small screens; emoji flags stay visible */
  .ccms-flag-name {
    display: none;
  }
  .ccms-flags-track {
    gap: 20px;
    animation-duration: 28s;
  }
}

/* Footer social + 2-col */
.footer-grid-2 {
  grid-template-columns: 1fr 1fr !important;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.footer-social a {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  transition: all 0.15s ease;
}
.footer-social a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
@media (max-width: 768px) {
  .footer-grid-2 { grid-template-columns: 1fr !important; }
}

/* WC survey field */
.ccms-source-survey {
  margin: 20px 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.ccms-source-survey label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.ccms-source-survey select,
.ccms-source-survey input {
  width: 100%;
  max-width: 400px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}


/* Hero background video */
.pf-hero {
  position: relative;
  overflow: hidden;
}
.pf-hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.pf-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.pf-hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 118, 110, 0.55) 100%);
}
.pf-hero.has-bg-video .container {
  position: relative;
  z-index: 1;
}
.pf-hero.has-bg-video .hero-title,
.pf-hero.has-bg-video .hero-desc {
  color: #fff;
}
.pf-hero.has-bg-video .section-badge {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.pf-hero.has-bg-image {
  background-size: cover;
  background-position: center;
}

/* Hero video performance + CSS fallback */
.pf-hero-video-wrap {
  background-color: #0f172a;
  background-image: var(--pf-hero-fallback, none);
  background-size: cover;
  background-position: center;
}
.pf-hero-video-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  display: none;
}
/* Show static fallback when video fails, reduced motion, or no video support */
.pf-hero-video.is-fallback,
.pf-hero-video.is-fallback + .pf-hero-video-overlay + .pf-hero-video-fallback {
  /* handled below */
}
.pf-hero-video.is-fallback {
  opacity: 0;
  pointer-events: none;
}
.pf-hero-video-wrap:has(.pf-hero-video.is-fallback) .pf-hero-video-fallback,
.pf-hero-video-wrap:has(.pf-hero-video.is-fallback) {
  /* ensure fallback image shows */
}
.pf-hero-video-wrap:has(.pf-hero-video.is-fallback) .pf-hero-video-fallback {
  display: block;
  z-index: 0;
}
.pf-hero-video {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
@supports not (object-fit: cover) {
  .pf-hero-video { display: none; }
  .pf-hero-video-fallback { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-hero-video {
    display: none !important;
  }
  .pf-hero-video-fallback {
    display: block !important;
  }
}
/* Lazy-loaded content images */
img[loading="lazy"] {
  content-visibility: auto;
}


/* Plugin calculator on homepage */
.ccms-quick-calc-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.ccms-quick-calc-wrap .jaqlc-calculator {
  margin: 0 auto;
}
