/* ============================================
   JaoTech Gworld | responsive.css
   Full Mobile-First Responsive Stylesheet
   Covers ALL pages — index, about, services,
   contact, blog, payment, and all legal pages
   ============================================ */


/* ============================================================
   BREAKPOINTS USED:
   Desktop       → 1201px and above
   Laptop        → 901px – 1200px
   Tablet        → 641px – 900px
   Mobile Large  → 481px – 640px
   Mobile Small  → 361px – 480px
   Tiny Phones   → 360px and below
   ============================================================ */


/* ============================================================
   SECTION 1 — BASE MOBILE DEFAULTS
   These apply to ALL pages on ALL small screens
   ============================================================ */

/* Prevent any element from overflowing horizontally */
* {
  box-sizing: border-box;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; /* Prevent iOS font zoom */
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Images always scale down */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tables scroll horizontally instead of breaking layout */
table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

/* Inputs are always full width and readable on mobile */
input,
select,
textarea,
button {
  max-width: 100%;
  font-size: 16px; /* Prevents iOS auto-zoom on focus */
}


/* ============================================================
   SECTION 2 — LARGE DESKTOP (1200px and above)
   ============================================================ */
@media (min-width: 1200px) {

  .hero {
    padding: 120px 5% 110px;
  }

  .section-title {
    font-size: 2.6rem;
  }

  .stat-number {
    font-size: 3.8rem;
  }
}


/* ============================================================
   SECTION 3 — LAPTOP (901px – 1200px)
   ============================================================ */
@media (max-width: 1200px) and (min-width: 901px) {

  :root {
    --section-pad: 75px 5%;
  }

  .hero {
    padding: 85px 5% 75px;
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

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

  .footer-grid {
    gap: 36px;
  }

  /* About page */
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ============================================================
   SECTION 4 — TABLET (641px – 900px)
   ============================================================ */
@media (max-width: 900px) {

  :root {
    --section-pad: 65px 5%;
  }

  /* ---- TOPBAR ---- */
  .topbar {
    font-size: 0.78rem;
    padding: 8px 4%;
    text-align: center;
  }

  /* ---- HERO (index.html) ---- */
  .hero {
    padding: 70px 5% 65px;
    min-height: auto;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
    display: table;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-sub {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
  }

  /* ---- TRUST STRIP ---- */
  .trust-inner {
    gap: 18px;
    justify-content: center;
  }

  .trust-item {
    flex: 0 0 calc(50% - 18px);
    justify-content: center;
  }

  /* ---- STATS ---- */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-item {
    padding: 38px 20px;
  }

  .stat-number {
    font-size: 2.6rem;
  }

  /* ---- SERVICES GRID (index.html) ---- */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  /* ---- SECTION TITLES ---- */
  .section-title {
    font-size: 2rem;
  }

  .section-sub {
    font-size: 0.95rem;
    margin-bottom: 36px;
  }

  /* ---- PROCESS ---- */
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .process-grid::before {
    display: none;
  }

  .process-num {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }

  /* ---- TESTIMONIALS ---- */
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  /* ---- FAQ (index.html) ---- */
  .faq-grid {
    grid-template-columns: 1fr;
  }

  /* ---- CTA BANNER ---- */
  .cta-banner h2 {
    font-size: 2rem;
  }

  .cta-banner p {
    font-size: 0.95rem;
  }

  /* ---- FOOTER ---- */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* ============ ABOUT PAGE ============ */
  .about-intro-inner,
  .story-inner,
  .why-grid,
  .verify-card {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .mvv-grid {
    grid-template-columns: 1fr 1fr !important;
  }

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

  .founder-card {
    position: static !important;
  }

  .faq-about-grid {
    grid-template-columns: 1fr !important;
  }

  .stat-grid-2x2 {
    grid-template-columns: 1fr 1fr;
  }

  /* ============ SERVICES PAGE ============ */
  .service-section-inner,
  .service-section:nth-child(even) .service-section-inner {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .service-section:nth-child(even) .service-left,
  .service-section:nth-child(even) .service-right {
    order: unset !important;
  }

  .service-left {
    position: static !important;
  }

  .services-intro-inner {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .filter-section {
    position: static !important;
  }

  .filter-inner {
    gap: 8px;
  }

  /* ============ CONTACT PAGE ============ */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }

  .contact-faq-inner {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* ============ BLOG PAGE ============ */
  .blog-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .blog-featured {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  /* ============ PAYMENT PAGE ============ */
  .payment-grid,
  .payment-inner {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* ============ LEGAL PAGES (terms, privacy, etc.) ============ */
  .legal-grid,
  .legal-inner {
    grid-template-columns: 1fr !important;
  }

  .legal-sidebar {
    display: none !important;
  }
}


/* ============================================================
   SECTION 5 — MOBILE LARGE (480px – 640px)
   ============================================================ */
@media (max-width: 640px) {

  :root {
    --section-pad: 55px 4%;
  }

  /* ---- TOPBAR ---- */
  .topbar {
    font-size: 0.74rem;
    padding: 7px 4%;
    line-height: 1.6;
  }

  /* ---- NAVBAR ---- */
  .navbar {
    padding: 0 4%;
    height: 64px;
  }

  .logo-name {
    font-size: 0.95rem;
  }

  .logo-tagline {
    display: none;
  }

  .logo-img {
    width: 34px;
    height: 34px;
  }

  .mobile-menu {
    top: 64px;
  }

  /* ---- HERO ---- */
  .hero {
    padding: 60px 4% 55px;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.95rem;
    letter-spacing: -0.02em;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-primary,
  .btn-outline,
  .btn-blue,
  .btn-outline-dark {
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 14px 20px;
  }

  .hero-badge {
    font-size: 0.74rem;
    padding: 6px 14px;
  }

  /* ---- PAGE HERO (all inner pages) ---- */
  .page-hero {
    padding: 60px 4% 50px !important;
    text-align: center;
  }

  .page-hero h1 {
    font-size: 1.8rem !important;
    letter-spacing: -0.02em;
  }

  .page-hero p {
    font-size: 0.92rem !important;
  }

  .page-hero-label {
    font-size: 0.72rem !important;
  }

  /* ---- BREADCRUMB ---- */
  .breadcrumb {
    padding: 10px 4%;
    font-size: 0.78rem;
  }

  /* ---- TRUST STRIP ---- */
  .trust-item {
    flex: 0 0 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
  }

  .trust-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* ---- STATS ---- */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1px;
  }

  .stat-item {
    padding: 36px 24px;
  }

  .stat-number {
    font-size: 2.8rem;
  }

  /* ---- SERVICES GRID ---- */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .service-card {
    padding: 24px 20px;
  }

  .service-icon {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }

  /* ---- SECTION HEADINGS ---- */
  .section-title {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
  }

  .section-sub {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .section-label {
    font-size: 0.68rem;
  }

  /* ---- PROCESS ---- */
  .process-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .process-grid::before {
    display: none;
  }

  .process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* ---- TESTIMONIALS ---- */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
    max-width: 100%;
  }

  .testimonial-card {
    padding: 24px 20px;
  }

  .testimonial-card blockquote {
    font-size: 0.88rem;
  }

  /* ---- FAQ ---- */
  .faq-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .faq-about-grid {
    grid-template-columns: 1fr !important;
  }

  .faq-question {
    font-size: 0.88rem;
    padding: 17px 18px;
  }

  .faq-item.open .faq-answer {
    padding: 0 18px 18px;
  }

  /* ---- CTA BANNER ---- */
  .cta-banner {
    padding: 65px 4%;
  }

  .cta-banner h2 {
    font-size: 1.7rem;
  }

  .cta-btns {
    flex-direction: column;
    align-items: center;
  }

  .cta-btns a {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  /* ---- FOOTER ---- */
  .footer {
    padding: 50px 4% 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
    margin-bottom: 36px;
  }

  .footer-brand {
    grid-column: auto !important;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-col h4 {
    margin-bottom: 14px;
  }

  .footer-socials {
    margin-top: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    font-size: 0.75rem;
    gap: 6px;
  }

  /* ============ ABOUT PAGE — MOBILE ============ */

  .about-intro-inner,
  .story-inner,
  .why-grid,
  .verify-card {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 32px 24px !important;
  }

  .verify-card {
    padding: 32px 24px !important;
  }

  .mvv-grid {
    grid-template-columns: 1fr !important;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .value-card {
    padding: 20px 14px;
  }

  .stat-grid-2x2 {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px;
  }

  .stat-box-num {
    font-size: 1.8rem !important;
  }

  .about-stat-card {
    padding: 32px 24px !important;
  }

  .founder-card {
    padding: 26px 20px !important;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px;
  }

  .team-card {
    padding: 22px 16px;
  }

  /* ============ SERVICES PAGE — MOBILE ============ */

  .filter-inner {
    gap: 7px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-inner::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 6px 14px;
  }

  .filter-label {
    flex-shrink: 0;
  }

  .service-section {
    padding: 55px 4% !important;
  }

  .service-id-card {
    padding: 28px 22px !important;
  }

  .service-number {
    font-size: 2.5rem !important;
  }

  .services-intro-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px;
  }

  .services-nav-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }

  .services-nav-item {
    font-size: 0.78rem;
    padding: 12px 12px;
  }

  /* ============ CONTACT PAGE — MOBILE ============ */

  .contact-form-wrap {
    padding: 28px 20px !important;
    border-radius: var(--radius-md);
  }

  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 13px 14px;
  }

  .map-embed {
    height: 280px !important;
    border-radius: var(--radius-md);
  }

  .contact-detail-card {
    padding: 15px 16px;
  }

  .contact-detail-icon {
    width: 38px;
    height: 38px;
  }

  .social-link-item {
    padding: 11px 14px;
  }

  /* ============ BLOG PAGE — MOBILE ============ */

  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .blog-featured {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }

  .blog-card {
    padding: 22px 18px;
  }

  .blog-featured-card {
    padding: 28px 22px;
  }

  /* ============ PAYMENT PAGE — MOBILE ============ */

  .payment-grid,
  .payment-methods-grid,
  .crypto-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .payment-card,
  .payment-method-card {
    padding: 24px 20px;
  }

  /* ============ LEGAL PAGES — MOBILE ============ */

  .legal-content {
    padding: 0 !important;
  }

  .legal-section {
    padding: 40px 4% !important;
  }

  .legal-section h2 {
    font-size: 1.35rem !important;
  }

  .legal-section h3 {
    font-size: 1.05rem !important;
  }
}


/* ============================================================
   SECTION 6 — MOBILE SMALL (361px – 480px)
   ============================================================ */
@media (max-width: 480px) {

  /* ---- HERO ---- */
  .hero h1 {
    font-size: 1.75rem;
  }

  .page-hero h1 {
    font-size: 1.6rem !important;
  }

  /* ---- STATS ---- */
  .stat-number {
    font-size: 2.4rem;
  }

  /* ---- SECTION TITLES ---- */
  .section-title {
    font-size: 1.6rem;
  }

  /* ---- BUTTONS ---- */
  .btn-primary,
  .btn-outline,
  .btn-blue,
  .btn-outline-dark {
    padding: 13px 18px;
    font-size: 0.86rem;
  }

  /* ---- ABOUT ---- */
  .values-grid {
    grid-template-columns: 1fr !important;
  }

  .team-grid {
    grid-template-columns: 1fr !important;
  }

  .mvv-card {
    padding: 26px 20px;
  }

  /* ---- SERVICES ---- */
  .services-nav-grid {
    grid-template-columns: 1fr !important;
  }

  /* ---- FOOTER ---- */
  .footer-socials {
    flex-wrap: wrap;
    gap: 8px;
  }

  .social-btn {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  /* ---- PAYMENT ---- */
  .payment-methods-grid,
  .crypto-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ============================================================
   SECTION 7 — TINY PHONES (360px and below)
   ============================================================ */
@media (max-width: 360px) {

  :root {
    --section-pad: 48px 4%;
  }

  .hero h1 {
    font-size: 1.55rem;
  }

  .page-hero h1 {
    font-size: 1.45rem !important;
  }

  .logo-name {
    font-size: 0.88rem;
  }

  .navbar {
    padding: 0 3%;
    height: 60px;
  }

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

  .mobile-menu {
    top: 60px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .cta-banner h2 {
    font-size: 1.45rem;
  }

  .btn-primary,
  .btn-outline,
  .btn-blue,
  .btn-outline-dark {
    max-width: 100%;
    padding: 13px 16px;
    font-size: 0.84rem;
  }

  .footer {
    padding: 44px 3% 22px;
  }

  .footer-grid {
    gap: 26px !important;
  }

  .contact-form-wrap {
    padding: 22px 16px !important;
  }

  .service-id-card {
    padding: 22px 16px !important;
  }

  .stat-box-num {
    font-size: 1.6rem !important;
  }

  .stat-grid-2x2 {
    grid-template-columns: 1fr !important;
  }
}


/* ============================================================
   SECTION 8 — TOUCH DEVICE IMPROVEMENTS
   (applies on any touch-capable device)
   ============================================================ */
@media (hover: none) and (pointer: coarse) {

  /* Make all tap targets at least 44px tall for easy tapping */
  .nav-links li a,
  .mobile-menu a,
  .btn-primary,
  .btn-outline,
  .btn-blue,
  .btn-outline-dark,
  .nav-cta,
  .filter-btn,
  .faq-question,
  .social-btn,
  .footer-col ul a,
  .service-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Remove hover effects that get "stuck" on touch */
  .service-card:hover {
    transform: none;
  }

  .testimonial-card:hover {
    transform: none;
  }

  .mvv-card:hover {
    transform: none;
  }

  .team-card:hover {
    transform: none;
  }
}


/* ============================================================
   SECTION 9 — LANDSCAPE PHONE
   (phone rotated sideways)
   ============================================================ */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {

  .hero {
    min-height: auto;
    padding: 50px 5% 45px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .mobile-menu {
    padding: 16px 5% 24px;
  }

  .mobile-menu a {
    padding: 12px 0;
    font-size: 0.95rem;
  }

  .page-hero {
    padding: 50px 5% 44px !important;
  }
}


/* ============================================================
   SECTION 10 — HIGH RESOLUTION / RETINA SCREENS
   ============================================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {

  /* Ensure borders are crisp on retina */
  .navbar,
  .service-card,
  .faq-item,
  .testimonial-card,
  .contact-form-wrap {
    border-width: 1px;
  }
}


/* ============================================================
   SECTION 11 — PRINT STYLES
   ============================================================ */
@media print {

  .topbar,
  .navbar,
  .hamburger,
  .mobile-menu,
  .hero-btns,
  .cta-banner,
  .footer-socials,
  .float-badge,
  .back-to-top,
  .scroll-progress,
  .world-ticker,
  .filter-section {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .hero,
  .page-hero {
    background: #fff !important;
    color: #000 !important;
    min-height: auto;
    padding: 20px 0;
  }

  .hero h1,
  .page-hero h1,
  .hero-sub,
  .page-hero p {
    color: #000 !important;
  }

  section {
    padding: 20px 0;
    page-break-inside: avoid;
  }

  .footer {
    background: #fff !important;
    color: #000 !important;
  }
}
