/* CSS Design System for A TO Z HOME CARE */
:root {
    /* Colors - Brand Palette */
    --primary: #203DF7;
    /* Royal Blue */
    --primary-dark: #1a31c5;
    /* Darker Royal Blue */
    --secondary: #21AAF7;
    /* Sky Blue */
    --accent: #F7D71E;
    /* Brand Yellow */
    --accent-dark: #dec11b;
    /* Darker Yellow */

    --text-dark: #1a1a1a;
    --text-light: #555555;
    --bg-light: #f4f7fe;
    --bg-white: #ffffff;
    --border: #e0e6ed;

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--bg-white);
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

.section-title .underline {
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 10px auto 0;
}

/* Header & Nav Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--bg-white);
    margin: 0;
}

header.scrolled .logo h1 {
    color: var(--primary);
}

.logo h1 span {
    color: var(--accent);
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--primary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent);
}

.call-btn {
    background-color: var(--accent);
    color: var(--bg-white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-toggle {
    display: none;
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background-color: var(--primary);
    color: var(--bg-white);
}

.mobile-toggle .fa-xmark {
    color: #e74c3c;
    /* Professional Red for Close button */
}

.mobile-toggle:hover .fa-xmark {
    color: var(--bg-white);
}

/* Page Hero Styles (for internal pages) */
.page-hero {
    min-height: 400px;
    background-color: #1a1a1a;
    /* Fallback for image load fail */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    /* Changed from center to respect padding */
    position: relative;
    padding-top: 130px;
    /* Space for fixed header + breathing room */
}

#about-hero {
    background-image: url('images/about%20hero.jpg');
}

#services-hero {
    background-image: url('images/serviceshero.jpg');
}

#whyus-hero {
    background-image: url('images/whyushero.jpg');
}

#contact-hero {
    background-image: url('images/contacthero.jpg');
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay for text readability */
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
    color: var(--bg-white);
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Neutralize homepage slider animation for static internal heroes */
.page-hero .hero-content {
    transform: translateY(0);
}

/* Responsiveness for logo and hero */
@media (max-width: 768px) {
    .logo img {
        height: 45px;
    }

    .page-hero {
        height: 320px;
        padding-top: 100px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    /* Hero Slider Fixes */
    .hero-slider {
        height: 90vh;
    }

    #hero h1 {
        font-size: 2.2rem;
    }

    #hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-content {
        padding-top: 60px;
        /* Clear fixed header */
    }

    .slider-nav button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }

    /* Small Mobile Hero Slider Fixes */
    .hero-slider {
        height: 85vh;
    }

    #hero h1 {
        font-size: 1.8rem;
    }

    #hero p {
        font-size: 0.9rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 260px;
        padding: 12px 25px;
    }

    .hero-content {
        padding-top: 80px;
    }

    .slider-dots {
        bottom: 15px;
    }
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    height: 80vh;
    /* Changed from 100vh to be more balanced */
    width: 100%;
    margin-top: 70px;
    /* Offset for fixed header */
    overflow: hidden;
    background-color: #000;
}

.slider-container {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-content {
    z-index: 2;
    transform: translateY(30px);
    transition: transform 1s ease;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.slide.active .hero-content {
    transform: translateY(0);
}


#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

#hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Slider Controls */
.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    font-size: 1.2rem;
}

.slider-nav button:hover {
    background: var(--primary);
}

.prev-slide {
    left: 30px;
}

.next-slide {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--accent);
    width: 30px;
    border-radius: 10px;
}

/* Services Section Styles */
.section-padding {
    padding: var(--section-padding);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--primary);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.learn-more {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.learn-more:hover i {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

/* Why Choose Us Styles */
#why-choose-us {
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-white);
    border-radius: 10px;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-item h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

/* Contact Section Styles */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: var(--primary);
    color: var(--bg-white);
}

.info-card:hover a {
    color: var(--bg-white);
}

.info-card i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 50px;
    height: 50px;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.info-card:hover i {
    color: var(--primary);
}

.info-card h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-form {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.btn-full {
    width: 100%;
}

.map-container {
    margin-top: 50px;
    border-radius: 10px;
    overflow: hidden;
    height: 350px;
}

.map-container iframe {
    border: 0;
}

/* Footer Styles */
footer {
    background-color: #F4C211;
    /* Brand Yellow */
    color: var(--primary-dark);
    /* Dark Blue */
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
    display: block;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-services h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 12px;
}

.footer-links ul li a,
.footer-services ul li a {
    color: var(--primary-dark);
    opacity: 0.9;
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-contact p i {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-dark);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--bg-white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--primary-dark);
    opacity: 0.8;
}

.features-btn-container,
.reviews-btn-container {
    text-align: center;
    margin-top: 40px;
}

.secondary-text {
    color: var(--secondary);
}

#brand-expertise {
    background-color: var(--bg-white);
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    /* Adjust based on original logo height */
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

/* Brand Scroller Styles */
#brand-scroller {
    background-color: var(--bg-white);
    padding: 30px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.scroller-title {
    font-size: 1rem;
    font-style: italic;
    color: var(--primary);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.scroller-title span {
    color: var(--accent);
    font-weight: 700;
    margin-right: 5px;
    font-style: normal;
}

.scroller-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

.scroller-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.scroller-track img {
    height: 40px;
    /* Decreased size */
    width: auto;
    object-fit: contain;
    filter: none;
    /* Color logos */
    opacity: 0.9;
    transition: all 0.3s ease;
}

.scroller-track img:hover {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 30px));
        /* Half track + half gap */
    }
}

/* Google Reviews Styles */
#google-reviews {
    background-color: var(--bg-light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--primary);
}

.rating {
    color: var(--accent);
    font-size: 0.9rem;
}

.review-icon {
    font-size: 1.5rem;
    color: #4285F4;
    /* Google Blue */
}

.review-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.review-date {
    display: block;
    font-size: 0.85rem;
    color: #999;
}

/* Full Width Map Styles */
#full-width-map {
    width: 100%;
    line-height: 0;
}

.map-wrapper {
    width: 100%;
}

.map-wrapper iframe {
    width: 100%;
    height: 450px;
    border: none;
    vertical-align: middle;
}

/* Responsive Styles */
@media (max-width: 992px) {
    #hero h1 {
        font-size: 2.8rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 40px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 25px;
    }

    .nav-links a {
        color: var(--text-dark);
        font-size: 1.25rem;
        font-weight: 600;
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary);
        padding-left: 10px;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-toggle {
        display: flex;
    }

    .header-contact {
        display: none;
    }

    #hero {
        padding: 120px 0 60px;
    }

    #hero h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Brand Expertise Section */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .brand-grid {
        grid-template-columns: 1fr;
    }
}

.brand-card {
    text-align: center;
    background: var(--bg-white);
    transition: transform 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
}

.brand-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.brand-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.brand-card .accent-text {
    color: var(--secondary);
    font-weight: 400;
}

.brand-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 10px;
}

/* Floating Contact Buttons */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-btn {
    background-color: #25d366;
    animation: pulse-green 2s infinite;
}

.call-btn {
    background-color: var(--primary);
    animation: pulse-blue 2s infinite;
    animation-delay: 1s;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(32, 61, 247, 0.6);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(32, 61, 247, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(32, 61, 247, 0);
    }
}

@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}