:root {
    --black: #000;
    --primary-dark: #345944;    /* main green */
    --primary-light: #B0BFB5;   /* lighter green */
    --secondary: #D13532;       /* accent */
    --secondary-dark: #982624;
    --text-gray: #798C85;       /* gray text */
    --white: #FEFEFE;           /* white */
    --muted: #6b766f;
    --container: 1100px;
    --transition: all 0.3s ease;
}

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

html, body {
    font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--black);
    background-color: #f1f1f1;
    height: 100%;
}

/* ==============================
   Header & Navigation
============================== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: var(--white);
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 100;
}

.logo {
    height: 90px;
    width: auto;
    object-fit: contain;
}

/* ==============================
   Navbar 
============================== */
nav#navbar {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

nav#navbar a,
nav#navbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;             
    padding: 0 1rem;          
    font-size: 1rem;          
    font-weight: 600;         
    border-radius: 12px;      
    transition: background 0.3s ease, color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

nav#navbar a {
    color: var(--black);
    background: transparent;
}

nav#navbar a.active {
    border-bottom: 3px solid var(--primary-dark);
    color: var(--primary-dark);
}

nav#navbar button {
    background: var(--secondary);
    color: var(--white);
    border: none;
}

nav#navbar button:hover {
    background: var(--secondary-dark);
}

/* Hamburger for mobile */
#hamburger {
    display: none;
    width: 34px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

#hamburger span {
    display: block;
    height: 4px;
    background: var(--black);
    border-radius: 3px;
}

/* Responsive navbar toggle */
@media (max-width: 900px) {
    #hamburger { display: flex; }

    nav#navbar {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        background: var(--white);
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    nav#navbar.active { display: flex; }
    nav#navbar a,
    nav#navbar button { width: 100%; padding: 0.7rem 1rem; border-radius: 6px; }
}

/* ==============================
   Global Buttons
============================== */
button,
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 12px;
    background-color: var(--secondary);
    color: var(--white);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

button:hover,
.btn:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

a {
    text-decoration: none;
}

/* ==============================
   Hero Section
============================== */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0rem 0rem 6rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: var(--white);
  gap: 2rem;
  min-height: 90vh;
  overflow: hidden;
}

.hero-left {
  z-index: 20;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  max-width: 500px;
  position: relative;
}

.hero-left h1 {
  font-size: 4rem;
  line-height: 1.2;
}

.hero-left p {
  font-size: 1.25rem;
  color: var(--white);
  opacity: 0.9;
}

.hero-left .reviews-and-cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5rem;
    margin-top: 2rem;
}

.hero-left .reviews-and-cta .btn {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
}

.reviews-mini {
    margin: 0;
    justify-content: center;
}

.review-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    display: inline-block;
    color: #000;
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.review-badge:hover {
    transform: scale(1.05);
}

.review-badge .top-line {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.review-badge .rating {
    margin-right: 0.25rem;
}

.review-badge .stars {
    color: #f4b400;
}

.review-badge .bottom-line {
    font-size: 0.9rem;
    color: #1b1b1b;
}

.google-logo {
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.google-logo span {
    display: inline-block;
    letter-spacing: 0;
}

.hero-right {
  flex: 1;
  padding-right: 8rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  position: absolute;
  transition: transform 0.4s ease, z-index 0.2s;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  aspect-ratio: 9/16;
  width: 20rem;
  display: flex;
  justify-content: center;
  align-items: center;
}


.hero-image img {
  width: 95%;
  height: 95%;
  object-fit:cover;
}

.hero-image:nth-child(1) { transform: translateX(-200px) rotate(-5deg); z-index: 1; }
.hero-image:nth-child(2) { transform: translateY(-40px); z-index: 2; }
.hero-image:nth-child(3) { transform: translateX(200px) rotate(5deg); z-index: 1; }

.hero-image:nth-child(2):hover {
  transform: scale(1.05) translateY(-10px);
  z-index: 5;
}

.hero-image:nth-child(1):hover {
  transform: scale(1.05) translateY(-10px) translateX(-160px) rotate(-5deg);
  z-index: 5;
}

.hero-image:nth-child(3):hover {
  transform: scale(1.05) translateY(-10px) translateX(160px) rotate(5deg);
  z-index: 5;
}

/* ==============================
   About Section
============================== */
.about-section {
    display: flex;
    width: 100%;
    padding: 2rem;
    gap: 0;
    box-sizing: border-box;
}

.about-text,
.about-image {
    flex: 1;
    aspect-ratio: 1 / 1;
}

.about-text {
    background: var(--white);
    color: var(--black);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.1rem;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-text p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-image iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    background: #fff;
}

.about-text .btn,
.about-text button {
    display: inline-block;
    width: auto;
    max-width: 200px;
    text-align: center;
    margin: 1rem auto 0 auto;
}

/* ==============================
   Projects Section
============================== */
.projects-section {
    padding: 2rem 2rem;
    background-color: #f1f1f1;
}

.projects-container {
    background: white;
    padding: 2rem 2rem;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.projects-container h2 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-height: 800px;    /* adjust to the max height you want */
    width: 100%;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 1;
    background: linear-gradient(
        to top,
        #f0f0f0 40%,
        rgba(255, 255, 255, 0) 100%
    );
}

.project-overlay h3 {
    margin: 0 0 0.25rem 0;
    font-size: 2rem;
    color: black;
    height: 4rem;
}

.project-overlay p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    font-style: italic;
    color: gray;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

/* ==============================
   Why Us Section
============================== */
.why-us-section {
    padding: 2rem 2rem;
    background-color: #f1f1f1;
}

.why-us-container {
    background: white;
    padding: 2rem 2rem;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    text-align: center;
}

.why-us-container h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.why-us-card {
    background: white;
    padding: 2rem 1rem;
    min-height: 350px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-us-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.why-us-card .icon {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.why-us-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.why-us-card p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* ==============================
   Contact Section
============================== */
.contact-section {
    padding: 2rem 2rem;
    background-color: #f1f1f1;
}

.contact-container {
    background: white;
    padding: 2rem 2rem;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    text-align: center;
}

#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

#contact p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: #345944;
}

#contact a {
    color: #345944;
    text-decoration: underline;
}

#contact a:hover {
    color: #284035;
}

/* ==============================
   Footer
============================== */
footer {
    background-color: #345944;
    color: white;
    text-align: center;
    padding: 2rem 2rem;
    font-size: 1rem;
}

footer .socials {
    margin-top: 0.75rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

footer .socials a {
    color: var(--white);
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: var(--transition);
}

footer .socials a:hover {
    color: var(--secondary);
    background: rgba(255,255,255,0.06);
}

/* ==============================
   Responsive Adjustments
============================== */
@media (max-width: 1300px) {
  .hero-right {
    position: relative;
    height: 280px; /* enough to fit collage */
  }

  .hero-right .hero-image {
    width: 40%;
    aspect-ratio: 9 / 16;
    position: absolute;
  }

  .hero-right .hero-image:nth-child(1) {
    top: -40px;
    left: 10%;
    transform: rotate(-8deg);
  }

  .hero-right .hero-image:nth-child(2) {
    top: -60px;
    left: 32%;
    transform: rotate(0deg);
  }

  .hero-right .hero-image:nth-child(3) {
    top: -40px;
    left: 54%;
    transform: rotate(8deg);
  }

  .hero-image:nth-child(2):hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 5;
    }

    .hero-image:nth-child(1):hover {
    transform: scale(1.05) translateY(-10px) rotate(-5deg);
    z-index: 5;
    }

    .hero-image:nth-child(3):hover {
    transform: scale(1.05) translateY(-10px) rotate(5deg);
    z-index: 5;
    }
}

/* Mobile hero adjustments */
@media (max-width: 850px) {
    .hero {
        flex-direction: column;
        padding: 2rem 1rem; /* remove large left/right padding */
        align-items: center; /* center content horizontally */
        text-align: center;
    }

    .hero-left {
        max-width: 100%; /* allow full width */
    }

    .hero-left .reviews-and-cta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin-top: 1.5rem;
    }

    .hero-left .reviews-and-cta .btn {
        width: auto;
    }

    .hero-right {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding: 0;
    }

    .hero-right .hero-image {
        position: static;  
        width: 45%; 
        margin: 0.5rem;
        transform: none !important;
    }
}


@media (max-width: 500px) {
    .hero-right {
        display: none;
    }
}

@media (max-width: 900px){
    .leadership-grid{grid-template-columns:1fr}
    .split-section{flex-direction:column}
    .split-section.reverse{flex-direction:column}
    #hamburger{display:flex}
    nav#navbar{display:none;position:absolute;left:0;right:0;top:100%;flex-direction:column;background:var(--white);padding:1rem;border-bottom:1px solid #eee}
    nav#navbar.active{display:flex}
    nav#navbar a{width:100%;padding:.7rem 1rem;border-radius:6px}

    .hero-left .reviews-and-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .hero-left .reviews-and-cta .btn {
        width: 100%;
        text-align: center;
    }

    .reviews-mini {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1rem;
    }

    .about-text,
    .about-image {
        flex: none;
        width: 100%;
    }

    .about-text {
        text-align: center;
    }

    .projects-container, .why-us-container, .contact-container {
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1rem;
    }

    .projects-grid, .why-us-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    footer {
        padding: 1.5rem 1rem;
        font-size: 0.95rem;
    }
}
