/* ============================================================
   OMNI VALVE 2025 - SHARED STYLESHEET
   ============================================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
    --primary: #0a2540;
    --primary-light: #1e3a4c;
    --accent: #2c3e50;
    --accent-light: #3d5a6c;
    --accent-glow: rgba(44, 62, 80, 0.12);
    --text-dark: #1a1a2e;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --orange-accent: #e67e22;
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== TOP BAR - HOMEPAGE ==================== */
.top-bar {
    padding: 10px 0;
    font-size: 14px;
}

.top-bar.top-bar-homepage {
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.top-bar.top-bar-homepage .top-bar-content {
    color: #4a5568;
}

.top-bar.top-bar-homepage .top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar.top-bar-homepage .location-info,
.top-bar.top-bar-homepage .weather-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar.top-bar-homepage .weather-time {
    padding-left: 20px;
    border-left: 1px solid rgba(0,0,0,0.2);
}

.top-bar.top-bar-homepage a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar.top-bar-homepage a:hover {
    color: #1a202c;
}

/* ==================== TOP BAR - INTERIOR PAGES ==================== */
.top-bar.top-bar-interior {
    background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
}

.top-bar.top-bar-interior .top-bar-content {
    color: var(--text-medium);
}

.top-bar.top-bar-interior .top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar.top-bar-interior .location-info,
.top-bar.top-bar-interior .weather-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar.top-bar-interior .weather-time {
    padding-left: 20px;
    border-left: 1px solid var(--border);
}

.top-bar.top-bar-interior a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar.top-bar-interior a:hover {
    color: var(--accent);
}

/* ==================== TOP BAR - SHARED ELEMENTS ==================== */
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links {
    display: flex;
    gap: 24px;
}

.top-bar-links a {
    display: flex;
    align-items: center;
    gap: 6px;
}

#openStatus {
    color: #22c55e;
    font-weight: 600;
}

#openStatus.closed {
    color: #ef4444;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.status-dot.offline {
    background: #ef4444;
    animation: none;
}

@keyframes pulse-dot {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }
    50% { 
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
}

.support-highlight {
    background: #4a6274;
    color: white !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.support-highlight:hover {
    background: var(--accent);
    color: white !important;
}

/* ==================== HEADER - HOMEPAGE ==================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-top: 8px;
}

header.header-homepage {
    background: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ==================== HEADER - INTERIOR ==================== */
header.header-interior {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* ==================== HEADER - SHARED ==================== */
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo img {
    height: 56px;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 15px;
}

nav a:hover {
    background: var(--bg-light);
    color: var(--accent);
}

nav a.active {
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

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

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

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

.btn-white:hover {
    background: var(--bg-light);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 10px 18px;
    font-size: 14px;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb-section {
    background: var(--bg-light);
    padding: 16px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 600;
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent);
}

.section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-medium);
    font-size: 1.05rem;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.7;
}

.footer-brand img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 24px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--accent-light);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-contact-item i {
    color: var(--accent-light);
    margin-top: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* ==================== PRODUCT BADGES ==================== */
.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.pneumatic { background: #2980b9; }
.product-badge.hydraulic { background: #8e44ad; }
.product-badge.control { background: #16a085; }
.product-badge.valve { background: #d35400; }
.product-badge.gate { background: #27ae60; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .top-bar-left {
        flex-direction: column;
        gap: 4px;
    }
    
    .top-bar.top-bar-homepage .weather-time,
    .top-bar.top-bar-interior .weather-time {
        padding-left: 0;
        border-left: none;
    }
    
    .top-bar-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    nav.active {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.py-1 { padding-top: 8px; padding-bottom: 8px; }
.py-2 { padding-top: 16px; padding-bottom: 16px; }
.py-3 { padding-top: 24px; padding-bottom: 24px; }
.py-4 { padding-top: 32px; padding-bottom: 32px; }
.py-5 { padding-top: 48px; padding-bottom: 48px; }
