
:root {

    --primary-color: #ff5733;
    --secondary-color: #e14e2b;
    --active-color: #d8b985;

    --text-color: #333;
    --light-gray: #f5f5f5;
    --dark-gray: #2c3e50;
    --transition-speed: 0.3s;
    --max-width: 1200px;
    --spacing-unit: 20px;
    --nav-height: 140px;
}

@media (max-width: 768px), (orientation: landscape) and (max-width: 1024px) {
    :root {
        --nav-height: 80px;
    }
}


*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


body.no-scroll {
    overflow: hidden;
}


.main-nav {
    background-color: rgba(255, 255, 255, 0.98);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease-in-out;
    width: 100%;
    margin: 0;
}


.no-hero .main-container {
    padding-top: var(--nav-height);
}

main {
    flex: 1;
}


section {
    width: 100%;
    padding: 0;
    margin: 0;
}


.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    box-sizing: border-box;
    width: 100%;
}

/* Wrapper for page background image */
.background-wrapper {
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
    }
}


.content-section {
    padding: calc(var(--spacing-unit) * 2) 0;
}

/* Offset in-page anchors to account for fixed navigation */
:target {
    scroll-margin-top: var(--nav-height);
}




section + section {
    margin-top: 0;
}


.portfolio-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    padding: 0;
}


.portfolio-image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; 
    overflow: hidden;
}


.portfolio-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.portfolio-hover-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: var(--spacing-unit);
    margin: 0;
    text-align: center;
    font-weight: 600;
}


.portfolio-description {
    padding: var(--spacing-unit);
    color: var(--text-color);
    line-height: 1.5;
    font-size: 1rem;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}


.portfolio-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}


.expand-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: var(--spacing-unit);
    width: 30px;
    height: 30px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.expand-button:hover {
    background-color: var(--primary-color);
    color: white;
}

.expand-icon {
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
}


.portfolio-item.expanded .portfolio-text {
    -webkit-line-clamp: unset;
}

.portfolio-item.expanded .expand-button {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.portfolio-item.expanded .expand-icon {
    transform: rotate(45deg);
}


.portfolio-filter {
    margin: var(--spacing-unit) 0;
    text-align: center;
}

.portfolio-filter label {
    margin-right: var(--spacing-unit);
    font-weight: 500;
    color: var(--dark-gray);
}

.portfolio-filter select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    background-color: #fff;
    font-size: 1rem;
    color: var(--dark-gray);
    width: 200px;
    max-width: 100%;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.portfolio-filter select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 87, 51, 0.2);
}

.portfolio-filter select:hover {
    border-color: var(--secondary-color);
}


#portfolio h1 {
    margin: 0;
    padding: var(--spacing-unit) 0;
    text-align: center;
    color: var(--dark-gray);
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 700;
}

/* Larger portfolio heading on the home page */
.home-page #portfolio h1 {
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    #portfolio h1 {
        font-size: 1rem;
    }
    .home-page #portfolio h1 {
        font-size: 2rem;
    }
}



.no-hero .content-section {
    padding-top: calc(var(--spacing-unit) * 2);
}


.content-section h1,
.content-section h2 {
    color: var(--dark-gray);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    text-align: center;
    font-weight: 700;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    min-height: var(--nav-height);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-right: auto;
}

.logo {
    height: 96px;
    width: auto;
    transition: transform var(--transition-speed) ease-in-out;
}

.logo-link:hover .logo {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: calc(var(--spacing-unit) * 1.5);
    margin-left: calc(var(--spacing-unit) * 1.5);
    align-items: center;
    transition: right var(--transition-speed) ease-in-out;
}

.nav-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;

    transition: color var(--transition-speed) ease-in-out,
        background-color var(--transition-speed) ease-in-out;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--light-gray);
}


.dropdown > .nav-link::after {
    content: "\25BC";
    font-size: 0.6em;
    margin-left: 4px;
    display: inline-block;
    vertical-align: middle;

    transition: transform var(--transition-speed) ease-in-out;
}

.dropdown.hover > .nav-link::after {
    transform: rotate(180deg);
}


.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    display: none;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed) ease-in-out;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 15px;
    transition: all var(--transition-speed) ease-in-out;
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}


.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: var(--dark-gray);
    position: relative;
    z-index: 1001; 
}

.menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dark-gray);
    position: relative;
    transition: all var(--transition-speed) ease-in-out;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-gray);
    transition: all var(--transition-speed) ease-in-out;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    top: 6px;
}

.mobile-menu-btn.active .menu-icon {
    background-color: transparent;
}

.mobile-menu-btn.active .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-btn.active .menu-icon::after {
    transform: rotate(-45deg);
    top: 0;
}


@media (max-width: 768px), (orientation: landscape) and (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        height: calc(100vh - var(--nav-height));
        width: 260px;
        background-color: #fff;
        flex-direction: column;
        padding-left: var(--spacing-unit);
        padding-right: var(--spacing-unit);
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        display: flex;
    }

    .nav-links.show-mobile {
        right: 0;
    }

    .nav-link {
        padding: 12px 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        margin-top: 10px;
    }

    .dropdown-menu li a {
        padding: 12px 20px;
    }
}




#portfolio {
    padding: 0;
}



.content-section > *:first-child { margin-top: 0; }
.content-section > *:last-child  { margin-bottom: 0; }

#portfolio .services-preview {
    margin-top: 0;
    
    padding-top: 0;
}

#portfolio .services-preview {
    margin-top: 0;
    
    padding-top: 0;
}


.portfolio-grid {
	justify-content: center; 
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-unit);
    padding: var(--spacing-unit);
    margin: 0 auto;
    width: auto;
}


.portfolio-item {
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    padding: 0;
}


.portfolio-item-content {
    padding: var(--spacing-unit);
    border-radius: 8px 8px 0 0;
    background-color: var(--light-gray);
}

.portfolio-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.portfolio-image-container:hover img,
.portfolio-image-container:focus-within img {
    transform: scale(1.05);
}


.portfolio-hover-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.portfolio-image-container:hover .portfolio-hover-title,
.portfolio-image-container:focus-within .portfolio-hover-title {
    opacity: 1;
}


.portfolio-description {
    padding: 1.5rem;
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.4;
    flex-grow: 1;
    text-align: center;
}


@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .portfolio-item {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-item {
        max-width: 100%;
    }
}


.portfolio-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}


.portfolio-image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; 
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background-color: #f0f0f0;
}

.portfolio-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-image-container:hover img,
.portfolio-image-container:focus-within img {
    transform: scale(1.05);
}


.portfolio-hover-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-image-container:hover .portfolio-hover-title,
.portfolio-image-container:focus-within .portfolio-hover-title {
    opacity: 1;
}


.portfolio-description {
    padding: 2rem;
    font-size: 1rem;
    color: #444;
    line-height: 1.4;
    flex-grow: 1;
    text-align: center;
}


@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .portfolio-item {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-item {
        max-width: 100%;
    }
}
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-image-container:hover .portfolio-hover-title,
.portfolio-image-container:focus-within .portfolio-hover-title {
    opacity: 1;
}


.portfolio-description {
    padding: 15px;
    font-size: 1rem;
    color: #444;
    line-height: 1.4;
    flex-grow: 1;
}


@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


section {
    padding: calc(var(--spacing-unit) * 2) var(--spacing-unit);
    max-width: var(--max-width);
    margin: 0 auto;
}


.hero {
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    text-align: center;
    color: white;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40vh;
    width: 100%;
    margin: 0;
    margin-top: var(--nav-height);
    overflow: hidden;
    box-sizing: border-box;
    left: 0;
    right: 0;
    max-width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero.hero-large {
    min-height: calc(100vh - var(--nav-height));
    background-size: contain;
}

@supports (height: 100svh) {
    .hero.hero-large {
        min-height: calc(100svh - var(--nav-height));
    }
}



.hero-content {
    max-width: 1200px;
    width: 100%;
    padding: 40px 20px;
    margin: 0 auto;
    text-align: left;
    z-index: 2;
    position: relative;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .hero-content {
        width: 90%;
    }
}


.hero.hero-large .hero-content {
    text-align: left;
    padding: 80px 40px;
}


.hero-text-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* Utility class to right-align hero text and position it closer to
   accompanying images */
.hero-text-container.hero-text-right {
    width: auto;
    margin-left: auto;
    align-items: flex-end;
    text-align: left;
}

/* Utility class to offset hero text slightly toward the center */
.hero-text-container.hero-text-pad-right {
    /* Increase offset to shift text slightly further right on large screens */
    padding-left: calc(var(--spacing-unit) * 18);
}


.hero-text-container.bg-translucent {
    background: rgba(56, 118, 29, 0.8); /* Darker green with 90% opacity */
    padding: calc(var(--spacing-unit));
    border-radius: 8px;
    gap: 0.5rem;
    width: fit-content;
    /* Increase container width by 50% */
    max-width: 67.5%;
    position: absolute;
    top: calc(var(--spacing-unit) * 2);
    /* Shift container slightly further left to better align with main content */
    left: calc(var(--spacing-unit) * 0.5);
    margin: 0;
    text-align: left;
    align-self: flex-start;
}

.hero-text-container.bg-translucent .hero-text-content {
    gap: 0.25rem;
}

.hero-text-container.bg-translucent .hero-subtitle,
.hero-text-container.bg-translucent .hero-undertitle {
    margin-bottom: 0;
}


.hero-title {
    font-size: 1.5rem;
    margin: 0;
    color: white;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
    max-width: 100%;
}


.hero-text-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 100%;
}


.hero-subtitle {
    font-size: 1.25rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}


.hero-undertitle {
    font-size: 1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    line-height: 1.6;
    word-break: break-word;
}


.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: white;
    font-weight: 500;
    line-height: 1.4;
}

.hero-undertitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}


.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
    line-height: 1.2;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: white;
    font-weight: 500;
    line-height: 1.4;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
}

.hero-undertitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
}


.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: white;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

.hero-undertitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    word-break: break-word;
}


.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: white;
    font-weight: 500;
    line-height: 1.4;
}

.hero-undertitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}


.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: white;
    font-weight: 500;
    line-height: 1.4;
}

.hero-undertitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}


.hero-image-box {
    max-width: 300px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-image-box img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}


.hero-inline-image {
    margin: var(--spacing-unit) 0;
    text-align: center;
}
.hero-inline-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Offset inline images when text is padded to the right */
.hero-text-container.hero-text-pad-right .hero-inline-image {
    margin-left: calc(var(--spacing-unit) * -4);
}


.hero.hero-medium {
    min-height: 60vh;
    align-items: flex-start;
}

/* Ensure square edges for translucent text box on medium heroes */
.hero.hero-medium .hero-text-container.bg-translucent {
    border-radius: 0;
}


.hero-content {
    width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}


.feature-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Ensure feature titles wrapped in links remain bold and prominent */
.feature-item h3 .feature-link {
    font-weight: bold;
    font-size: 1.25rem;
}

.feature-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.hero.has-small-image {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 2);
}

.hero.has-small-image .hero-image-box {
    max-width: 30%;
    padding: var(--spacing-unit);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero.has-small-image .main-content {
    margin-top: 40px;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.hero.has-small-image .hero-content {
    width: 70%;
    padding: 0;
    text-align: left;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hero-image-box.left {
    order: -1;
}

.hero-image-box.right {
    order: 1;
}

.hero-content .hero-image-box.bottom {
    position: relative;
    margin: var(--spacing-unit) 0;
    max-width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content .hero-image-box.bottom img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.hero-content .hero-image-box img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.hero-button {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-weight: bold;
    transition: all var(--transition-speed) ease-in-out;
    margin-top: calc(var(--spacing-unit) * 4);
    margin-bottom: var(--spacing-unit);
    white-space: nowrap;
    border: none;
    cursor: pointer;
    align-self: flex-start;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8), 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-button:hover {
    background-color: var(--active-color);
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0.95;
}

.hero-button:active {
    background-color: var(--active-color);
    color: #333;
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: var(--active-color);
    color: #333;
}


.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0;
    transition: all var(--transition-speed) ease;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: var(--spacing-unit);
    color: rgba(255, 255, 255, 0.9);
}

.hero-undertitle {
    font-size: 1.2rem;
    font-style: italic;
    margin-top: var(--spacing-unit);
    color: rgba(255, 255, 255, 0.7);
}


.welcome-section {
    background: rgba(255, 255, 255, 0.95);
    padding: calc(var(--spacing-unit) * 3) var(--spacing-unit);
    margin: calc(var(--spacing-unit) * 2) 0;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

#careers-section .section-content {
    max-width: none;
    margin: 0;
    padding: 0 var(--spacing-unit);
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--dark-gray);
}


.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    align-items: start;
}

.feature-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 280px;
    align-self: start;
    color: inherit;
    text-decoration: none;
}

.team-card h3 small {
    color: #264600;
}

.feature-item i,
.feature-item svg {
    display: block;
    margin: 0 0 1rem;
    font-size: 40px;
}
.team-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    align-self: center;
}

.team-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 300px;
    align-self: start;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    text-align: center;
}

/* Horizontal layout for team members */
.team-member {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    align-items: flex-start;
    gap: 1rem;
}

.team-member h3 {
    flex: 1 1 auto;
    min-width: 0;
}

.team-member .team-photo {
    margin-bottom: 0;
    flex-shrink: 0;
}

.team-member .expanded-content {
    flex-basis: 100%;
}

.feature-item h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 1.25rem;
    line-height: 1.2;
}

.feature-item p {
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.feature-item.expanded p {
    -webkit-line-clamp: unset;
    max-height: unset;
    overflow: visible;
}

.feature-item .expand-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin: 1rem auto 0;
    transition: transform 0.3s ease;
}

.feature-item .expand-icon:hover {
    transform: scale(1.1);
}

.feature-item.expanded .expand-icon {
    transform: rotate(45deg);
}

.feature-item .expand-btn {
    display: none;
    margin-top: 1rem;
    text-align: center;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
}

.feature-item.expanded .expand-btn {
    display: block;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.1);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.feature-item h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.feature-item p {
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
    color: var(--text-color);
}


.testimonials .feature-item {
    min-height: 300px;
}

.testimonial-content {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.feature-item.expanded .testimonial-content {
    -webkit-line-clamp: unset;
}


.cta-section {
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 3);
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border-radius: 0;
    font-weight: bold;
    transition: all var(--transition-speed) ease-in-out;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


.services-preview {
    background: rgba(255, 255, 255, 0.95);
    padding: calc(var(--spacing-unit) * 3) var(--spacing-unit);
    margin: calc(var(--spacing-unit) * 2) 0;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-unit);
    padding: 0;
}

.service-item {
    background: white;
    padding: var(--spacing-unit);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed) ease-in-out;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: var(--spacing-unit);
    transition: color var(--transition-speed) ease-in-out;
}

.service-link:hover {
    color: var(--secondary-color);
}


.market-preview {
    background: rgba(255, 255, 255, 0.95);
    padding: calc(var(--spacing-unit) * 3) var(--spacing-unit);
    margin: calc(var(--spacing-unit) * 2) 0;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-unit);
    padding: 0;
}

.market-item {
    background: white;
    padding: var(--spacing-unit);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed) ease-in-out;
}

.market-item:hover {
    transform: translateY(-5px);
}

.market-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: var(--spacing-unit);
    transition: color var(--transition-speed) ease-in-out;
}

.market-link:hover {
    color: var(--secondary-color);
}


.about-section {
    background: rgba(255, 255, 255, 0.95);
    padding: calc(var(--spacing-unit) * 3) var(--spacing-unit);
    margin: calc(var(--spacing-unit) * 2) 0;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-section-heading {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border-radius: 0;
    font-weight: bold;
    margin-top: calc(var(--spacing-unit) * 2);
    transition: all var(--transition-speed) ease-in-out;
}

.about-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* About image layout */

/*
 * Layout for about sections. Images sit next to the text using flexbox
 * so content can wrap below when space is limited or on smaller screens.
 */
.about-image-layout {
    /* Establish new block context so floats don't overflow */
    display: flow-root;
}

.about-image-layout.reverse {
    /* Placeholder for reverse layout */
}

.about-image-layout.reverse .about-image {
    float: right;
    margin: 0 0 var(--spacing-unit) var(--spacing-unit);
    /* Mirror the shape for reversed layouts */
    shape-outside: inset(0 round 15px);
    shape-margin: var(--spacing-unit);
}

/* Overlay variant */
.about-image-layout.overlay {
    position: relative;

}


.about-image-layout.overlay .about-image {
    float: none;
    width: 100%;
}


.about-image-layout.overlay .about-text {
    position: absolute;
    top: 0;
    left: 0;
    /* Match the non-overlay text width so the overlay fills the remaining space */
    width: 45%;
    height: 100%;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: var(--spacing-unit);
    display: flex;
    flex-direction: column;
    justify-content: center;

}



/* Image layout using floats */
.about-image-layout .about-image {
    float: left;
    /* Make the photo column larger on wide screens */
    width: 55%;
    margin: 0 var(--spacing-unit) var(--spacing-unit) 0;
    /* Shape text around the curved image edge */
    shape-outside: inset(0 round 15px);
    shape-margin: var(--spacing-unit);
}

.about-image-layout .about-image img {
    width: 100%;
    height: auto;
    /* Allow images to display larger within the wider column */
    max-height: 600px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.about-image-layout .about-text-container::before {
    content: "";
    display: block;
    height: 50%;
}

.about-image-layout .about-text {
    /* Allow text to wrap around the floated image */
    overflow: visible;
}

/* Mirror float direction for reversed layouts */
.about-image-layout.reverse .about-text {
}

/* Ensure list items fit within the constrained text column */
.about-image-layout .about-text ul {
    padding-left: var(--spacing-unit);
    margin-left: 0;
}

@media (max-width: 768px) {
    .about-image-layout,
    .about-image-layout.reverse {
        /* Stack image and text on small screens */
    }
    .about-image-layout .about-image,
    .about-image-layout .about-text {
        float: none;
        width: 100%;
        margin: 0 0 var(--spacing-unit);
    }
    .about-image-layout.overlay .about-text {
        position: static;
        width: 100%;
    }
}


.contact-preview {
    background: rgba(255, 255, 255, 0.95);
    padding: calc(var(--spacing-unit) * 3) var(--spacing-unit);
    margin: calc(var(--spacing-unit) * 2) 0;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.spacer { 
    margin: 0; 
    text-align: center; 
    width: 100%;
}
.spacer hr { 
    border: none; 
    border-top: 2px solid #ccc; 
    width: 100%; 
    margin: 0 auto;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border-radius: 0;
    font-weight: bold;
    margin-top: calc(var(--spacing-unit) * 2);
    transition: all var(--transition-speed) ease-in-out;
}

.contact-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


@media (max-width: 768px), (orientation: landscape) and (max-width: 1024px) {
    .hero {
        padding: calc(var(--spacing-unit) * 6) var(--spacing-unit) calc(var(--spacing-unit) * 3);
        background-attachment: scroll;
        background-size: cover;
        background-image: var(--hero-mobile-image);
    }

    .hero.hero-large {
        /* Further shrink hero height for smaller screens */
        min-height: calc(42vh - var(--nav-height));
        background-size: cover;
    }
    .hero.hero-large .hero-content {
        padding: 40px 20px;
    }
    @supports (height: 100svh) {
        .hero.hero-large {
            min-height: calc(42svh - var(--nav-height));
        }
    }


    .hero.hero-medium {
        /* Further shrink hero height for smaller screens */
        min-height: calc(30vh - var(--nav-height));
        background-size: cover;
    }



    .hero.has-small-image {
        flex-direction: column;
        text-align: center;
    }

    .hero.has-small-image .hero-content {
        width: 100%;
        padding-left: var(--spacing-unit);
        margin-bottom: var(--spacing-unit);
    }

    .hero.has-small-image .hero-image-box {
        width: 100%;
        max-width: 100%;
    }

    /* Remove large-screen offset on smaller viewports */
    .hero-text-container.hero-text-pad-right {
        padding-left: 0;
    }

    .hero-text-container.hero-text-pad-right .hero-inline-image {
        margin-left: 0;
    }

    /* Ensure translucent hero text remains fully visible on small screens */
    .hero-text-container.bg-translucent {
        position: relative;
        top: 0;
        left: 0;
        width: auto;
        /* Expand container width for mobile */
        max-width: 100%;
        margin: var(--spacing-unit) auto 0;
    }

    section {
        padding: var(--spacing-unit);
    }

    .feature-grid,
    .service-grid,
    .market-grid {
        grid-template-columns: 1fr;
    }

    .feature-item,
    .service-item,
    .market-item {
        margin-bottom: var(--spacing-unit);
    }
}


h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin-bottom: var(--spacing-unit);
}

p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: var(--spacing-unit);
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


.lazy {
    opacity: 0;
    transition: opacity var(--transition-speed) ease-in-out;
}

.lazy.loaded {
    opacity: 1;
}


.market-item i {
    font-size: 40px;
}

.icon-commercial { color: #0A9396; stroke: #0A9396; }
.icon-oil { color: #EE6C4D; stroke: #EE6C4D; }
.icon-healthcare { color: #55A630; stroke: #55A630; }
.icon-infra { color: #CA6702; stroke: #CA6702; }
.icon-residential { color: #B5179E; stroke: #B5179E; }
.icon-retail { color: #6A4C93; stroke: #6A4C93; }
.icon-industrial { color: #3A86FF; stroke: #3A86FF; }
.icon-building { color: #264600; stroke: #264600; }
.icon-leaf { color: #1f4d2f; stroke: #1f4d2f; }
.icon-split { color: #d8b985; stroke: #d8b985; }
.icon-map { color: #ded4bd; stroke: #ded4bd; }
.icon-truck { color: #dfdfd8; stroke: #dfdfd8; }
.icon-land-plot { color: #264600; stroke: #264600; }
.icon-flame { color: #1f4d2f; stroke: #1f4d2f; }
.icon-droplets { color: #d8b985; stroke: #d8b985; }
.icon-ruler { color: #ded4bd; stroke: #ded4bd; }
.icon-structure { color: #264600; stroke: #264600; }
.icon-env { color: #1f4d2f; stroke: #1f4d2f; }
.icon-development { color: #ded4bd; stroke: #ded4bd; }

@media (max-width: 768px), (orientation: landscape) and (max-width: 1024px) {
    .content-section h1,
    .content-section h2,
    .hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .content-section h1,
    .content-section h2,
    .hero-content h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px), (orientation: landscape) and (max-width: 1024px) {
    .hero-title,
    .hero-subtitle,
    .hero-undertitle {
        /* Use a light gray halo so white text stays visible on bright images */
        text-shadow: 0 0 8px rgba(211, 211, 211, 0.8);
    }
}

/* Improve hero appearance on tablet and small laptop screens */
@media (min-width: 769px) and (max-width: 1024px) {
    .background-wrapper {
        background-attachment: scroll;
    }

    .hero.hero-large {
        background-size: cover;
        min-height: calc(100vh - var(--nav-height));
    }
    @supports (height: 100svh) {
        .hero.hero-large {
            min-height: calc(100svh - var(--nav-height));
        }

    }
}
/* Smaller hero titles when using a translucent text container */
.hero-text-container.bg-translucent .hero-title {
    /* Increase text size by 50% */
    font-size: 1.5rem;
}

@media (max-width: 480px) {
    .hero-text-container.bg-translucent .hero-title {
        font-size: 1.2rem;
    }
}

@media (min-width: 1025px) {
    .hero-text-container.bg-translucent .hero-title {
        font-size: 1.35rem;
    }
}

/* Extra small hero titles for pages with uppercase headings */
.hero-title.hero-title-small {
    font-size: 1.2rem;
}
.hero-text-container.bg-translucent .hero-title.hero-title-small {
    font-size: 1.2rem;
}

/* Smaller text for subtitles and undertitles inside translucent container */
.hero-text-container.bg-translucent .hero-subtitle {
    font-size: 1.35rem;
}
.hero-text-container.bg-translucent .hero-undertitle {
    font-size: 1.2rem;
}

/* Global Lucide icon color */
[data-lucide] { color: #d8b985; stroke: #d8b985; }

/* Smaller headings on pages without hero */
.no-hero .content-section h1,
.no-hero .content-section h2 {
    font-size: 1.5rem;
}

@media (max-width: 480px) {
    .no-hero .content-section h1,
    .no-hero .content-section h2 {
        font-size: 1.2rem;
    }
}

@media (min-width: 1025px) {
    .no-hero .content-section h1,
    .no-hero .content-section h2 {
        font-size: 1.35rem;
    }
}
/* Specialties container responsive styles */
@media (max-width: 768px) {
    .specialties-container {
        flex-direction: column;
    }

    .specialties-container > ul,
    .specialties-container > div {
        flex: 1 1 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .specialties-container > div {
        margin-top: var(--spacing-unit);
    }

    .specialties-container h3 {
        font-size: 1rem;
    }
}

/* Footer styles */
.site-footer {
    background-color: var(--light-gray);
    padding: 40px 20px;
    margin-top: 40px;
}
.site-footer .footer-list-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.site-footer .footer-column {
    flex: 0 1 200px;
    text-align: left;
}
.site-footer .footer-column h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--dark-gray);
}
.site-footer .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer .footer-column ul li {
    margin-bottom: 6px;
}
.site-footer .footer-column ul li a {
    color: var(--dark-gray);
    text-decoration: none;
}
.site-footer .footer-column ul li a:hover {
    text-decoration: underline;
}
.site-footer .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
    margin-bottom: 10px;
}
.site-footer .social-links {
    display: flex;
    gap: 10px;
}
.site-footer .social-links img {
    width: 31px;
    height: 31px;
}
.site-footer .footer-logo img {
    max-width: 195px;
}
.site-footer .footer-bottom {
    text-align: center;
    font-size: 0.85em;
    color: #555;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .site-footer {
        padding: 20px 15px;
        margin-top: 20px;
    }

    .site-footer .footer-list-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer .footer-column {
        flex: 0 0 auto;
        margin-bottom: 15px;
        text-align: left;
    }

    .site-footer .footer-column h3 {
        font-size: 1rem;
    }

    .site-footer .footer-brand {
        align-items: flex-start;
    }

    .site-footer .social-links img {
        width: 25px;
        height: 25px;
    }

    .site-footer .footer-logo img {
        max-width: 150px;
    }

    .site-footer .footer-bottom {
        font-size: 0.75em;
        margin-top: 15px;
    }
}

.experience-list,
.market-list {
  list-style: none;
  padding-left: 0;
}

.experience-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.experience-row li {
  width: 48%;
  list-style: disc inside;
}

/* Custom bullet points for specialties lists */
.specialties-list li {
    list-style-type: none; /* Remove default bullet */
    position: relative;
    padding-left: 20px; /* Space for the custom bullet */
    margin-bottom: 10px;
}

.specialties-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px; /* Adjust vertical alignment */
    width: 10px;
    height: 10px;
    background-color: #264600; /* Company color */
    border-radius: 0; /* Make it a square */
}
