/* ============================================
   RESET & VARIABLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #25346F;
    --accent-yellow: #FEC111;
    --dark-navy: #1a2654;
    --light-gray: #f3f4f6;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-900);
    background-color: var(--white);
    line-height: 1.6;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-navy);
}

/* ============================================
   PAGE LOADER
   ============================================ */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out;
    pointer-events: auto;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-container {
    position: relative;
    width: 60px;
    height: 60px;
}

.loader-ring {
    width: 100%;
    height: 100%;
    animation: spin 2s linear infinite;
}

.animated-circle {
    animation: dash 1.5s ease-in-out infinite;
}

.loader-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--accent-yellow);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes dash {
    0% { stroke-dasharray: 0 100; }
    50% { stroke-dasharray: 40 100; }
    100% { stroke-dasharray: 0 100; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8); }
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), #1a3a8a);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 900;
    font-size: 1.125rem;
}

.logo-text {
    display: none;
}

@media (min-width: 640px) {
    .logo-text {
        display: block;
    }
    
    .logo-primary {
        font-weight: 900;
        font-size: 0.875rem;
        color: var(--primary-blue);
        line-height: 1;
    }
    
    .logo-secondary {
        font-size: 0.75rem;
        color: var(--gray-600);
        font-weight: 600;
    }
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    font-weight: 600;
    transition: color var(--transition);
    font-size: 0.875rem;
    color: var(--gray-700);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.25rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
    border-bottom-color: var(--accent-yellow);
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
@media (max-width: 767px) {
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--gray-200);
        padding: 1rem 1.5rem;
        gap: 0;
    }
    
    .nav-menu.active .nav-link {
        display: block;
        padding: 0.75rem 0;
        border-left: 4px solid transparent;
        padding-left: 0.5rem;
        border-bottom: none;
    }
    
    .nav-menu.active .nav-link.active {
        border-left-color: var(--accent-yellow);
        color: var(--primary-blue);
    }
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
    min-height: calc(100vh - 80px);
}

/* ============================================
   HERO SECTIONS
   ============================================ */

.hero {
    position: relative;
    padding: 6rem 1rem;
    overflow: hidden;
}

@media (min-width: 640px) {
    .hero {
        padding: 8rem 1rem;
    }
}

.hero-container {
    max-width: 80rem;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a3a8a 100%);
    color: var(--white);
}

.hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    background: var(--accent-yellow);
    border-radius: 50%;
    filter: blur(12rem);
    opacity: 0.1;
}

.hero-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24rem;
    height: 24rem;
    background: #60a5fa;
    border-radius: 50%;
    filter: blur(12rem);
    opacity: 0.1;
}

.hero-yellow {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #fbbf24 100%);
    color: var(--gray-900);
}

.hero-dark {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--white);
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 42rem;
    font-weight: 300;
    margin: 0;
}

.hero-with-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* ============================================
   CARDS & GRIDS
   ============================================ */

.division-cards {
    display: grid;
    gap: 2rem;
    margin-top: 5rem;
}

@media (min-width: 768px) {
    .division-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: var(--white);
    color: var(--gray-900);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    cursor: pointer;
}

@media (min-width: 640px) {
    .card {
        padding: 3rem;
    }
}

.card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon-blue {
    background: var(--primary-blue);
}

.card-icon-yellow {
    background: var(--accent-yellow);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: inherit;
}

.card-title {
    font-size: 1.875rem;
    font-weight: 900;
}

.card-description {
    color: var(--gray-700);
    margin-bottom: 2rem;
    font-weight: 300;
    font-size: 1.125rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    gap: 0.75rem;
}

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

.btn-primary:hover {
    background: var(--dark-navy);
}

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

.btn-yellow:hover {
    background: #fbbf24;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: 5rem 1rem;
}

@media (min-width: 640px) {
    section {
        padding: 5rem 1.5rem;
    }
}

.section-container {
    max-width: 80rem;
    margin: 0 auto;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 3rem;
    color: var(--gray-900);
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.bg-light {
    background: var(--gray-50);
}

.bg-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.bg-yellow {
    background: var(--accent-yellow);
    color: var(--gray-900);
}

/* ============================================
   SERVICE GRID
   ============================================ */

.service-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-item {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--accent-yellow);
    transition: var(--transition);
}

.service-item:hover {
    box-shadow: var(--shadow-lg);
}

.service-item-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-yellow);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.service-description {
    color: var(--gray-700);
    font-weight: 300;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid-2 {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-4 {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.grid-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.grid-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.grid-item-title {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1.125rem;
}

/* ============================================
   PROCESS STEPS
   ============================================ */

.steps-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-item {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1.125rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--gray-700);
    font-weight: 300;
}

/* ============================================
   REQUIREMENTS/CHECKLIST
   ============================================ */

.requirements-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .requirements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.requirement-item:hover {
    border-color: var(--accent-yellow);
}

.requirement-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-yellow);
    flex-shrink: 0;
}

.requirement-text {
    color: var(--gray-900);
    font-weight: 600;
}

/* ============================================
   FEATURES
   ============================================ */

.feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-box svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.feature-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--gray-700);
    font-weight: 300;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-grid {
    display: grid;
    gap: 4rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.contact-list {
    list-style: none;
    margin-top: 2rem;
}

.contact-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-list .icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: var(--primary-blue);
}

.contact-list span {
    color: var(--gray-700);
    font-weight: 300;
    line-height: 1.6;
}

/* ============================================
   FORM
   ============================================ */

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

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

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 52, 111, 0.1);
}

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

.form-full-width {
    width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--gray-900);
    color: var(--white);
    margin-top: 5rem;
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h3,
.footer-section h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p {
    color: var(--gray-300);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    font-size: 0.875rem;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.designer-credit {
    font-weight: 600;
    transition: var(--transition);
    color: var(--accent-yellow);
    text-decoration: none;
}

.designer-credit:hover {
    color: var(--white);
}

.footer.electrical .designer-credit {
    color: var(--primary-blue);
}

.footer.electrical .designer-credit:hover {
    color: var(--white);
}

.footer.general .designer-credit {
    color: #fbbf24;
}

.footer.general .designer-credit:hover {
    color: var(--white);
}

/* ============================================
   ALERT/INFO BOX
   ============================================ */

.info-box {
    background: #dbeafe;
    border-left: 4px solid var(--primary-blue);
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 3rem;
}

.info-box h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.info-box p {
    color: var(--gray-700);
    font-weight: 300;
    font-size: 1.125rem;
}

.info-box strong {
    font-weight: 600;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 767px) {
    .hide-mobile {
        display: none;
    }
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.max-w-2xl {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.max-w-4xl {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}
