/* HumanXpert Landing Page Styles - Updated Theme */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Hero Section - Matching Header Colors */
.hx-hero-section {
    background: linear-gradient(135deg, #4a9c8e 0%, #357a73 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hx-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M0,1000V500Q250,400 500,500T1000,500V1000Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat bottom center;
    background-size: cover;
}

.hx-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hx-hero-content {
    color: white;
}

.hx-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hx-hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hx-brand-highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hx-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.hx-hero-stats {
    display: flex;
    gap: 40px;
}

.hx-stat-item {
    text-align: center;
}

.hx-stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 8px;
}

.hx-stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
}

.hx-hero-image-wrapper {
    position: relative;
}

.hx-hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.hx-floating-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #4a9c8e;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.hx-services-section {
    padding: 120px 0;
    background: #f8fafb;
}

.hx-services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hx-section-header {
    text-align: center;
    margin-bottom: 80px;
}

.hx-section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4a9c8e, #357a73);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hx-section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

.hx-section-subtitle {
    font-size: 1.2rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Services Grid - 2x2 Layout */
.hx-services-grid-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.hx-service-card.hx-premium-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.hx-service-card.hx-premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4a9c8e, #357a73);
}

.hx-service-card.hx-premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(74, 156, 142, 0.15);
    border-color: #4a9c8e;
}

.hx-service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.hx-service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4a9c8e, #357a73);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hx-service-premium-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #2d3748;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hx-service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hx-service-description {
    color: #4a5568;
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.hx-service-features {
    list-style: none;
}

.hx-service-features li {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.hx-service-features li::before {
    content: '✓';
    color: #4a9c8e;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Additional Services Grid - 3 columns */
.hx-services-grid-additional {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.hx-service-card.hx-compact-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
}

.hx-service-card.hx-compact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(74, 156, 142, 0.12);
    border-color: #4a9c8e;
}

.hx-compact-card .hx-service-header {
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.hx-compact-card .hx-service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto;
}

.hx-ai-badge {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
}

.hx-compact-card .hx-service-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.hx-compact-card .hx-service-description {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* CTA Section */
.hx-cta-section {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    padding: 100px 0;
    color: white;
}

.hx-cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hx-cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hx-cta-badge {
    display: inline-block;
    background: rgba(74, 156, 142, 0.2);
    color: #4a9c8e;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(74, 156, 142, 0.3);
}

.hx-cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hx-cta-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 35px;
    line-height: 1.6;
}

.hx-cta-benefits {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hx-benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hx-benefit-icon {
    background: #4a9c8e;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hx-forminator-container {
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* Trust Section */
.hx-trust-section {
    padding: 80px 0;
    background: white;
}

.hx-trust-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hx-trust-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 50px;
}

.hx-trust-indicators {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.hx-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hx-trust-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4a9c8e, #357a73);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hx-trust-item span {
    font-weight: 600;
    color: #4a5568;
    font-size: 1.05rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hx-services-grid-main {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .hx-services-grid-additional {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hx-cta-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hx-hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hx-hero-title {
        font-size: 2.5rem;
    }
    
    .hx-hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .hx-cta-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hx-trust-indicators {
        gap: 50px;
    }
    
    .hx-section-title {
        font-size: 2.2rem;
    }
    
    .hx-cta-title {
        font-size: 2.2rem;
    }
    
    .hx-service-card.hx-premium-card {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .hx-hero-title {
        font-size: 2rem;
    }
    
    .hx-service-card.hx-premium-card {
        padding: 25px;
    }
    
    .hx-service-card.hx-compact-card {
        padding: 25px;
    }
}

/* ============================
   EXTRA RESPONSIVE TWEAKS
   (append after your CSS)
   ============================ */

/* --- Tablet polish (iPad portrait & landscape) --- */
@media (min-width: 768px) and (max-width: 1024px) {
  /* keep hero compact so it doesn’t feel too tall on tablets */
  .hx-hero-section { min-height: 85vh; }

  /* improve readability without changing your layout choices */
  .hx-hero-title { font-size: 2.6rem; }
  .hx-hero-subtitle { font-size: 1.05rem; }

  /* modestly tighten section spacing for tablets */
  .hx-services-section { padding: 90px 0; }
  .hx-cta-section { padding: 90px 0; }
  .hx-trust-section { padding: 70px 0; }

  /* avoid oversized cards on tablet */
  .hx-service-card.hx-premium-card,
  .hx-service-card.hx-compact-card { padding: 32px; }

  /* keep trust items neat */
  .hx-trust-indicators { gap: 60px; }
}

/* --- Small mobile (≤ 400px) --- */
@media (max-width: 400px) {
  /* make hero shorter on tiny screens to avoid scroll trap */
  .hx-hero-section { min-height: 70vh; }

  .hx-hero-container { gap: 28px; }
  .hx-hero-badge { padding: 8px 14px; font-size: 12px; }
  .hx-hero-title { font-size: 1.9rem; line-height: 1.25; }
  .hx-hero-subtitle { font-size: 0.95rem; }

  /* stats shrink a bit so they fit on one or two lines nicely */
  .hx-hero-stats { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .hx-stat-number { font-size: 2rem; }
  .hx-stat-label { font-size: 0.85rem; }

  /* keep the floating badge from overlapping content */
  .hx-floating-badge { top: 10px; right: 10px; padding: 6px 10px; font-size: 11px; }

  /* card paddings & text for tighter fit */
  .hx-service-card.hx-premium-card,
  .hx-service-card.hx-compact-card { padding: 22px; }
  .hx-service-title { font-size: 1.15rem; }
  .hx-service-description { font-size: 0.95rem; }

  /* headings in sections */
  .hx-section-title { font-size: 1.8rem; }
  .hx-cta-title { font-size: 1.9rem; }
  .hx-cta-subtitle { font-size: 0.98rem; }

  /* trust area spacing */
  .hx-trust-indicators { gap: 28px; }
  .hx-trust-icon { width: 56px; height: 56px; }

  /* general: prevent any overflows */
  img, svg { max-width: 100%; height: auto; }
}

/* --- Very small mobile (≤ 340px) — safety net --- */
@media (max-width: 340px) {
  .hx-hero-title { font-size: 1.75rem; }
  .hx-hero-subtitle { font-size: 0.9rem; }
  .hx-stat-number { font-size: 1.8rem; }
  .hx-stat-label { font-size: 0.8rem; }
  .hx-service-title { font-size: 1.05rem; }
  .hx-cta-title { font-size: 1.7rem; }
  .hx-cta-subtitle { font-size: 0.92rem; }
  .hx-service-card.hx-premium-card,
  .hx-service-card.hx-compact-card { padding: 18px; }
}

/* --- Shared fixes for all small screens up to tablet --- */
@media (max-width: 1024px) {
  /* center hero image on narrower screens */
  .hx-hero-image img { margin: 0 auto; display: block; }

  /* keep lists readable */
  .hx-service-features li { line-height: 1.5; }

  /* ensure icons don’t overflow */
  .hx-service-icon { width: 52px; height: 52px; }
}

/* ===== Mobile Optimisation: 360px x 740px ===== */
@media (max-width: 380px) {
  /* Hero adjustments */
  .hx-hero-section { min-height: 75vh; }
  .hx-hero-container { gap: 28px; text-align: center; }
  .hx-hero-badge { padding: 6px 12px; font-size: 12px; }
  .hx-hero-title { font-size: 1.9rem; line-height: 1.25; }
  .hx-hero-subtitle { font-size: 0.95rem; }
  
  .hx-hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  .hx-stat-number { font-size: 2rem; }
  .hx-stat-label { font-size: 0.85rem; }
  .hx-floating-badge { top: 10px; right: 10px; padding: 6px 10px; font-size: 11px; }

  /* Services cards */
  .hx-service-card.hx-premium-card,
  .hx-service-card.hx-compact-card {
    padding: 22px;
  }
  .hx-service-title { font-size: 1.2rem; }
  .hx-service-description { font-size: 0.95rem; }

  /* Section headings */
  .hx-section-title { font-size: 1.8rem; }
  .hx-cta-title { font-size: 1.9rem; }
  .hx-cta-subtitle { font-size: 0.95rem; }

  /* Trust indicators */
  .hx-trust-indicators { gap: 28px; }
  .hx-trust-icon { width: 56px; height: 56px; }
}

/* --- FIX: Forminator form clipping on small devices (<= 400px) --- */
@media (max-width: 400px) {
  .hx-cta-content {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    text-align: center;
  }

  .hx-forminator-container {
    width: 100% !important;
    min-width: 0 !important;
    padding: 10px !important;
    overflow-x: auto; /* safety net if any field is wider */
  }

  .hx-forminator-container form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Ensure Forminator inputs don’t exceed viewport width */
  .hx-forminator-container input,
  .hx-forminator-container select,
  .hx-forminator-container textarea {
    max-width: 100% !important;
  }

  /* Avoid unintended clipping from parent containers */
  .hx-cta-container,
  .hx-cta-section {
    overflow: visible !important;
  }
}
/* --- Mobile hero fixes: top spacing + stop clipping --- */
@media (max-width: 768px) {
  .hx-hero-section {
    /* add safe top space (covers sticky header + iOS notch) */
    padding-top: calc(env(safe-area-inset-top) + 72px);
    padding-bottom: 24px;

    /* let content decide height and allow overflow to show */
    min-height: auto;
    overflow: visible;
  }

  /* center image in the single-column layout */
  .hx-hero-image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
  }
}

/* extra tight screens (e.g., 360px wide) */
@media (max-width: 380px) {
  .hx-hero-section {
    padding-top: calc(env(safe-area-inset-top) + 64px);
    padding-bottom: 20px;
  }
  .hx-hero-badge { margin-top: 0; }
}