/* ============================================
   BVR Design & Fabrication Inc. — Stylesheet
   ============================================ */

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

:root {
    --color-bg-dark: #111111;
    --color-bg-darker: #0a0a0a;
    --color-bg-card: #1a1a1a;
    --color-bg-light: #f0ede8;
    --color-text-white: #ffffff;
    --color-text-light: #cccccc;
    --color-text-muted: #999999;
    --color-text-dark: #1a1a1a;
    --color-accent: #c0392b;
    --color-accent-hover: #e74c3c;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --section-padding: 100px 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--color-text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-hover);
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section Titles --- */
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-rule {
    width: 100%;
    height: 3px;
    background: var(--color-accent);
    margin-bottom: 48px;
}

.section-rule-light {
    background: rgba(255,255,255,0.3);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 14px 36px;
    border: 2px solid var(--color-text-white);
    color: var(--color-text-white);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--color-text-white);
    color: var(--color-bg-dark);
}

.btn-primary {
    border-color: var(--color-accent);
    background: var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-text-white);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s ease;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: var(--color-text-white);
}

.nav-logo:hover {
    color: var(--color-text-white);
}

.nav-logo-icon {
    color: var(--color-text-white);
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-text-white);
}

.nav-cta {
    border: 1px solid var(--color-accent) !important;
    padding: 8px 20px !important;
    color: var(--color-text-white) !important;
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background: var(--color-accent) !important;
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-white);
    transition: all 0.3s ease;
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: var(--color-bg-darker);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-badge {
    margin-bottom: 80px;
}

.hero-logo {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInScale 1s ease 0.3s forwards;
    object-fit: contain;
    display: block;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-rule {
    width: 120px;
    height: 3px;
    background: var(--color-accent);
    margin: 0 auto 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.hero-motto {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
}

.hero-motto strong {
    color: var(--color-text-white);
}

.hero-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.4s forwards;
}

#hero .btn {
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.6s forwards;
}

.forest-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    pointer-events: none;
}

.forest-hero svg {
    width: 100%;
    height: 200px;
}

.forest-about {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.forest-about svg {
    width: 100%;
    height: 180px;
}

.forest-testimonials {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.forest-testimonials svg {
    width: 100%;
    height: 160px;
}

.forest-contact svg {
    width: 100%;
    height: 200px;
}

/* ============================================
   About / Why BVR Section
   ============================================ */
#about {
    position: relative;
    padding: var(--section-padding);
    background: var(--color-bg-dark);
    overflow: hidden;
}

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

.about-card {
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-card:hover {
    border-color: var(--color-accent);
    background: rgba(192, 57, 43, 0.05);
}

.about-card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: var(--color-text-white);
}

.about-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============================================
   Our Work Section
   ============================================ */
#work {
    padding: var(--section-padding);
    background: var(--color-bg-darker);
}

.work-header {
    margin-bottom: 12px;
}

.work-subtitle {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-light);
    margin-top: 8px;
}

.work-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.work-description p {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.work-description strong {
    color: var(--color-text-white);
}

.work-cta-text {
    font-style: italic;
    color: var(--color-text-muted) !important;
}

.work-services h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.services-list {
    list-style: none;
}

.services-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-light);
}

.services-list li:last-child {
    border-bottom: none;
}

.service-icon {
    color: var(--color-accent);
    font-size: 0.6rem;
}

/* Featured Projects */
.featured-projects {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.project-card {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    overflow: hidden;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    border-color: var(--color-accent);
    background: rgba(192, 57, 43, 0.03);
}

/* Full-width project cards with gallery */
.project-card-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.project-card-full:nth-child(even) {
    direction: rtl;
}

.project-card-full:nth-child(even) > * {
    direction: ltr;
}

/* Project Gallery */
.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
}

.project-gallery-main {
    flex: 1;
    overflow: hidden;
    border-radius: 2px;
}

.project-gallery-main img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.project-gallery-main img:hover {
    transform: scale(1.03);
}

.project-gallery-thumbs {
    display: flex;
    gap: 4px;
}

.project-gallery-thumbs img {
    flex: 1;
    height: 100px;
    object-fit: cover;
    border-radius: 2px;
    transition: transform 0.4s ease, opacity 0.3s ease;
    cursor: pointer;
    opacity: 0.85;
}

.project-gallery-thumbs img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Project Info */
.project-info {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.project-card h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 12px;
    margin-top: auto;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border: 2px solid rgba(255,255,255,0.1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

/* ============================================
   Clients Section
   ============================================ */
#clients {
    padding: var(--section-padding);
    background: var(--color-bg-dark);
}

.clients-intro {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 48px;
    text-align: center;
}

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

.client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-light);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s ease;
}

.client-item:hover {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.12);
    color: var(--color-text-white);
}

.client-item small {
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ============================================
   Testimonials Section
   ============================================ */
#testimonials {
    position: relative;
    padding: var(--section-padding);
    background: var(--color-bg-light);
    color: var(--color-text-dark);
    overflow: hidden;
}

#testimonials .section-title {
    color: var(--color-text-dark);
}

#testimonials .section-rule {
    background: var(--color-text-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.testimonial-card {
    padding: 40px;
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-stars {
    font-size: 1.2rem;
    color: #c0392b;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.testimonial-card blockquote {
    border: none;
    padding: 0;
    margin: 0;
}

.testimonial-card blockquote p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 16px;
}

.testimonial-card blockquote p:last-child {
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: 2px solid var(--color-accent);
    padding-top: 16px;
}

.testimonial-author strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-dark);
}

.testimonial-author span {
    font-size: 0.85rem;
    color: #666;
}

/* ============================================
   Contact Section
   ============================================ */
#contact {
    position: relative;
    padding: 100px 0 120px;
    background: var(--color-bg-darker);
    text-align: center;
    overflow: hidden;
}

.contact-headline {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.contact-subhead {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-text-light);
    margin-bottom: 48px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
    margin-bottom: 48px;
}

.contact-col h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.contact-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.contact-col p {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.contact-col a {
    color: var(--color-text-light);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 2px;
}

.contact-col a:hover {
    color: var(--color-text-white);
    border-color: var(--color-accent);
}

.contact-cta {
    margin-bottom: 60px;
}

.contact-logo {
    display: flex;
    justify-content: center;
}

.footer-logo {
    width: 120px;
    height: 120px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    object-fit: contain;
    display: block;
}

.footer-logo:hover {
    opacity: 1;
}

/* ============================================
   Footer
   ============================================ */
footer {
    padding: 24px 0;
    background: var(--color-bg-darker);
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

footer p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

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

    .nav-toggle {
        display: flex;
    }

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

    .work-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .featured-projects {
        gap: 32px;
    }

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

    .project-card-full:nth-child(even) {
        direction: ltr;
    }

    .project-gallery-main img {
        height: 220px;
    }

    .project-gallery-thumbs img {
        height: 80px;
    }

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

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

    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-logo {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 600px) {
    :root {
        --section-padding: 64px 0;
    }

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

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

    .about-card {
        padding: 24px;
    }

    .project-card {
        padding: 24px;
    }

    .testimonial-card {
        padding: 24px;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
    }

    .nav-inner {
        height: 60px;
    }

    .nav-links {
        top: 60px;
    }
}
