/* ========================================
   Brian K Hall Electric — Custom Styles
   ======================================== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #102a43;
    background: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.35s ease;
    background: transparent;
    padding: 0;
}

nav.nav-scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

.nav-logo-icon svg {
    transition: transform 0.3s ease;
}

.group:hover .nav-logo-icon svg {
    transform: scale(1.1) rotate(-5deg);
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nav-logo-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.35s ease;
}

.nav-logo-sub {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #d99220;
}

nav.nav-scrolled .nav-logo-name {
    color: #102a43;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.25s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d99220;
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: #d99220;
}

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

nav.nav-scrolled .nav-link {
    color: #334e68;
}

nav.nav-scrolled .nav-link:hover {
    color: #d99220;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #d99220;
    color: #102a43;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid #d99220;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
}

.btn-primary:hover {
    background: #c77a14;
    border-color: #c77a14;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 146, 32, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    border-color: #d99220;
    color: #d99220;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #102a43;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid #102a43;
}

.btn-outline:hover {
    background: #102a43;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(16, 42, 67, 0.88) 0%,
        rgba(36, 59, 83, 0.82) 50%,
        rgba(16, 42, 67, 0.75) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(217, 146, 32, 0.15);
    border: 1px solid rgba(217, 146, 32, 0.4);
    color: #f2d89a;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-highlight {
    color: #d99220;
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-trust {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Section Shared --- */
.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #d99220;
    margin-bottom: 0.75rem;
}

.section-label-light {
    color: #f2d89a;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #102a43;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-title-light {
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #627d98;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle-light {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Services Section --- */
.services-section {
    background: #f8fafc;
}

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

.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(16, 42, 67, 0.06);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(16, 42, 67, 0.1);
    border-color: rgba(217, 146, 32, 0.2);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #102a43;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #d99220, #c77a14);
    color: #ffffff;
}

.service-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #102a43;
    margin-bottom: 0.75rem;
}

.service-desc {
    font-size: 0.95rem;
    color: #627d98;
    line-height: 1.7;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(16, 42, 67, 0.15);
}

.about-image-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.about-image-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(16, 42, 67, 0.2);
    border: 4px solid #ffffff;
}

.about-image-accent img {
    width: 250px;
    height: 180px;
    object-fit: cover;
    display: block;
}

.about-experience-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: linear-gradient(135deg, #d99220, #c77a14);
    color: #102a43;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(217, 146, 32, 0.4);
}

.experience-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.experience-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.about-content .section-title {
    text-align: left;
}

.about-text {
    font-size: 1.05rem;
    color: #486581;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #334e68;
}

/* --- Why Us Section --- */
.why-section {
    background: linear-gradient(135deg, #102a43 0%, #243b53 100%);
    position: relative;
    overflow: hidden;
}

.why-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(217, 146, 32, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(217, 146, 32, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.why-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(217, 146, 32, 0.3);
    transform: translateY(-4px);
}

.why-card-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(217, 146, 32, 0.25);
    line-height: 1;
    margin-bottom: 1rem;
}

.why-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.why-card-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

/* --- Gallery Section --- */
.gallery-section {
    background: #f8fafc;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/2;
    cursor: pointer;
}

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

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 42, 67, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-item-overlay span {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

/* --- CTA / Testimonial Section --- */
.cta-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
}

.cta-icon {
    margin-bottom: 1.5rem;
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: #102a43;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-style: italic;
}

.cta-author {
    font-size: 1rem;
    color: #627d98;
    font-weight: 500;
    margin-bottom: 2rem;
}

.cta-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d99220, #f2d89a);
    margin: 2rem auto;
    border-radius: 2px;
}

.cta-secondary-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #102a43;
    margin-bottom: 1rem;
}

.cta-secondary-text {
    font-size: 1.1rem;
    color: #627d98;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Contact Section --- */
.contact-section {
    background: #ffffff;
}

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

.contact-text {
    font-size: 1.05rem;
    color: #627d98;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-detail-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9fb3c8;
    margin-bottom: 0.25rem;
}

.contact-detail-value {
    display: block;
    font-size: 1rem;
    color: #334e68;
    font-weight: 500;
}

.hover-gold:hover {
    color: #d99220 !important;
}

.contact-hours {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem 2rem;
}

.contact-hours-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #102a43;
    margin-bottom: 1rem;
}

.contact-hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #627d98;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(16, 42, 67, 0.06);
}

.contact-hours-row:last-child {
    border-bottom: none;
}

.contact-hours-row span:last-child {
    font-weight: 500;
    color: #334e68;
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(16, 42, 67, 0.08);
    border: 1px solid rgba(16, 42, 67, 0.06);
}

.form-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #102a43;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334e68;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid #d9e2ec;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', system-ui, sans-serif;
    color: #102a43;
    background: #f8fafc;
    transition: all 0.25s ease;
    outline: none;
}

.form-input:focus {
    border-color: #d99220;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(217, 146, 32, 0.1);
}

.form-input::placeholder {
    color: #9fb3c8;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23627d98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

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

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
    text-align: center;
    color: #16a34a;
}

.form-success p {
    font-size: 1rem;
    color: #334e68;
}

.hidden {
    display: none !important;
}

/* --- Footer --- */
.footer {
    background: #102a43;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-link {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-link:hover {
    color: #d99220;
}

.footer-contact-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    margin-bottom: 0.25rem;
}

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

/* --- Mobile Menu --- */
.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #ffffff;
    transition: color 0.35s ease;
}

nav.nav-scrolled .mobile-menu-btn {
    color: #102a43;
}

.mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(16, 42, 67, 0.06);
    box-shadow: 0 10px 30px rgba(16, 42, 67, 0.08);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: #334e68;
    text-decoration: none;
    border-bottom: 1px solid rgba(16, 42, 67, 0.06);
    transition: color 0.25s ease;
}

.mobile-nav-link:hover {
    color: #d99220;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

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

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

    .about-image-accent {
        right: 10px;
        bottom: -20px;
    }

    .about-image-accent img {
        width: 180px;
        height: 130px;
    }

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

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

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
