/* ==========================================================================
   theme.css — CrazyGKTrick unified design system (loaded LAST)
   Professional, modern, trustworthy. Green + Blue brand. Mobile-first.
   Overrides legacy tokens so every page shares one consistent look.
   ========================================================================== */

:root {
  /* Typography */
  --font-head: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Brand — refined green + blue */
  --primary-color:   #16a34a;   /* green */
  --secondary-color: #bbf7d0;
  --accent-color:    #15803d;   /* deep green */
  --blue-color:      #0b5cd6;   /* blue */
  --blue-hover:      #0846a8;
  --brand-grad:      linear-gradient(135deg, #0b5cd6 0%, #14a35a 100%); /* blue → green */
  --brand-grad-deep: linear-gradient(135deg, #073a8f 0%, #0b5cd6 55%, #149a55 100%);
  --soft-grad:       linear-gradient(135deg, #eef4ff 0%, #eafaf1 100%);

  /* Neutrals — softer, more elegant than pure black */
  --text-dark:  #1e293b;
  --text-muted: #64748b;
  --bg-light:   #f7fafd;
  --surface:    #ffffff;
  --border:     #e8eef6;

  /* Elevation scale — soft & refined */
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 2px 8px rgba(15,23,42,.05);
  --shadow-md: 0 8px 22px rgba(15,23,42,.07);
  --shadow-lg: 0 16px 40px rgba(15,23,42,.10);
  --shadow-brand: 0 8px 20px rgba(11,92,214,.22);

  --radius:    14px;
  --radius-lg: 22px;
  --transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Base ---------- */
* { font-family: var(--font-body); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
a { transition: var(--transition); }
.container { width: 92%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
img { max-width: 100%; }

/* Accessible focus rings */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(11,92,214,.35);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; min-height: 46px;
  background: var(--brand-grad); color: #fff;
  border: none; border-radius: 12px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; letter-spacing: .2px;
  box-shadow: var(--shadow-brand); transition: var(--transition);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(11,92,214,.34); filter: brightness(1.04); color:#fff; }
.btn:active { transform: translateY(0); }
.btn-image-bottom {
  background: var(--brand-grad) !important; color: #fff !important;
  border: none !important; border-radius: 12px;
}
.btn-image-bottom:hover { filter: brightness(1.05); transform: translateY(-2px); }

/* ---------- Section titles ---------- */
.section-title {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--text-dark); text-align: center;
  margin-bottom: 40px; padding-bottom: 16px; position: relative; letter-spacing: -0.01em;
}
.section-title::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 58px; height: 3px; border-radius: 4px; background: var(--brand-grad);
}

/* ---------- Header / Nav ---------- */
.header-main {
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 rgba(15,23,42,.06), 0 6px 20px rgba(15,23,42,.05);
}
.navbar { padding: 12px 0; }
.logo img { height: 46px; }
.nav-links > li > a { font-family: var(--font-head); font-weight: 500; color: var(--text-dark); font-size: .95rem; }
.nav-links > li > a::after { height: 3px; border-radius: 3px; background: var(--brand-grad); }
.dropdown-content { border-radius: 0 0 14px 14px; border-top: 3px solid var(--blue-color); box-shadow: var(--shadow-lg); }
.dropdown-content a:hover { background: var(--soft-grad); color: var(--blue-color); }
.megamenu { border-radius: 0 0 16px 16px; border-top: 3px solid var(--blue-color); box-shadow: var(--shadow-lg); }
.megamenu-col h4 { color: var(--blue-color); border-bottom: 2px solid var(--secondary-color); }
.megamenu-col ul li a i { color: var(--primary-color); }
.nav-tpp-btn, .nav-links .nav-tpp-btn { border-radius: 30px; }

/* ---------- Hero ---------- */
.hero-slider-static {
  background-color: #f4f9ff;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(11,92,214,.10), transparent 42%),
    radial-gradient(circle at 82% 72%, rgba(20,163,90,.10), transparent 42%),
    radial-gradient(rgba(11,92,214,.10) 0.6px, transparent 0.6px);
  background-size: auto, auto, 18px 18px;
}
.hs-left h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 3.3vw, 2.5rem); color: var(--text-dark); text-shadow: none; line-height: 1.25; }
.text-blue { color: var(--blue-color); }
.hs-list { font-size: 1.02rem; font-weight: 400; }
.hs-list li { font-weight: 400; }
.hs-badge {
  background: rgba(11,92,214,.10); color: var(--blue-color); font-weight: 600;
  border: 1px solid rgba(11,92,214,.18); box-shadow: none; border-radius: 30px; padding: 8px 16px; font-size: .85rem;
}
.hs-badge:hover { background: rgba(11,92,214,.16); transform: translateY(-1px); }

/* ---------- Cards (platform / app) unified ---------- */
.platform-card, .app-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.platform-card { padding: 30px 22px; }
.platform-card:hover, .app-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(11,92,214,.22);
}
.platform-card i { color: var(--blue-color); }
.platform-card h4 { font-family: var(--font-head); color: var(--text-dark); }
.platform-card p { color: var(--text-muted); }
.app-card { border-radius: 999px; }
.app-store { color: var(--primary-color); }

/* Soft section backgrounds reuse the brand tint */
.apps-download, .social-media-info { background: var(--soft-grad); border: 1px solid var(--border); border-radius: var(--radius-lg); }

/* ---------- What's New ribbon ---------- */
.wn-ribbon { background: var(--brand-grad); }
.wn-ribbon::after { border-left-color: #14a35a; }

/* ---------- Testimonials ---------- */
.testimonial-item { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.testimonial-item:hover { box-shadow: var(--shadow-lg); }

/* ---------- Blog (unify with brand) ---------- */
.blog-hero { background: var(--brand-grad-deep) !important; }
.blog-cat-chip { border-radius: 30px; font-family: var(--font-head); }
.blog-cat-chip:hover, .blog-cat-chip.active { background: var(--blue-color); border-color: var(--blue-color); }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); position: relative; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
/* Make the WHOLE card clickable (thumbnail + body) — stretched link via the title */
.blog-card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 3; }
.blog-card .blog-card-img, .blog-card .blog-card-img img { cursor: pointer; }
.blog-card h3 a { position: static; }
.blog-card h3 { font-family: var(--font-head); font-weight: 600; }
.post-title { font-family: var(--font-head); font-weight: 700; }
.blog-hero h1 { font-weight: 700; }
.blog-card p, .post-body { font-weight: 400; }
.blog-badge { background: rgba(11,92,214,.10); color: var(--blue-color); border-radius: 30px; }
.post-body h2 { color: var(--blue-color); }
.blog-pagination .current { background: var(--blue-color); border-color: var(--blue-color); }

/* ---------- Generic content card for standalone-style pages ---------- */
.privacy-content-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }

/* ---------- Forms ---------- */
input, textarea, select { font-family: var(--font-body); }
.cf-field input, .cf-field textarea { border-radius: 11px; border-color: var(--border); transition: var(--transition); }
.cf-field input:focus, .cf-field textarea:focus { border-color: var(--blue-color); box-shadow: 0 0 0 3px rgba(11,92,214,.12); outline: none; }

/* ---------- Footer ---------- */
.footer-main { background: #0c1320; }
.footer-tab-buttons .tab-btn.active::after { background: var(--brand-grad); }
.tab-links-grid a:hover, .footer-quick-links a:hover { color: #7dd3a0; }

/* ---------- Floating query button ---------- */
#query-trigger-btn { background: var(--brand-grad); box-shadow: var(--shadow-brand); border-radius: 50px; }
#query-trigger-btn:hover { transform: scale(1.06); }

/* ---------- Ad slot ---------- */
.ad-slot { border-radius: var(--radius); }
.ad-slot.ad-live { background: none; border: none; min-height: 0; }

/* ---------- Blog promo / course CTA boxes ---------- */
.blog-cta { margin: 26px 0; }
.blog-cta-top {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: #eef4ff; border: 1px solid #d6e4ff; border-radius: 14px; padding: 15px 20px;
}
.blog-cta-top .cta-left { display: flex; align-items: center; gap: 10px; color: var(--text-dark); font-size: .97rem; line-height: 1.5; }
.blog-cta-top .cta-bolt { color: var(--blue-color); font-size: 1.05rem; }
.blog-cta-top .cta-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-grad); color: #fff; padding: 11px 22px; border-radius: 10px;
  font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; transition: var(--transition);
}
.blog-cta-top .cta-btn:hover { filter: brightness(1.05); transform: translateY(-1px); color: #fff; }

.blog-cta-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(135deg, #0b5cd6 0%, #0846a8 100%); color: #fff;
  border-radius: 18px; padding: 28px 30px;
}
.blog-cta-bottom .cta-content h3 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 600; color: #fff; }
.blog-cta-bottom .cta-content p { margin: 0; opacity: .94; font-size: .96rem; line-height: 1.55; }
.blog-cta-bottom .cta-btn-lg {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--blue-color); padding: 13px 26px; border-radius: 11px;
  font-weight: 600; font-size: .96rem; text-decoration: none; white-space: nowrap; transition: var(--transition);
}
.blog-cta-bottom .cta-btn-lg:hover { background: #f0f6ff; transform: translateY(-1px); }

@media (max-width: 640px) {
  .blog-cta-top, .blog-cta-bottom { flex-direction: column; align-items: flex-start; }
  .blog-cta-top .cta-btn, .blog-cta-bottom .cta-btn-lg { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Micro-interactions & motion
   ========================================================================== */
.platform-card, .app-card, .blog-card, .btn, .testimonial-item, .hs-badge, .blog-cat-chip { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Responsive (mobile-first refinements) — 1024 / 768 / 480 / 375
   ========================================================================== */
@media (max-width: 1024px) {
  .container { width: 94%; }
}
@media (max-width: 768px) {
  body { padding-top: 70px; }
  .section-title { margin-bottom: 26px; }
  .hs-list { font-size: .95rem; }
  .btn, .btn-image-bottom { width: auto; }
  /* comfortable touch targets */
  .nav-links > li > a, .footer-quick-links a, .tab-links-grid a, .dropdown-content a { min-height: 44px; display: flex; align-items: center; }
  .platform-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 480px) {
  .container { width: 100%; padding: 0 16px; }
  .platform-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.5rem; }
  .hs-left h1 { font-size: 1.55rem; }
  .btn, .btn-image-bottom { width: 100%; }
}
