/* ============================================
   Greiner Electric, LLC - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary-blue: #1E3A5F;
    --accent-yellow: #FFB800;
    --white: #FFFFFF;
    --dark-gray: #333333;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --text-muted: #666666;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

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

ul {
    list-style: none;
}

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

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

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

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-blue), #2a4a7a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon::before {
    content: '⚡';
    font-size: 24px;
    color: var(--accent-yellow);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo-text span {
    color: var(--accent-yellow);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--dark-gray);
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-yellow);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-blue);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(rgba(30, 58, 95, 0.85), rgba(30, 58, 95, 0.9)),
                url('../assets/electrical-engineer-testing-circuits-with-multimeter-scaled.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    color: var(--white);
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent-yellow);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--dark-gray);
}

.btn-primary:hover {
    background-color: #e5a600;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

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

.section-light {
    background-color: var(--light-gray);
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Services Grid
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-content {
    padding: 25px;
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   Features / Why Choose Us
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-yellow), #e5a600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.feature-item h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   Lead Form / Contact Form
   ============================================ */
.form-section {
    background: linear-gradient(135deg, var(--primary-blue), #2a4a7a);
    color: var(--white);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

.form-container h2 {
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-gray);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

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

.form-container .btn {
    width: 100%;
}

/* ============================================
   About Page Styles
   ============================================ */
.about-hero {
    background: linear-gradient(rgba(30, 58, 95, 0.85), rgba(30, 58, 95, 0.9)),
                url('../assets/16.jpg') center/cover no-repeat;
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    color: var(--white);
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.value-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.value-card h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

/* ============================================
   Contact Page Styles
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    padding: 30px;
}

.contact-info h2 {
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h3 {
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-muted);
}

.contact-item a {
    color: var(--primary-blue);
}

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

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.business-hours {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-top: 30px;
}

.business-hours h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.business-hours ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.business-hours li {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
}

/* ============================================
   Services Page Styles
   ============================================ */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--medium-gray);
}

.service-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-detail:nth-child(even) {
    direction: rtl;
}

.service-detail:nth-child(even) > * {
    direction: ltr;
}

.service-detail img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.service-detail-content h3 {
    color: var(--primary-blue);
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.service-detail-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-detail-content ul {
    margin-bottom: 20px;
}

.service-detail-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.service-detail-content li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    color: var(--accent-yellow);
}

/* ============================================
   Policy Pages Styles
   ============================================ */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.policy-content h1 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.policy-content h2 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.policy-content p {
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.policy-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.policy-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-yellow);
    font-weight: bold;
}

.last-updated {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 30px;
    text-align: center;
}

/* ============================================
   Thank You Page
   ============================================ */
.thank-you {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
}

.thank-you-content {
    max-width: 600px;
}

.thank-you-icon {
    width: 100px;
    height: 100px;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 3rem;
}

.thank-you h1 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.thank-you p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--accent-yellow);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-section a {
    display: block;
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.8;
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h3 {
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.cookie-banner-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cookie-banner-text a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-banner .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Cookie Settings Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
}

.cookie-modal-content h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.cookie-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--medium-gray);
}

.cookie-category:last-of-type {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category h3 {
    color: var(--dark-gray);
    font-size: 1rem;
}

.cookie-category p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--medium-gray);
    transition: var(--transition);
    border-radius: 26px;
}

.toggle-slider::before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    transition: var(--transition);
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent-yellow);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cookie-modal-buttons .btn {
    flex: 1;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail {
        grid-template-columns: 1fr;
    }
    
    .service-detail:nth-child(even) {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 0;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-menu a {
        padding: 15px 0;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-blue);
}

.text-accent {
    color: var(--accent-yellow);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-30 {
    margin-top: 30px;
}
