/* =========================================================
   SPARK MICROFINANCE TANZANIA LIMITED
   RESPONSIVE.CSS
   Mobile • Tablet • Laptop
   ========================================================= */


/* =========================================================
   LARGE TABLETS / SMALL LAPTOPS
   1100px and below
   ========================================================= */

@media (max-width: 1100px) {

    .container {
        width: min(100% - 40px, 1120px);
    }

    /* Header */
    .main-navigation {
        gap: 20px;
    }

    .nav-link {
        font-size: 14px;
    }

    .nav-login {
        padding: 10px 16px;
    }

    /* Hero */
    .hero-grid {
        gap: 45px;
    }

    .hero-title {
        font-size: clamp(42px, 5vw, 64px);
    }

    .hero-visual {
        padding-right: 15px;
    }

    .floating-card-one {
        left: -20px;
    }

    .floating-card-two {
        right: -10px;
    }

    /* Products */
    .products-layout {
        gap: 40px;
    }

    /* About */
    .about-preview-grid {
        gap: 45px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 35px;
    }
}


/* =========================================================
   TABLETS
   900px and below
   ========================================================= */

@media (max-width: 900px) {

    .container {
        width: min(100% - 36px, 760px);
    }

    /* -----------------------------------------------------
       HEADER
       ----------------------------------------------------- */

    .site-header {
        position: sticky;
        top: 0;
    }

    .header-container {
        min-height: 72px;
    }

    .main-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* -----------------------------------------------------
       HERO
       ----------------------------------------------------- */

    .hero-section {
        padding: 75px 0 85px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 65px;
    }

    .hero-content {
        max-width: 760px;
        text-align: center;
        margin: 0 auto;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title {
        font-size: clamp(42px, 7vw, 58px);
        line-height: 1.08;
    }

    .hero-description {
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        width: min(100%, 650px);
        margin: 0 auto;
        padding: 0 35px;
    }

    .hero-card {
        margin: 0 auto;
    }

    .floating-card-one {
        left: 0;
    }

    .floating-card-two {
        right: 0;
    }

    /* -----------------------------------------------------
       STATS
       ----------------------------------------------------- */

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* -----------------------------------------------------
       TRUST
       ----------------------------------------------------- */

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* -----------------------------------------------------
       SERVICES
       ----------------------------------------------------- */

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* -----------------------------------------------------
       PRODUCTS
       ----------------------------------------------------- */

    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-list {
        max-width: 800px;
    }

    .products-highlight {
        min-height: 360px;
    }

    /* -----------------------------------------------------
       ABOUT PREVIEW
       ----------------------------------------------------- */

    .about-preview-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-visual {
        max-width: 650px;
        margin: 0 auto;
        width: 100%;
    }

    .about-preview-content {
        max-width: 760px;
        margin: 0 auto;
    }

    /* -----------------------------------------------------
       MISSION / VISION
       ----------------------------------------------------- */

    .mission-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* -----------------------------------------------------
       VALUES
       ----------------------------------------------------- */

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* -----------------------------------------------------
       HOW TO APPLY
       ----------------------------------------------------- */

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 25px;
    }

    /* -----------------------------------------------------
       FAQ
       ----------------------------------------------------- */

    .faq-preview-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .faq-preview-intro {
        max-width: 720px;
    }

    /* -----------------------------------------------------
       CTA
       ----------------------------------------------------- */

    .cta-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .cta-actions {
        justify-content: center;
    }

    /* -----------------------------------------------------
       CONTACT STRIP
       ----------------------------------------------------- */

    .contact-strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* -----------------------------------------------------
       FOOTER
       ----------------------------------------------------- */

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 600px;
    }

    /* -----------------------------------------------------
       INNER PAGE HERO
       ----------------------------------------------------- */

    .page-hero {
        padding: 70px 0;
    }

    .page-hero-title {
        font-size: clamp(38px, 6vw, 52px);
    }

    /* -----------------------------------------------------
       CONTENT
       ----------------------------------------------------- */

    .content-grid {
        grid-template-columns: 1fr;
    }

    /* -----------------------------------------------------
       CONTACT PAGE
       ----------------------------------------------------- */

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        max-width: 760px;
    }
}


/* =========================================================
   MOBILE
   700px and below
   ========================================================= */

@media (max-width: 700px) {

    html {
        font-size: 15px;
    }

    .container {
        width: min(100% - 30px, 600px);
    }

    /* -----------------------------------------------------
       GENERAL
       ----------------------------------------------------- */

    section {
        overflow: hidden;
    }

    .section-heading {
        font-size: 32px;
        line-height: 1.15;
    }

    .section-description {
        font-size: 15px;
        line-height: 1.7;
    }

    /* -----------------------------------------------------
       HEADER
       ----------------------------------------------------- */

    .header-container {
        min-height: 68px;
    }

    .site-logo img {
        max-width: 145px;
        max-height: 52px;
    }

    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
    }

    /* -----------------------------------------------------
       MOBILE NAVIGATION
       ----------------------------------------------------- */

    .mobile-navigation {
        padding: 10px 15px 20px;
    }

    .mobile-navigation .nav-link {
        padding: 14px 15px;
    }

    /* -----------------------------------------------------
       HERO
       ----------------------------------------------------- */

    .hero-section {
        padding: 60px 0 70px;
    }

    .hero-grid {
        gap: 55px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-badge {
        font-size: 12px;
        padding: 8px 12px;
    }

    .hero-title {
        font-size: clamp(36px, 10vw, 48px);
        line-height: 1.08;
        letter-spacing: -1.5px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.75;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-trust-divider {
        display: none;
    }

    /* Hero visual */
    .hero-visual {
        padding: 0 10px;
    }

    .hero-card {
        border-radius: 22px;
    }

    .hero-card-content {
        padding: 25px;
    }

    .hero-card-top {
        margin-bottom: 28px;
    }

    .hero-card-label {
        font-size: 12px;
    }

    .hero-card-title {
        font-size: 24px;
    }

    .hero-info-box {
        padding: 16px;
    }

    .floating-card {
        position: relative;
        left: auto !important;
        right: auto !important;
        bottom: auto;
        top: auto;
        margin-top: 15px;
        width: 100%;
        max-width: none;
    }

    .floating-card-one,
    .floating-card-two {
        transform: none;
    }

    /* -----------------------------------------------------
       BUTTONS
       ----------------------------------------------------- */

    .btn {
        min-height: 48px;
        padding: 13px 20px;
    }

    /* -----------------------------------------------------
       STATS
       ----------------------------------------------------- */

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        padding: 25px 12px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
        line-height: 1.45;
    }

    /* -----------------------------------------------------
       TRUST
       ----------------------------------------------------- */

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-box {
        padding: 25px;
    }

    /* -----------------------------------------------------
       SERVICES
       ----------------------------------------------------- */

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 28px 24px;
    }

    /* -----------------------------------------------------
       PRODUCTS
       ----------------------------------------------------- */

    .product-row {
        padding: 20px 16px;
        gap: 14px;
    }

    .product-number {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
    }

    .product-title {
        font-size: 16px;
    }

    .product-description {
        font-size: 13px;
    }

    .products-highlight {
        min-height: 320px;
        padding: 30px 25px;
    }

    /* -----------------------------------------------------
       ABOUT
       ----------------------------------------------------- */

    .about-visual {
        padding: 0 10px;
    }

    .about-card-main {
        min-height: 360px;
    }

    .about-card-content {
        padding: 25px;
    }

    .about-card-small {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 15px;
        width: 100%;
        max-width: none;
    }

    .feature-list {
        gap: 16px;
    }

    /* -----------------------------------------------------
       MISSION / VISION
       ----------------------------------------------------- */

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .mission-card {
        padding: 28px 24px;
    }

    /* -----------------------------------------------------
       VALUES
       ----------------------------------------------------- */

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-item {
        padding: 24px;
    }

    /* -----------------------------------------------------
       HOW TO APPLY
       ----------------------------------------------------- */

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-item {
        padding: 10px 0;
    }

    /* -----------------------------------------------------
       FAQ
       ----------------------------------------------------- */

    .faq-question {
        padding: 20px 18px;
        gap: 15px;
    }

    .faq-question h3 {
        font-size: 15px;
    }

    .faq-answer {
        padding: 0 18px 20px;
    }

    /* -----------------------------------------------------
       CTA
       ----------------------------------------------------- */

    .cta-card {
        padding: 35px 24px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* -----------------------------------------------------
       CONTACT STRIP
       ----------------------------------------------------- */

    .contact-strip-grid {
        grid-template-columns: 1fr;
    }

    .contact-strip-item {
        padding: 20px 0;
    }

    /* -----------------------------------------------------
       FOOTER
       ----------------------------------------------------- */

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-legal {
        flex-wrap: wrap;
    }

    /* -----------------------------------------------------
       PAGE HERO
       ----------------------------------------------------- */

    .page-hero {
        padding: 55px 0;
    }

    .page-hero-title {
        font-size: 36px;
        line-height: 1.12;
    }

    .page-hero-description {
        font-size: 15px;
        line-height: 1.7;
    }

    .breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }

    /* -----------------------------------------------------
       CONTENT
       ----------------------------------------------------- */

    .content-section {
        padding: 55px 0;
    }

    .content-card {
        padding: 25px 20px;
    }

    /* -----------------------------------------------------
       CONTACT PAGE
       ----------------------------------------------------- */

    .contact-info-card {
        padding: 24px 20px;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .form-control {
        min-height: 48px;
    }

    /* -----------------------------------------------------
       TABLES
       ----------------------------------------------------- */

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 620px;
    }

    /* -----------------------------------------------------
       BACK TO TOP
       ----------------------------------------------------- */

    .back-to-top {
        width: 44px;
        height: 44px;
        right: 15px;
        bottom: 15px;
    }
}


/* =========================================================
   SMALL PHONES
   480px and below
   ========================================================= */

@media (max-width: 480px) {

    .container {
        width: min(100% - 24px, 450px);
    }

    /* -----------------------------------------------------
       HEADER
       ----------------------------------------------------- */

    .site-logo img {
        max-width: 125px;
        max-height: 48px;
    }

    /* -----------------------------------------------------
       HERO
       ----------------------------------------------------- */

    .hero-section {
        padding: 48px 0 60px;
    }

    .hero-title {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-card-content {
        padding: 22px;
    }

    .hero-card-title {
        font-size: 21px;
    }

    .hero-info-box {
        padding: 14px;
    }

    /* -----------------------------------------------------
       STATS
       ----------------------------------------------------- */

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        padding: 22px 8px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 11px;
    }

    /* -----------------------------------------------------
       SECTIONS
       ----------------------------------------------------- */

    .section-heading {
        font-size: 28px;
    }

    .section-label {
        font-size: 11px;
    }

    /* -----------------------------------------------------
       SERVICE CARDS
       ----------------------------------------------------- */

    .service-card {
        padding: 24px 20px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    /* -----------------------------------------------------
       PRODUCT ROWS
       ----------------------------------------------------- */

    .product-row {
        padding: 17px 12px;
    }

    .product-number {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: 12px;
    }

    .product-arrow {
        display: none;
    }

    /* -----------------------------------------------------
       ABOUT CARD
       ----------------------------------------------------- */

    .about-card-main {
        min-height: 310px;
    }

    .about-card-content {
        padding: 20px;
    }

    /* -----------------------------------------------------
       CTA
       ----------------------------------------------------- */

    .cta-card {
        padding: 30px 20px;
    }

    /* -----------------------------------------------------
       FOOTER
       ----------------------------------------------------- */

    .footer-logo {
        max-width: 140px;
    }

    /* -----------------------------------------------------
       INNER PAGES
       ----------------------------------------------------- */

    .page-hero {
        padding: 45px 0;
    }

    .page-hero-title {
        font-size: 32px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   360px and below
   ========================================================= */

@media (max-width: 360px) {

    .container {
        width: min(100% - 20px, 340px);
    }

    .site-logo img {
        max-width: 112px;
    }

    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
    }

    .hero-title {
        font-size: 31px;
    }

    .hero-badge {
        font-size: 10px;
    }

    .stat-number {
        font-size: 21px;
    }

    .stat-label {
        font-size: 10px;
    }

    .section-heading {
        font-size: 26px;
    }

    .faq-question {
        padding: 17px 14px;
    }

    .faq-answer {
        padding: 0 14px 18px;
    }
}


/* =========================================================
   LANDSCAPE MOBILE
   ========================================================= */

@media (max-width: 900px) and (orientation: landscape) {

    .hero-section {
        padding: 45px 0 60px;
    }

    .hero-grid {
        gap: 40px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .hero-actions .btn {
        width: auto;
    }

    .floating-card {
        display: none;
    }
}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

    .nav-link,
    .btn,
    .service-link,
    .product-row,
    .faq-question,
    .mobile-menu-toggle {
        -webkit-tap-highlight-color: transparent;
    }

    .btn {
        min-height: 48px;
    }

    .faq-question {
        min-height: 58px;
    }
}


/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}