/* ===================================
   Synlec Website - Professional Design
   Ref: Industrial Corporate Style
   =================================== */

/* CSS Variables */
:root {
    /* Colors - Synlec Brand Colors */
    --primary: #0198a1;           /* Synlec Turquoise */
    --primary-dark: #007c83;      
    --secondary: #E73535;         /* Synlec Red */
    
    /* Neutrals */
    --black: #000000;
    --dark: #222222;
    --gray: #666666;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --section-spacing: 80px;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-outline-dark:hover {
    background-color: var(--dark);
    color: var(--white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    position: relative;
}

.staff-login {
    padding: 8px 16px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    transition: background 0.3s ease, color 0.3s ease;
}

.staff-login:hover {
    background: var(--primary);
    color: var(--white);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    margin-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    color: var(--white);
    width: 100%;
}

.hero-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--primary);
    background: rgba(255,255,255,0.9);
    display: inline-block;
    padding: 5px 10px;
}

.hero-title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}

/* Pillars Section */
.pillars-section {
    padding: var(--section-spacing) 0;
    background-color: var(--white);
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 10px;
}

.section-line {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pillar-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.pillar-image-container {
    position: relative;
    height: 500px; /* Tall cards like DRA */
    overflow: hidden;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}

.pillar-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: transform 0.5s ease;
    z-index: 1;
}

.pillar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 2;
}

.pillar-content {
    position: relative;
    z-index: 3;
}

.pillar-card:hover .pillar-bg {
    transform: scale(1.1);
}

.pillar-content h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 5px;
}

.pillar-sub {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--primary); /* Brand color highlight */
    margin-bottom: 20px;
    font-weight: 700;
}

.pillar-desc {
    font-size: 0.95rem;
    margin-bottom: 25px;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}

.pillar-link {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    border-bottom: 2px solid var(--secondary); /* Red accent */
    padding-bottom: 2px;
}

.pillar-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Corporate Statement */
.corporate-statement {
    padding: 100px 0;
    background-color: var(--light-gray);
    text-align: center;
}

.statement-content {
    max-width: 800px;
    margin: 0 auto;
}

.statement-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.statement-content p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 40px;
}

/* Capabilities Grid */
.services-list {
    padding: var(--section-spacing) 0;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.capability-item {
    border: 1px solid #eee;
    padding: 30px 20px;
    text-align: center;
    transition: 0.3s;
}

.capability-item:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cap-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.capability-item h4 {
    font-size: 1rem;
    color: var(--dark);
    margin: 0;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 50px;
    margin-bottom: 30px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Make logo white */
}

.footer-address {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-col h5 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-col p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
}
