/* BENUM Construction - Navy & Gold theme */
:root {
    --navy-primary: #0A1E42;
    --navy-dark: #050F21;
    --navy-light: #1A3A6B;
    --gold-primary: #D4A254;
    --gold-light: #E8C481;
    --gold-dark: #B8863D;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-600: #525252;
    --gray-700: #404040;
    --font-body: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --container: 1200px;
    --radius: 6px;
    --radius-lg: 12px;
    --shadow: 0 4px 20px rgba(10, 30, 66, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--navy-primary);
    background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-primary); text-decoration: none; }
a:hover { color: var(--gold-dark); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.logo { display: flex; align-items: center; font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; color: var(--navy-primary); }
.logo img { height: 112px; width: auto; display: block; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy-primary); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.main-nav a { padding: 0.5rem 0.75rem; font-weight: 500; color: var(--navy-primary); border-radius: var(--radius); }
.main-nav a:hover { background: var(--gray-100); color: var(--gold-primary); }

/* Hero */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-primary);
    color: var(--white);
    text-align: center;
    padding: 4rem 1.5rem;
    overflow: hidden;
}
.hero-blueprint {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    animation: blueprint-fade-in 1.8s ease-out 0.3s forwards;
    background-image:
        linear-gradient(rgba(100, 180, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 180, 255, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(100, 180, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 180, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px, 20px 20px, 20px 20px;
    background-position: 0 0, 0 0, 0 0, 0 0;
}
@keyframes blueprint-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(5, 15, 33, 0.5); }
.hero-content { position: relative; z-index: 2; }
.hero-parallel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
    text-align: left;
}
.hero-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-reel {
    position: relative;
    height: 100%;
    min-height: 280px;
}
.hero-reel-frame {
    position: relative;
    height: 100%;
    min-height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 0 3px rgba(212, 175, 55, 0.25),
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}
.hero-reel-frame::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: calc(var(--radius-lg) - 2px);
    pointer-events: none;
    z-index: 1;
}
.hero-reel-caption {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0.5rem 1rem;
    font-family: 'Playfair Display', var(--font-heading), serif;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.hero-reel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
}
.hero-reel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    z-index: 0;
}
.hero-reel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}
.hero-title { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; margin: 0 0 1rem; line-height: 1.2; }
.hero-subtitle { font-size: 1.15rem; margin: 0 0 0.5rem; opacity: 0.95; }
.hero-description { margin: 0 0 1.5rem; opacity: 0.9; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-start; }
@media (max-width: 900px) {
    .hero-parallel {
        grid-template-columns: 1fr;
        align-items: center;
        text-align: center;
    }
    .hero-reel {
        min-height: 240px;
        max-width: 520px;
        margin: 0 auto;
    }
    .hero-reel-frame { min-height: 240px; }
    .hero-reel-slides { min-height: 240px; }
    .hero-reel-slide { object-fit: cover; }
    .hero-buttons { justify-content: center; }
}
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--gold-primary); color: var(--navy-primary); border: none; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-secondary:hover { border-color: var(--gold-primary); color: var(--gold-light); }
.scroll-indicator { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); font-size: 1.5rem; opacity: 0.8; animation: bounce 2s infinite; z-index: 2; }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* Stats banner */
.stats-banner { background: var(--navy-primary); color: var(--white); padding: 2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; text-align: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.stat-item i { font-size: 1.75rem; color: var(--gold-primary); }
.stat-content h3 { margin: 0; font-size: 1.25rem; }
.stat-content p { margin: 0; font-size: 0.9rem; opacity: 0.9; }

/* Section common */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-title { font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 2.25rem); margin: 0 0 0.5rem; color: var(--navy-primary); }
.section-subtitle { margin: 0; color: var(--gray-600); font-size: 1.05rem; }
.section-cta { margin: 0.75rem 0 0; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* Why choose */
.why-choose { padding: 4rem 0; background: var(--gray-100); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon { font-size: 2rem; color: var(--gold-primary); margin-bottom: 1rem; }
.feature-card h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.feature-card p { margin: 0; color: var(--gray-700); font-size: 0.95rem; }

/* About */
.about-section { padding: 4rem 0; }
.about-content p { max-width: 720px; margin: 0 auto 1rem; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.value-item { text-align: center; padding: 1.25rem; }
.value-item i { font-size: 1.5rem; color: var(--gold-primary); margin-bottom: 0.5rem; }
.value-item h4 { margin: 0 0 0.25rem; font-size: 1rem; }
.value-item p { margin: 0; font-size: 0.9rem; color: var(--gray-600); }

/* Services */
.services-section { padding: 4rem 0; background: var(--gray-100); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.service-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-4px); }
.service-card i { font-size: 1.75rem; color: var(--gold-primary); margin-bottom: 0.75rem; }
.service-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.service-card p { margin: 0; font-size: 0.95rem; color: var(--gray-700); }

/* Portfolio */
.portfolio-section { padding: 4rem 0; }
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.filter-btn { padding: 0.5rem 1rem; border: 1px solid var(--gray-200); background: var(--white); border-radius: var(--radius); cursor: pointer; font-size: 0.9rem; }
.filter-btn:hover, .filter-btn.active { background: var(--gold-primary); color: var(--navy-primary); border-color: var(--gold-primary); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.portfolio-item { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.portfolio-image { aspect-ratio: 4/3; background: var(--gray-100); }
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-image.placeholder { background: var(--navy-light); }
.portfolio-info { padding: 1rem; }
.portfolio-info h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.portfolio-info p { margin: 0; font-size: 0.9rem; color: var(--gray-600); }

/* Testimonials */
.testimonials-section { padding: 4rem 0; background: var(--gray-100); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.testimonial-card { background: var(--white); padding: 1.75rem; border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--gold-primary); }
.testimonial-card .quote { margin: 0 0 0.75rem; font-style: italic; color: var(--gray-700); }
.testimonial-card cite { font-size: 0.9rem; color: var(--gray-600); }

/* FAQ */
.faq-section { padding: 4rem 0; }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { background: var(--white); margin-bottom: 0.5rem; border-radius: var(--radius); border: 1px solid var(--gray-200); overflow: hidden; }
.faq-item summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0; padding: 0 1.25rem 1rem; color: var(--gray-700); font-size: 0.95rem; }

/* Contact */
.contact-section { padding: 4rem 0; background: var(--gray-100); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 900px; margin: 0 auto; }
.contact-info p { margin: 0.5rem 0; }
.contact-info a { color: var(--navy-primary); }
.contact-info a:hover { color: var(--gold-primary); }
.contact-form label { display: block; margin: 0.5rem 0 0.25rem; font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
}
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form .btn { margin-top: 1rem; }
.form-row { margin-bottom: 1rem; }
.hours { margin-top: 1rem !important; font-size: 0.9rem; }

/* Footer */
.site-footer { background: var(--navy-primary); color: var(--white); padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-logo { height: 103px; width: auto; margin-bottom: 0.5rem; }
.tagline { margin: 0 0 1rem; font-size: 0.95rem; opacity: 0.9; }
.footer-contact h3, .footer-services h3, .footer-areas h3 { font-size: 1rem; margin: 0 0 0.5rem; color: var(--gold-light); }
.footer-contact p, .footer-services p, .footer-areas p { margin: 0.25rem 0; font-size: 0.9rem; opacity: 0.9; }
.footer-contact a, .footer-services a, .footer-areas a { color: var(--white); }
.footer-contact a:hover, .footer-services a:hover, .footer-areas a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.5rem; text-align: center; }
.footer-bottom .owned { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--gold-light); }
.footer-bottom .copy { margin: 0; font-size: 0.85rem; opacity: 0.8; }

/* Chatbot */
.chatbot-widget { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; }
.chatbot-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold-primary);
    color: var(--navy-primary);
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}
.chatbot-toggle-avatar {
    width: 56px;
    height: 56px;
    object-fit: cover;
    display: block;
}
.chatbot-toggle-icon { display: none; align-items: center; justify-content: center; font-size: 1.4rem; }
.chatbot-toggle:hover { background: var(--gold-light); }
.chatbot-toggle:hover .chatbot-toggle-avatar { opacity: 0.95; }
.chatbot-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 2rem);
    height: 480px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}
.chatbot-panel.open { display: flex; }
.chatbot-header {
    background: var(--navy-primary);
    color: var(--white);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.chatbot-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.chatbot-header h3 { margin: 0; font-size: 1rem; flex: 1; }
.chatbot-close { background: none; border: none; color: var(--white); cursor: pointer; font-size: 1.25rem; padding: 0.25rem; }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.chat-msg { max-width: 85%; padding: 0.6rem 0.9rem; border-radius: 8px; font-size: 0.9rem; }
.chat-msg.bot { background: var(--gray-100); color: var(--navy-primary); align-self: flex-start; }
.chat-msg.user { background: var(--navy-primary); color: var(--white); align-self: flex-end; }
.chatbot-quick { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1rem; margin-bottom: 0.5rem; }
.chatbot-quick button { padding: 0.4rem 0.75rem; font-size: 0.8rem; border: 1px solid var(--gray-200); background: var(--white); border-radius: 4px; cursor: pointer; }
.chatbot-quick button:hover { background: var(--gold-primary); color: var(--navy-primary); border-color: var(--gold-primary); }
.chatbot-input-area { padding: 0.75rem; border-top: 1px solid var(--gray-200); display: flex; gap: 0.5rem; }
.chatbot-input-area input { flex: 1; padding: 0.6rem; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.chatbot-input-area button { padding: 0.6rem 1rem; background: var(--gold-primary); color: var(--navy-primary); border: none; border-radius: var(--radius); cursor: pointer; }

/* Form feedback */
.form-success { background: #dcfce7; color: #166534; padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.form-errors { background: #fee2e2; color: #b91c1c; padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.form-errors ul { margin: 0; padding-left: 1.25rem; }
.form-errors li { margin: 0.25rem 0; }

/* Portfolio page */
.portfolio-page { padding-bottom: 3rem; }
.portfolio-hero {
    background: var(--navy-primary);
    color: var(--white);
    padding: 3rem 1.5rem;
    text-align: center;
}
.portfolio-page-title { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.5rem); margin: 0 0 0.5rem; }
.portfolio-page-subtitle { margin: 0; opacity: 0.9; font-size: 1.1rem; }
.portfolio-writeup { padding: 2.5rem 0; background: var(--gray-100); }
.writeup-content { max-width: 720px; margin: 0 auto; }
.writeup-content p { margin: 0 0 1rem; color: var(--gray-700); line-height: 1.7; }
.writeup-content .writeup-lead { font-size: 1.1rem; color: var(--navy-primary); }
.portfolio-gallery-section { padding: 2.5rem 0; }
.portfolio-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.portfolio-gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
}
.portfolio-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.portfolio-gallery-item:hover img { transform: scale(1.05); }
.portfolio-cta {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--gray-100);
}
.portfolio-cta-text { margin: 0 0 1rem; font-size: 1.1rem; color: var(--navy-primary); }
.portfolio-cta .btn { margin: 0; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 30, 66, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox img { max-height: 90vh; max-width: 100%; object-fit: contain; }
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: var(--white);
    color: var(--navy-primary);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav { display: none; }
    .main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 1rem; border-bottom: 1px solid var(--gray-200); }
    .main-nav.open ul { flex-direction: column; }
    .contact-grid { grid-template-columns: 1fr; }
    .portfolio-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
