/*
Theme Name: Hello Elementor Child
Theme URI: https://analytigrow.com/
Description: Child theme for Hello Elementor — Analytigrow
Author: Analytigrow
Template: hello-elementor
Version: 1.0.0
*/

/* === COLORS & VARIABLES === */
:root {
  --blue: #0B3C5D;
  --red: #D62828;
  --green: #1A7A4A;
  --light: #F7F9FB;
  --border: #E0E0E0;
  --white: #FFFFFF;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', system-ui, sans-serif !important;
  color: #1A1A2E;
}

/* === TYPOGRAPHY === */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }
p  { font-size: 1rem; line-height: 1.7; color: #444; }

/* === BUTTONS === */
.btn-primary {
  background: #D62828 !important;
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}
.btn-secondary {
  background: #1A7A4A !important;
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  text-decoration: none !important;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  text-decoration: none;
}

/* === LAYOUT & GRID === */
.section-pad    { padding: 80px 20px; }
.section-pad-sm { padding: 50px 20px; }
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.card {
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 28px;
  width: 100%;
}
.card-danger  { border-left: 5px solid #D62828; }
.card-warning { border-left: 5px solid #E07B00; }
.card-purple  { border-left: 5px solid #6B3FA0; }
.card-blue    { border-left: 5px solid #0B3C5D; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.bg-dark  { background: #0D1B2A; color: #fff; }
.bg-dark p { color: #CBD5E1; }
.bg-blue  { background: #0B3C5D; color: #fff; }
.bg-blue p { color: #BFCDD8; }
.bg-light { background: #F7F9FB; }

/* === COMPARE TABLE === */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th { background: #0B3C5D; color: #fff; padding: 14px; text-align: left; }
.compare-table td { padding: 12px 14px; border-bottom: 1px solid #E0E0E0; }
.compare-table tr:nth-child(even) td { background: #F7F9FB; }
.col-bad  { color: #D62828; }
.col-good { color: #1A7A4A; font-weight: 600; }

/* === STATS & STEPS === */
.stat-item   { text-align: center; padding: 20px; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: #0B3C5D; }
.stat-label  { font-size: 0.9rem; color: #666; }
.step-number {
  width: 44px; height: 44px; border-radius: 50%;
  background: #0B3C5D; color: #fff;
  font-size: 1.2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.testimonial { border-left: 4px solid #0B3C5D; padding-left: 20px; margin: 0; }

/* === HEADER === */
#site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid #E0E0E0;
  padding: 0 20px;
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  color: #0B3C5D;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.4rem;
  font-family: Inter, system-ui, sans-serif;
}
.desktop-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-link {
  color: #0B3C5D;
  text-decoration: none;
  font-weight: 500;
}
.nav-link:hover,
.nav-link.active {
  text-decoration: underline;
  color: #0B3C5D;
}
#menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* === MOBILE MENU === */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  border-top: 1px solid #E0E0E0;
  width: 100%;
  position: sticky;
  top: 64px;
  z-index: 997;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu .nav-link {
  font-size: 1rem;
  color: #0B3C5D;
  padding: 8px 0;
  border-bottom: 1px solid #F0F0F0;
  text-decoration: none;
}
.mobile-menu .btn-primary {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}
.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #0B3C5D;
  margin: 5px 0;
  transition: all 0.3s ease;
}
@media (min-width: 769px) {
  #menu-toggle { display: none !important; }
  .mobile-menu  { display: none !important; }
}

/* === FOOTER === */
#site-footer {
  background: #0B3C5D !important;
  color: #fff !important;
  padding: 60px 20px 20px !important;
}
#site-footer a { color: #BFCDD8 !important; text-decoration: none !important; }
#site-footer a:hover { color: #fff !important; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px;
}
.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.footer-tagline { color: #BFCDD8; margin-bottom: 8px; }
.footer-desc    { color: #BFCDD8; margin: 0; }
.footer-heading { font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-whatsapp {
  display: block;
  background: #1A7A4A;
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none !important;
  text-align: center;
  margin-bottom: 10px;
}
.btn-email {
  display: block;
  background: transparent;
  color: #fff !important;
  border: 2px solid #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none !important;
  text-align: center;
  margin-bottom: 12px;
}
.footer-email-text { color: #BFCDD8; font-size: 0.9rem; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  max-width: 1100px;
  margin: 0 auto;
}

/* === HELLO ELEMENTOR OVERRIDES === */
.hello-elementor .site-header,
.hello-elementor .page-header { display: none !important; }
.hello-elementor .site-footer { display: none !important; }
.hello-elementor .page .entry-header { display: none !important; }
.hello-elementor .page .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}
main#content.site-main {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.hello-elementor-content-area {
  padding: 0 !important;
  max-width: 100% !important;
}
.wp-block-html { margin: 0; padding: 0; }

/* === FORMS === */
.wpcf7-form {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="url"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: #1A1A2E;
  background: #ffffff;
  margin-bottom: 16px;
  display: block;
  box-sizing: border-box;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  outline: none;
  border-color: #0B3C5D;
  box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.1);
}
.wpcf7-form .wpcf7-submit {
  background: #D62828;
  color: #ffffff;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}
.wpcf7-form .wpcf7-submit:hover {
  background: #b01f1f;
}

/* === RESPONSIVE — TABLET (max-width: 1024px) === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* === RESPONSIVE — MOBILE (max-width: 768px) === */
@media (max-width: 768px) {
  /* Grid classes */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }

  /* Buttons */
  .btn-primary, .btn-secondary, .btn-outline {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
  }

  /* Sections */
  .section-pad    { padding: 40px 16px !important; }
  .section-pad-sm { padding: 30px 16px !important; }
  .hide-mobile    { display: none !important; }

  /* Header */
  .desktop-nav { display: none !important; }
  #menu-toggle { display: block !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  #site-footer { padding: 40px 16px 20px !important; }

  /* Stats */
  .stat-number { font-size: 1.8rem !important; }

  /* Table: make horizontally scrollable */
  .compare-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    width: 100%;
    font-size: 0.82rem;
  }
  .compare-table th, .compare-table td {
    padding: 10px 8px;
    font-size: 0.82rem;
    white-space: normal;
    min-width: 100px;
  }

  /* Inline grids from HTML blocks */
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="display:grid"],
  div[style*="display: grid"] {
    display: block !important;
  }
  div[style*="display:flex"],
  div[style*="display: flex"] {
    flex-wrap: wrap !important;
  }

  /* CTA button rows */
  div[style*="display:flex"][style*="gap"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* Inline styled buttons */
  a[style*="background:#D62828"],
  a[style*="background: #D62828"],
  a[style*="background:#1A7A4A"],
  a[style*="background: #1A7A4A"],
  a[style*="background:transparent"],
  a[style*="background: transparent"] {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
  }

  /* Forms */
  input[type="text"],
  input[type="email"],
  input[type="url"],
  select,
  textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
  }

  /* Padding on sections */
  div[style*="padding:100px"],
  div[style*="padding: 100px 20px"] { padding: 50px 16px !important; }
  div[style*="padding:80px"],
  div[style*="padding: 80px 20px"]  { padding: 40px 16px !important; }
  div[style*="padding:50px"],
  div[style*="padding: 50px 20px"]  { padding: 30px 16px !important; }

  /* Typography */
  h1 { font-size: clamp(1.7rem, 8vw, 2.4rem) !important; }
  h2 { font-size: clamp(1.3rem, 6vw, 1.8rem) !important; }

  /* No overflow anywhere */
  * { max-width: 100vw; }
  body { overflow-x: hidden !important; }

  /* Form boxes */
  form { padding: 20px 16px !important; }
}

/* === RESPONSIVE — SMALL MOBILE (max-width: 480px) === */
@media (max-width: 480px) {
  h1 { font-size: 1.7rem !important; }
  h2 { font-size: 1.35rem !important; }
  .stat-number { font-size: 1.6rem !important; }
  .step-number { width: 36px; height: 36px; font-size: 1rem; }
}
