/* CSS Variables - Bay Colors */
:root {
    --color-slate: #4d5d6d;
    --color-slate-dark: #3d4d5d;
    --color-olive-brown: #5c5a2e;
    --color-olive-green: #8a9a50;
    --color-silver: #8899aa;
    --color-white: #ffffff;
    --color-cream: #f5f6f2;
    --color-gray: #6b7280;
    --color-gray-light: #e5e7eb;
    --color-black: #2a2a2a;
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.3;
}

a {
    color: var(--color-olive-brown);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-olive-green);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-black);
    background: linear-gradient(135deg, var(--color-olive-green) 0%, var(--color-olive-brown) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo-full {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-black);
    font-weight: 400;
}

.nav-logo:hover .nav-logo-text {
    background: linear-gradient(135deg, var(--color-olive-brown) 0%, var(--color-olive-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--color-black);
    font-weight: 600;
    padding: 10px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-olive-green);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-black);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(1.1); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    padding: 120px 20px 120px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: scaleIn 1.2s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61, 77, 93, 0.92) 0%, rgba(77, 93, 109, 0.75) 50%, rgba(77, 93, 109, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeUp 0.8s ease-out forwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: fadeUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-olive-green);
    animation: pulse 2s ease-in-out infinite;
}

.hero-logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    animation: fadeUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-headline {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-headline-accent {
    display: block;
    font-style: italic;
    font-weight: 400;
    color: var(--color-silver);
    margin-top: 10px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 0.8s ease-out 0.5s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    animation: fadeUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 1;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}

.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-slate);
    padding: 25px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    z-index: 1;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    font-family: var(--font-heading);
}

.hero-stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-olive-green);
    color: var(--color-black);
}

.btn-primary:hover {
    background: var(--color-olive-brown);
    color: var(--color-white);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-black);
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-olive-green);
    margin: 20px auto 0;
}

/* About Section */
.about {
    background: var(--color-cream);
}

.about-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

.about-content-full {
    grid-template-columns: 1fr;
}

.about-photo {
    text-align: center;
}

.photo-placeholder {
    width: 250px;
    height: 300px;
    background: var(--color-gray-light);
    border-radius: 8px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-caption {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-black);
}

.photo-caption span {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-gray);
}

.about-text p {
    margin-bottom: 20px;
    color: #444;
}

.about-mission {
    background: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--color-olive-green);
    margin-top: 30px;
}

.about-mission h3 {
    color: var(--color-black);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.about-mission p {
    margin-bottom: 0;
}

/* Services Section */
.services-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-category {
    background: var(--color-white);
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--color-olive-green);
}

.service-category h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--color-slate);
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-category h3 svg {
    width: 32px;
    height: 32px;
    fill: var(--color-olive-green);
    flex-shrink: 0;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.service-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.service-list li:first-child {
    padding-top: 0;
}

.service-list strong {
    display: block;
    color: var(--color-black);
    font-size: 1rem;
    margin-bottom: 5px;
}

.service-list span {
    color: var(--color-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Page Header (for subpages) */
.page-header {
    background: linear-gradient(135deg, var(--color-slate-dark) 0%, var(--color-slate) 100%);
    color: var(--color-white);
    padding: 140px 20px 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--color-silver);
}

/* Projects Section */
.projects {
    background: var(--color-cream);
}

.projects-page {
    background: var(--color-white);
}

/* Project Teaser (homepage) */
.project-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.project-teaser-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    height: 300px;
}

.project-teaser-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-teaser-content {
    padding: 40px;
}

.project-teaser-content h3 {
    font-size: 1.8rem;
    color: var(--color-black);
    margin-bottom: 10px;
}

.project-teaser-content .project-meta {
    color: var(--color-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-teaser-content p {
    color: #444;
    margin-bottom: 25px;
    line-height: 1.7;
}

.project-teaser-content .btn {
    margin-top: 10px;
}

.project {
    background: var(--color-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.project-header {
    margin-bottom: 20px;
}

.project-header h3 {
    font-size: 1.8rem;
    color: var(--color-black);
    margin-bottom: 10px;
}

.project-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.project-meta span {
    font-size: 0.95rem;
    color: var(--color-gray);
}

.project-client {
    font-weight: 600;
    color: var(--color-black) !important;
}

.project-description {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 30px;
    line-height: 1.7;
}

.project-gallery-simple {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.project-gallery-simple img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-gallery-simple img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Certifications Section */
.certifications {
    background: var(--color-slate);
    color: var(--color-white);
}

.certifications h2 {
    color: var(--color-white);
}

.certifications-intro {
    text-align: center;
    max-width: 700px;
    margin: -30px auto 50px;
    color: var(--color-gray-light);
}

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

.cert-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.cert-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cert-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 68px;
    background: var(--color-olive-green);
    color: var(--color-black);
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.2;
    clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 50% 100%, 0% 75%);
    padding-bottom: 8px;
}

.cert-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 600;
}

.cert-info p {
    font-size: 0.85rem;
    color: var(--color-gray);
}

.cert-info .cert-number {
    font-size: 0.95rem;
    color: var(--color-cream);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Contact Section */
.contact {
    background: var(--color-cream);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #444;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gray);
    margin-bottom: 8px;
    font-family: var(--font-body);
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--color-black);
}

.contact-item a {
    color: var(--color-black);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--color-olive-brown);
}

/* Contact Form */
.contact-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-black);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-gray-light);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-olive-green);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success h3 {
    color: var(--color-olive-brown);
    margin-bottom: 10px;
}

.form-success p {
    color: var(--color-gray);
}

/* Footer */
.footer {
    background: var(--color-olive-brown);
    color: var(--color-cream);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
}

.footer-credit {
    margin-top: 8px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-credit a {
    color: var(--color-cream);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.2s ease;
}

.footer-credit a:hover {
    border-color: var(--color-cream);
}

/* Mobile Navigation */
.nav-links.active {
    display: flex;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-categories {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

@media (max-width: 768px) {
    .nav-logo-text {
        display: none;
    }

    .nav-logo-full {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid var(--color-gray-light);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        min-height: 100vh;
        padding: 100px 15px 180px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 15px;
    }

    .hero-logo {
        max-width: 280px;
    }

    .hero-headline {
        font-size: 1.8rem;
    }

    .hero-headline-accent {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-scroll {
        display: none;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px 15px;
        gap: 15px;
    }

    .hero-stat-value {
        font-size: 1.4rem;
    }

    .hero-stat-label {
        font-size: 0.65rem;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-photo {
        order: -1;
    }

    .services-categories {
        grid-template-columns: 1fr;
    }

    .project {
        padding: 25px;
    }

    .project-teaser {
        grid-template-columns: 1fr;
    }

    .project-teaser-images {
        height: 200px;
    }

    .project-teaser-content {
        padding: 25px;
    }

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

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 280px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    transition: color 0.2s ease;
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--color-olive-green);
}

.lightbox-close {
    top: 10px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    font-size: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 10px;
    }

    .lightbox-close {
        font-size: 2.5rem;
    }
}
