/* ==========================
   CJB INC WEBSITE
   ========================== */

:root {
    --primary: #1f2937;
    --secondary: #4b5563;
    --accent: #c79a3b;
    --light: #f8f9fa;
    --white: #ffffff;
    --border: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

#home {
    scroll-margin-top: 160px;
}

#services,
#projects,
#about,
#contact {
    scroll-margin-top: 80px;
}

body::before {
    content: "";

    position: fixed;
    inset: 0;

    background-image: url('images/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: -1;

    opacity: 0.5;

    filter: grayscale(10%) brightness(0.7);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--secondary);
    line-height: 1.7;
    background: var(--white);
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
}

a {
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: auto;
}

.section {
    padding: 100px 0;
}

/* ==========================
   HEADER
   ========================== */

.header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo img {
    height: 120px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--primary);
    font-weight: 600;
    transition: 0.3s;
}

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

/* ==========================
   BUTTONS
   ========================== */

.btn-primary {
    background: var(--accent);
    color: white;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #b88b2c;
}

.btn-secondary {
    border: 2px solid black;
    color: black;
    padding: 14px 28px;
    border-radius: 4px;
    margin-left: 10px;
    transition: 0.3s;
}

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

/* ==========================
   HERO
   ========================== */

.hero {
    position: relative;
    height: 85vh;

    background-image: url('images/hero.webp');
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    color: white;
    position: relative;
    z-index: 2;
}   

.hero h1 {
    font-size: 1.5rem;
    color: #1f2937;   /* Charcoal */
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 35px;
    color: #374151;   /* Slightly lighter charcoal */
}

.hero-logo {
    width: 340px;
    max-width: 90%;
    height: auto;

    margin-bottom: 30px;
}

/* ==========================
   SECTION TITLES
   ========================== */

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
}

/* ==========================
   SERVICES
   ========================== */

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

.service-card {
    background: white;
    border: 1px solid var(--border);
    padding: 35px;
    border-radius: 10px;
    transition: .3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.service-card h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.service-card ul {
    list-style: none;
}

.service-card li {
    margin-bottom: 10px;
}

/* ==========================
   CLIENTS
   ========================== */

.clients {
    background: transparent;
    overflow: hidden;
}

.logo-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 30px;
}

.logo-track {
    display: flex;
    width: max-content;
    animation: scrollClients 30s linear infinite;
    align-items: center;
}

.logo-track img {
    height: 80px;
    width: auto;
    margin: 0 50px;

 /*   filter: grayscale(100%);
    opacity: 0.75;
    transition: all 0.3s ease; */
}

.logo-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scrollClients {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


/* ==========================
   WHY US
   ========================== */

.why-us {
    background: var(--light);
}

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

.feature {
    text-align: center;
}

.feature h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 10px;
}

/* ==========================
   PROJECTS
   ========================== */

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

.project-card {
    overflow: hidden;
    border-radius: 10px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.project-card img {
    height: 260px;
    object-fit: cover;
}

.project-content {
    padding: 25px;
}

/* ==========================
   ABOUT
   ========================== */

.about {
    background: var(--light);
}

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

.about h2 {
    margin-bottom: 25px;
}

.about p {
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}
/* ==========================
   CONTACT
   ========================== */

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form button {
    border: none;
    cursor: pointer;
}
svg {
    width: 100%;
    height: auto;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    max-width: 20px;
}

/* ==========================
   FOOTER
   ========================== */

.footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* ==========================
   RESPONSIVE
   ========================== */

@media (max-width: 992px) {

    .service-grid,
    .project-grid,
    .feature-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }
    .hero {
        height: 70vh;
    }
}

@media (max-width: 768px) {

    .hero h1 {
        font-size: 2.3rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .logo img{
        height:80px;
    }
}
/* ==========================
    RESIDENTIAL DEVELOPMENT
   ==========================*/
.project-list {
    max-width: 900px;
    margin: 0 auto;
}

.project-list-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.project-list-card ul {
    columns: 2;
    column-gap: 60px;
    list-style: none;
    padding: 0;
}

.project-list-card li {
    margin-bottom: 12px;
    padding-left: 18px;
    position: relative;
}

.project-list-card li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {

    .project-list-card ul {
        columns: 1;
    }

}

/*  =========================
    GALLERY
    =========================*/
.client-gallery {
    background: transparent;
}

.gallery-slider {
    overflow: hidden;
    position: relative;
}

.gallery-track {
    display: flex;
    width: max-content;
    animation: scrollGallery 40s linear infinite;
}
.gallery-track img {
    width: 300px;
    height: 200px;
}
.gallery-track img {
    width: 300px;
    height: 200px;
    object-fit: cover;

    margin-right: 20px;

    border-radius: 10px;

    box-shadow: 0 8px 20px rgba(0,0,0,.15);

    flex-shrink: 0;
}

@keyframes scrollGallery {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}
.gallery-track img:hover {
    transform: scale(1.03);
    transition: .3s;
}
