/**
 * MOBILE CSS - Dedicated stylesheet for mobile versions only
 * Beautiful, responsive design specifically for mobile devices
 */

/* === RESET AND BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

/* === VARIABLES === */
:root {
    --primary-blue: #1a2332;
    --copper: #b87333;
    --accent-gold: #d4af37;
    --text-dark: #333;
    --text-light: #666;
    --border-light: #e0e0e0;
    --bg-light: #f8f9fa;
    --white: #fff;
    --mobile-padding: 20px;
    --mobile-header-height: 70px;
    --touch-target: 44px;
}

/* === TYPOGRAPHY === */
h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
p { margin-bottom: 1rem; color: white; }

/* === LAYOUT === */
.container {
    width: 100%;
    padding: 0 var(--mobile-padding);
    margin: 0 auto;
}

/* === MOBILE HEADER === */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-header-height);
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--copper);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--mobile-padding);
}

.mobile-logo { 
    height: 40px;
}

    .mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
}

/* === MOBILE NAVIGATION === */
.mobile-nav {
    position: fixed;
    top: var(--mobile-header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--mobile-header-height));
    background: var(--white);
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active { left: 0; }

.mobile-nav-list { list-style: none; padding: 20px 0; }

.mobile-nav-item { border-bottom: 1px solid var(--border-light); }
    
    .mobile-nav-link {
    display: block;
    padding: 15px var(--mobile-padding);
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
}

.mobile-nav-link:hover { background: var(--bg-light); }

/* Mobile Dropdown */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown .mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown .mobile-nav-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-nav-link i {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    list-style: none;
    padding: 0;
    background: var(--bg-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 1000px;
}

.mobile-dropdown-category {
    border-bottom: 1px solid var(--border-light);
}

.mobile-category-title {
    display: block;
    padding: 12px var(--mobile-padding);
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

.mobile-submenu {
    list-style: none;
    padding: 0;
}

.mobile-subcategory-header {
    padding: 0;
}

.mobile-subcategory-title {
    display: block;
    padding: 10px calc(var(--mobile-padding) + 20px);
    color: var(--copper);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    background: rgba(184, 134, 11, 0.1);
    border-left: 3px solid var(--copper);
}

.mobile-submenu-link {
    display: block;
    padding: 8px calc(var(--mobile-padding) + 40px);
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.mobile-submenu-link:hover {
    color: var(--copper);
    background: rgba(184, 134, 11, 0.05);
    border-left-color: var(--copper);
}

/* === HERO SECTIONS === */
.mobile-hero {
    padding-top: calc(var(--mobile-header-height) + 100px);
    padding-bottom: 200px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Reduced padding for non-video hero sections */
.mobile-hero:not(:has(.mobile-hero-video-container)) {
    padding-top: calc(var(--mobile-header-height) + 40px);
    padding-bottom: 60px;
}

.mobile-hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mobile-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.mobile-hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.mobile-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    color: var(--copper);
    margin-top: -30px;
}

/* White title only for video background (homepage) */
.mobile-hero:has(.mobile-hero-video-container) .mobile-hero-title {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.mobile-hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* === BUTTONS === */
.mobile-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    min-height: 36px;
    border: none;
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-btn-primary {
    background: var(--copper);
    color: var(--white);
}

.mobile-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184,115,51,0.3);
    background: var(--copper-dark);
}

.mobile-btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.mobile-btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* === CARDS === */
.mobile-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 24px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    text-align: center;
}

.mobile-card:hover { transform: translateY(-5px); }

.mobile-card-icon {
    width: 60px;
    height: 60px;
    background: var(--copper);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--white);
    font-size: 1.5rem;
}

.mobile-card-icon i {
    font-size: 1.5rem !important;
        color: var(--white) !important;
        display: block !important;
}

/* === MOBILE SERVICE IMAGES === */
.mobile-card-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.mobile-service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.mobile-card:hover .mobile-service-img {
    transform: scale(1.05);
}

.mobile-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.mobile-card:hover .mobile-product-img {
    transform: scale(1.05);
}

/* === SECTIONS === */
.mobile-section { 
    padding: 60px 0; 
    background: var(--white);
}
.mobile-section-alt { 
    background: var(--bg-light); 
}

.mobile-section-header { text-align: center; margin-bottom: 40px; }

.mobile-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* === GRIDS === */
.mobile-grid { display: grid; gap: 24px; }

@media (min-width: 480px) {
    .mobile-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 640px) {
    .mobile-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* === FORMS === */
.mobile-form {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.mobile-form-group { margin-bottom: 20px; }

.mobile-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.mobile-form-input,
.mobile-form-select,
.mobile-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    min-height: var(--touch-target);
}

.mobile-form-input:focus,
.mobile-form-select:focus,
.mobile-form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.mobile-form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* === FOOTER === */
.mobile-footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 40px 0 20px;
    text-align: center;
}

.mobile-footer-logo { margin-bottom: 30px; }
.mobile-footer-logo img { height: 40px; }

.mobile-footer-grid { display: grid; gap: 30px; margin-bottom: 30px; }

.mobile-footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.mobile-footer-list { list-style: none; }
.mobile-footer-list li { margin-bottom: 8px; }
.mobile-footer-list a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}
.mobile-footer-list a:hover { color: var(--copper); }

/* === UTILITIES === */
.mobile-text-center { text-align: center; }
.mobile-mb-20 { margin-bottom: 20px; }
.mobile-mt-20 { margin-top: 20px; }
.mobile-hidden { display: none !important; }

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-animate { animation: fadeInUp 0.6s ease-out; }

/* === ACCESSIBILITY === */
button:focus, a:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* === PRODUCT APPLICATIONS === */
.mobile-applications {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.mobile-application {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.mobile-application:hover {
    transform: translateY(-3px);
}

.mobile-application i {
    font-size: 2rem;
        color: var(--copper) !important;
    margin-bottom: 12px;
}

.mobile-application span {
    font-weight: 600;
    color: var(--text-dark);
}

/* Mobile Story Section */
.mobile-section .mobile-section-title {
    color: var(--primary-blue) !important;
}

.mobile-section p {
    color: var(--text-light) !important;
}

/* Mobile Story Section Dark Mode */
[data-theme="dark"] .mobile-section .mobile-section-title {
    color: var(--white) !important;
}

[data-theme="dark"] .mobile-section p {
    color: rgba(255, 255, 255, 0.8) !important;
}

@media (min-width: 600px) {
    .mobile-applications {
        grid-template-columns: repeat(3, 1fr);
    }
}
