/* ============================================
   ZETRE - Mobile Common Styles (max-width: 767px)
   App-like mobile experience with bottom nav
   ============================================ */

/* ---- Mobile Body ---- */
html {
    overflow-x: hidden;
}

body {
    padding-bottom: 72px; /* Space for bottom nav */
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* ---- Hide Desktop Header on Mobile ---- */
.desktop-header {
    display: none !important;
}

/* ---- Mobile Top Bar ---- */
.mobile-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 66px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-4);
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid var(--gray-200);
}

.mobile-top-bar .logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--primary-700);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.mobile-top-bar .logo-img {
    height: 38px;
    max-height: 38px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.mobile-top-bar .logo span {
    color: var(--primary-500);
}

.mobile-top-bar .top-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.mobile-top-bar .top-actions button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    color: var(--gray-700);
    font-size: 20px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
}

.mobile-top-bar .top-actions button:active {
    background: var(--primary-50);
    color: var(--primary-600);
    transform: scale(0.94);
}

.mobile-menu-btn {
    background: var(--primary-50) !important;
    color: var(--primary-700) !important;
    border: 1px solid var(--primary-200) !important;
}

/* ---- Mobile Navigation Drawer & Backdrop ---- */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--white);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.drawer-header .logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--primary-700);
    text-decoration: none;
}

.drawer-header .logo span {
    color: var(--primary-500);
}

.drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}

.drawer-close-btn:active {
    background: var(--gray-300);
    transform: scale(0.94);
}

.drawer-body {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    color: var(--gray-700);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.drawer-link i {
    font-size: 20px;
    color: var(--primary-600);
}

.drawer-link:hover,
.drawer-link.active {
    background: var(--primary-50);
    color: var(--primary-700);
    font-weight: 700;
}

.drawer-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: auto;
    margin-bottom: var(--space-5);
}

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

.btn-outline-primary {
    border: 2px solid var(--primary-500);
    color: var(--primary-700);
    background: transparent;
}

.drawer-contact-info {
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.drawer-contact-info p {
    font-size: var(--text-xs);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
}

.drawer-contact-info p i {
    color: var(--primary-600);
}

/* ---- Bottom Navigation Bar ---- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    border-top: 1px solid var(--gray-200);
    padding: 0 var(--space-2);
    padding-bottom: env(safe-area-inset-bottom, 0);
}


.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-xl);
    color: var(--gray-400);
    font-size: var(--text-xs);
    font-weight: 500;
    transition: all var(--transition-base);
    min-width: 56px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav .nav-item i {
    font-size: 20px;
    transition: all var(--transition-base);
    margin-bottom: 2px;
}

.bottom-nav .nav-item span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.bottom-nav .nav-item.active {
    color: var(--primary-600);
}

.bottom-nav .nav-item.active i {
    transform: scale(1.1);
}

.bottom-nav .nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 var(--radius-full) var(--radius-full);
}

.bottom-nav .nav-item:active {
    transform: scale(0.92);
    background: var(--primary-50);
}

/* ---- Mobile Content Area ---- */
.main-content {
    padding-top: 56px; /* Account for mobile top bar */
}

/* ---- Mobile Container ---- */
.container {
    padding: 0 var(--space-4);
}

/* ---- Mobile Section ---- */
.section {
    padding: var(--space-10) 0;
}

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

/* ---- Mobile Typography ---- */
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }

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

.section-header p {
    font-size: var(--text-sm);
}

/* ---- Mobile Cards ---- */
.card {
    border-radius: var(--radius-lg);
}

/* ---- Mobile Buttons ---- */
.btn {
    min-height: 48px;
    padding: var(--space-3) var(--space-5);
}

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

/* ---- Mobile Compact & Optimized Footer ---- */
.footer {
    padding: var(--space-6) 0 calc(var(--space-6) + 72px);
}

.footer-newsletter-banner {
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    margin-top: var(--space-3);
    margin-bottom: var(--space-6);
    text-align: center;
    border-radius: var(--radius-xl);
}

.newsletter-info {
    flex-direction: column;
    gap: var(--space-2);
    align-items: center;
}

.newsletter-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: var(--radius-lg);
}

.newsletter-info h4 {
    font-size: var(--text-sm);
    margin-bottom: 2px;
}

.newsletter-info p {
    font-size: 11px;
}

.newsletter-form {
    flex-direction: row;
    width: 100%;
    min-width: 0;
    gap: var(--space-1);
    padding: 3px 4px 3px 12px;
    border-radius: var(--radius-full);
}

.newsletter-input {
    width: 100%;
    text-align: left;
    font-size: 11px;
}

.newsletter-form .btn-emerald {
    padding: 6px 14px;
    font-size: 11px;
}

/* Smart 2-Column Mobile Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5) var(--space-4);
}

/* Col 1 (Brand info) takes full width */
.footer-brand {
    grid-column: 1 / -1;
    gap: var(--space-2);
}

.footer-logo {
    font-size: 26px;
}

.brand-desc {
    font-size: 12px;
    line-height: 1.5;
}

.footer-cert-chip {
    font-size: 10px;
    padding: 4px 10px;
}

.footer-social {
    gap: 8px;
    margin-top: var(--space-1);
}

.social-btn {
    width: 34px;
    height: 34px;
    font-size: 15px;
}

/* Col 2 & Col 3 sit side by side in 2 columns */
.footer-col h4 {
    font-size: 14px;
    margin-bottom: var(--space-2);
    padding-bottom: 6px;
}

.footer-col h4::after {
    width: 24px;
    height: 2px;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col ul li a {
    font-size: 12px;
    gap: 4px;
}

/* Col 4 (Contact list) takes full width at bottom */
.footer-col:last-child {
    grid-column: 1 / -1;
}

.footer-contact-list li {
    font-size: 12px;
    margin-bottom: 8px;
    gap: 8px;
}

.footer-contact-list li i {
    font-size: 15px;
}

.footer-hours-item {
    padding: 6px 10px;
}

/* Footer Bottom Bar */
.footer-bottom {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
}

.footer-bottom p {
    font-size: 11px;
}

.footer-trust-seals {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.trust-seal {
    font-size: 10px;
}


/* ---- Hide back-to-top on mobile ---- */
.back-to-top {
    bottom: 84px;
    right: 16px;
    width: 42px;
    height: 42px;
}

/* ---- Mobile Swipe Indicator ---- */
.swipe-indicator {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) 0;
}

.swipe-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    transition: all var(--transition-base);
}

.swipe-indicator .dot.active {
    width: 24px;
    background: var(--primary-500);
}

/* ---- Mobile Pull to Refresh Indicator ---- */
.pull-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    color: var(--gray-400);
    font-size: var(--text-sm);
}

/* ---- Mobile App-like Transitions ---- */
.page-transition {
    animation: slideUp 0.3s ease;
}

/* ---- Mobile Touch Feedback ---- */
.touchable {
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--transition-fast);
}

.touchable:active {
    transform: scale(0.97);
}

/* ---- Mobile Form Styles ---- */
.form-input,
.form-textarea,
.form-select {
    font-size: 16px; /* Prevent iOS zoom */
    padding: var(--space-4);
    border-radius: var(--radius-xl);
}

