/* =====================================================
   MURO Construction Co. Ltd - Premium Stylesheet
   Luxury Construction Website | Uganda
   ===================================================== */

/* ===== CSS VARIABLES & THEME ===== */
:root {
    /* Luxury Color Palette */
    --charcoal-dark: #1a1a1a;
    --charcoal-medium: #2d2d2d;
    --charcoal-light: #3a3a3a;
    --gold-primary: #c5a455;
    --gold-light: #e6c98e;
    --gold-dark: #a68a3d;
    --white: #ffffff;
    --white-off: #f8f9fa;
    --gray-light: #e9ecef;
    --gray-medium: #6c757d;
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Layout & Spacing */
    --container-width: 1200px;
    --section-padding: 5rem 2rem;
    --border-radius: 8px;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-elevated: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--charcoal-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--charcoal-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    position: relative;
    display: inline-block;
    margin-bottom: 2.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gold-primary);
    border-radius: 2px;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: var(--charcoal-medium);
}

p {
    margin-bottom: 1.25rem;
    font-weight: 300;
}

.text-gold { color: rgba(255, 95, 31, 0.95); }
.text-center { text-align: center; }

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== LAYOUT UTILITIES ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.section-dark {
    background: var(--charcoal-dark);
    color: var(--white-off);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
    color: var(--white-off);
}

.section-dark h2::after {
    background: var(--gold-light);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    background: rgba(255, 95, 31, 0.95);
    color: black;
    padding: 0.9rem 2.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-sans);
    transition: var(--transition);
    border: 2px solid var(--gold-primary);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn:hover {
    background: transparent;
    color: rgba(255, 95, 31, 0.95);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: var(--white);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 95, 31, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    padding: 0.75rem 0;
    background: var(--charcoal-dark);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*==left out CSS for logo due to replacement from text to MURO logo==
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal-dark);
    font-weight: 700;
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

====*/

/*==adopted CSS for the logo==*/

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* important */
    gap: 0.75rem;
}

/* Image styling */
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
    transition: tranform 0.3s ease;

}

.logo-text {
    color: var(--white);
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
}

.logo-text span {
    color: var(--gold-primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: black;
    text-decoration: none;
    font-weight: bolder;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav a:hover,
nav a.active {
    color: whitesmoke;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* ===== HERO SECTIONS ===== */
.hero,
.about-hero,
.services-hero,
.projects-hero,
.contact-hero {
    min-height: 700px;
    background: linear-gradient(rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.8)), 
                url('muroimages/aboutus1.jpg') 
                center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

.hero h1,
.about-hero h1,
.services-hero h1,
.projects-hero h1,
.contact-hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--gold-light);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-experience {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(197, 164, 85, 0.15);
    border: 1px solid var(--gold-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    margin: 1.5rem 0;
    font-weight: 500;
}

.hero-experience i {
    color: var(--gold-primary);
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ABOUT PAGE STYLES ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
    position: relative;
    height: 450px;
    background: linear-gradient(45deg, var(--charcoal-medium), var(--charcoal-light)), 
                url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: 20px;
    left: 20px;
    border: 3px solid var(--gold-primary);
    border-radius: var(--border-radius);
    pointer-events: none;
}

.vision-mission {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.vm-card {
    background: var(--white-off);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
    border-left: 4px solid var(--gold-primary);
    transition: var(--transition);
}

.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-elevated);
}

.vm-card h4 {
    color: rgba(255, 95, 31, 0.95);
    margin-bottom: 0.75rem;
    font-family: var(--font-serif);
}

.vm-card p{
    color: black;
}

.core-services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    list-style: none;
}

.core-services-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 400;
}

.core-services-list i {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
    margin: 3rem 0;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-weight: 300;
    opacity: 0.9;
}

/* ===== SERVICES PAGE STYLES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
    border-top: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
    border-top-color: var(--gold-primary);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--charcoal-dark);
    font-size: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--gold-dark);
}

.service-card h3 {
    margin-bottom: 0px;
    font-size: 1.5rem;
    color: black;
}

.service-detail {
    background: var(--white-off);
    border-left: 4px solid var(--gold-primary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.service-card img{
    width: 100%;
    height: 100%;
    object-fit: auto; /* fills and crops nicely */
    display: block;
    
}
/* ===== PROJECTS PAGE STYLES ===== */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white-off);
    border: 2px solid var(--gray-light);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-elevated);
}

.project-image {
    height: 220px;
    background: linear-gradient(45deg, var(--charcoal-medium), var(--charcoal-light));
    position: relative;
    overflow: hidden;
}

 .project-image img{
    width: 100%;
    height: 100%;
    object-fit: 100%; /* fills and crops nicely */
    display: block;
 }

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1565008993142-6c97f1c8f3c5?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
    opacity: 0.85;
    transition: var(--transition);
}

.project-card:hover .project-image::before {
    transform: scale(1.05);
}

.project-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold-primary);
    color: var(--charcoal-dark);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.project-content {
    padding: 1.75rem;
}

.project-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.project-content p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.project-link {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.project-link:hover {
    gap: 0.75rem;
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info h3 {
    margin-top: 2rem;
}

.contact-details {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal-dark);
    flex-shrink: 0;
    font-size: 1.1rem;
}

.contact-text h4 {
    margin-bottom: 0.25rem;
    font-family: var(--font-sans);
    font-weight: 500;
}

.contact-text p, 
.contact-text a {
    margin-bottom: 0;
    color: var(--gray-medium);
    text-decoration: none;
    transition: var(--transition);
}

.contact-text a:hover {
    color: var(--gold-primary);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white-off);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(197, 164, 85, 0.15);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-success {
    display: none;
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid #28a745;
    color: #28a745;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}



/*-- Map CSS properties before-
.map-placeholder { 
    background: var(--white-off); 
    border-radius: var(--border-radius); 
    height: 300px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 2rem 0;
    box-shadow: var(--shadow-subtle);
    position: relative;
    overflow: hidden;
}


.map-placeholder::before {
    content: '📍 Interactive Map Would Load Here';
    font-family: var(--font-sans);
    color: var(--gray-medium);
    font-weight: 500;
}

.map-placeholder::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, var(--charcoal-medium), var(--charcoal-light));
    opacity: 0.1;
}
--*/

/*--Map CSS after Ending--*/

.map-placeholder { 
    background: var(--white-off); 
    border-radius: var(--border-radius); 
    height: 300px; 
    margin: 2rem 0;
    box-shadow: var(--shadow-subtle);
    position: relative;
    overflow: hidden;
}

.map-placeholder::before {
    content: none;
}


.map-placeholder::after {
    display: none;
}


.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== FOOTER STYLES ===== */
footer {
    background: var(--charcoal-dark);
    color: var(--white-off);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--white);
}

.footer-logo-text span {
    color: var(--gold-primary);
}

.footer-about p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--gold-primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--white-off);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
    display: block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--gold-primary);
    transform: translateX(5px);
    opacity: 1;
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.7;
}

.footer-legal p {
    margin-bottom: 0.5rem;
}

.footer-legal a {
    color: var(--gold-light);
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

/* ===== ANIMATIONS & INTERACTIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Smooth scroll offset for fixed header */
section {
    scroll-margin-top: 80px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    :root {
        --section-padding: 4rem 1.5rem;
    }
    
    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: var(--charcoal-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 1.25rem;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    nav ul.active {
        right: 0;
    }
    
    .hero h1,
    .about-hero h1,
    .services-hero h1,
    .projects-hero h1,
    .contact-hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .projects-filter {
        flex-wrap: wrap;
    }
    
    .filter-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.3rem;
    }
    
    h2 {
        font-size: 1.9rem;
    }
    
    .hero,
    .about-hero,
    .services-hero,
    .projects-hero,
    .contact-hero {
        min-height: 600px;
        padding-top: 70px;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .section {
        padding: 3.5rem 1.5rem;
    }
    
    .service-card {
        padding: 1.75rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    .contact-form .form-group {
        margin-bottom: 1.25rem;
    }
}