/* ========================================
   Big Town Contracting & Fab LLC
   ======================================== */

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

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #e67e22;
    --accent-dark: #cf6d17;
    --accent-light: #f39c12;
    --text: #333;
    --text-light: #666;
    --text-white: #fff;
    --bg: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #0f0f1a;
    --border: #e0e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 8px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

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

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

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

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 16px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 42px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all var(--transition);
    padding: 20px 0;
}

.navbar.scrolled {
    background: var(--primary);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.nav-logo-img {
    height: 55px;
    width: auto;
    filter: invert(1) brightness(2);
    mix-blend-mode: lighten;
    transition: height var(--transition);
}

.navbar.scrolled .nav-logo-img {
    height: 45px;
}

.logo-big {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.logo-sub {
    font-family: 'Oswald', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

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

.nav-menu a {
    color: var(--text-white);
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

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

.nav-cta {
    background: var(--accent) !important;
    color: var(--text-white) !important;
    padding: 10px 24px !important;
}

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

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

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--primary);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(230, 126, 34, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(22, 33, 62, 0.8) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect fill="none" width="60" height="60"/><path d="M0 30h60M30 0v60" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 6px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero h1 span {
    display: block;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 8px;
    color: var(--accent);
    margin-top: 8px;
}

.hero-tagline {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    color: rgba(255,255,255,0.5);
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* --- About --- */
.about {
    background: var(--bg);
}

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

.about-lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.stat-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 500;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--accent);
    border-radius: var(--radius);
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* --- Services --- */
.services {
    background: var(--bg-light);
}

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

.service-card {
    background: var(--bg);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--accent);
}

.service-icon {
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Gallery --- */
.gallery {
    background: var(--bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
}

.gallery-item-tall {
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(26, 26, 46, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--text-white);
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: 100px 0;
    background: var(--primary);
    background-image:
        radial-gradient(ellipse at 50% 50%, rgba(230, 126, 34, 0.1) 0%, transparent 70%);
    text-align: center;
    overflow: hidden;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255,255,255,0.7);
    font-size: 1.15rem;
    margin-bottom: 32px;
}

/* --- Contact --- */
.contact {
    background: var(--bg-light);
}

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

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 2px;
}

.contact-item a,
.contact-item span {
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.social-links {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--text-white) !important;
    border-radius: var(--radius);
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--accent);
    color: var(--text-white) !important;
    transform: translateY(-2px);
}

/* --- Contact Form --- */
.contact-form-wrap {
    background: var(--bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--transition);
    -webkit-appearance: none;
}

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

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

.form-group select {
    cursor: pointer;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path d="M6 8L1 3h10z" fill="%23666"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* --- Footer --- */
.footer {
    background: var(--bg-dark);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo-img {
    height: 60px;
    width: auto;
    filter: invert(1) brightness(2);
    mix-blend-mode: lighten;
    opacity: 0.9;
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-contact p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(255,255,255,0.6);
}

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero h1 span {
        font-size: 1.4rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image {
        order: -1;
    }
    .about-image::after {
        display: none;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 240px;
    }
    .gallery-item-tall {
        grid-row: span 1;
    }
    .gallery-item-wide {
        grid-column: span 1;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 4px;
        transition: right var(--transition);
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-menu a {
        display: block;
        padding: 12px 16px;
        font-size: 1.1rem;
    }
    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
    .hero h1 span {
        font-size: 1.1rem;
        letter-spacing: 4px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
    }
    .cta-section h2 {
        font-size: 1.8rem;
    }
    .contact-form-wrap {
        padding: 30px 24px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero h1 span {
        font-size: 0.9rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}
