/* =========================================
   1. VARIABLES & BASE STYLES
   ========================================= */
:root { 
    --primary-color: #14365d; 
    --accent-blue: #0d6efd; 
    --light-bg: #f4f7f6; 
    --text-dark: #2c3e50; 
    --table-border: #e2e8f0; 
}

html { 
    scroll-padding-top: 100px; 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Poppins', sans-serif; 
    background-color: var(--light-bg); 
    color: var(--text-dark); 
    overflow-x: hidden; 
}

/* =========================================
   2. LAYOUT & NAVIGATION
   ========================================= */
.container-ultra { 
    max-width: 1600px; 
    margin: 0 auto; 
}

.page-section {
    padding: 60px 0; 
}

.navbar { 
    background-color: #ffffff; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); 
    padding: 15px 0; 
}

.navbar-brand svg { 
    height: 55px; 
    width: auto; 
}

.nav-link { 
    font-weight: 600; 
    color: var(--primary-color) !important; 
    margin: 0 10px; 
    transition: color 0.3s; 
}

.nav-link:hover, 
.nav-link.active { 
    color: var(--accent-blue) !important; 
}

/* =========================================
   3. HEADERS & HERO SECTIONS
   ========================================= */
/* Home Page Hero */
.hero-section { 
    background: linear-gradient(135deg, #ffffff 0%, #e6eef7 100%); 
    padding: 60px 0; 
    border-bottom: 1px solid #dce5ef; 
}

/* Internal Pages: Overlapping Header (Order/Contact) */
.page-header { 
    background: linear-gradient(135deg, #14365d 0%, #0a1f38 100%); 
    color: white; 
    padding: 60px 0 60px 0; 
    text-align: center; 
    margin-bottom: 0; 
}

/* Internal Pages: Spaced Header (Services/Branches) */
.page-header-spaced {
    margin-bottom: 50px; 
    padding: 60px 0 40px 0; 
}

/* =========================================
   4. HOME PAGE COMPONENTS
   ========================================= */
.profile-card { 
    background: rgba(255, 255, 255, 0.9); 
    border-radius: 20px; 
    padding: 40px; 
    box-shadow: 0 15px 35px rgba(20, 54, 93, 0.08); 
    border: 1px solid rgba(255,255,255,0.5); 
    backdrop-filter: blur(10px); 
    height: 100%; 
}

.profile-text { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: #4a5568; 
    font-weight: 400; 
}

.highlight-text { 
    color: var(--primary-color); 
    font-weight: 700; 
}

.news-widget { 
    background: #ffffff; 
    border-radius: 20px; 
    box-shadow: 0 15px 35px rgba(20, 54, 93, 0.08); 
    border: none; 
    overflow: hidden; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
}

.news-header { 
    background: var(--primary-color); 
    color: #ffffff; 
    padding: 20px; 
    font-weight: 700; 
    font-size: 1.2rem; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.news-body { 
    flex-grow: 1; 
    overflow-y: auto; 
    padding: 20px; 
}

.action-item { 
    display: flex; 
    align-items: center; 
    padding: 10px 15px; 
    background: #f4f7f6; 
    border-radius: 8px; 
    text-decoration: none; 
    color: var(--primary-color); 
    font-size: 0.85rem; 
    font-weight: 600; 
    transition: all 0.2s ease-in-out; 
    border: 1px solid transparent; 
}

.action-item:hover { 
    background: #ffffff; 
    border-color: var(--accent-blue); 
    color: var(--accent-blue); 
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.1); 
}

.action-item i { 
    font-size: 1.2rem; 
    margin-right: 10px; 
}

/* =========================================
   5. SERVICE & BRANCH CARDS
   ========================================= */
.service-card, .branch-card { 
    background: #ffffff; 
    border: none; 
    border-radius: 16px; 
    padding: 30px; 
    height: 100%; 
    margin-bottom: 30px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); 
    transition: all 0.3s ease; 
}

.service-card:hover, .branch-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(20, 54, 93, 0.12); 
}

.icon-wrapper { 
    width: 70px; 
    height: 70px; 
    background: #f0f5fa; 
    border-radius: 14px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 32px; 
    color: var(--accent-blue); 
    margin-bottom: 20px; 
    transition: background 0.3s, color 0.3s; 
}

.service-card:hover .icon-wrapper, .branch-card:hover .icon-wrapper { 
    background: var(--accent-blue); 
    color: #ffffff; 
}

/* =========================================
   6. FORMS, CONTACTS & INPUTS
   ========================================= */
.form-card, .contact-card { 
    background: #ffffff; 
    border-radius: 20px; 
    padding: 40px; 
    box-shadow: 0 15px 35px rgba(20, 54, 93, 0.08); 
    border: none; 
    margin-top: -40px; 
    position: relative; 
    z-index: 10; 
    height: 100%;
}

.form-section-title { 
    color: var(--primary-color); 
    font-weight: 700; 
    border-bottom: 2px solid var(--table-border); 
    padding-bottom: 10px; 
    margin-bottom: 25px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.form-control, 
.form-select { 
    padding: 12px 15px; 
    border-radius: 8px; 
    border: 1px solid #ced4da; 
    font-size: 0.95rem; 
}

.form-control:focus, 
.form-select:focus { 
    border-color: var(--accent-blue); 
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15); 
}

.form-label { 
    font-weight: 600; 
    font-size: 0.9rem; 
    color: #4a5568; 
}

.qty-box { 
    background: #f8f9fa; 
    border-radius: 10px; 
    padding: 15px; 
    border: 1px solid #eee; 
    text-align: center; 
    transition: 0.3s; 
}

.qty-box:hover { 
    border-color: var(--accent-blue); 
    background: #fff; 
}

.btn-submit { 
    background: var(--primary-color); 
    color: white; 
    padding: 12px 30px; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 1.1rem; 
    border: none; 
    transition: all 0.3s; 
}

.btn-submit:hover { 
    background: var(--accent-blue); 
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2); 
    color: white; 
}

/* =========================================
   7. MAP & TABLES
   ========================================= */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--table-border);
    height: 300px;
}

.table-responsive { 
    border-radius: 12px; 
    border: 1px solid var(--table-border); 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.02); 
}

.custom-order-table { 
    margin-bottom: 0; 
}

.custom-order-table thead th { 
    background-color: var(--primary-color); 
    color: white; 
    font-weight: 600; 
    text-align: center; 
    vertical-align: middle; 
    border-bottom: none; 
    padding: 15px 10px; 
    white-space: nowrap; 
}

.custom-order-table tbody th { 
    background-color: #f8f9fa; 
    color: var(--primary-color); 
    font-weight: 700; 
    vertical-align: middle; 
    white-space: nowrap; 
}

.custom-order-table td { 
    vertical-align: middle; 
    padding: 8px; 
    text-align: center; 
}

.custom-order-table input[type="number"] { 
    width: 100%; 
    min-width: 60px; 
    text-align: center; 
    padding: 8px 5px; 
    border-radius: 6px; 
    border: 1px solid #ced4da; 
    font-weight: 600; 
    color: var(--primary-color); 
    transition: all 0.2s; 
}

.custom-order-table input[type="number"]:focus { 
    border-color: var(--accent-blue); 
    outline: none; 
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2); 
    background-color: #f0f7ff; 
}

.empty-cell { 
    background-color: #f1f5f9 !important; 
    color: #cbd5e1; 
    font-weight: bold; 
    user-select: none; 
}

/* =========================================
   8. FOOTER
   ========================================= */
footer { 
    background: var(--primary-color); 
    color: #ffffff; 
    padding: 60px 0 20px 0; 
    margin-top: 60px; 
}

.footer-quote { 
    font-size: 1rem; 
    font-weight: 400; 
    color: #a8c6e8; 
    line-height: 1.6; 
    margin-top: 15px; 
}

.footer-address a { 
    color: rgba(255,255,255,0.8); 
    text-decoration: none; 
    transition: color 0.3s; 
}

.footer-address a:hover { 
    color: #ffffff; 
    text-decoration: underline; 
}

.address-card { 
    background: rgba(255,255,255,0.06); 
    padding: 20px; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.1); 
    height: 100%; 
}

.address-card a { 
    color: rgba(255,255,255,0.8); 
    text-decoration: none; 
    transition: 0.3s; 
}

.address-card a:hover { 
    color: var(--accent-blue); 
    text-decoration: underline; 
}

.address-card i { 
    color: var(--accent-blue); 
    font-size: 1.1rem; 
}