/* ============================================================
   TRIVIKRA TECH 4.0 — RESPONSIVE OVERRIDES
   File: assets/css/responsive.css
   
   Breakpoint-specific adjustments. Bootstrap Grid handles
   the layout — these are fine-tuning tweaks.
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   LARGE DESKTOP (≤1400px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1400px) {
  .hero-title {
    font-size: 52px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--space-8);
  }

  .footer-grid .footer-links-group:nth-child(3) {
    display: block;
  }
}


/* ════════════════════════════════════════════════════════════
   DESKTOP (≤1200px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .section-title {
    font-size: var(--text-3xl);
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-inner .hero-title {
    font-size: 42px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid .stat-item:nth-child(2) {
    border-right: none;
  }

  .stats-grid .stat-item:nth-child(1),
  .stats-grid .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-solution {
    grid-template-columns: 1fr;
  }
}


/* ════════════════════════════════════════════════════════════
   TABLET (≤992px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  /* Navigation: Show hamburger, hide desktop nav */
  .nav-links,
  .nav-cta {
    display: none !important;
  }

  .nav-hamburger {
    display: flex;
  }

  .site-navbar {
    width: calc(100% - 32px);
    padding: 12px 20px;
  }

  /* Hero */
  .hero-section {
    padding: 130px 0 var(--space-16);
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-inner {
    padding: 120px 0 var(--space-12);
  }

  .hero-inner .hero-title {
    font-size: 36px;
  }

  /* Sections */
  .section {
    padding: var(--space-16) 0;
  }

  .section-lg {
    padding: var(--space-20) 0;
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  .section-desc {
    font-size: var(--text-base);
  }

  /* CTA */
  .cta-section {
    padding: var(--space-16) 0;
  }

  .cta-section h2 {
    font-size: var(--text-2xl);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-newsletter {
    grid-column: 1 / -1;
  }

  /* Founder Card */
  .founder-card {
    flex-direction: column;
    text-align: center;
  }

  .founder-image {
    margin: 0 auto;
  }

  /* Mega Menu */
  .mega-menu {
    display: none !important;
  }

  .nav-dropdown {
    display: none !important;
  }

  /* Stats */
  .stat-number {
    font-size: var(--text-3xl);
  }

  /* Article */
  .article-title {
    font-size: var(--text-2xl);
  }

  /* Blog Search */
  .blog-search {
    max-width: 100%;
  }

  /* Academy bar */
  .academy-features-bar {
    gap: var(--space-4);
  }

  .academy-feat-divider {
    display: none;
  }
}


/* ════════════════════════════════════════════════════════════
   MOBILE LANDSCAPE (≤768px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }

  .hero-title {
    font-size: 34px;
  }

  .hero-inner .hero-title {
    font-size: 30px;
  }

  .hero-section {
    padding: 120px 0 var(--space-12);
  }

  .hero-inner {
    padding: 110px 0 var(--space-10);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: var(--space-12) 0;
  }

  .section-title {
    font-size: var(--text-xl);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Values */
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* Benefits */
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta-section h2 {
    font-size: var(--text-xl);
  }

  .cta-section p {
    font-size: var(--text-base);
  }

  /* Trusted logos */
  .trusted-logos {
    gap: var(--space-6);
  }

  .trusted-logo {
    height: 22px;
  }

  /* Error page */
  .error-code {
    font-size: 80px;
  }

  .error-title {
    font-size: var(--text-xl);
  }

  /* Breadcrumb */
  .breadcrumb-list {
    font-size: 12px;
  }

  /* Back to top */
  .back-to-top {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
  }
}


/* ════════════════════════════════════════════════════════════
   MOBILE PORTRAIT (≤576px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 575.98px) {
  body {
    font-size: var(--text-sm);
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-inner .hero-title {
    font-size: 26px;
  }

  .hero-badge {
    font-size: 12px;
  }

  .site-navbar {
    width: calc(100% - 24px);
    padding: 10px 16px;
    top: 10px;
    border-radius: var(--radius-xl);
  }

  .nav-logo img {
    height: 30px;
  }

  .section {
    padding: var(--space-10) 0;
  }

  .section-label {
    font-size: 12px;
  }

  .section-title {
    font-size: var(--text-lg);
  }

  /* Service Cards */
  .service-card {
    padding: var(--space-6);
  }

  /* Feature Cards */
  .feature-card {
    padding: var(--space-6);
  }

  /* FAQ */
  .faq-question {
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-xs);
  }

  .faq-answer-inner {
    padding: 0 var(--space-5) var(--space-5);
    font-size: var(--text-xs);
  }

  /* Process */
  .process-step {
    padding: var(--space-6);
  }

  /* Testimonial */
  .testimonial-card {
    padding: var(--space-6);
  }

  .testimonial-quote {
    font-size: var(--text-base);
    padding-left: var(--space-4);
  }

  /* Forms */
  .form-control-custom {
    padding: 10px 14px;
    font-size: var(--text-xs);
  }

  /* Map */
  .map-container {
    height: 260px;
  }

  /* Course cards */
  .course-header,
  .course-body {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }

  /* CTA */
  .cta-section {
    padding: var(--space-12) 0;
  }

  .btn-xl {
    padding: 14px 28px;
    font-size: var(--text-sm);
  }

  /* Contact card */
  .contact-info-card {
    padding: var(--space-6);
  }

  /* Article */
  .article-title {
    font-size: var(--text-xl);
  }

  .article-body h2 {
    font-size: var(--text-xl);
  }

  .article-body h3 {
    font-size: var(--text-lg);
  }

  /* Module list */
  .module-item {
    padding: var(--space-4);
  }

  /* Academy features bar */
  .academy-features-bar {
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .academy-feat {
    font-size: 12px;
  }

  /* Loader */
  .loader-bar {
    width: 120px;
  }
}


/* ════════════════════════════════════════════════════════════
   VERY SMALL SCREENS (≤375px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 375px) {
  .hero-title {
    font-size: 24px;
  }

  .hero-section {
    padding: 110px 0 var(--space-10);
  }

  .stat-number {
    font-size: var(--text-2xl);
  }

  .nav-drawer {
    width: 100vw;
    max-width: 100vw;
  }
}

/* ════════════════════════════════════════════════════════════
   GLOBAL MOBILE FIXES & ENHANCEMENTS
   ════════════════════════════════════════════════════════════ */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 991.98px) {
  .founder-card .row {
    row-gap: 2rem !important;
  }

  .founder-img {
    height: 340px;
  }

  .founder-highlights {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .container, .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .curriculum-grid, .curriculum-compact-grid {
    grid-template-columns: 1fr !important;
  }

  .curriculum-card-compact {
    padding: 20px !important;
  }

  .google-reviews-summary-card {
    border-radius: var(--radius-2xl) !important;
    padding: 16px 20px !important;
    flex-direction: column;
    text-align: center;
    gap: 16px !important;
  }

  .google-reviews-summary-card .text-start {
    text-align: center !important;
  }

  .google-score-box {
    justify-content: center;
  }

  .testimonials-slider-track .testimonial-card {
    width: 290px !important;
    min-width: 290px !important;
    padding: 18px !important;
  }

  .mv-card {
    padding: 24px 20px !important;
  }

  .founder-img {
    height: 280px;
  }

  .founder-badge {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .founder-socials {
    justify-content: center;
    width: 100%;
  }

  .enroll-card-box {
    padding: 24px 18px !important;
  }

  .enroll-form-header h3 {
    font-size: 22px !important;
  }

  .nav-drawer {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .drawer-nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 575.98px) {
  .site-navbar {
    width: calc(100% - 20px);
    padding: 10px 14px;
  }

  .nav-logo img {
    height: 28px !important;
  }

  .btn-submit-premium {
    padding: 14px 20px !important;
    font-size: 14px !important;
  }

  .founder-quote {
    font-size: 15px !important;
  }

  .founder-highlight-item {
    font-size: 12.5px;
    padding: 8px 12px;
  }
}
