/* ============================================
   Gulf Bay Electric Service LLC - Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary-teal: #219EB3;
    --primary-teal-dark: #1a7a8c;
    --primary-teal-light: #3ab0c4;
    --dark-grey: #333333;
    --light-accent-blue: #8ECEDA;
    --white: #FFFFFF;
    --off-white: #f5f5f5;
    --grey-light: #e0e0e0;
    --text-color: #333333;
    --text-light: #666666;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-teal);
    color: var(--white);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-weight: 600;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--dark-grey);
    outline-offset: 2px;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal), var(--primary-teal-light));
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-grey);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-teal);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: background var(--transition-medium), box-shadow var(--transition-medium);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

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

.logo-link {
    display: block;
    z-index: 1001;
}

.logo {
    height: 60px;
    width: auto;
}

.mobile-logo {
    display: none;
}

/* Navigation */
.nav {
    display: flex;
}

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

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-grey);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-teal);
    transition: width var(--transition-medium), left var(--transition-medium);
}

.nav-link:hover {
    color: var(--primary-teal);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--dark-grey);
    transition: transform var(--transition-medium), opacity var(--transition-medium);
    border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('assets/images/assets_hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 20px 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-value-statement {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Primary CTA Button */
.primary-cta {
    display: inline-block;
    background: var(--primary-teal);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.primary-cta:hover {
    background: var(--white);
    color: var(--primary-teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.primary-cta:active {
    transform: translateY(0);
}

.hero-trust-element {
    margin-top: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--light-accent-blue);
}

/* ============================================
   Services Section
   ============================================ */
.services-section {
    padding: 100px 0;
    background: var(--off-white);
}

.services-section h2 {
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-teal);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 60px;
}

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

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 15px;
    color: var(--dark-grey);
}

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

/* ============================================
   About Section
   ============================================ */
.about-section {
    position: relative;
    padding: 120px 0;
    background-image: url('assets/images/assets_electrician-working-detail.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.9) 0%, rgba(51, 51, 51, 0.85) 100%);
    z-index: 1;
}

.about-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: var(--white);
}

.about-content h2 {
    color: var(--white);
    margin-bottom: 10px;
}

.about-content h3 {
    color: var(--light-accent-blue);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
}

.about-content .primary-cta {
    background: var(--primary-teal);
    color: var(--white);
}

.about-content .primary-cta:hover {
    background: var(--white);
    color: var(--primary-teal);
}

/* ============================================
   Process Section
   ============================================ */
.process-section {
    padding: 100px 0;
    background: var(--white);
}

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

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

.process-step {
    text-align: center;
    padding: 30px 20px;
}

.process-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--light-accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.process-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--dark-grey);
}

.process-step:hover .process-icon {
    background: var(--primary-teal);
    transform: scale(1.05);
}

.process-step:hover .process-icon svg {
    stroke: var(--white);
}

.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark-grey);
}

.process-step p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    padding: 100px 0;
    background: var(--off-white);
}

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

.testimonials-carousel {
    display: flex;
    gap: 30px;
    overflow: hidden;
    padding: 20px 0;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-medium), transform var(--transition-medium);
    text-align: center;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}

.testimonial-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--light-accent-blue);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card blockquote {
    margin-bottom: 20px;
}

.testimonial-card blockquote p {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 0;
}

.testimonial-card cite {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-teal);
    font-style: normal;
}

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

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--grey-light);
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.carousel-dot.active {
    background: var(--primary-teal);
}

/* ============================================
   Blog Section
   ============================================ */
.blog-section {
    padding: 100px 0;
    background: var(--white);
}

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

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

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark-grey);
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-teal);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap var(--transition-fast), color var(--transition-fast);
}

.read-more:hover {
    color: var(--primary-teal-dark);
    gap: 10px;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 100px 0;
    background: var(--off-white);
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--grey-light);
    border-radius: 8px;
    background: var(--white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(33, 158, 179, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.6;
}

.submit-btn {
    width: 100%;
    background: var(--primary-teal);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.submit-btn:hover {
    background: var(--primary-teal-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    padding: 100px 0;
    background: var(--white);
}

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

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

.faq-item {
    padding: 30px;
    background: var(--off-white);
    border-radius: 12px;
    border-left: 4px solid var(--primary-teal);
    transition: background var(--transition-fast);
}

.faq-item:hover {
    background: var(--grey-light);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark-grey);
}

.faq-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--dark-grey);
    color: var(--white);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand .footer-logo {
    width: 150px;
    height: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.footer-contact p,
.footer-hours p,
.footer-links li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

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

/* ============================================
   Responsive Styles
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .hero-value-statement {
        font-size: 1.4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-card:last-child {
        grid-column: span 2;
    }
    
    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .mobile-logo {
        display: block;
        height: 45px;
    }
    
    .desktop-logo {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        padding: 100px 30px 30px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-medium);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--grey-light);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-value-statement {
        font-size: 1.1rem;
    }
    
    .primary-cta {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .services-section,
    .process-section,
    .testimonials-section,
    .blog-section,
    .contact-section,
    .faq-section {
        padding: 70px 0;
    }
    
    .services-grid,
    .process-grid,
    .blog-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-carousel {
        flex-direction: column;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
    }
    
    .blog-card:last-child {
        grid-column: span 1;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand .footer-logo {
        margin: 0 auto 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .hero h1 {
        font-size: 1. }
    
    .hero-value-statement75rem;
    {
        font-size: 1rem;
    }
    
    .hero-trust-element {
        font-size: 0.95rem;
    }
    
    .service-image,
    .blog-image {
        height: 180px;
    }
    
    .testimonial-card {
        padding: 25px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-progress-bar {
        display: none;
    }
}

/* Focus States */
*:focus-visible {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}
