/* ============================================
   CONSTRUZ - Construction Company Website
   External Stylesheet
   ============================================ */

/* ========== VARIABLES ========== */
:root {
    --primary: #960707;
    --primary-dark: #760505;
    --secondary: #1a1a1a;
    --dark: #0f0f0f;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.btn:hover {
    background: transparent;
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary);
}

/* ========== SECTION TITLES ========== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    color: var(--secondary);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-title p {
    color: var(--gray);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.section-title .line {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto 20px;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--secondary);
    color: var(--white);
    padding: 12px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.top-bar-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.top-bar-info span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.top-bar-info i {
    color: var(--primary);
    margin-right: 8px;
}

.top-bar-social a {
    color: var(--white);
    margin-left: 15px;
    font-size: 14px;
}

.top-bar-social a:hover {
    color: var(--primary);
}

/* ========== HEADER ========== */
.main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Barlow', sans-serif;
    color: var(--secondary);
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu a {
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.28), rgba(0,0,0,0.28)), url('../uploads/site/hero-manset.png') center/cover;
    display: flex;
    align-items: flex-end;
    color: var(--white);
}

.hero-content {
    max-width: 700px;
    padding-bottom: 105px;
}

.hero-subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: none;
}

.hero h1 {
    font-size: 72px;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero p {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-cta-title {
    display: inline-block;
    margin-bottom: 18px;
    padding: 10px 16px;
    background: rgba(15, 15, 15, 0.72);
    border-left: 4px solid var(--primary);
    color: var(--white);
    font-family: 'Barlow', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

/* ========== FEATURES BAR ========== */
.features-bar {
    background: var(--primary);
    padding: 40px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.features-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
}

.feature-item i {
    font-size: 40px;
    opacity: 0.9;
}

.feature-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 14px;
    opacity: 0.9;
}

/* ========== ABOUT SECTION ========== */
.about {
    padding: 100px 0;
    background: var(--light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    border-radius: 5px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-img .experience-box {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--primary);
    color: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 5px;
}

.experience-box h3 {
    font-size: 48px;
    line-height: 1;
}

.experience-box span {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

.about-list {
    margin: 25px 0;
}

.about-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-list i {
    color: var(--primary);
    font-size: 18px;
}

/* ========== SERVICES SECTION ========== */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    border: 1px solid #eee;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
    font-size: 15px;
}

/* ========== PROJECTS SECTION (HOME) ========== */
.projects {
    padding: 100px 0;
    background: var(--dark);
    color: var(--white);
}

.projects .section-title h2 {
    color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
}

.project-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(150, 7, 7, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    font-size: 24px;
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
}

.project-overlay span {
    color: var(--white);
    margin-top: 10px;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
}

.project-item:hover .project-overlay h3,
.project-item:hover .project-overlay span {
    transform: translateY(0);
}

/* ========== STATS SECTION ========== */
.stats {
    padding: 80px 0;
    background: var(--primary);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
    padding: 100px 0;
    background: var(--light);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-item {
    padding: 20px;
}

.testimonial-item p {
    font-size: 20px;
    font-style: italic;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.testimonial-author h4 {
    font-size: 20px;
    color: var(--secondary);
}

.testimonial-author span {
    color: var(--primary);
    font-weight: 500;
}

/* ========== CTA SECTION ========== */
.cta {
    padding: 100px 0;
    background: linear-gradient(rgba(0,0,0,0.62), rgba(0,0,0,0.62)), url('../uploads/site/footer-cta-bg.png') center/cover fixed;
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about .logo {
    color: var(--white);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-about p {
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer h4 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--white);
    text-transform: uppercase;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 15px;
    color: #aaa;
    display: flex;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

/* ========== PAGE HEADER ========== */
.page-header {
    padding: 120px 0 80px;
    background: linear-gradient(rgba(0,0,0,0.62), rgba(0,0,0,0.62)), url('../uploads/site/footer-cta-bg.png') center/cover;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 52px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .current {
    color: var(--primary);
}

/* ========== PROJECTS PAGE ========== */
.projects-page {
    padding: 100px 0;
}

.projects-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.project-card-img {
    position: relative;
    overflow: hidden;
}

.project-card-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-card-img img {
    transform: scale(1.1);
}

.project-card-content {
    padding: 25px;
    background: var(--white);
}

.project-card-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.project-card-content p {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.project-meta span {
    font-size: 14px;
    color: var(--gray);
}

.project-meta i {
    color: var(--primary);
    margin-right: 5px;
}

.projects-filter {
    text-align: center;
    margin-bottom: 40px;
}

.projects-filter button {
    background: none;
    border: none;
    color: var(--secondary);
    padding: 8px 20px;
    margin: 0 5px;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
}

.projects-filter button.active,
.projects-filter button:hover {
    color: var(--primary);
}

/* ========== ABOUT PAGE ========== */
.about-page {
    padding: 100px 0;
}

.about-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--light);
    border-radius: 5px;
    transition: var(--transition);
}

.value-card:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

.value-card:hover h3,
.value-card:hover p {
    color: var(--white);
}

.value-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.value-card:hover i {
    color: var(--white);
}

.value-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.value-card p {
    color: var(--gray);
    transition: var(--transition);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 60px;
}

.team-member {
    text-align: center;
}

.team-member-img {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 20px;
}

.team-member-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.team-member:hover .team-social {
    bottom: 20px;
}

.team-social a {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.team-social a:hover {
    background: var(--white);
    color: var(--primary);
}

.team-member h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.team-member span {
    color: var(--primary);
    font-weight: 500;
}

/* ========== CONTACT PAGE ========== */
.contact-page {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact-info > p {
    color: var(--gray);
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 5px;
    flex-shrink: 0;
}

.contact-item-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-item-content p {
    color: var(--gray);
}

.contact-form {
    background: var(--light);
    padding: 50px;
    border-radius: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #ddd;
    background: var(--white);
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.map-section {
    margin-top: 80px;
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: none;
    filter: grayscale(100%);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.8s ease forwards;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 52px;
    }

    .features-bar .container,
    .about-grid,
    .contact-grid,
    .about-page-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .projects-grid,
    .projects-page-grid,
    .stats-grid,
    .values-grid,
    .team-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-img .experience-box {
        left: 20px;
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 40px;
        transition: var(--transition);
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-content {
        max-width: 100%;
        padding-bottom: 90px;
        text-align: center;
    }

    .hero-cta-title {
        font-size: 19px;
        line-height: 1.25;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .cta {
        background-attachment: scroll;
    }

    .features-bar .container,
    .services-grid,
    .projects-grid,
    .projects-page-grid,
    .stats-grid,
    .values-grid,
    .team-grid,
    .footer-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .contact-form {
        padding: 30px;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-bar-info {
        justify-content: center;
        gap: 8px 14px;
    }

    .top-bar-info span {
        white-space: normal;
    }
}
