/* Base Resets & Variables */
:root {
    --primary-color: #0d2a4a; /* Deep corporate blue */
    --accent-color: #bfa15f; /* Premium gold/bronze */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --radius-lg: 12px;
    --radius-sm: 6px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #091e36;
    box-shadow: var(--shadow-sm);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background-color: #a88a4c;
    box-shadow: var(--shadow-md);
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.logo-desc {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
    line-height: 1.2;
}

.main-nav > ul {
    display: flex;
    gap: 24px;
}

.main-nav a {
    font-weight: 500;
    font-size: 15px;
    color: var(--primary-color);
}

.main-nav a:hover {
    color: var(--accent-color);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: var(--bg-light);
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 42px;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.services-grid-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.service-card-mini {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    font-size: 15px;
    color: var(--primary-color);
    text-align: center;
    border: 1px solid transparent;
}

.service-card-mini:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Image Area */
.hero-image-placeholder {
    width: 420px;
    height: 420px;
    background-image: url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Principles */
.principles {
    padding: 80px 0;
    background: var(--white);
}

.principles-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.principle-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.principle-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.principle-card h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.principle-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* About Overview */
.about-overview {
    padding: 80px 0;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.about-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* Team Preview */
.team-preview {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 32px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    padding-bottom: 30px;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.team-card h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.team-card p {
    font-size: 15px;
    color: var(--accent-color);
    font-weight: 500;
}

/* Content Preview (Blog & News) */
.content-preview {
    padding: 80px 0;
    background: var(--white);
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.post-item {
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-date {
    font-size: 13px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.post-item a {
    font-size: 18px;
    color: var(--text-color);
    font-weight: 600;
}

.post-item a:hover {
    color: var(--primary-color);
}

.link-all, .link-more {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.link-all:hover, .link-more:hover {
    border-color: var(--accent-color);
    color: var(--primary-color);
}

/* Cases Preview */
.cases-preview {
    padding: 80px 0;
    background: var(--bg-light);
}

.cases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.case-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.case-card h4 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.case-card p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* SEO Content */
.seo-content {
    padding: 60px 0 100px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.seo-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #4a5568;
    max-width: 900px;
}

.seo-content p:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    background: white; /* Ensures logo fits properly without losing vectors */
    border-radius: var(--radius-sm);
    padding: 5px;
}

.footer-info p,
.footer-contacts p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    font-size: 15px;
}

.footer-links {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-container {
        flex-direction: column;
    }
    
    .hero-image-placeholder {
        width: 100%;
        height: 250px;
    }
    
    .principles-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        flex-direction: column;
    }

    .preview-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .services-grid-mini {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-nav > ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .team-grid, .cases-grid {
        grid-template-columns: 1fr;
    }
}

/* Dropdown CSS */
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    border: 1px solid #eee;
    max-height: 70vh;
    overflow-y: auto;
}
.dropdown-menu li { display: block; width: 100%; border-bottom: 1px solid #f5f5f5; }
.dropdown-menu li:last-child { border-bottom: none; }
.dropdown-menu li a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
}
.dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: #0d47a1;
}
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Micro-interactions */
/* 1. Global Navigation Smoothness */
.main-nav ul li a, .footer-links a {
    position: relative;
    transition: all 0.3s ease-in-out;
}
.main-nav ul li a:hover, .footer-links a:hover {
    color: var(--accent-gold);
}
.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: var(--accent-gold);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}
.main-nav ul li a:hover::after {
    width: 100%;
}
/* Header Phone Hover */
.header-phone {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}
.header-phone:hover {
    color: var(--accent-gold);
    opacity: 0.9;
}

/* ========================================================================= */
/* RESPONSIVE DESIGN (TABLETS & MOBILE)                                    */
/* ========================================================================= */

@media (max-width: 992px) {
    /* Layout */
    .container { width: 100%; padding: 0 20px; }
    
    /* Header */
    .header-container { flex-direction: row !important; flex-wrap: wrap; justify-content: space-between !important; align-items: center !important; padding: 15px 0; }
    .logo { flex: 0 0 auto !important; order: 1; }
    .header-contact { flex: 0 0 auto !important; order: 2; margin-left: auto; margin-right: 20px; display: flex !important; margin-bottom: 0px !important; }
    .mobile-toggle { display: block !important; order: 3; background: none; border: none; font-size: 28px; color: var(--text-dark); cursor: pointer; padding: 5px; margin-top: 0px !important; }
    .main-nav { display: none; order: 4; width: 100%; text-align: left !important; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-color); }
    .main-nav.active { display: block; flex: 100% !important; }
    .main-nav ul { flex-direction: column; align-items: flex-start !important; gap: 15px; }
    .dropdown-menu { position: static; box-shadow: none; border-left: 2px solid var(--accent-color); border-bottom: none; border-top: none; border-right: none; padding-left: 15px; margin-top: 10px; display: none; background: transparent; }
    .dropdown:hover .dropdown-menu, .dropdown.active .dropdown-menu { display: block; }
    
    .header-socials { display: none !important; }

    /* Hero */
    .hero-premium { padding: 80px 0 !important; text-align: center; }
    .hero-premium h1 { font-size: 32px !important; line-height: 1.3 !important; }
    .hero-premium p { font-size: 16px !important; }
    .tag-cloud { justify-content: center !important; }

    /* Services Grid */
    .services-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }

    /* About Section */
    .container[style*="align-items: center"] { flex-direction: column !important; text-align: center; }
    .container[style*="align-items: center"] > div { width: 100% !important; text-align: left !important; }
    
    /* Stats */
    .stats-grid-modern { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }

    /* Footer */
    .footer-container { flex-direction: column !important; gap: 30px; text-align: center !important; }
    .footer-container > div { text-align: center !important; align-items: center !important; }
}

@media (max-width: 768px) {
    /* Services Grid */
    .services-grid { grid-template-columns: 1fr !important; }
    
    /* Stats */
    .stats-grid-modern { grid-template-columns: 1fr !important; }
    
    /* Hero */
    .hero-premium h1 { font-size: 28px !important; }
    .tag-cloud { flex-direction: column; width: 100%; }
    .tag-pill-modern { width: 100%; text-align: center; justify-content: center; }

    /* Form */
    .form-card { padding: 30px !important; }
    
    /* Typography Overrides */
    h2 { font-size: 24px !important; }
    
    .header-phone { font-size: 16px !important; }
}
