/* Add font-display: swap to prevent invisible text */
@font-face {
    font-family: 'Inter';
    font-display: swap;
}

/* Ensure consistent sizing for all states */
.middle-bar {
    min-height: 101px;
}

.middle-info {
    min-width: 300px;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: center;
}

/* Hero wrapper with better background handling */
.hero-wrapper {
    position: relative;
    min-height: 500px;
    background-color: #1a1a1a; /* Dark fallback while image loads */
    background-image: url('https://daynight-electrical.com.au/wp-content/uploads/2024/12/desk-banner-min.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ensure hero section doesn't shift */
.hero-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
    min-height: 420px; /* Reserve space */
}

/* Reserve space for feature badges */
.feature-badge {
    min-height: 140px;
}

/* Reserve space for service cards */
.service-card {
    min-height: 400px;
}

/* Prevent icon size changes */
.feature-icon,
.feature-icon img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Responsive image handling */
@media (max-width: 768px) {
    .middle-bar {
        min-height: 76px;
    }
    
    .logo {
        width: 120px;
        height: 40px;
    }
    
    .logo img {
        width: 120px;
        height: 40px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar - Service Links */
.top-bar {
    background: #2c3e50;
    min-height: 40px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 40px;
}

.service-tabs {
    display: flex;
    align-items: stretch;
    margin-left: -20px;
}

.service-tab {
    padding: 0 30px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    position: relative;
}

.service-tab.plumbing {
    background: #3498db;
}

.service-tab.electrical {
    background: #00bcd4;
}

.service-tab.electrical.active {
    background: #00acc1;
}

.service-tab.air {
    background: #e74c3c;
}

.service-tab:hover {
    filter: brightness(1.1);
}

.top-bar-email {
    color: white;
    font-size: 13px;
    display: flex;
    align-items: center;
}

/* Middle Bar - Logo, Info, CTA */
.middle-bar {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.middle-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo img {
    height: 60px;
    width: auto;
}

.middle-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-label {
    color: #666;
    font-size: 14px;
}

.info-value {
    color: #003a47 !important; /* Very dark cyan */
    font-weight: 600;
    font-size: 14px;
}

.google-reviews {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.stars {
    color: #ffd700;
    font-size: 16px;
}

.middle-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}
.phone-btn .phone-number {
    color: white !important; /* White on dark background */
}

.phone-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
     background: #003a47 !important;
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
}
/* Ensure links have sufficient contrast */
a {
    color: #006b7d;
}

.phone-btn:hover {
    background: #00acc1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,188,212,0.3);
}

.phone-icon {
    font-size: 24px;
}

.phone-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.small-text {
    font-size: 11px;
    opacity: 0.9;
}

.phone-number {
    font-size: 16px;
    font-weight: 700;
    color: #003a47 !important; /* Very dark cyan - 7:1 contrast ratio */

}

/* Main Navigation */
.main-nav {
    background: #00838f; /* Darker cyan for better contrast */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    height: 50px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 0 20px;
    color: white;

    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    height: 50px;
    line-height: 50px;
    transition: all 0.3s;
}

.nav-menu a:hover {
    background: rgba(0, 77, 92, 0.1);
	    color: #002733;

}

.arrow {
    font-size: 10px;
    margin-left: 5px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 14px;
    border: none;
    cursor: pointer;
	    align-items: center;
}

.btn-primary {
    background: #2c3e50;
    color: white;
}

.btn-primary:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: #003a47 !important; /* Very dark cyan */
    color: white;
}

.btn-secondary:hover {
    background: #002733 !important; /* Even darker on hover */
    transform: translateY(-2px);
}
a[style*="#00bcd4"] {
    color: #003a47 !important; /* Override inline styles */
}
/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
	 background: #2c3e50; /* Darker background */
    color: white;
}

.breadcrumb a {
    color: #00e5ff; /* Brighter cyan for dark background */
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}


/* Hero Section */
.hero-wrapper {
    background-image: url('https://daynight-electrical.com.au/wp-content/uploads/2024/12/desk-banner-min.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 500px;
}

.hero-overlay {
    background: rgba(0,0,0,0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.top-content p{
	color:white;
}
.top-content{
		margin-bottom:10px;
}

.hero-section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}
h1 {
    font-size: 48px;
    line-height: 1.2;
}
/* Specific h1 within sections */
section h1,
article h1,
aside h1,
nav h1 {
    font-size: 48px; /* Explicit size to avoid browser default changes */
}
/* Other heading sizes for consistency */
h2 {
    font-size: 36px;
    line-height: 1.3;
}

h3 {
    font-size: 24px;
    line-height: 1.4;
}

h4 {
    font-size: 20px;
    line-height: 1.4;
}

h5 {
    font-size: 18px;
    line-height: 1.5;
}

h6 {
    font-size: 16px;
    line-height: 1.5;
}

/* Responsive heading sizes */
@media (max-width: 768px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 20px; }
    h4 { font-size: 18px; }
    h5 { font-size: 16px; }
    h6 { font-size: 14px; }
}

@media (max-width: 480px) {
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 18px; }
    h4 { font-size: 16px; }
    h5 { font-size: 14px; }
    h6 { font-size: 13px; }
}

.hero-text h1 {
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-text h1 {
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-text h2 {
    font-size: 30px;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.feature-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 24px;
}

.feature-badge h3 {
    font-size: 15px;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
}

.feature-badge p {
    font-size: 13px;
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-cta {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 40px;
}

.hero-cta h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.hero-cta p {
    color: #666;
    margin-bottom: 20px;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

.content-section.gray-bg {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.section-header p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
	background: linear-gradient(330deg, #ffffff 3%, #9cecfe 97%)!important;
    transition: all ease-out 0.3s !important;
    -webkit-transition: all ease-out 0.3s !important;

}

.service-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-link {
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    color: #00acc1;
}

/* Service cards hover state contrast fix */
.service-card:hover .service-content h3,
.service-card:hover .service-content p,
.service-card:hover .service-link {
    color: #1a1a1a; /* Ensure text remains dark on hover */
}
.service-link {
    color: #003a47 !important;
    font-weight: 600;
}
/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #00bcd4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.process-step h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.process-step p {
    color: #666;
    font-size: 14px;
}

/* Areas Grid */
.areas-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.area-link {
    padding: 15px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
    display: block;
}

.area-link:hover {
    background: #00bcd4;
    color: white;
    border-color: #00bcd4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,188,212,0.3);
}

/* Footer */
.main-footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #00bcd4;
    margin-bottom: 20px;
    font-size: 20px;
}
.footer-column h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-column a:hover {
    color: #00bcd4;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .middle-bar-content {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .middle-info {
        order: 3;
        width: 100%;
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    .service-tabs {
        margin-left: 0;
    }
    
    .service-tab {
        padding: 0 15px;
        font-size: 12px;
    }
    
    .top-bar-email {
        display: none;
    }
    
    .middle-bar-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu a {
        padding: 0 15px;
        font-size: 14px;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .areas-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
/* Add these new mobile-specific styles to your existing CSS */

/* Hamburger Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

/* Mobile Sticky Bottom Bar */
.mobile-sticky-bottom {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 999;
}

.mobile-sticky-content {
    display: flex;
    gap: 10px;
    max-width: 100%;
    margin: 0 auto;
}

.mobile-sticky-content .phone-btn {
    flex: 1;
    padding: 12px 10px;
    font-size: 14px;
    text-align: center;
    justify-content: center;
}

.mobile-sticky-content .phone-icon {
    font-size: 20px;
}

.mobile-sticky-content .phone-text {
    align-items: center;
}

.mobile-sticky-content .small-text {
    display: none;
}

.mobile-sticky-content .phone-number {
    font-size: 14px;
}

.mobile-sticky-content .btn {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    font-size: 14px;
}

/* Hide mobile close button by default (desktop) */
.mobile-close-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}
	/* For mobile menu body scroll lock */
body.menu-open {
    overflow: hidden;
}



/* Update existing responsive styles */
@media (max-width: 768px) {
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block;
    }
    
    /* Simplify middle bar for mobile */
    .middle-bar {
        padding: 15px 0;
    }
    
    .middle-bar-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo img {
        height: 40px;
    }
    
    /* Hide desktop info and CTAs */
    .middle-info,
    .middle-cta {
        display: none;
    }
    
    /* Transform main nav for mobile */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
    background: #00838f; /* Darker cyan for better contrast */
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding-top: 60px;
    }
    
    .nav-menu li {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-menu a {
    color: #004d5c; /* Dark text on cyan background */
        padding: 15px 20px;
        height: auto;
        line-height: normal;
        background: transparent;
    }
    
    .nav-menu a:hover {
  background: rgba(0, 77, 92, 0.1);
    color: #002733;
    }

    
    /* Close button for mobile menu */
    .mobile-close-btn {
		display:block;
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 30px;
        cursor: pointer;
        color: #333;
    }
    
    /* Show mobile sticky bottom */
    .mobile-sticky-bottom {
        display: block;
    }
    
    /* Adjust content padding for sticky bottom */
    body {
        padding-bottom: 70px;
    }
    
    /* Hamburger animation when active */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Show overlay when menu is active */
    .mobile-menu-overlay.active {
        display: block;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .mobile-sticky-content {
        gap: 5px;
    }
    
    .mobile-sticky-content .phone-btn,
    .mobile-sticky-content .btn {
        font-size: 12px;
        padding: 10px 5px;
    }
}