/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #df984f;
    --primary-dark: #aa661f;
    --primary-light: #f4ddc4;
    --dark-bg: #04040c;
    --dark-text: #04040c;
    --light-bg: #fbfbfb;
    --white: #ffffff;
    --gray: #7f7f7f;
    --gray-light: #f1f0ef;
    --gray-dark: #525150;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Raleway', sans-serif;
    
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-text);
    overflow-x: hidden;
    background-color: var(--light-bg);
    padding-top: 158px; /* reserve space for fixed header + global title bar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.2rem;
    line-height: 1.3;
}

h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    line-height: 1.4;
}

h3 {
    font-size: 1.6rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0 70px 0;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.section-title {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 45px;
    position: relative;
    padding: 0 15px;
}

.section-title h2 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
}

.section-title p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 20px;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--dark-bg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

header:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 68px;
    height: 75%;
    background-color: #f5921d;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    pointer-events: none;
    z-index: 1;
}

/* Static header spacer: hidden on desktop, visible on mobile */
.header-spacer {
    display: none;
    width: 100%;
    height: 80px;
}

@media (max-width: 900px) {
    .header-spacer {
        display: block;
        height: 60px;
    }

    header:after {
        width: 23px;
        height: 25%;
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px !important;
    position: relative;
    z-index: 2;
}

.global-title-bar {
    width: 100%;
    background-color: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 12px 0;
    border-top: 3px solid #f5921d;
    position: relative;
    z-index: 2;
}

.global-title-bar h1 {
    font-size: 2.2rem;
    margin: 0;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--white);
    font-size: 1rem;
    font-weight: 400;
    display: inline-block;
    margin-left: 6px;
}

.logo-icon {
    width: 150px;
    height: 40px;
    background-color: transparent;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    border-radius: 4px;
    border: none;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--white);
    position: relative;
    padding: 5px 0;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
    width: 100%;
}

.nav-menu a.admin-link {
    background-color: #c8102e;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 1rem;
}

.nav-menu a.admin-link:hover {
    background-color: #c8102e;
}

.nav-menu a.admin-link:after {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--white);
}

/* Hero Section */
.hero {
    height: 82vh;
    height: 82svh;
    min-height: 420px;
    width: 100%;
    background-color: var(--dark-bg);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: transform 0.3s ease;
}

.hero-bg-layer {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: calc(100% + 100px);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg-layer.is-active {
    opacity: 1;
}

.hero-three {
    --hero-visible-slides: 3;
}

.hero-three .hero-three-slider {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    cursor: pointer;
}

.hero-three .hero-three-track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translateX(0);
}

.hero-three .hero-three-slide {
    flex: 0 0 calc(100% / var(--hero-visible-slides));
    height: 100%;
}

.hero-three .hero-three-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-three .hero-three-slider.is-paused {
    cursor: default;
}

.hero-caption {
    position: absolute;
    left: 50%;
    bottom: 5%;
    transform: translateX(-50%);
    z-index: 3;
    width: 95%;
    max-width: 800px;
    text-align: center;
    color: var(--white);
}

.hero-caption p {
    font-size: calc(1rem + 2pt);
    margin-bottom: 20px;
    opacity: 1;
    line-height: 1.6;
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.85),
         1px -1px 0 rgba(0, 0, 0, 0.85),
        -1px  1px 0 rgba(0, 0, 0, 0.85),
         1px  1px 0 rgba(0, 0, 0, 0.85),
         0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
    padding: 0 20px;
    box-sizing: border-box;
}

.carousel-btn {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border: 2px solid var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.carousel-tools {
    position: absolute;
    bottom: 5%;
    right: 20px;
    z-index: 6;
    display: flex;
    gap: 10px;
}

.carousel-tool-btn {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border: 2px solid var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.carousel-tool-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-title-section {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--dark-bg);
    padding: 20px 0;
    color: var(--white);
    text-align: center;
    z-index: 100;
}

.hero-title-section h1 {
    font-size: 2.2rem;
    margin: 0;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 95%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 95%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.hero-cta-section {
    background-color: var(--dark-bg);
    padding: 14px 0 24px;
    text-align: center;
}

.hero-cta-section .hero-buttons {
    justify-content: center;
    margin-top: 0;
}

/* Hero Text & CTA Section */
.hero-text-section {
    background-color: var(--dark-bg);
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}

.hero-text-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-text-section p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-text-section .hero-buttons {
    justify-content: center;
}

/* Services Preview */
.services {
    background-color: var(--light-bg);
    position: relative;
}

.services:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--dark-bg);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px 18px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.6rem;
}

/* Responsive: fall back to 2 columns on medium screens and 1 on small */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .service-card {
        padding: 24px 16px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 24px 16px;
    }
}

/* Projects Preview */
.projects-preview {
    background-color: var(--white);
    position: relative;
}

.projects-preview:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--light-bg);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.projects-filter {
    display: none !important;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-thumb {
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: var(--dark-bg);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Capability page specific styles */
.cap-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.cap-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: start;
}

.cap-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 22px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
    margin-bottom: 18px;
}

.cap-card h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.cap-table-wrap {
    overflow-x: auto;
    margin-top: 12px;
}

.cap-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.cap-table th, .cap-table td {
    padding: 10px 12px;
    border: 1px solid var(--gray-light);
    text-align: left;
    vertical-align: middle;
    font-size: 0.98rem;
}

.cap-table thead th {
    background: var(--gray-light);
    color: var(--gray-dark);
    font-weight: 600;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.supplier-list .meta small {
    color: var(--gray);
    display: block;
    margin-top: 6px;
    font-weight: 400;
}

/* Make service cards and capability cards visually consistent on small screens */
@media (max-width: 900px) {
    .cap-grid-2,
    .two-col-grid {
        grid-template-columns: 1fr;
    }

    .cap-grid-3 {
        grid-template-columns: 1fr;
    }

    .section-title h1 {
        font-size: 2rem;
    }

    body {
        padding-top: 120px;
    }
}

@media (min-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    opacity: 1;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-overlay {
    position: relative;
    width: 100%;
    padding: 18px 20px;
    background: var(--white);
    color: var(--dark-text);
    transform: translateY(0);
    transition: var(--transition);
}

.project-overlay h3 {
    color: var(--dark-text);
    margin-bottom: 5px;
}

.project-overlay p {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 0;
}

/* When overlay is placed on the image, position it over the photo and style text */
.project-thumb {
    position: relative;
}
.project-thumb .project-overlay {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.35);
    color: #fff;
    border-radius: 6px;
    display: block;
}
.project-thumb .project-overlay h3 {
    color: #fff;
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
.project-thumb .project-overlay p {
    color: rgba(255,255,255,0.95);
    margin: 0;
    font-size: 0.9rem;
    text-shadow: 0 0 2px rgba(0,0,0,0.6);
}

/* Project Detail Main Photo */
.project-main-image {
    width: 100%;
    height: auto;
    margin: 25px 0 35px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

#project-main-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Overlay on the main project image */
.project-main-image { position: relative; }
.main-image-overlay {
    position: absolute;
    left: 140px;
    top: 24px;
    max-width: 60%;
    z-index: 6;
}
.main-image-overlay .overlay-content {
    background: rgba(0,0,0,0.45);
    padding: 12px 16px;
    border-radius: 6px;
}
.main-image-overlay h1 {
    color: #fff;
    margin: 0 0 6px 0;
    font-size: 2rem;
    line-height: 1.05;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
.main-image-overlay p {
    margin: 0;
    color: rgba(255,255,255,0.95);
    font-size: 0.95rem;
    text-shadow: 0 0 2px rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
    .main-image-overlay { left: auto; right: 12px; top: 12px; max-width: 70%; }
    .main-image-overlay h1 { font-size: 1.25rem; }
}

@media (max-width: 768px) {
    .project-main-image {
        margin: 10px 0 14px;
    }
}

/* Stats Section */
.stats {
    background-color: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.stats:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-item p {
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer Styles */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
    font-family: var(--font-body);
}

.site-footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    margin-bottom: 40px;
    align-items: stretch;
    grid-auto-rows: 1fr;
    justify-items: start;
}

.footer-section {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 8px;
    height: 100%;
}

.footer-content > .footer-section:nth-child(2) {
    padding-left: 40px;
    padding-right: 8px;
}

.footer-brand {
    margin-bottom: 25px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 400;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 15px;
    padding-bottom: 8px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.footer-heading:after {
    content: '';
    position: absolute;
    width: 35px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.social-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 12px;
    font-weight: 600;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.social-list {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.social-list li {
    list-style: none;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.social-link .fab.fa-x-twitter {
    font-size: 1.1rem;
}

/* Quick Links */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav li {
    list-style: none;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    padding: 4px 0 4px 24px;
    position: relative;
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 400;
    font-family: var(--font-body);
}

.footer-link:before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    color: var(--primary-color);
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-link:focus-visible {
    color: var(--primary-color);
}

.footer-link:hover:before,
.footer-link:focus-visible:before {
    opacity: 1;
    color: var(--primary-color);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon {
    width: 35px;
    height: 35px;
    min-width: 35px;
    background-color: rgba(223, 152, 79, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-size: 0.95rem;
    font-weight: 400;
    font-family: var(--font-body);
}

.contact-link {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 400;
    font-family: var(--font-body);
}

.contact-link:hover {
    color: var(--primary-color);
}

/* Business Hours */
.business-hours {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.hours-days {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 400;
    font-family: var(--font-body);
}

.hours-time {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-body);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 400;
}

#current-year {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-heading:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-description {
        text-align: center;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-list {
        justify-content: center;
    }

    .footer-content > .footer-section:nth-child(2) {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 50px 0 15px;
    }
    
    .site-footer:before {
        height: 50px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }

    .footer-content {
        grid-auto-rows: auto;
        align-items: start;
    }

    .footer-section {
        padding: 0;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section .footer-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-heading:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-link:hover {
        padding-left: 0;
    }
    
    .footer-link:hover:before {
        display: none;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    .hours-item {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .footer-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-section {
        max-width: 720px;
        margin: 0 auto;
        align-items: center;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }

    .footer-nav {
        align-items: center;
    }

    .footer-nav li {
        width: 100%;
        text-align: center;
    }

    .footer-link {
        display: inline-block;
    }

    .contact-info {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .site-footer:before {
        height: 40px;
    }
    
    .footer-logo {
        font-size: 1.6rem;
    }
    
    .footer-heading {
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 1.1rem;
    }
}

/* Mobile Menu and Other Responsive Styles */
@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }

    .header-container {
        padding: 12px 16px !important;
    }

    .logo-icon {
        width: 110px;
        height: 32px;
        margin-right: 6px;
    }

    .logo-icon img {
        width: 110px;
        height: auto;
    }

    .logo span {
        font-size: 0.85rem;
    }

    .hamburger {
        display: block;
        z-index: 1000001; /* above menu */
    }
    
    .nav-menu {
        position: fixed;
        top: 56px; /* start below the header container */
        right: -100%;
        width: 80%;
        height: calc(100svh - 56px); /* cover from below header to bottom */
        background-color: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 1000000; /* above title bar and content */
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0 0 25px 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
    }

    /* Title bar remains visible but will be covered by the menu */
    .global-title-bar {
        position: relative;
        z-index: 2; /* normal stacking, menu will overlay it */
    }
    
    .hero {
        height: 54svh;
        min-height: 240px;
        margin-top: 0;
    }

    .hero-three {
        --hero-visible-slides: 1;
    }

    /* Hero image clarity fix */
    .hero:before {
        background: none !important;
    }

    .hero-bg {
        opacity: 1 !important;
    }

    .hero-bg-layer {
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }

    .section-title {
        margin-top: 20px;
    }
    
    .hero h1 {
        font-size: 3rem;
        line-height: 1.2;
    }

    .global-title-bar {
        padding: 6px 0;
    }

    .global-title-bar h1 {
        font-size: clamp(1.172rem, 5vw, 1.547rem);
        line-height: 1.25;
        max-width: 100%;
        padding: 0 12px;
    }

    .hero-title-section {
        top: 56px;
        padding: 10px 0;
    }

    .hero-title-section h1 {
        white-space: normal;
        font-size: clamp(1.172rem, 5vw, 1.547rem);
        line-height: 1.25;
        max-width: 100%;
        padding: 0 12px;
    }

    .hero-caption {
        width: calc(100% - 24px);
        bottom: 12%;
    }

    .carousel-tools {
        bottom: 3%;
        right: 12px;
        z-index: 7;
    }

    .hero-cta-section {
        padding: 12px 0 20px;
    }

    .hero-cta-section .btn {
        padding: 11px 20px;
        font-size: 0.95rem;
    }

    .hero-caption p {
        font-size: clamp(0.98rem, 3.6vw, calc(1rem + 1pt));
    }
    
    .hero p {
        font-size: 1.1rem;
        line-height: 1.6;
        max-width: 600px;
    }

    .hero .hero-caption p {
        font-size: clamp(0.98rem, 3.6vw, calc(1rem + 1pt));
        max-width: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title {
        margin-top: 25px;
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 1.9rem;
    }
    
    .section-title p {
        font-size: 0.95rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 16px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 90px;
    }

    .header-spacer {
        height: 52px;
    }

    .header-container {
        padding: 10px 12px !important;
    }

    .logo-icon {
        width: 96px;
        height: 28px;
    }

    .logo-icon img {
        width: 96px;
    }

    .logo span {
        font-size: 0.78rem;
    }

    h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.7rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-title-section h1 {
        font-size: clamp(1.097rem, 5.7vw, 1.297rem);
    }

    .hero-caption p {
        font-size: clamp(0.9rem, 4.2vw, 1.03rem);
    }

    .hero {
        height: 48svh;
        min-height: 210px;
    }

    .hero-caption {
        bottom: 10%;
    }

    .carousel-tools {
        bottom: 2%;
        right: 10px;
    }

    .hero-cta-section {
        padding: 10px 0 16px;
    }

    .hero-cta-section .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .hero-bg-layer {
        background-size: 92%;
    }
    
    .hero p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero .hero-caption p {
        font-size: clamp(0.9rem, 4.2vw, 1.03rem);
    }
    
    .section-title {
        margin-top: 25px;
        margin-bottom: 35px;
    }
    
    .section-title h2 {
        margin-bottom: 12px;
    }
    
    .section-title p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .section-title:after {
        width: 60px;
    }
    
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 25px 15px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
}

/* Animation for project cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Loading animation for stats */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item h3 {
    animation: countUp 0.8s ease forwards;
}

.stat-item:nth-child(2) h3 {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) h3 {
    animation-delay: 0.4s;
}

.stat-item:nth-child(4) h3 {
    animation-delay: 0.6s;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Extra responsive fallback for narrow landscape phones/tablets */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        padding-left: 20px;
        padding-right: 20px;
        grid-auto-rows: auto;
        align-items: start;
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
        max-width: 720px;
        margin: 0 auto 20px auto;
    }

    .footer-nav li {
        width: 100%;
        text-align: center;
    }

    .contact-info,
    .contact-item {
        align-items: center;
        text-align: center;
    }

    .contact-item {
        flex-direction: column;
        gap: 8px;
    }

    .contact-icon {
        margin: 0 auto;
    }
}
/* ============================================
   GALLERY & LIGHTBOX STYLES
   ============================================ */

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    background: #f5f5f5;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-view-btn {
    background: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #c8102e;
    transition: transform 0.3s ease;
}

.gallery-view-btn:hover {
    transform: scale(1.1);
}

.gallery-load-more {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

.gallery-load-more-note {
    margin: 0;
    color: var(--gray);
    font-size: 0.95rem;
}

/* Gallery Thumbnails */
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.gallery-thumb {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: white;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 60px 20px;
}

.error-message h2 {
    color: #c8102e;
    margin-bottom: 15px;
}

.error-message a {
    color: #c8102e;
    text-decoration: underline;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        font-size: 24px;
        padding: 8px 12px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }

    .hero-caption {
        bottom: 5%;
    }

    .hero .hero-caption p {
        font-size: 13px !important;
        margin-bottom: 10px !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 576px) {
    .hero-caption { bottom: 2%; }
    .hero .hero-caption p {
        font-size: 14px !important;
        margin-bottom: 0px !important;
        line-height: 1.25 !important;
        
    }
}

/* Mobile: carousel prev/next arrows 50% smaller */
@media (max-width: 768px) {
    .carousel-btn {
        width: 25px !important;
        height: 25px !important;
        font-size: 0.75rem !important;
        border-width: 1.5px;
    }

    .carousel-btn i,
    .carousel-btn .fas {
        font-size: 0.75rem !important;
        line-height: 1;
    }

    .carousel-tool-btn {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.5rem !important;
    }

    .carousel-tool-btn i,
    .carousel-tool-btn .fas {
        font-size: 0.5rem !important;
        line-height: 1;
    }
}

/* ============================================
   CAPABILITY PAGE TYPOGRAPHY ENHANCEMENTS
   ============================================ */

.cap-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

.cap-card h4 {
    font-size: 1.4rem;
    font-weight: 650;
    color: var(--primary-color);
    margin: 1.2rem 0 0.8rem 0;
}

.cap-table th {
    font-size: 1.1rem;
    font-weight: 700;
    background-color: var(--primary-light);
    color: var(--dark-text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.project-mini-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.safety-two-col {
    column-count: 2;
    column-gap: 40px;
    padding-left: 20px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .safety-two-col {
        column-count: 1;
    }
}