/*
 * =========================================
 * Global & Base Styles
 * =========================================
 */
body {
    font-family: 'Inter', sans-serif;
    color: #333333;
    background-color: #ffffff;
    margin: 0;
}

/*
 * =========================================
 * Header & Navigation (Shared)
 * =========================================
 */
.page-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #e5e7eb;
}

.header-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #187F98;
    text-decoration: none;
}

.main-nav {
    display: none; /* Hidden on mobile */
}

.nav-link {
    font-weight: 500;
    color: #333333;
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #187F98;
}

.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #333333;
}
.mobile-menu-button svg {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-menu {
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid #e5e7eb;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: background-color 0.3s, color 0.3s;
}

.mobile-nav-link:hover {
    background-color: #f3f4f6;
    color: #187F98;
}

.main-nav .nav-link[href*="contact"],
.mobile-menu .mobile-nav-link[href*="contact"] {
    background-color: #187F98;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s, color 0.3s;
}

.main-nav .nav-link[href*="contact"]:hover,
.mobile-menu .mobile-nav-link[href*="contact"]:hover {
    background-color: #5199AE;
    color: white;
}

/*
 * =========================================
 * Page Layout & Footer (Shared)
 * =========================================
 */
.page-footer {
    background-color: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: center;
    color: #4b5563;
}
.footer-copyright {
    margin-top: 1rem;
    font-size: 0.875rem;
	font-weight: normal;
}
.footer-cta {color: #4b5563;font-weight: normal;}

/*
 * =========================================
 * HOME PAGE: Sections
 * =========================================
 */
main {
    padding-top: 88px; /* Height of the header */
}

.home-hero-section {
    padding: 6rem 1.5rem;
    text-align: center;
}

.home-hero-content {
    max-width: 896px;
    margin: 0 auto;
}

.profile-picture {
    width: 8rem;
    height: 8rem;
    border-radius: 9999px;
    margin: 0 auto 1.5rem auto;
    border: 4px solid #187F98;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    object-fit: cover;
}

.home-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.home-hero-subtitle {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #187F98;
    color: white;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.cta-button:hover {
    background-color: #5199AE;
    transform: scale(1.05);
}

.content-section {
    padding: 5rem 1.5rem;
}

.about-section, .contact-section {
    background-color: #f3f4f6;
}

.section-container {
    max-width: 896px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.section-divider {
    width: 6rem;
    height: 4px;
    background-color: #187F98;
    margin: 0 auto;
}

.about-section p, .contact-section .section-header p {
    line-height: 1.75;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.contact-section .section-header p {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: all 0.5s;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-card-image {
    width: 100%;
    height: 14rem;
    object-fit: cover;
}

.project-card-content {
    padding: 1.5rem;
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.project-card-description {
    color: #4b5563;
    margin-bottom: 1rem;
    min-height: 84px;
}

.project-card-link {
    color: #187F98;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.project-card-link:hover {
    color: #5199AE;
}

/*
 * =========================================
 * PROJECT DETAIL PAGE: Sections
 * =========================================
 */
.main-content-area {
    padding-top: 0; /* No top padding as hero is full screen */
}

.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    /* background-image is now applied by specific classes below */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Unique Hero Images */
.hero-project-ev {
    background-image: url('../inc/img/SKY/Hero-Image.png');
}

.hero-project-photo {
    background-image: url('../inc/img/ShootProof/photo-gallery-hero.png'); /* Placeholder path */
}

.hero-project-risk {
    background-image: url('../inc/img/JPM/jpm-hero.png'); /* Placeholder path */
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-section .project-header-section {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
}

.hero-section .project-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-section .project-subtitle {
    font-size: 1.25rem;
    color: #e5e7eb;
}

.project-meta-section {
    width: 100%;
    background-color: #187F98;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 3rem 1.5rem;
    box-sizing: border-box;
}

.project-meta-container {
    max-width: 900px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
}

.meta-item h4 {
    font-size: .65rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.meta-item p {
    font-size: 1.2rem;
    margin: 0;
}

.logo-box {
    background-color: #ffffff;
    max-width: 525px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    box-sizing: border-box;
}

.logo-box img {
    max-width: 100%;
    height: auto;
}

.content-wrapper {
    max-width: 896px; 
    margin: 4rem auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.project-content-block {
    margin-bottom: 3rem;
}

.project-content-block h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #187F98;
}

#overview h3 { border: none;}

.project-content-block p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.project-content-block ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.project-content-block li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    list-style: none;
}

.project-content-block li::before {
    content: '•';
    color: #187F98;
    position: absolute;
    left: 0;
    font-size: 1.25rem;
    line-height: 1.5rem;
}

.process-image {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    margin-bottom: 2rem;
}

.carousel-caption {
    margin-top: 1rem;
    padding: 0 1rem;
    text-align: center;
    color: #4b5563;
    font-style: italic;
    min-height: 1.5rem;
    transition: opacity 0.3s ease-in-out;
}

.carousel-container {
    margin-bottom: 2rem;
}

.carousel {
    position: relative;
    width: 100%;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
}

.carousel-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.6);
    color: #374151;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    width: 2.5rem;
    height: 2.5rem;
}

.carousel-button:hover {
    background-color: white;
}

.carousel-button:focus {
    outline: none;
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}

.carousel-button:disabled {
    opacity: 0.5;
    cursor: default;
}

.carousel-dots {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background-color 0.3s;
    border: none;
    padding: 0;
}

.carousel-dots .dot.active {
    background-color: #187F98;
}


/*
 * =========================================
 * Animations & Media Queries
 * =========================================
 */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    /* Shared */
    .main-nav {
        display: flex;
        gap: 2rem;
        align-items: center;
    }
    
    .mobile-menu-button,
    .mobile-menu {
        display: none;
    }

    /* Home Page */
    .home-hero-title {
        font-size: 4rem;
    }
    .home-hero-subtitle {
        font-size: 1.25rem;
    }
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Project Detail Page */
    .hero-section .project-title {
        font-size: 3.5rem;
    }
    .hero-section .project-subtitle {
        font-size: 1.5rem;
    }
    .project-meta-container {
        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "logo timeline"
            "logo type"
            "logo tools";
        gap: 1rem 4rem;
        align-items: center;
        text-align: left;
    }
    .meta-item:nth-child(1) {
        grid-area: logo;
        align-self: stretch;
    }
    .meta-item:nth-child(2) {
        grid-area: timeline;
    }
    .meta-item:nth-child(3) {
        grid-area: type;
    }
    .meta-item:nth-child(4) {
        grid-area: tools;
    }
    .logo-box {
        height: 100%;
        box-sizing: border-box;
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

