:root {
    --primary: #0a3d62;
    --accent: #c9a96e;
    --text: #333;
    --light: #f8f8f8;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background: var(--light);
    margin: 0;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 1000;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 4%;
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        gap: 1.2rem;
        margin-top: 0.8rem;
        width: 100%;
        justify-content: center;
    }
}

.hero {
    height: 100vh;
    min-height: 700px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
}

h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 3px 12px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.btn {
    padding: 1rem 2.2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.primary {
    background: var(--primary);
    color: white;
}

.primary:hover { background: #06263d; }

.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.secondary:hover { background: white; color: var(--primary); }

.section {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.services .service-grid,
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-item,
.portfolio-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.06);
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 61, 98, 0.75);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
    padding: 1.5rem;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.center {
    display: block;
    margin: 2.5rem auto 0;
    text-align: center;
}

.contact form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.contact label {
    font-weight: 600;
}

.contact input,
.contact select,
.contact textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.contact textarea {
    min-height: 140px;
    resize: vertical;
}

.contact button {
    margin-top: 1rem;
    align-self: flex-start;
}

/* About Section with Headshot + Cornerstone Logo */
.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 3rem;
    justify-content: center;
}

.about-image {
    flex: 1 1 300px;
    max-width: 350px;
    text-align: center;
}

.headshot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.cornerstone-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.cornerstone-logo:hover {
    transform: scale(1.05);
}

.about-text {
    flex: 2 1 500px;
}

.about-text h2 {
    margin-top: 0;
}

.about-text h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .about-image {
        max-width: 280px;
        margin: 0 auto 2rem;
    }
    .cornerstone-logo {
        max-width: 220px;
    }
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}

footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 2.5rem 1rem;
    font-size: 0.95rem;
}