/* ============================================================
   C3 Electrical Contracting - Public Site Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700;900&display=swap');

:root {
    --primary: #2d2462;
    --primary-hover: #1a1437;
    --accent: #2d2462;
    --accent-light: #d29bdc;
    --dark: #000000;
    --light: #f5f5f5;
    --text: #333;
    --text-light: #666;
    --gold: #f0c040;
    --testimonials-bg: #202f63;
}

* { box-sizing: border-box; }

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    margin: 0;
}

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    position: relative;
}

.site-nav__menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__link {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
    text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link.active {
    color: #d29bdc;
}

.site-nav__link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #d29bdc;
}

.site-nav__toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 4px;
    position: absolute;
    right: 20px;
}

.site-nav__toggle-bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: background 0.15s;
}

.btn-accent:hover {
    background: var(--primary-hover);
    color: #fff;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: url('../images/c3-final-a3new.jpg') center top / cover no-repeat;
    background-color: #f5f5f5;
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    display: none;
}

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

.hero-title {
    font-family: 'Roboto', 'Arial Black', 'Impact', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff,
        2px 2px 0 #fff, 0 0 8px rgba(255, 255, 255, 0.8);
    -webkit-text-stroke: 2px white;
    paint-order: stroke fill;
}

.hero-subtitle {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 400;
    color: #000;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff,
        1px 1px 0 #fff, 0 0 4px rgba(255, 255, 255, 0.8);
    -webkit-text-stroke: 1px white;
    paint-order: stroke fill;
}

.hero-phone {
    display: inline-block;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    text-shadow: -1.5px -1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px 1.5px 0 #fff,
        1.5px 1.5px 0 #fff, 0 0 6px rgba(255, 255, 255, 0.8);
    -webkit-text-stroke: 1.5px white;
    paint-order: stroke fill;
}

.hero-phone:hover {
    color: #2d2462;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* ============================================================
   Section Common
   ============================================================ */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--light);
}

.section-title {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 12px;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: 16px;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    font-size: 14px;
    color: var(--text);
}

.testimonial-author span {
    font-size: 13px;
    color: var(--text-light);
}

/* Testimonial Carousel */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
    min-height: 250px;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 0 12px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide .testimonial-card {
    max-width: 600px;
    width: 100%;
}

.carousel-arrow {
    position: absolute;
    top: calc(50% - 20px);
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
    z-index: 2;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-arrow--left {
    left: 0;
}

.carousel-arrow--right {
    right: 0;
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.carousel-dot.active {
    background: #fff;
}

.carousel-arrow.hidden,
.carousel-dots.hidden {
    display: none;
}

/* ============================================================
   About
   ============================================================ */
.about-section .container {
    max-width: 900px;
}

.about-section .row {
    --bs-gutter-x: 30px;
}

.about-image {
    width: 100%;
    max-width: 200px;
    display: block;
    margin: 0 auto;
    /* border: 3px solid #000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); */
    border-radius: 12px;
}

.angi-awards {
    display: flex;
    gap: 30px;
    margin-top: 0px;
    flex-wrap: wrap;
    justify-content: center;
}

.angi-awards img {
    width: 85px;
    height: auto;
    object-fit: contain;
    padding: 10px;
    background-color: #fff;
        border-radius: 12px;
}

.about-content {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.service-areas h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-areas p {
    color: var(--text-light);
    font-size: 14px;
}

/* ============================================================
   Services
   ============================================================ */
.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    height: 100%;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px;
}

.service-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-desc {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* ============================================================
   Projects Gallery - Horizontal Carousel
   ============================================================ */
.gallery-wrapper {
    position: relative;
    padding: 0 40px;
}

.gallery-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    height: 600px;
    border: 4px solid #000;
    scrollbar-width: none;
}

.gallery-container::-webkit-scrollbar {
    display: none;
}

.gallery__column {
    flex-shrink: 0;
    height: 600px;
    display: flex;
    flex-direction: column;
    border-right: 4px solid #000;
    scroll-snap-align: start;
    overflow: hidden;
}

.gallery__column:last-child {
    border-right: none;
}

.gallery__column--paired {
    width: 400px;
}

.gallery__column--single {
    width: 300px;
}

.gallery__column--enlarged {
    width: 600px;
}

.gallery__item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery__item:hover {
    z-index: 10;
}

.gallery__item:hover img {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.gallery__item--landscape {
    height: 298px;
}

.gallery__item--landscape + .gallery__item--landscape {
    border-top: 4px solid #000;
}

.gallery__item--portrait {
    height: 600px;
}

.gallery__item--enlarged {
    height: 600px;
}

/* Gallery Nav Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(45, 36, 98, 0.8);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, opacity 0.3s;
}

.gallery-nav:hover {
    background: rgba(45, 36, 98, 1);
}

.gallery-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.gallery-nav--left {
    left: 0;
}

.gallery-nav--right {
    right: 0;
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox__image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s, color 0.3s;
    z-index: 10000;
}

.lightbox__close:hover {
    transform: rotate(90deg);
    color: red;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox__nav--left {
    left: 20px;
}

.lightbox__nav--right {
    right: 20px;
}

.lightbox__caption {
    color: #fff;
    text-align: center;
    margin-top: 16px;
    max-width: 80%;
    padding: 0 20px;
}

.lightbox__caption-title {
    font-weight: 700;
    font-size: 18px;
}

.lightbox__caption-text {
    font-weight: 400;
    font-size: 14px;
    margin-top: 4px;
    opacity: 0.8;
}

/* ============================================================
   Contact Section
   ============================================================ */
.contact-section {
    background: var(--light);
}

.contact-form .form-label {
    font-weight: 600;
    font-size: 14px;
}

.contact-form .form-control {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(45, 36, 98, 0.15);
}

.contact-info-card {
    background: var(--primary);
    color: #fff;
    padding: 32px;
    border-radius: 12px;
}

.contact-info-card h5 {
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
}

.contact-info-item i {
    color: var(--accent-light);
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.contact-info-item a {
    color: #fff;
    text-decoration: none;
}

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

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 48px 0 24px;
    border-radius: 10px;
}

.site-footer h6 {
    color: #fff;
    font-weight: 700;
}

.footer-logo {
    max-height: 130px;
    width: auto;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    color: #cccccc;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

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

.footer-areas {
    font-size: 13px;
    line-height: 1.8;
}

.site-footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 32px 0 16px;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
}

/* ============================================================
   Testimonials Section Override (dark navy bg like live site)
   ============================================================ */
.testimonials-section {
    background: var(--testimonials-bg);
    color: #fff;
}

.testimonials-section .section-title {
    color: #fff;
}

.testimonials-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 767.98px) {
    .testimonial-carousel {
        padding: 0 40px;
    }

    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
        background: var(--primary);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .site-nav__container {
        flex-wrap: wrap;
    }

    .site-nav__toggle {
        display: flex;
    }

    .site-nav__menu {
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .site-nav__menu.active {
        max-height: 500px;
        padding: 1rem 0;
    }

    .site-nav__item {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    .hero-section {
        min-height: 100px;
        aspect-ratio: 16 / 10;
        margin-top: 60px;
        padding-top: 0;
    }

    .hero-content {
        padding: 1rem 15px 0;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -0.3px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        letter-spacing: 0.25px;
        font-weight: 900;
    }

    .hero-phone {
        font-size: 2.2rem;
        font-weight: 900;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .gallery-wrapper {
        padding: 0 30px;
    }

    .gallery-container {
        height: 400px;
    }

    .gallery__column {
        height: 400px;
    }

    .gallery__column--paired {
        width: 280px;
    }

    .gallery__column--single {
        width: 220px;
    }

    .gallery__column--enlarged {
        width: 400px;
    }

    .gallery__item--landscape {
        height: 198px;
    }

    .gallery__item--portrait {
        height: 400px;
    }

    .gallery__item--enlarged {
        height: 400px;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .lightbox__nav {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .lightbox__close {
        font-size: 2rem;
        top: 10px;
        right: 10px;
    }
}
