/* =========================================
   PART A: GLOBAL & WEBSITE STYLES
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    scroll-behavior: smooth; 
    overflow-y: scroll; 
}

body { 
    font-family: var(--font-body, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
    line-height: var(--body-line-height, 1.6);
    color: var(--text-color, #333);
    background-color: var(--bg-color, #f4f4f4);
    font-size: var(--body-size, 16px);
}

/* Global paragraph inherit */
p {
    font-size: var(--body-size, 16px);
    line-height: var(--body-line-height, 1.6);
    margin-bottom: 1rem;
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: auto; 
    overflow: hidden; 
    padding: 0 20px; 
}

/* --- UTILITY CLASSES --- */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* --- BUTTONS (Global Defaults) --- */
.btn, .btn-primary, button[type="submit"] {
    display: inline-block;
    background: var(--btn-bg-normal, #0f172a);
    color: var(--btn-text-normal, #ffffff);
    padding: var(--btn-padding-y, 12px) var(--btn-padding-x, 24px);
    border: none;
    border-radius: var(--btn-radius, 4px);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover, .btn-primary:hover, button[type="submit"]:hover {
    background: var(--btn-bg-hover, #1e293b);
    color: var(--btn-text-hover, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- HERO SLIDER BUTTONS --- */
.hero-btn-1 {
    background: var(--hero-btn1-bg, #0f172a) !important;
    color: var(--hero-btn1-text, #ffffff) !important;
    border: 1px solid var(--hero-btn1-bg, #0f172a) !important;
}
.hero-btn-1:hover {
    background: var(--hero-btn1-hover-bg, #1e293b) !important;
    color: var(--hero-btn1-hover-text, #ffffff) !important;
    border-color: var(--hero-btn1-hover-bg, #1e293b) !important;
}

.hero-btn-2 {
    background: var(--hero-btn2-bg, transparent) !important;
    color: var(--hero-btn2-text, #ffffff) !important;
    border: none !important; 
}
.hero-btn-2:hover {
    background: var(--hero-btn2-hover-bg, #ffffff) !important;
    color: var(--hero-btn2-hover-text, #0f172a) !important;
}


/* =========================================
   PART B: HEADER & NAVIGATION
   ========================================= */
header {
    background: var(--header-bg, #ffffff);
    color: var(--header-link, #0f172a);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    height: var(--header-height, 80px);
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: var(--logo-size, 24px);
    font-weight: 700;
    color: var(--logo-color, #0f172a);
    text-decoration: none;
    font-family: var(--logo-font, 'Inter', sans-serif);
    display: flex;
    align-items: center;
}

.logo img {
    height: var(--logo-img-height, 50px);
    width: auto;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li { position: relative; }

.nav-links a {
    text-decoration: none;
    color: var(--header-link, #0f172a);
    font-weight: 500;
    font-size: var(--nav-font-size, 16px);
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--header-link-hover, #F7A712);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-link {
    color: var(--header-link, #0f172a);
    font-size: 1.2rem;
    position: relative;
    transition: color 0.3s;
}
.icon-link:hover { color: var(--header-link-hover, #F7A712); }

.badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--shop-sale, #e11d48);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--hamburger-color, #0f172a);
}

/* =========================================
   PART C: SECTIONS & MODULES
   ========================================= */
.section-padding { 
    padding: 60px 0; 
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

/* FIX 01: LINKED SECTION HEADERS TO H2 SIZE */
.section-title h2 {
    font-size: var(--h2-size, 2.5rem); 
    color: var(--section-title-color, var(--primary-color, #0f172a));
    font-family: var(--heading-font, 'Roboto', sans-serif);
    font-weight: var(--heading-weight, 700);
    text-transform: var(--heading-transform, none);
    letter-spacing: var(--heading-spacing, 0);
    
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-title p {
    color: var(--text-muted, #64748b);
    max-width: 600px;
    margin: 0 auto;
    font-size: var(--body-size, 16px);
    line-height: var(--body-line-height, 1.6);
}

/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color, #F7A712);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color, #0f172a);
    font-size: var(--h3-size, 28px);
    font-weight: var(--heading-weight, 700);
    text-transform: var(--heading-transform, none);
    font-family: var(--heading-font);
}

.service-card p {
    font-size: var(--body-size, 16px);
    line-height: var(--body-line-height, 1.6);
}

/* --- PROJECTS GRID --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.projects-grid.col-2 { grid-template-columns: repeat(2, 1fr); }
.projects-grid.col-4 { grid-template-columns: repeat(4, 1fr); }

.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    background: #000;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.9;
}

.project-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
    color: white;
    opacity: 0.9;
    transition: 0.3s;
}

.project-card:hover img { transform: scale(1.1); opacity: 0.6; }

.project-overlay h3 {
    font-size: var(--h3-size, 1.5rem);
    font-weight: var(--heading-weight, 700);
}

/* --- NEWS LIST --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 0.8rem; color: var(--text-muted, #94a3b8); margin-bottom: 10px; }

.news-title { 
    font-size: var(--h3-size, 1.5rem);
    font-weight: var(--heading-weight, 700);
    text-transform: var(--heading-transform, none);
    font-family: var(--heading-font);
    margin-bottom: 10px; 
    color: var(--primary-color, #0f172a); 
}

.news-excerpt { 
    font-size: var(--body-size, 16px);
    line-height: var(--body-line-height, 1.6);
    color: var(--text-color, #333); 
    flex: 1; 
    margin-bottom: 15px; 
}

/* =========================================
   PART D: FOOTER
   ========================================= */
footer {
    background-color: var(--footer-bg, #0f172a);
    color: var(--footer-text, #94a3b8);
    padding-top: 60px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-heading {
    color: var(--footer-heading, #ffffff);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: var(--heading-weight, 600);
    font-family: var(--heading-font);
}

.footer-bottom { 
    background: var(--footer-bottom-bg, #020617);
    padding: 25px 0;
    margin-top: 0;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-align: center;
    width: 100%;
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.footer-text { 
    font-size: var(--body-size, 16px);
    line-height: var(--body-line-height, 1.6);
    margin-bottom: 20px; 
    color: var(--footer-text, #94a3b8); 
}

.social-links { display: flex; gap: 10px; }
.social-links a { 
    display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; 
    background: rgba(255, 255, 255, 0.1); color: #fff; border-radius: 4px; transition: 0.3s; text-decoration: none; 
}
.social-links a:hover { background: var(--footer-accent, #e11d48); transform: translateY(-3px); }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--footer-text, #cbd5e1); text-decoration: none; transition: 0.2s; }
.footer-links a:hover { color: var(--footer-accent, #fbbf24); padding-left: 5px; }

/* =========================================
   PART E: MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .navbar { flex-direction: row; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--mobile-menu-bg, #ffffff);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 15px;
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    
    .projects-grid { grid-template-columns: 1fr !important; }
    
    .section-title h2 { font-size: 2rem; }
}
