/* Global Reset & Variables */

:root {
    --primary-red: #d32f2f;
    /* Updated red color */
    --primary-dark: #1a1a2e;
    --dark-overlay: rgba(0, 0, 0, 0.7);
    --text-grey: #555;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --accent-yellow: #ffc107;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
}

/* Utility Classes */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0;
    /* No border radius (sharp edges) */
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    border: 1px solid var(--primary-red);
}

.btn-primary:hover {
    background-color: #b71c1c;
    /* Slight darken */
    border-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(211, 47, 47, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Navbar */

.navbar {
    background: transparent;
    /* Assuming overlay on hero initially */
    box-shadow: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text-mobile {
    line-height: 1.2;
    display: inline-block;
}

.nav-contact-info {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.nav-contact-info a,
.nav-contact-info span {
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-contact-info i {
    color: var(--primary-red);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    /* Medium spacing */
    padding-left: 0;
}

/* Mobile Nav Toggle */

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

/* MODIFIED: Navbar Links & Button */

.nav-links a {
    text-decoration: none;
    color: var(--primary-red);
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    /* Uppercase */
}

.nav-links a:hover {
    color: var(--primary-red);
}

.btn-quote {
    background: var(--primary-red);
    color: white;
    padding: 10px 20px;
    border-radius: 0;
    /* Sharp edges */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: none;
}

.btn-quote:hover {
    background: #b71c1c;
    /* Slight darken */
    transform: none;
}

.btn-call-now {
    background: var(--primary-red);
    color: white;
    padding: 10px 20px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: none;
}

.btn-call-now:hover {
    background: #b71c1c;
    transform: none;
}

/* Dropdown styling */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Hero Section */

.hero {
    min-height: 550px;
    /* Prevent layout squashing on short screens */
    height: 85vh;
    background: url('banner.png') no-repeat center center/cover;
    background-color: #1a1a2e;
    /* Dark fallback color if image fails */
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Slight dark overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content */
}

.hero-content h1 {
    font-size: 4rem;
    /* Large */
    color: var(--white);
    font-weight: 700;
    /* Bold */
    margin-bottom: 15px;
    line-height: 1.1;
    text-align: center;
    /* Centered */
    text-transform: uppercase;
    text-shadow: none;
}

.highlight-red {
    color: var(--primary-red);
}

.hero-content p {
    color: #f0f0f0;
    /* Light grey */
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-shadow: none;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-buttons .btn-primary {
    font-weight: 700;
    padding: 15px 35px;
    box-shadow: none;
    border-radius: 0;
}

.btn-secondary-hero {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0;
    transition: all 0.3s ease;
    background: var(--white);
    color: #333;
    /* Dark grey */
    border: 1px solid #ccc;
    /* Light grey border */
    box-shadow: none;
}

.btn-secondary-hero:hover {
    background: #e0e0e0;
    /* Subtle darken */
}

/* Feature Strip (Replaces Feature Bar) */

.feature-strip {
    padding: 0;
    margin-top: -120px;
    /* Overlap hero section */
    position: relative;
    z-index: 10;
    width: 100%;
}

.feature-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Equal width columns */
    gap: 0;
    /* No gaps */
    width: 100%;
}

.feature-strip-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 35px 30px;
    transition: filter 0.3s;
}

.feature-strip-item:hover {
    filter: brightness(1.1);
    /* Slight brightness increase */
}

/* Specific Card Colors */

.item-blue {
    background-color: #2f3e4e;
}

.item-red {
    background-color: #d32f2f;
}

.item-navy {
    background-color: #1e2f3f;
}

.feature-strip-item .icon-circle {
    width: 50px;
    height: 50px;
    background: #ffc107;
    /* Yellow background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    /* White icon */
    flex-shrink: 0;
}

.feature-strip-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--white);
    font-weight: 700;
    /* Bold */
}

.feature-strip-item p {
    font-size: 0.9rem;
    color: #dcdcdc;
    /* Light grey */
    font-weight: 400;
    /* Normal */
    line-height: 1.4;
}

/* About Section */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    color: var(--primary-red);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.about-list {
    list-style: none;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-list li {
    font-weight: 500;
}

.about-list li i {
    color: var(--primary-red);
    margin-right: 10px;
}

/* Feature Cards */

.features-cards {
    background-color: var(--light-bg);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

/* Services Section */

.services-section {
    background-color: #f8f9fa;
}

.center-head {
    text-align: center;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card-content {
    padding: 25px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card .btn-call {
    margin-top: 15px;
}

/* Card Colors */

.card-light {
    background-color: #ffffff;
}

.card-light h3 {
    color: var(--primary-dark);
}

.card-light p {
    color: #666;
}

.card-red {
    background-color: var(--primary-red);
}

.card-red h3,
.card-red p {
    color: #ffffff;
}

.card-blue {
    background-color: var(--primary-dark);
}

.card-blue h3,
.card-blue p {
    color: #ffffff;
}

/* Brands Section */

.brands-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin-top: 30px;
}

.brands-section .section-title {
    color: #000000;
}

.brands-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scrollBrands 30s linear infinite;
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brands-wrapper:hover .brands-track {
    animation-play-state: paused;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ccc;
    text-transform: uppercase;
    cursor: default;
    transition: 0.3s;
}

.brand-name:hover {
    color: var(--primary-dark);
}

.center-text {
    text-align: center;
}

/* Achievements */

.achievements-section {
    position: relative;
    background: url('https://images.unsplash.com/photo-1621905476059-5f81285b31f2?q=80&w=2000&auto=format&fit=crop') no-repeat center center/cover;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.achievements-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 50, 0.85);
    /* Dark overlay */
    backdrop-filter: blur(3px);
    z-index: 1;
}

.relative-z {
    position: relative;
    z-index: 2;
}

.achievements-header h2 {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
}

.highlight-achieve {
    color: #ff3b3b;
}

.achieve-line {
    width: 60px;
    height: 4px;
    background: #ff3b3b;
    margin: 0 auto 20px;
    border-radius: 2px;
}

.achievements-header p {
    color: #cfd8dc;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.12);
}

.stat-card h2 {
    font-size: 2.5rem;
    color: #ff3b3b;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-card p {
    color: #cfd8dc;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Contact Section */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
}

.info-item div h4 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--primary-dark);
}

.info-item div span {
    color: var(--text-grey);
    font-size: 1rem;
}

.contact-form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form-wrapper .section-title,
.contact-form-wrapper p {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

input,
select,
textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-red);
    border-color: transparent;
}

.btn-block {
    width: 100%;
    border: none;
}

/* Footer */

footer {
    background: linear-gradient(to right, #1a1a2e, #16213e);
    color: #ddd;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 40px;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo i {
    color: var(--primary-red);
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-red);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    transition: 0.3s;
}

.footer-col ul li a {
    text-decoration: none;
    color: #ddd;
    transition: color 0.3s;
}

.footer-col ul li:hover,
.footer-col ul li a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-contact-box {
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid var(--primary-red);
}

.footer-phone {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
    margin: 5px 0;
}

.footer-time {
    font-size: 0.9rem;
    color: #bbb;
}

.footer-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
}

.disclaimer {
    font-size: 0.75rem;
    color: #666;
    margin-top: 10px;
}

.footer-bottom {
    background: #0f0f1a;
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
}

/* Mobile Sticky Bar */

.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-red);
    text-align: center;
    padding: 15px;
    z-index: 999;
    /* Lowered so it doesn't cover the slide-out menu */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-sticky-bar a {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
}

/* Responsive Media Queries */

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .about-grid,
    .cards-grid,
    .services-grid,
    .footer-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-strip-grid {
        grid-template-columns: 1fr 1fr;
        /* Tablet: 2 columns */
    }
    .item-navy {
        grid-column: span 2;
        /* Make the 3rd item span full width on tablet */
    }
    .navbar {
        position: absolute;
        top: 0;
        background: transparent;
        width: 100%;
    }
    .nav-content {
        flex-direction: column;
        gap: 10px;
    }
    /* Hide desktop nav elements on smaller screens */
    .nav-links,
    .nav-contact-info,
    .btn-quote {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
        color: var(--white);
    }
    .mobile-nav-toggle.active {
        color: var(--primary-red);
    }
    .logo {
        color: var(--white);
        margin-bottom: 0;
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: absolute;
        top: 0;
        background: transparent;
        box-shadow: none;
        padding: 20px 0;
    }
    .nav-content {
        justify-content: space-between;
        flex-direction: row;
        padding: 0 20px;
    }
    .logo {
        display: flex;
        align-items: center;
        font-size: 1.1rem;
        /* Smaller font to fit on one line */
        white-space: nowrap;
        /* Forces text to stay on one line */
    }
    .nav-links a {
        color: var(--primary-red);
        text-shadow: none;
        font-weight: 700;
    }
    .btn-quote {
        display: none;
    }
    /* Hide quote button, use mobile CTA */
    .mobile-nav-toggle {
        display: block;
        z-index: 9999;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    .hero {
        background-position: 25% 50%;
        /* Keep technician in view */
        margin-top: 0;
        height: 60vh;
        min-height: 400px;
    }
    .hero-overlay {
        justify-content: center;
        align-items: flex-start;
        /* Align to top to control top spacing */
        padding-top: 80px;
        /* Reduced space between header and hero text */
    }
    .hero-content {
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
        padding: 0;
        /* Remove extra padding */
        font-size: 1rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .nav-links {
        display: flex;
        /* Re-enable flex for mobile menu */
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 280px;
        /* Side drawer width */
        background: var(--white);
        flex-direction: column;
        padding: 80px 25px 30px;
        /* Space at top, padding on sides */
        gap: 0;
        /* Remove gap, use padding on links instead */
        text-align: left;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        /* Hide to the right */
        transition: transform 0.3s ease;
        z-index: 1001;
    }
    .nav-links.active {
        transform: translateX(0);
        /* Slide in from left */
    }
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f5f5f5;
        /* Clean separators */
    }
    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 1rem;
    }
    .hero-content h1 {
        font-size: 1.5rem;
        /* Further reduced to ensure "ALWAYS FOR YOU" fits on one line */
        padding: 0;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    .hero-buttons {
        flex-direction: row;
        /* Side-by-side buttons */
        flex-wrap: wrap;
    }
    .hero-buttons .btn {
        width: auto;
        margin: 5px 5px 5px 0;
        padding: 12px 24px;
    }
    .about-grid,
    .cards-grid,
    .services-grid,
    .footer-grid,
    .contact-grid,
    .about-list {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .feature-strip {
        margin-top: 0;
    }
    /* Remove overlap on mobile */
    .feature-strip-grid {
        grid-template-columns: 1fr;
    }
    /* Mobile: 1 column */
    .item-navy {
        grid-column: auto;
    }
    .section {
        padding: 50px 0;
    }
    /* Reduce section padding on mobile */
    .mobile-sticky-bar {
        display: block;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-bottom p {
        font-size: 0.75rem;
        padding: 0 10px;
    }
    body {
        padding-bottom: 75px;
    }
    /* Increased space for sticky bar to prevent overlap */
}

/* Animations */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Floating Buttons */

.floating-buttons {
    position: fixed;
    bottom: 80px;
    /* Adjust to be above the mobile sticky bar */
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.floating-btn {
    display: flex;
    align-items: center;
    background-color: var(--primary-red);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.floating-btn:hover {
    background-color: #b71c1c;
    transform: scale(1.05);
}

.floating-btn i {
    font-size: 1.5rem;
    margin-right: 8px;
}

.floating-btn span {
    font-weight: 600;
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 100px;
        /* Adjust for mobile view */
        right: 15px;
    }
    .floating-btn span {
        display: none;
        /* Hide text on mobile, icons only */
    }
    .floating-btn {
        padding: 12px;
        border-radius: 50%;
    }
    .floating-btn i {
        margin-right: 0;
    }
}