
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark: #101010;
    --dark-2: #171717;
    --light: #f5f4f0;
    --white: #ffffff;
    --accent: #1f7a4d;
    --accent-light: #38a169;
    --accent-dark: #123c2a;
    --gray: #a5a5a5;
    --line: rgba(255,255,255,.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= HEADER ================= */

/* Default styling for desktop */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.logo img {
    height: 32px;
    width: auto;
}

/* Mobile screens: hide full text */
@media (max-width: 768px) {
    .logo-text {
        display: none;
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 22px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(16,16,16,.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.logo {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -2px;
}

.logo span {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 34px;
    align-items: center;
}

nav a {
    font-size: 14px;
    color: #ddd;
    transition: .3s;
}

nav a:hover {
    color: var(--accent-light);
}

.nav-btn {
    padding: 11px 20px;
    border: 1px solid var(--accent);
    color: var(--accent-light);
}

.nav-btn:hover {
    background: var(--accent);
    color: white;
}

.menu-btn {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* ================= HERO ================= */

        .hero {
    min-height: 100vh;
    padding: 160px 6% 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(10,10,10,.96) 0%,
            rgba(10,10,10,.75) 45%,
            rgba(10,10,10,.35) 100%
        ),
        url("src/slide1.jpeg")
        center/cover;
}

.hero::after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(56,161,105,.3);
    right: -150px;
    bottom: -150px;
    border-radius: 50%;
}

.hero-content {
    max-width: 780px;
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(58px, 8vw, 110px);
    line-height: .9;
    letter-spacing: -6px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.hero h1 span {
    color: transparent;
    -webkit-text-stroke: 1px white;
}

.hero p {
    max-width: 570px;
    color: #c5c5c5;
    font-size: 18px;
    margin-bottom: 38px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 27px;
    font-weight: bold;
    transition: .3s;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--accent-light);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,.35);
}

.btn-outline:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.hero-tag {
    position: absolute;
    right: 6%;
    bottom: 60px;
    writing-mode: vertical-rl;
    color: #aaa;
    letter-spacing: 4px;
    font-size: 11px;
}

/* ================= SLIDESHOW BUTTONS ================= */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 10, 0.5);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-nav:hover {
    background: rgba(10, 10, 10, 0.85);
    border-color: var(--accent-light);
}

.hero-nav.prev {
    left: 20px;
}

.hero-nav.next {
    right: 20px;
}

/* ================= GENERAL ================= */

section {
    padding: 110px 6%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.section-number {
    color: var(--accent-light);
    font-size: 13px;
    letter-spacing: 3px;
}

.section-title {
    font-size: clamp(38px, 5vw, 65px);
    line-height: 1;
    letter-spacing: -3px;
    max-width: 650px;
}

.section-description {
    max-width: 400px;
    color: #999;
}

/* ================= ABOUT ================= */

.about {
    background: var(--light);
    color: var(--dark);
}

.about .section-description {
    color: #555;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 70px;
    align-items: center;
}

.about-image {
    height: 570px;

    background:
        linear-gradient(180deg, transparent, rgba(0,0,0,.55)),
        url("src/Foundations.jpeg")
        center/cover;

    position: relative;
}

.experience {
    position: absolute;
    right: -30px;
    bottom: 35px;
    background: var(--accent);
    color: #fff;
    padding: 25px 30px;
}

.experience strong {
    font-size: 45px;
    line-height: 1;
    display: block;
}

.about-text h3 {
    font-size: 35px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.about-text p {
    color: #555;
    margin-bottom: 20px;
}

/* ================= SERVICES ================= */

.services {
    background: var(--dark-2);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service {
    background: var(--dark-1);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.12);
    transition: transform .35s, box-shadow .35s, border-color .35s, background .35s;
}

.service-number {
    color: var(--accent-light);
    font-size: 15px;
    font-weight: bold;
    margin-right: 12px; /* spacing before title */
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 6px;
}

.service h3 {
    font-size: 24px;
    color: #fff;
    display: inline-block; /* sit next to number */
    vertical-align: middle;
    margin: 0; /* remove extra spacing */
}



.service {
    background: var(--dark-1);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.12);
    transition: transform .35s, box-shadow .35s, border-color .35s, background .35s;
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.4);
    border-color: var(--accent-light);
    background: rgba(255,255,255,0.05);
}

/* ================= PROJECTS ================= */

/*.projects {
    background: #0c0c0c;
}

.project-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 20px;
} */



.projects {
    background: #0c0c0c;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* balanced two-column layout */
    gap: 30px;
}

.project {
    min-height: 450px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border-radius: 14px; /* slightly softer corners */
    box-shadow: 0 6px 20px rgba(0,0,0,0.35); /* deeper shadow for premium feel */
    transition: transform .4s ease, box-shadow .4s ease, filter .4s ease;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
}

.project:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.55);
    filter: brightness(1.05); /* subtle highlight */
}

.project-info {
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 100%);
    width: 100%;
    border-radius: 0 0 14px 14px;
    transition: background .4s ease;
}

.project:hover .project-info {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.35) 100%);
}

.project-info small {
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.95;
    display: block;
    margin-bottom: 6px;
}

.project-info h3 {
    font-size: 28px;
    margin-top: 6px;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
    transition: color .3s ease;
}

.project:hover .project-info h3 {
    color: var(--accent-light); /* highlight title on hover */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* Background images */
.project:first-child {
    background-image: url("src/full1.jpeg");
}
.project:nth-child(2) {
    background-image: url("src/full2.jpeg");
}
.project:nth-child(3) {
    background-image: url("src/HipRoof1.jpeg");
}
.project:nth-child(4) {
    background-image: url("src/HipRoof2.jpeg");
}
.project:nth-child(5) {
    background-image: url("src/FireDamage.jpg");
}
.project:nth-child(6) {
    background-image: url("src/FireDamageAfter.jpeg");
}
.project:nth-child(7) {
    background-image: url("src/greenie1.jpeg");
}
.project:nth-child(8) {
    background-image: url("src/greenie2.jpeg");
}

.gallery-button-wrapper {
  text-align: center;
  margin: 2rem 0;
}


/* Gallery Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 images per row */
  gap: 1.5rem; /* spacing between images */
  padding: 2rem;
}

/* Gallery Images */
.gallery-grid img {
  width: 100%;
  height: 220px; /* fixed height for consistency */
  object-fit: cover; /* crop/scale nicely */
  border: 3px solid #e0e0e0; /* professional light border */
  border-radius: 8px; /* smooth corners */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Hover Effect */
.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}




.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

#caption {
  margin: 20px auto;
  text-align: center;
  color: #ccc;
  font-size: 18px;
}

.close {
  position: absolute;
  top: 20px; right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #ff4c4c;
}

.gallery-button-wrapper {
  text-align: center;
  margin: 2rem 0;
}

.gallery-button {
  padding: 0.75rem 1.5rem;
  background-color: #38a169;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.gallery-button:hover {
  background-color: #123c2a;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}
#galleryModal {
  z-index: 10000; /* gallery grid */
}

#projectModal {
  z-index: 10001; /* project modal always above gallery */
}



/* ================= STATS ================= */

.stats {
    padding: 70px 6%;
    background: var(--accent);
    color: #fff;

    display: grid;
    grid-template-columns: repeat(4,1fr);
}

.stat {
    padding: 20px 30px;
    border-right: 1px solid rgba(255,255,255,.25);
}

.stat:last-child {
    border: none;
}

.stat strong {
    font-size: 48px;
    display: block;
    line-height: 1;
}

.stat span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================= WHY US ================= */

.why-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
}

.why-list {
    border-top: 1px solid var(--line);
}

.why-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    padding: 27px 0;
    border-bottom: 1px solid var(--line);
}

.why-item span {
    color: var(--accent-light);
}

.why-item h3 {
    margin-bottom: 6px;
}

.why-item p {
    color: var(--gray);
    font-size: 14px;
}

/* ================= CTA ================= */

.cta {
    background:
        linear-gradient(
            90deg,
            rgba(15,15,15,.95),
            rgba(15,15,15,.65)
        ),
        url("src/flyer.jpg")
        center/cover;

    min-height: 500px;
    display: flex;
    align-items: center;
}

.cta h2 {
    font-size: clamp(50px, 7vw, 90px);
    line-height: .9;
    letter-spacing: -5px;
    max-width: 850px;
    margin-bottom: 35px;
}

/* ================= FOOTER ================= */

footer {
    padding: 70px 6% 30px;
    background: #080808;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--line);
}

footer .logo {
    margin-bottom: 20px;
}

footer p {
    color: #777;
    max-width: 300px;
    font-size: 14px;
}

footer h4 {
    margin-bottom: 20px;
    color: var(--accent-light);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 10px;
    color: #aaa;
    font-size: 14px;
}

.copyright {
    padding-top: 25px;
    color: #555;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

/* ================= MOBILE ================= */

@media (max-width: 850px) {

    nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        padding: 30px 6%;
        background: #111;
        display: none;
        flex-direction: column;
        align-items: flex-start;
    }

    nav.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        padding-top: 150px;
    }

    .hero h1 {
        letter-spacing: -4px;
    }

    .hero-tag {
        display: none;
    }

    .about-grid,
    .why-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 420px;
    }

    .experience {
        right: 15px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service {
        border-right: none;
        margin-right: 0;
    }

    .stats {
        grid-template-columns: repeat(2,1fr);
    }

    .stat {
        border-bottom: 1px solid rgba(255,255,255,.2);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {

    section {
        padding: 80px 6%;
    }

    .hero {
        min-height: 90vh;
    }

    .hero h1 {
        font-size: 55px;
    }

    .section-header {
        flex-direction: column;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat {
        border-right: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .copyright {
        flex-direction: column;
        gap: 10px;
    }
}