/* ==========================================================================
   SS INFO SERVICES / NME IT THEME UNIFIED STYLESHEET
   Design System: Deep Maroon & Gold Glassmorphism Dark Theme
   ========================================================================== */

/* --- 1. CSS Custom Properties / Variables --- */
:root {
    /* Color Palette */
    --bg-dark-primary: #070305;
    --bg-dark-secondary: #0f0609;
    --card-bg-gradient: linear-gradient(180deg, #18070d 0%, #0d0306 100%);
    --card-bg-hover: linear-gradient(180deg, #220912 0%, #120409 100%);
    
    --maroon-primary: #700b1d;
    --maroon-bright: #9e102b;
    --maroon-glow: rgba(158, 16, 43, 0.4);
    
    --gold-primary: #d4af37;
    --gold-bright: #f5cf53;
    --gold-glow: rgba(212, 175, 55, 0.25);
    --gold-muted: rgba(212, 175, 55, 0.12);
    
    --cyan-accent: #00d2ff;
    --green-solar: #10b981;
    
    /* Typography Colors */
    --text-heading: #ffffff;
    --text-body: #d1c7c9;
    --text-muted: #9e9195;
    
    /* Utility & Borders */
    --border-maroon: rgba(158, 16, 43, 0.35);
    --border-gold: rgba(212, 175, 55, 0.3);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    /* Shadows & Transitions */
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.8), 0 0 20px var(--gold-glow);
    --transition-fast: all 0.25s ease;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- 2. Base Reset & Reset Defaults --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark-primary);
    color: var(--text-body);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* --- 3. Utility Layout & Containers --- */
.container, .custom-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* --- 4. Global Typography & Section Headers --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 800;
    line-height: 1.25;
}

.section-header {
    text-align: center;
    margin-bottom: 55px;
    position: relative;
}

.section-header .sub-title {
    color: var(--gold-primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.section-header .main-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.5px;
}

.gold-divider, .title-line {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--maroon-bright), var(--gold-primary));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- 5. Page Banner / Hero Section --- */
.page-banner, .services-hero-banner {
    position: relative;
    background: linear-gradient(180deg, rgba(7, 3, 5, 0.85) 0%, rgba(7, 3, 5, 0.98) 100%), 
                url('https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?w=1600&q=80') center/cover no-repeat;
    padding: 100px 20px 75px;
    text-align: center;
    color: var(--text-heading);
    border-bottom: 1px solid var(--border-maroon);
}

.page-banner h1, .services-hero-banner h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-banner p, .services-hero-banner p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* --- 6. Unified Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.btn-maroon {
    background: linear-gradient(135deg, var(--maroon-bright) 0%, var(--maroon-primary) 100%);
    color: #ffffff;
    border-color: var(--border-gold);
}

.btn-maroon:hover {
    background: var(--gold-primary);
    color: var(--bg-dark-primary);
    border-color: var(--gold-bright);
    box-shadow: 0 0 15px var(--gold-glow);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-primary) 100%);
    color: var(--bg-dark-primary);
    border-color: var(--gold-bright);
}

.btn-gold:hover {
    background: var(--maroon-bright);
    color: #ffffff;
    border-color: var(--gold-primary);
}

/* --- 7. Products & Services Cards Section --- */
.services-wrapper, .products-services-section {
    background-color: var(--bg-dark-primary);
    padding: 80px 0 100px;
}

/* Grid System */
.grid-3, .card-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Maroon & Gold Glassmorphism Service/Product Card */
.service-card, .maroon-gold-card, .card {
    background: var(--card-bg-gradient);
    border: 1px solid var(--border-maroon);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

/* Top Accent Highlight Line */
.service-card::before, .maroon-gold-card::before, .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-primary), var(--maroon-bright));
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.service-card:hover, .maroon-gold-card:hover, .card:hover {
    transform: translateY(-8px);
    background: var(--card-bg-hover);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before, .maroon-gold-card:hover::before, .card:hover::before {
    opacity: 1;
}

/* Card Header (Icon & Badge) */
.card-top, .card-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.icon-wrapper, .card-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(112, 11, 29, 0.4);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    font-size: 1.25rem;
    box-shadow: inset 0 0 12px rgba(212, 175, 55, 0.15);
}

.card-badge, .nme-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--gold-bright);
    background: var(--gold-muted);
    border: 1px solid var(--border-gold);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.8px;
}

.badge-solar, .badge-green {
    color: var(--green-solar);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.35);
}

/* Card Media / Thumbnail */
.card-media, .card-media-box {
    width: 100%;
    height: 165px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 18px;
    border: 1px solid var(--border-glass);
}

.card-media img, .card-media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24, 7, 13, 0) 40%, rgba(13, 3, 6, 0.8) 100%);
}

.service-card:hover .card-media img, 
.maroon-gold-card:hover .card-media-box img {
    transform: scale(1.08);
}

/* Card Body Content */
.card-body, .card-content-box {
    flex-grow: 1;
}

.card-title, .card-heading, .card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 8px 0;
}

.card-desc, .card-description, .card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 20px 0;
}

/* Card Footer Bar */
.card-footer, .card-footer-bar {
    border-top: 1px solid var(--border-glass);
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.view-details-btn, .btn-card-link {
    text-decoration: none;
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.view-details-btn i, .btn-card-link i {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.service-card:hover .btn-card-link,
.maroon-gold-card:hover .btn-card-link {
    color: var(--gold-bright);
}

.service-card:hover .btn-card-link i,
.maroon-gold-card:hover .btn-card-link i {
    transform: translateX(4px);
}

.btn-card-enquire {
    text-decoration: none;
    background: linear-gradient(135deg, var(--maroon-bright) 0%, var(--maroon-primary) 100%);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--border-gold);
    transition: var(--transition-fast);
}

.btn-card-enquire:hover {
    background: var(--gold-primary);
    color: var(--bg-dark-primary);
    border-color: var(--gold-bright);
}

/* --- 8. Media Queries / Responsiveness --- */
@media (max-width: 992px) {
    .section-header .main-title { font-size: 2rem; }
    .page-banner h1, .services-hero-banner h1 { font-size: 2.1rem; }
}

@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }
    .grid-3, .card-grid, .services-grid { grid-template-columns: 1fr; }
    .card-footer-bar { flex-direction: column; gap: 12px; align-items: flex-start; }
    .btn-card-enquire { width: 100%; text-align: center; }
}