/* ==========================================================================
   PREMATECH COOLING SYSTEM — PREMIUM UI & UX STYLESHEET
   Design Theme: Corporate B2B HVAC & Clean Room Engineering
   Color Palette: Navy Blue (#0f2942), Orange (#f97316), Light Gray (#f8fafc), White (#ffffff)
   ========================================================================== */

:root {
    --brand-navy: #0f2942;
    --brand-navy-dark: #0a1c2e;
    --brand-navy-light: #1e3a5f;
    --brand-orange: #f97316;
    --brand-orange-hover: #ea580c;
    --brand-light: #f8fafc;
    --brand-green: #10b981;
    --brand-text-dark: #0f172a;
    --brand-text-muted: #64748b;
    --brand-border: #e2e8f0;
    --brand-shadow-sm: 0 4px 12px rgba(15, 41, 66, 0.05);
    --brand-shadow-md: 0 10px 30px rgba(15, 41, 66, 0.08);
    --brand-shadow-lg: 0 20px 40px rgba(15, 41, 66, 0.12);
}

/* Base Polish & Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--brand-text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header & Navigation Polish */
.topbar {
    background: var(--brand-navy-dark, #0a1c2e);
    color: #cbd5e1;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.75rem;
}
.topbar span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.topbar i {
    color: var(--brand-orange);
}

.header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(15, 41, 66, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}
.header .container.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(15, 41, 66, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
.brand strong {
    display: block;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    line-height: 1.1;
}
.brand small {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.nav-links a:not(.button) {
    color: var(--brand-text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.25s ease;
}
.nav-links a:not(.button):hover,
.nav-links a:not(.button).active {
    color: var(--brand-navy);
}
.nav-links a:not(.button)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--brand-orange);
    transition: width 0.3s ease;
}
.nav-links a:not(.button):hover::after,
.nav-links a:not(.button).active::after {
    width: 100%;
}

/* Button Polish */
.button, .button.primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-navy);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.75rem 1.6rem;
    border-radius: 8px;
    border: 2px solid var(--brand-navy);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 41, 66, 0.18);
    transition: all 0.3s ease;
}
.button.primary:hover {
    background: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}
.button.outline {
    background: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: none;
}
.button.outline:hover {
    background: #ffffff !important;
    color: var(--brand-navy) !important;
    transform: translateY(-2px);
}

/* Section Titles & Eyebrows */
.eyebrow {
    color: var(--brand-orange) !important;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.section-head h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1.2;
    margin-top: 0.25rem;
}
.section-head h2 span {
    color: var(--brand-orange);
}

/* Capability Grid Polish */
.capability-wrap {
    margin-top: -35px;
    position: relative;
    z-index: 10;
}
.capability-grid {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--brand-shadow-lg);
    background: #ffffff;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
}
.capability-intro {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%) !important;
    padding: 2rem !important;
}
.capability-item {
    padding: 1.75rem 1.5rem !important;
    border-right: 1px solid var(--brand-border);
    transition: all 0.3s ease;
}
.capability-item:hover {
    background: #f1f5f9;
    transform: translateY(-3px);
}
.capability-item h3 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--brand-navy) !important;
    margin-bottom: 0.5rem !important;
}
.capability-item p {
    font-size: 0.85rem !important;
    color: var(--brand-text-muted) !important;
    line-height: 1.55 !important;
}

/* Who We Are Grid */
.who-grid {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--brand-shadow-md);
    border: 1px solid var(--brand-border);
}
.who-grid img {
    border-radius: 14px;
    box-shadow: var(--brand-shadow-md);
    width: 100%;
    object-fit: cover;
}

/* Stats Section */
.pm-stats {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%) !important;
    padding: 3.5rem 0 !important;
}
.pm-stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--brand-shadow-sm);
    border: 1px solid var(--brand-border);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform 0.3s ease;
}
.pm-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--brand-shadow-md);
}
.pm-stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-orange);
    flex-shrink: 0;
}
.pm-stat-body strong {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-navy);
    display: block;
    line-height: 1.1;
}
.pm-stat-body span {
    font-size: 0.85rem;
    color: var(--brand-text-muted);
    font-weight: 500;
}

/* Services Grid Polish */
.industry-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}
.industry-service {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--brand-shadow-sm);
    border: 1px solid var(--brand-border);
    transition: all 0.35s ease;
    position: relative;
}
.industry-service:hover {
    transform: translateY(-6px);
    box-shadow: var(--brand-shadow-lg);
    border-color: var(--brand-orange);
}
.industry-service img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.industry-service:hover img {
    transform: scale(1.06);
}
.industry-service div {
    padding: 1.5rem;
}
.industry-service i {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--brand-navy);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    transition: background 0.3s ease;
}
.industry-service:hover i {
    background: var(--brand-orange);
}
.industry-service h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 0.5rem;
}
.industry-service p {
    font-size: 0.88rem;
    color: var(--brand-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Dynamic Industry Cards */
.service-pill {
    display: inline-block;
    background: rgba(15, 41, 66, 0.08);
    color: var(--brand-navy);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.28rem 0.7rem;
    border-radius: 12px;
    margin-right: 0.35rem;
    margin-bottom: 0.35rem;
    transition: all 0.2s ease;
}
.service-pill:hover {
    background: var(--brand-navy);
    color: #ffffff;
}

/* Floating Actions FABs */
.call-float, .whatsapp {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.3s ease !important;
}
.call-float:hover, .whatsapp:hover {
    transform: scale(1.1) !important;
}

/* Footer Improvements */
.footer {
    background: var(--brand-navy-dark) !important;
    border-top: 3px solid var(--brand-orange);
}
.footer-col h3 {
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--brand-orange);
}

/* Responsive Grid Rules */
@media (max-width: 992px) {
    .capability-grid {
        grid-template-columns: 1fr 1fr;
    }
    .capability-intro {
        grid-column: 1 / -1;
    }
    .who-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .capability-grid {
        grid-template-columns: 1fr;
    }
    .topbar .container {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}
