/* ==========================================================================
   Simon J Hargreaves Associates - Stylesheet
   Modern Architectural Theme & Navigation Preview
   ========================================================================== */

:root {
    --color-navy: #011524;
    --color-navy-card: #092235;
    --color-navy-card-hover: #0e2d45;
    --color-navy-light: #12334d;
    --color-gold: #cfb26d;
    --color-gold-bright: #e5c77e;
    --color-sand: #cfc7b4;
    --color-sand-light: #ece8dc;
    --color-slate: #57534a;
    --color-slate-dark: #3e3b35;
    --color-body-bg: #dadada;
    --color-text-body: #dadada;
    --color-text-subtle: #b6b0a0;
    --color-text-light: #f4f1ea;
    --color-link-blue: #004a82;
    --color-link-blue-hover: #002e52;
    --color-accent-amber: #ffdb86;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.35);
    --transition-smooth: all 0.25s ease;
}

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-body-bg);
    color: var(--color-text-body);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100%;
}

a {
    transition: var(--transition-smooth);
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.clear_float {
    clear: both;
}

/* Page Wrapper - Centered 1000px architectural canvas */
.page_wrapper {
    width: 1000px;
    max-width: 100%;
    margin: 0 auto;
    background-color: var(--color-navy);
    box-shadow: var(--shadow-subtle);
    position: relative;
    overflow: hidden;
}

/* Header & Top Bar */
.header_bar {
    background-color: var(--color-navy);
    border-bottom: 1px solid rgba(207, 199, 180, 0.18);
}

.header_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    gap: 16px;
}

.header_logo_link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav_logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.header_contact_quick {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
}

.quick_contact_item {
    color: var(--color-sand);
    text-decoration: none;
    font-weight: 400;
}

.quick_contact_item:hover {
    color: var(--color-gold-bright);
    text-decoration: underline;
}

.contact_label {
    color: var(--color-gold);
    font-weight: 700;
    margin-right: 2px;
}

.contact_divider {
    color: rgba(207, 199, 180, 0.35);
}

/* Mobile Nav Toggle */
.mobile_nav_toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.mobile_nav_toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-smooth);
}

/* Navigation Bar */
.navigation_bar {
    background-color: rgba(1, 21, 36, 0.95);
    border-top: 1px solid rgba(207, 199, 180, 0.1);
}

.navigation_bar ul {
    list-style: none;
    margin: 0 24px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.navigation_bar ul li {
    display: inline-block;
    margin-right: 28px;
    position: relative;
}

.navigation_bar ul li a {
    display: block;
    color: #e2e8f0;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 46px;
    padding: 0 2px;
    transition: var(--transition-smooth);
}

.navigation_bar ul li a:hover {
    color: var(--color-gold-bright);
}

.navigation_bar ul li.current a {
    color: var(--color-gold);
    font-weight: 600;
}

.navigation_bar ul li.current::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-gold);
}

/* Ribbon Section */
.ribbon {
    background-color: var(--color-sand);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    position: relative;
}

.ribbon .slideshow {
    flex: 0 0 560px;
    max-width: 560px;
    aspect-ratio: 560 / 420;
    height: auto;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ribbon .slideshow img {
    width: 100%;
    height: 100%;
    display: block;
    box-sizing: border-box;
    object-fit: cover;
    border: 4px solid #ffffff;
    transition: opacity 0.5s ease-in-out;
}

.ribbon_info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-navy);
    padding: 12px 16px;
}

.ribbon_logo_wrap {
    margin-bottom: 24px;
}

.ribbon_logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.ribbon_details {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-navy);
}

.ribbon_details p {
    margin: 6px 0;
}

.ribbon_details strong {
    color: var(--color-navy);
    font-weight: 700;
}

.ribbon_details a {
    color: var(--color-link-blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.ribbon_details a:hover {
    color: var(--color-link-blue-hover);
    border-bottom-color: var(--color-link-blue-hover);
}

/* Main Page Content */
.page_content {
    background-color: var(--color-navy);
    padding: 36px 32px 48px;
}

.section_intro_block {
    margin-bottom: 24px;
}

.main_title {
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.intro_lead {
    color: var(--color-text-light);
    font-size: 15.5px;
    line-height: 1.65;
    font-weight: 300;
    max-width: 860px;
}

.intro_lead p {
    margin-bottom: 14px;
}

.intro_lead p:last-child {
    margin-bottom: 0;
}

/* Home Page Content Styles */
.home_content_block {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.welcome_text_card {
    background-color: var(--color-navy-card);
    border: 1px solid rgba(207, 199, 180, 0.16);
    border-left: 4px solid var(--color-gold);
    padding: 24px 28px;
    border-radius: 2px;
    box-shadow: var(--shadow-card);
}

.welcome_text_card p {
    color: var(--color-text-light);
    font-size: 15.5px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.welcome_text_card p:last-child {
    margin-bottom: 0;
}

.home_highlights_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.highlight_card {
    background-color: var(--color-navy-card);
    border: 1px solid rgba(207, 199, 180, 0.16);
    border-radius: 2px;
    padding: 22px 20px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.highlight_card:hover {
    background-color: var(--color-navy-card-hover);
    border-color: rgba(207, 178, 109, 0.45);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.highlight_card_icon {
    color: var(--color-gold);
    margin-bottom: 12px;
}

.highlight_card h2 {
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.35;
}

.highlight_card p {
    color: var(--color-text-body);
    font-size: 14px;
    line-height: 1.55;
    flex: 1;
}

.highlight_card_link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-gold-bright);
    font-size: 13.5px;
    font-weight: 500;
    margin-top: 14px;
    font-family: var(--font-heading);
}

.highlight_card:hover .highlight_card_link {
    text-decoration: underline;
}

.home_cta_banner {
    background: linear-gradient(135deg, rgba(18, 51, 77, 0.8) 0%, rgba(9, 34, 53, 0.95) 100%);
    border: 1px solid var(--color-gold);
    border-radius: 2px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.home_cta_text h3 {
    color: var(--color-gold-bright);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.home_cta_text p {
    color: var(--color-sand-light);
    font-size: 14.5px;
    line-height: 1.5;
    margin: 0;
}

.btn_gold {
    display: inline-block;
    background-color: var(--color-gold);
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 2px;
    text-decoration: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-gold-bright);
}

.btn_gold:hover {
    background-color: var(--color-gold-bright);
    box-shadow: 0 4px 12px rgba(207, 178, 109, 0.35);
    transform: translateY(-1px);
}

/* About Us Page Layout */
.about_layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    margin-bottom: 32px;
}

.about_narrative {
    background-color: var(--color-navy-card);
    border: 1px solid rgba(207, 199, 180, 0.16);
    border-left: 4px solid var(--color-gold);
    padding: 26px 28px;
    border-radius: 2px;
    box-shadow: var(--shadow-card);
}

.about_narrative p {
    color: var(--color-text-body);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about_narrative p:last-child {
    margin-bottom: 0;
}

.about_side_images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about_side_images .image_card {
    height: 195px;
}

.about_badges_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.about_badge {
    background-color: var(--color-navy-card);
    border: 1px solid rgba(207, 199, 180, 0.15);
    padding: 16px 14px;
    text-align: center;
    border-radius: 2px;
}

.about_badge_number {
    display: block;
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.about_badge_label {
    color: var(--color-sand-light);
    font-size: 12.5px;
    line-height: 1.4;
}

.about_gallery_section {
    padding-top: 28px;
    border-top: 1px solid rgba(207, 199, 180, 0.16);
}

.about_gallery_section h2 {
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;
}

.about_bottom_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.about_bottom_grid .image_card {
    height: 250px;
}

/* Services Page Styles */
.services_section {
    margin-bottom: 36px;
}

.services_cards_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.additional_cards_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.service_card {
    background-color: var(--color-navy-card);
    border: 1px solid rgba(207, 199, 180, 0.16);
    border-radius: 2px;
    display: flex;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.service_card:hover {
    background-color: var(--color-navy-card-hover);
    border-color: rgba(207, 178, 109, 0.45);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.service_card_accent {
    width: 4px;
    background-color: var(--color-gold);
    flex-shrink: 0;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.service_card:hover .service_card_accent {
    width: 6px;
    background-color: var(--color-gold-bright);
}

.service_card_content {
    padding: 18px 20px;
    flex: 1;
}

.service_card h2 {
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.service_card p {
    color: var(--color-text-body);
    font-size: 14.5px;
    line-height: 1.55;
    margin: 0;
}

/* Additional Services Section */
.additional_services_section {
    padding-top: 28px;
    border-top: 1px solid rgba(207, 199, 180, 0.16);
}

/* Structural Engineers Partnership Notice Box */
.structural_notice_box {
    background: linear-gradient(135deg, rgba(18, 51, 77, 0.7) 0%, rgba(9, 34, 53, 0.9) 100%);
    border: 1px solid var(--color-gold);
    border-left: 4px solid var(--color-gold);
    padding: 16px 20px;
    border-radius: 2px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 32px;
}

.structural_notice_icon {
    color: var(--color-gold);
    flex-shrink: 0;
    margin-top: 1px;
}

.structural_notice_text {
    color: var(--color-sand-light);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* Project Images Showcase living under Additional Services */
.services_images_showcase {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(207, 199, 180, 0.16);
}

.showcase_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.image_card {
    position: relative;
    border: 3px solid var(--color-sand);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    background-color: #000000;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    height: 260px;
}

.image_card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.image_card:hover {
    border-color: var(--color-gold-bright);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.image_card:hover img {
    transform: scale(1.04);
}

.image_card .image_overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 21, 36, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.image_card:hover .image_overlay {
    opacity: 1;
}

.image_card .image_overlay span {
    color: var(--color-gold-bright);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    background: rgba(1, 21, 36, 0.9);
    padding: 8px 16px;
    border: 1px solid var(--color-gold);
    border-radius: 2px;
    letter-spacing: 0.4px;
}

/* Contact Us Page Styles */
.contact_section {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact_cards_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact_card {
    background-color: var(--color-navy-card);
    border: 1px solid rgba(207, 199, 180, 0.16);
    border-radius: 2px;
    padding: 24px 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition-smooth);
}

.contact_card:hover {
    background-color: var(--color-navy-card-hover);
    border-color: rgba(207, 178, 109, 0.45);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.contact_card_icon {
    width: 44px;
    height: 44px;
    border-radius: 2px;
    background-color: rgba(207, 178, 109, 0.12);
    border: 1px solid rgba(207, 178, 109, 0.3);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.contact_card h2 {
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact_card p {
    color: var(--color-text-body);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.contact_card_value {
    color: var(--color-sand-light);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.contact_card_value:hover {
    color: var(--color-gold-bright);
    border-bottom-color: var(--color-gold-bright);
}

.contact_notice_box {
    background: linear-gradient(135deg, rgba(18, 51, 77, 0.7) 0%, rgba(9, 34, 53, 0.9) 100%);
    border: 1px solid var(--color-gold);
    border-left: 4px solid var(--color-gold);
    padding: 22px 26px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.contact_notice_content h3 {
    color: var(--color-gold-bright);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact_notice_content p {
    color: var(--color-sand-light);
    font-size: 14.5px;
    line-height: 1.5;
    margin: 0;
}

/* Footer Bar */
.footer_bar {
    background-color: var(--color-slate);
    color: var(--color-accent-amber);
    border-top: 1px solid rgba(207, 199, 180, 0.15);
}

.footer_wrapper {
    padding: 12px 24px;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-accent-amber);
}

.footer_wrapper a {
    color: #fff3ca;
    text-decoration: none;
    font-weight: 500;
}

.footer_wrapper a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer_sep {
    color: rgba(255, 219, 134, 0.4);
}

/* Copyright Bar (Ensuring high contrast) */
.copyright_bar {
    background-color: var(--color-navy);
    padding: 14px 24px;
    text-align: center;
    border-top: 1px solid rgba(207, 199, 180, 0.12);
}

.copyright_bar p {
    color: var(--color-sand);
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.3px;
}

/* Lightbox Modal */
.lightbox_modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox_modal.active {
    display: flex;
}

.lightbox_overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 21, 36, 0.88);
    backdrop-filter: blur(4px);
}

.lightbox_container {
    position: relative;
    z-index: 10;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modalScaleIn 0.25s ease-out;
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox_img {
    max-width: 85vw;
    max-height: 80vh;
    border: 3px solid var(--color-gold);
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    background-color: #ffffff;
}

.lightbox_caption {
    margin-top: 12px;
    color: var(--color-sand-light);
    font-size: 14px;
    text-align: center;
    background: rgba(1, 21, 36, 0.85);
    padding: 6px 16px;
    border-radius: 2px;
    border: 1px solid rgba(207, 199, 180, 0.3);
}

.lightbox_close {
    position: absolute;
    top: -42px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--color-gold);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 4px;
}

.lightbox_close:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page_wrapper {
        width: 100%;
        margin: 0;
    }
    
    .ribbon {
        flex-direction: column;
        padding: 20px;
    }
    
    .ribbon .slideshow {
        flex: auto;
        width: 100%;
        max-width: 560px;
        height: auto;
    }
    
    .page_content {
        padding: 28px 20px 40px;
    }

    .home_highlights_grid,
    .contact_cards_grid,
    .showcase_grid,
    .additional_cards_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about_layout {
        grid-template-columns: 1fr;
    }

    .about_side_images {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .about_badges_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header_inner {
        padding: 12px 16px;
    }
    
    .header_contact_quick {
        display: none;
    }
    
    .mobile_nav_toggle {
        display: flex;
    }
    
    .navigation_bar ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 8px 0;
        background-color: #000c14;
    }
    
    .navigation_bar ul.show {
        display: flex;
    }
    
    .navigation_bar ul li {
        margin: 0;
        border-bottom: 1px solid rgba(207, 199, 180, 0.08);
    }
    
    .navigation_bar ul li a {
        padding: 10px 20px;
        line-height: 1.5;
    }
    
    .navigation_bar ul li.current::after {
        display: none;
    }
    
    .services_cards_grid,
    .additional_cards_grid,
    .showcase_grid,
    .home_highlights_grid,
    .contact_cards_grid,
    .about_side_images,
    .about_bottom_grid,
    .about_badges_grid {
        grid-template-columns: 1fr;
    }
    
    .image_card {
        height: 220px;
    }

    .home_cta_banner,
    .contact_notice_box {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer_wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .footer_sep {
        display: none;
    }
}
