:root {
    --gw-green-dark: #0f2f22;
    --gw-green: #1c5c3f;
    --gw-green-light: #2f8a5f;
    --gw-gold: #c8a24d;
    --gw-cream: #f7f5ef;
    --gw-text: #2b2b28;
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Lora', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--gw-text);
    background-color: #ffffff;
}

h1, h2, h3, h4, .navbar-brand, .btn {
    font-family: var(--font-display);
}

a {
    color: var(--gw-green);
}

a:hover {
    color: var(--gw-gold);
}

/* Navbar */
#mainNav {
    background-color: rgba(15, 47, 34, 0.95);
    transform: translateY(-100%);
    transition: background-color 0.3s ease, padding 0.3s ease, transform 0.3s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#mainNav.nav-visible {
    transform: translateY(0);
}

#mainNav .navbar-brand {
    color: #fff;
    font-weight: 700;
}

.brand-logo {
    height: 42px;
    width: auto;
    border-radius: 4px;
}

.brand-phone {
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

#mainNav .nav-link:hover {
    color: var(--gw-gold);
}

/* Masthead */
.masthead {
    padding-top: 11rem;
    padding-bottom: 6rem;
    background-color: #d4dde1;
    background-image: url('../img/banner.jpg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: contain;
    color: #fff;
}

.masthead-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    background-color: rgba(12, 4, 4, 0.3);
    padding: 20px;
}

.masthead h1 {
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.75rem;
    color: #fff;
}

.masthead p {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.masthead .investment-intro {
    font-weight: 700;
}

/* Sections */
.page-section {
    padding: 6rem 0;
}

.section-heading {
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--gw-green-dark);
    font-size: 1.5rem;
}

.section-divider {
    width: 70px;
    height: 3px;
    background-color: var(--gw-gold);
    border: none;
    opacity: 1;
    margin: 1rem auto 1.5rem;
}

.section-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #444;
}

.bg-light {
    background-color: var(--gw-cream) !important;
}

#about {
    background-image: url('../img/about.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    padding: 10px 0;
}

#about > .container {
    max-width: none;
    padding: 0;
}

#about .row {
    margin-left: 0;
    margin-right: 0;
}

#about .row + .row {
    margin-top: 0 !important;
}

#about .col-lg-9 {
    width: min(100%, 760px);
    max-width: 760px;
    flex: 0 0 auto;
    background-color: rgba(12, 4, 4, 0.3);
    padding: 20px;
}

#about .section-heading {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 400;
}

#about .section-divider {
    background-color: #fff;
}

#about .section-text {
    color: #fff;
    text-align: left;
}

#about .value-item {
    color: #fff;
    gap: 0.85rem;
    padding: 1.1rem 0.75rem;
    line-height: 1.5;
}

/* Values grid */
.values-grid {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    justify-content: center;
}

.value-item i {
    color: var(--gw-gold);
    font-size: 1.2rem;
}

/* Project cards */
.project-card {
    background: #fff;
    border: 1px solid #e7e3d8;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    height: 100%;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 47, 34, 0.08);
}

.project-card i {
    font-size: 2rem;
    color: var(--gw-green);
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gw-green-dark);
}

.project-card p {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Gallery */
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #e7e3d8;
    isolation: isolate;
    background-color: var(--gw-green-dark);
}

.gallery-item::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0.8rem 1rem;
    background-color: rgba(15, 47, 34, 0.9);
    color: #fff;
    content: attr(aria-label);
    font-family: var(--font-display);
    font-size: 0.8rem;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-modal .modal-content {
    background-color: #101714;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    max-height: calc(100vh - 2rem);
}

.gallery-modal .modal-header {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.gallery-modal .modal-title {
    color: #fff;
    font-size: 1rem;
}

.gallery-tools {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.gallery-zoom {
    min-width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    background-color: transparent;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.8rem;
}

.gallery-zoom:hover,
.gallery-zoom:focus-visible {
    background-color: var(--gw-gold);
}

.gallery-modal .btn-close {
    filter: invert(1);
    margin-left: 0.5rem;
}

.gallery-modal .modal-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 360px;
    padding: 1.5rem 4.5rem 3.5rem;
}

#galleryModalImage {
    display: block;
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.2s ease;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-50%);
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
    background-color: var(--gw-gold);
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

.gallery-modal-caption {
    position: absolute;
    right: 4.5rem;
    bottom: 1rem;
    left: 4.5rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-align: center;
}

/* Contact */
.contact-details p {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.contact-details i {
    color: var(--gw-gold);
    width: 1.4rem;
    text-align: center;
}

/* Footer */
.footer-bar {
    background-color: var(--gw-green-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 1.75rem 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .masthead {
        padding-top: 8rem;
    }

    .navbar-collapse {
        background-color: var(--gw-green-dark);
        border-radius: 6px;
        padding: 0.5rem 1rem;
        margin-top: 0.5rem;
    }
}

@media (min-width: 992px) {
    .masthead {
        padding-top: 510px;
        padding-bottom: 0;
    }

    .masthead-content {
        max-width: 920px;
    }
}
