/* ==========================================================================
   NIDHI GOLD BUYER - MOBILE STYLESHEET (Phones)
   Loaded last, after style.css and responsive.css. Covers 767px and below.
   ========================================================================== */

/* ==========================================================================
   LARGE PHONE (≤ 767px)
   ========================================================================== */
@media (max-width: 767px) {
    .gold-calculator__divider,
    .gold-calculator__intro {
        display: none;
    }

    /* Keep the mobile process cards focused on the photo and step title. */
    .process-steps-section .step-lead-text,
    .process-steps-section .step-features-list,
    .process-steps-section .step-actions-group {
        display: none;
    }

    .process-steps-section .step-title {
        margin-bottom: 0;
    }

    .process-steps-section .process-tabs-wrap {
        margin-bottom: 20px;
    }

    .process-steps-section .process-tabs-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        flex-direction: row;
        border-radius: 8px;
    }

    .process-steps-section .process-tab-btn {
        min-width: 0;
        min-height: 44px;
        padding: 10px 3px;
        border-right: 1px solid #dfd5c7;
        border-bottom: 0;
        font-size: clamp(8px, 2.4vw, 10px);
        letter-spacing: 0;
        line-height: 1.2;
    }

    .process-steps-section .process-tab-btn:last-child {
        border-right: 0;
    }

    .process-steps-section .process-tab-label--full {
        display: none;
    }

    .process-steps-section .process-tab-label--mobile {
        display: inline;
    }

    .top-ticker__item {
        gap: 10px;
        padding: 10px 16px 10px 18px;
        font-size: 14px;
    }

    .top-ticker__star {
        font-size: 12px;
    }

    .top-ticker__track {
        animation-duration: 28s;
    }

    .main-nav__inner {
        padding: 10px 16px;
    }

    .main-nav__brand img {
        width: 120px;
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
    }

    /* Drawer */
    .mobile-menu__panel {
        padding: 16px 18px 24px;
    }

    .mobile-menu__list a {
        padding: 13px 4px;
        font-size: 14px;
    }

    .mobile-menu__actions .btn-nav {
        padding: 12px 18px;
        font-size: 13px;
    }

    .areas-pills-wrap {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .pill-row {
        display: contents;
    }

    .area-pill {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        padding: 6px 4px;
        font-size: clamp(9px, 2.5vw, 10px);
        line-height: 1.35;
        text-align: center;
        white-space: nowrap;
    }
}

/* ==========================================================================
   SMALL PHONE (≤ 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .top-ticker__item {
        gap: 8px;
        padding: 9px 14px 9px 16px;
        font-size: 13px;
    }

    .top-ticker__star {
        font-size: 11px;
    }

    .main-nav__brand img {
        width: 110px;
    }

    .mobile-menu__panel {
        width: 88vw;
    }

    .mobile-menu__logo {
        width: 120px;
    }
}

/* ==========================================================================
   EXTRA SMALL PHONE (≤ 360px)
   ========================================================================== */
@media (max-width: 360px) {
    .top-ticker__item {
        padding: 8px 12px 8px 14px;
        font-size: 12px;
    }

    .main-nav__inner {
        padding: 8px 12px;
    }

    .main-nav__brand img {
        width: 100px;
    }

    .nav-toggle {
        width: 38px;
        height: 38px;
        padding: 9px;
    }

    .mobile-menu__panel {
        width: 100vw;
    }
}

/* ========================================================================
   FOOTER - phones
   ======================================================================== */
@media (max-width: 600px) {
    .site-footer .footer-main {
        padding: 34px 0 30px;
    }

    .site-footer .footer-container {
        padding: 0 18px;
    }

    .site-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 18px;
    }

    .site-footer .footer-col-brand {
        grid-column: 1 / -1;
        max-width: none;
        text-align: center;
    }

    .site-footer .footer-logo-card {
        margin: 0 auto 12px;
        padding: 6px 14px;
        border-radius: 10px;
    }

    .site-footer .footer-logo-img {
        height: 42px;
    }

    .site-footer .footer-tagline-gu {
        margin-bottom: 8px;
    }

    .site-footer .footer-brand-desc {
        max-width: 36ch;
        margin: 0 auto 16px;
        font-size: 13px;
    }

    .site-footer .footer-social-title {
        margin-bottom: 10px;
    }

    .site-footer .footer-social-row {
        justify-content: center;
        gap: 8px;
    }

    .site-footer .footer-social-icon-btn {
        width: 36px;
        height: 36px;
    }

    .site-footer .footer-col-title {
        font-size: 15px;
        margin-bottom: 7px;
    }

    .site-footer .footer-col-bar {
        margin-bottom: 12px;
    }

    .site-footer .footer-nav-list li {
        margin-bottom: 10px;
    }

    .site-footer .footer-nav-link {
        align-items: flex-start;
        font-size: 12.5px;
        line-height: 1.45;
    }

    .site-footer .footer-nav-arrow {
        flex: 0 0 auto;
        margin-right: 6px;
    }

    .site-footer .footer-grid > .footer-col:last-child {
        grid-column: 1 / -1;
    }

    .site-footer .footer-grid > .footer-col:last-child .footer-nav-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
    }

    .site-footer .footer-grid > .footer-col:last-child .footer-nav-list li {
        margin-bottom: 0;
    }
}

/* Keep the desktop category list unchanged; mobile images are shown with their tabs. */
.catalogue-category-option {
    display: contents;
}

.catalogue-mobile-cat-image {
    display: none;
}

@media (max-width: 767px) {
    .what-we-buy-header {
        margin-bottom: 18px;
    }

    .catalogue-layout-grid {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .catalogue-categories-list {
        gap: 20px;
    }

    .catalogue-category-option {
        display: flex;
        flex-direction: column;
        gap: 0;
        overflow: hidden;
        border: 1px solid #ebd7b2;
        border-radius: 4px;
        background-color: var(--color-white);
    }

    .catalogue-category-option:has(.catalogue-cat-card.active) {
        border-color: var(--color-maroon);
        box-shadow: 0 4px 16px rgba(159, 29, 37, 0.08);
    }

    .catalogue-mobile-cat-image {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        border: 0;
        border-radius: 0;
    }

    .catalogue-category-option > .catalogue-cat-card {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .catalogue-details-column {
        display: none;
    }
}

/* ========================================================================
   SPECIALIZED SERVICES - mobile swipe carousel
   ======================================================================== */
.services-carousel-controls {
    display: none;
}

@media (max-width: 767px) {
    .specialized-services-header {
        margin-bottom: 30px;
    }

    .specialized-services-grid {
        display: flex;
        width: calc(100% + 48px);
        max-width: none;
        gap: 16px;
        margin: 0 -24px;
        padding: 12px 24px 18px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: 24px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .specialized-services-grid::-webkit-scrollbar {
        display: none;
    }

    .specialized-service-card {
        flex: 0 0 100%;
        min-width: 0;
        scroll-snap-align: start;
    }

    .services-carousel-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 4px;
        color: #6b635b;
        font-size: 11px;
    }

    .services-carousel-toggle {
        flex: 0 0 auto;
        border: 1px solid #d9ac63;
        border-radius: 999px;
        padding: 8px 12px;
        background: #fff;
        color: #9f1d25;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
    }

    .services-carousel-toggle:focus-visible,
    .specialized-services-grid:focus-visible {
        outline: 2px solid #9f1d25;
        outline-offset: 3px;
    }
}

@media (max-width: 640px) {
    .specialized-services-grid {
        width: calc(100% + 32px);
        margin-inline: -16px;
        padding-inline: 16px;
        scroll-padding-inline: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .specialized-services-grid {
        scroll-behavior: auto;
        scroll-snap-type: x proximity;
    }
}

@media (max-width: 360px) {
    .site-footer .footer-container {
        padding: 0 14px;
    }

    .site-footer .footer-grid {
        gap: 24px 14px;
    }

    .site-footer .footer-nav-link {
        font-size: 12px;
    }

    .site-footer .footer-nav-arrow {
        margin-right: 5px;
    }

    .site-footer .footer-social-row {
        gap: 6px;
    }

    .site-footer .footer-social-icon-btn {
        width: 34px;
        height: 34px;
    }
}

/* ==========================================================================
   HERO BANNER - phones
   ========================================================================== */
@media (max-width: 767px) {
    .hero-banner {
        padding: 28px 0 40px;
    }

    .hero-banner__inner {
        gap: 28px;
        padding: 0 16px;
    }

    .hero-banner__title {
        margin-top: 16px;
        font-size: 30px;
    }

    .hero-banner__text {
        font-size: 14px;
    }

    .hero-banner__badge {
        font-size: 17px;
        padding: 8px 14px 6px 16px;
    }

    .hero-banner__actions {
        margin-top: 26px;
        gap: 12px;
    }

    .hero-btn {
        flex: 1 1 200px;
        padding: 12px 18px;
    }
}

@media (max-width: 480px) {
    .hero-banner__title {
        font-size: 26px;
    }

    .hero-banner__badge {
        font-size: 15.5px;
    }

    .hero-banner__features li {
        padding: 14px 6px;
        font-size: 11.5px;
    }
}

@media (max-width: 360px) {
    .hero-banner__inner {
        padding: 0 12px;
    }
}

/* ==========================================================================
   STATS STRIP - phones
   ========================================================================== */
@media (max-width: 767px) {
    .stats-strip {
        padding-bottom: 40px;
    }

    .stats-strip__inner {
        padding: 0 16px;
    }

    /* 2 + 2 + 1 layout */
    .stats-strip__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 22px;
        padding: 24px 10px;
        border-radius: 14px;
    }

    .stats-strip__item,
    .stats-strip__item:nth-child(4) {
        grid-column: auto;
    }

    .stats-strip__item:nth-child(5) {
        grid-column: 1 / -1;
        padding-top: 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.22);
    }

    .stats-strip__item::before {
        display: none;
    }

    .stats-strip__item:nth-child(even)::before {
        display: block;
    }

    .stats-strip__value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .stats-strip__value {
        font-size: 22px;
    }

    .stats-strip__value small,
    .stats-strip__star {
        font-size: 14px;
    }

    .stats-strip__label {
        font-size: 13px;
    }

    .stats-strip__text {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .stats-strip__inner {
        padding: 0 12px;
    }

    .stats-strip__item {
        padding: 4px 4px;
    }
}

/* ========================================================================
   MOBILE CONTENT, SCROLLING & FORM COMFORT
   ======================================================================== */
@media (max-width: 767px) {

    img,
    video {
        max-width: 100%;
    }

    /* Keep the comparison table readable while allowing it to be swiped. */
    .comparison-table-wrapper {
        width: calc(100% + 48px);
        margin-inline: -24px;
        padding: 0 24px 8px;
        scroll-padding-inline: 24px;
        overscroll-behavior-inline: contain;
        scrollbar-color: var(--color-gold) #f3ede2;
        scrollbar-width: thin;
    }

    .comparison-table-wrapper::-webkit-scrollbar {
        height: 6px;
    }

    .comparison-table-wrapper::-webkit-scrollbar-thumb {
        background-color: var(--color-gold);
        border-radius: 999px;
    }

    .comparison-table-wrapper::-webkit-scrollbar-track {
        background-color: #f3ede2;
        border-radius: 999px;
    }

    /* Snap each review card into view during horizontal swipes. */
    .reviews-slider-container {
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 4px;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .review-card {
        scroll-snap-align: start;
    }
}

@media (max-width: 640px) {
    .comparison-table-wrapper {
        width: calc(100% + 32px);
        margin-inline: -16px;
        padding-right: 16px;
        padding-left: 16px;
        scroll-padding-inline: 16px;
    }
}

/* Keep mobile form text at a comfortable size and avoid iOS focus zoom. */
@media (max-width: 600px) {

    .form-field-input,
    .form-field-select,
    .form-field-textarea {
        font-size: 16px;
    }
}

/* Keep the desktop contact CTA in place and insert its mobile version between branches and the form. */
.contact-page-cta--mobile {
    display: none;
}

@media (max-width: 767px) {
    .contact-page-cta--mobile {
        display: block;
        padding: 0;
    }

    .contact-page-cta--desktop {
        display: none;
    }
}

@media (max-width: 640px) {
    .contact-page-cta--mobile {
        width: calc(100% + 16px);
        margin-inline: -8px;
    }
}


