﻿/* ============================================
   ARBIYO - Responsive CSS (Mobile-First)
   ============================================ */

/* ============================================
   ACCORDION MOBILE STYLES
   ============================================ */

@media (max-width: 768px) {
    .accordion-button {
        padding: 0.8rem;
        font-size: 0.95rem;
        border-radius: 0.75rem !important;
    }

    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .accordion-item {
        margin-bottom: 0.75rem;
    }
}

/* ============================================
   BASE MOBILE STYLES (320px - 575px)
   MOBILE-FIRST APPROACH
   ============================================ */

@media (max-width: 575px) {
    :root {
        font-size: 14px;
    }

    body {
        font-size: 0.95rem;
    }

    /* Navigation - Mobile Optimized */
    .navbar {
        padding: 0.75rem 0;
        border-bottom: 2px solid var(--arbiyo-green);
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand img {
        height: 45px;
        margin-right: 0.3rem !important;
    }

    .navbar-nav {
        padding-top: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.4rem 0 !important;
        font-size: 0.85rem;
        margin-left: 0 !important;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    /* Hero Section - Mobile */
    .hero-section {
        min-height: 400px;
        padding: 1.5rem 0;
        background-position: center;
        background-image: url('../images/hero_mobile.jpg') !important;
        background-attachment: scroll !important;
    }

    .hero-section::before {
        display: none;
    }

    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }

    .hero-section p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-section .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.7rem;
        padding: 0.6rem !important;
        font-size: 0.9rem;
    }

    /* Typography - Mobile */
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4, h5 {
        font-size: 1.1rem;
    }

    .display-4 {
        font-size: 1.5rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 1rem;
    }

    /* Sections - Mobile */
    section {
        padding: 2rem 0;
    }

    /* Container - Mobile */
    .container {
        padding: 0 0.75rem;
    }

    /* Cards - Mobile */
    .card {
        border-radius: 1rem;
        padding: 1rem;
    }

    .service-card {
        padding: 1rem;
        text-align: center;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    /* Buttons - Mobile */
    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem;
        border-radius: 40px;
    }

    .btn-lg {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem;
    }

    /* Grid - Mobile (Full Width) */
    .col-md-6,
    .col-lg-3,
    .col-lg-4,
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .row {
        gap: 0.75rem;
    }

    .row.g-3 {
        gap: 0.75rem !important;
    }

    .row.g-4 {
        gap: 0.75rem !important;
    }

    /* Spacing - Mobile */
    .mb-3 {
        margin-bottom: 0.8rem !important;
    }

    .mb-4 {
        margin-bottom: 1.2rem !important;
    }

    .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    .mt-5 {
        margin-top: 1.5rem !important;
    }

    .mt-lg-0 {
        margin-top: 0 !important;
    }

    .p-4 {
        padding: 1rem !important;
    }

    .ms-3 {
        margin-left: 1rem !important;
    }

    /* Badges - Mobile */
    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .step-number .badge {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    /* Flex - Mobile */
    .d-flex {
        flex-direction: column;
    }

    .d-flex.align-items-center {
        flex-direction: row;
    }

    /* Why Arbiyo - Benefit Items Fix (Badge Alignment) */
    .d-flex.mb-3 {
        flex-direction: row;
        align-items: flex-start;
    }

    .order-2 {
        order: 2 !important;
    }

    .order-1 {
        order: 1 !important;
    }

    .order-lg-1 {
        order: 0 !important;
    }

    .order-lg-2 {
        order: 0 !important;
    }

    /* Images - Mobile */
    img {
        width: 100%;
        height: auto;
    }

    /* Forms - Mobile */
    .form-control, .form-select {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
        border-radius: 0.5rem;
    }

    textarea.form-control {
        min-height: 100px;
    }

    /* Navbar Collapse - Mobile */
    .navbar-collapse {
        max-height: 300px;
        overflow-y: auto;
    }

    /* Footer - Mobile Professional Design */
    footer {
        text-align: left;
        padding: 1.5rem 0 !important;
    }

    footer .container {
        padding: 0 1rem;
    }

    footer .row {
        margin-bottom: 1.5rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    footer .col-md-3 {
        margin-bottom: 0;
        width: 100%;
    }

    /* ARBIYO Section - Full Width */
    footer .col-md-3:first-child {
        grid-column: 1 / -1;
        margin-bottom: 1.5rem;
    }

    /* Quick Links & Services - Side by Side */
    footer .col-md-3:nth-child(2),
    footer .col-md-3:nth-child(3) {
        margin-bottom: 0;
    }

    /* Services with Center Border Divider */
    footer .col-md-3:nth-child(3) {
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        margin-left: 0;
        padding-left: 1.5rem;
        position: relative;
    }

    /* Contact Section - Full Width Below */
    footer .col-md-3:nth-child(4) {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    footer .col-md-3:first-child h5 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    footer .col-md-3:first-child p {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }

    /* Social Media Icons - Centered Horizontal */
    footer .d-flex.gap-2 {
        flex-direction: row !important;
        justify-content: center;
        gap: 1.5rem !important;
        margin-top: 0.5rem;
    }

    footer .d-flex.gap-2 a {
        font-size: 1.3rem;
    }

    /* Quick Links Section - Left Aligned with Icons */
    footer .row > .col-md-3:nth-child(2) {
        text-align: left;
    }

    footer .row > .col-md-3:nth-child(2) h6 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    footer .row > .col-md-3:nth-child(2) ul {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    footer .row > .col-md-3:nth-child(2) li {
        font-size: 0.8rem;
        margin: 0;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    footer .row > .col-md-3:nth-child(2) li::before {
        content: "\f105";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: #6BA539;
        font-size: 0.9rem;
        min-width: 1rem;
    }

    footer .row > .col-md-3:nth-child(2) a {
        color: #d4d4d8;
        text-decoration: none;
    }

    /* Services Section - 2x2 Grid with Icons */
    footer .row > .col-md-3:nth-child(3) {
        text-align: left;
    }

    footer .row > .col-md-3:nth-child(3) h6 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    footer .row > .col-md-3:nth-child(3) ul {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    footer .row > .col-md-3:nth-child(3) li {
        width: 100%;
        font-size: 0.75rem;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Services List - Green Right Arrow Icons */
    footer .row > .col-md-3:nth-child(3) li:nth-child(1)::before {
        content: "\f105";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: #6BA539;
        font-size: 0.9rem;
        min-width: 1rem;
    }

    footer .row > .col-md-3:nth-child(3) li:nth-child(2)::before {
        content: "\f105";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: #6BA539;
        font-size: 0.9rem;
        min-width: 1rem;
    }

    footer .row > .col-md-3:nth-child(3) li:nth-child(3)::before {
        content: "\f105";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: #6BA539;
        font-size: 0.9rem;
        min-width: 1rem;
    }

    footer .row > .col-md-3:nth-child(3) li:nth-child(4)::before {
        content: "\f105";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: #6BA539;
        font-size: 0.9rem;
        min-width: 1rem;
    }

    footer .row > .col-md-3:nth-child(3) a {
        color: #d4d4d8;
        text-decoration: none;
    }

    /* Contact Section - Icon Aligned Vertically */
    footer .row > .col-md-3:nth-child(4) {
        text-align: left;
    }

    footer .row > .col-md-3:nth-child(4) h6 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    footer .row > .col-md-3:nth-child(4) ul {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    footer .row > .col-md-3:nth-child(4) li {
        font-size: 0.75rem;
        margin: 0;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    footer .row > .col-md-3:nth-child(4) li i {
        color: #6BA539;
        min-width: 1rem;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    footer .row > .col-md-3:nth-child(4) span,
    footer .row > .col-md-3:nth-child(4) a {
        color: #d4d4d8;
        text-decoration: none;
        line-height: 1.3;
    }

    /* Footer Bottom - Separator & Copyright */
    footer hr {
        margin: 1.5rem 0 1rem 0;
        opacity: 0.3;
    }

    footer > div:last-child {
        text-align: center;
        font-size: 0.7rem;
    }

    footer > div:last-child p {
        margin: 0;
        color: #a1a1a1;
    }

    footer > div:last-child a {
        color: #6BA539;
        text-decoration: none;
    }

    /* Swiper - Mobile */
    .swiper {
        padding-bottom: 2.5rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem;
    }

    /* Text - Mobile */
    .text-center {
        text-align: center;
    }
}

/* ============================================
   SMALL TABLETS & LARGE PHONES (576px - 767px)
   ============================================ */

@media (min-width: 576px) and (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }

    .hero-section h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-section {
        min-height: 450px;
        padding: 2rem 0;
        background-image: url('../images/hero_mobile.jpg') !important;
        background-attachment: scroll !important;

    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .d-flex.gap-3.flex-column.flex-sm-row {
        flex-direction: column;
    }

    section {
        padding: 3rem 0;
    }

    .display-5 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.8rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .navbar-brand img {
        height: 42px;
        margin-right: 0.5rem !important;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0 !important;
        font-size: 0.9rem;
    }

    .collapse.navbar-collapse {
        padding-top: 1rem;
    }

    .service-card {
        padding: 1.2rem;
    }

    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .row.g-4 {
        gap: 1rem !important;
    }

    .mb-4 {
        margin-bottom: 1.5rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    h5 {
        font-size: 1rem;
    }

    .step-number .badge {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}

/* ============================================
   TABLETS (768px - 1199px)
   ============================================ */

@media (min-width: 768px) and (max-width: 1199px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section {
        min-height: 500px;
        background-image: url('../images/hero_mobile.jpg') !important;
        background-attachment: scroll !important;
    }

    section {
        padding: 4rem 0;
    }

    .display-5 {
        font-size: 2.5rem;
    }

    .navbar-brand img {
        height: 45px;
        margin-right: 0.5rem !important;
    }

    .navbar-nav .nav-link {
        margin-left: 0.5rem;
        font-size: 0.95rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .row.g-4 {
        gap: 1.5rem !important;
    }
}

/* ============================================
   LARGE SCREENS (1200px+)
   ============================================ */

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    .hero-section h1 {
        font-size: 3.5rem;
    }

    section {
        padding: 5rem 0;
    }

    .display-5 {
        font-size: 3rem;
    }
}

/* ============================================
   LANDSCAPE MODE
   ============================================ */

@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: 300px;
    }

    section {
        padding: 2rem 0;
    }
}

/* ============================================
   EXTRA SMALL PHONES (up to 360px)
   ============================================ */

@media (max-width: 360px) {
    .navbar-brand img {
        height: 25px;
        margin-right: 0.3rem !important;
    }

    .navbar-brand {
        font-size: 0.95rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section {
        min-height: 350px;
    }

    .btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .display-5 {
        font-size: 1.3rem;
    }

    .service-icon {
        font-size: 2rem;
    }

    .step-number .badge {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
}
