:root {
    --primary-color: #1a1a1a; /* Dark Charcoal */
    --secondary-color: #f0f0f0; /* Light Gray */
    --accent-color: #c59d5f; /* Elegant Gold/Amber */
    --text-color: #333;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    padding-top: 0;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Playfair Display', serif;
}

/* ======== NAVBAR STYLES ======== */
.navbar {
    transition: background-color 0.3s ease;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Sutil sombra para destacarla */
}

.custom-navbar-light-bg {
    background-color: #dee4df; /* Nuevo color: Verde claro */
}

/* --- LOGO TEXT STYLES IN NAVBAR --- */
.navbar-brand.text-logo {
    display: flex;
    flex-direction: column; /* Apila el texto principal y el slogan */
    align-items: flex-start; /* Alinea a la izquierda dentro del flex container */
    padding: 0; /* Elimina padding por defecto si lo tiene el navbar-brand */
}

.navbar-brand .main-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700; /* Negrita para FLINEX */
    color: var(--primary-color);
    line-height: 1;
}

.navbar-brand .sub-text {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 400; /* No negrita */
    color: var(--primary-color);
    line-height: 1;
    margin-top: 0.2rem; /* Pequeño espacio entre el nombre y el slogan */
}

/* Responsive adjustments for navbar logo text */
@media (max-width: 991.98px) { /* Bootstrap's breakpoint for navbar-expand-lg */
    .navbar-brand.text-logo {
        align-items: center; /* Centra el texto del logo cuando el menú colapsa */
        width: 100%; /* Ocupa todo el ancho disponible si el toggler está a la derecha */
        text-align: center;
        margin-bottom: 0.5rem; /* Pequeño margen si el toggler está abajo */
    }
}

@media (max-width: 767.98px) { /* Adjustments for smaller screens (mobile) */
    .navbar-brand .main-text {
        font-size: 1.5rem;
    }
    .navbar-brand .sub-text {
        font-size: 0.7rem;
    }
    .navbar-brand.text-logo {
        margin-bottom: 0;
    }
}

/* ======== HERO SECTION (MAIN INDEX PAGE) ======== */
.hero {
    position: relative;
    height: 80vh;
    background: url('../images/HEAD.png') no-repeat center bottom / cover;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
}

.hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    padding-top: 100px; /* Adjust this value based on your actual navbar height */
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hero p.lead {
    color: var(--primary-color);
}

/* ======== GENERAL SECTION STYLES ======== */
.section-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.icon-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.objective-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.objective-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.objective-card .card-body {
    padding: 2rem;
}

.objective-card .icon-circle {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 5rem 0;
}

.cta-section h2 {
    color: white;
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-accent:hover {
    background-color: #b38b50;
    border-color: #b38b50;
    color: white;
}

.footer {
    background-color: #111;
    color: #aaa;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    color: var(--accent-color);
}


/* ======== SERVICE PAGE SPECIFIC STYLES ======== */

/* Default styles for all service hero sections */
.service-hero {
    position: relative;
    height: 60vh; /* Slightly shorter than main hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Adjust margin-top to account for fixed navbar */
    margin-top: 60px; /* Assuming a navbar height of ~60px */
}

/* Backgrounds específicos para cada página de portafolio */
.portfolio-aluminum-page .service-hero {
    background: url('../images/fenceAlluminium.png') no-repeat center center / cover;
}
.portfolio-wood-page .service-hero {
    background: url('../images/fenceWood.png') no-repeat center center / cover;
}
.portfolio-vinyl-page .service-hero {
    background: url('../images/headFence.png') no-repeat center center / cover;
}

/* ========== [CAMBIO REALIZADO AQUÍ] ========== */
/* Se añade la regla para la página de instalación de cercas */
.residential-fence-page .service-hero {
    background: url('../images/fenceWood.png') no-repeat center center / cover;
}

/* Backgrounds para otras páginas (se mantiene por si las usas en otro lado) */
.interior-remodeling-page .service-hero {
    background: url('../images/interiorhead.png') no-repeat center center / cover;
}
.strategic-advisory-page .service-hero {
    background: url('../images/investmenHead.png') no-repeat center center / cover;
}
.professional-inspection-page .service-hero {
    background: url('../images/inspectionHead.png') no-repeat center center / cover;
}
.about-us-page .service-hero {
    background: url('../images/aboutus.png') no-repeat center center / cover;
}
.contact-page .service-hero.contact-hero-bg {
    background: url('../images/contact-head.png') no-repeat center center / cover;
}

/* ======== PROJECTS PAGE SPECIFIC STYLES ======== */
.projects-page-hero.service-hero {
    background: url('../images/projectsHead.png') no-repeat center center / cover; /* Make sure this image exists! */
}

.project-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.project-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.project-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.project-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.project-card .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-card .badge {
    font-size: 0.75em;
    padding: 0.4em 0.8em;
    border-radius: 0.25rem;
    background-color: #6c757d !important;
    color: white;
    margin-top: 0.5rem;
    display: inline-block;
}


.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.service-hero h1, .service-hero p {
    position: relative;
    z-index: 2;
    color: white;
}

.service-icon-list {
    list-style: none;
    padding-left: 0;
}

.service-icon-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.service-icon-list li i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 5px;
}

.card .icon-circle {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .service-hero {
        height: 40vh;
        margin-top: 56px;
    }
    .service-hero h1 {
        font-size: 2.5rem;
    }
}