/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Radfield Home Care Color Scheme */
    --primary-teal: #2AC6B4;
    /* Primary Teal/Aqua */
    --primary-teal-dark: #1E8D75;
    /* Darker Teal */
    --primary-teal-light: #4FD9C7;
    /* Light Teal */
    --secondary-blue: #0066CC;
    /* Secondary Blue */
    --text-dark: #333333;
    /* Dark Gray Text */
    --text-medium: #666666;
    /* Medium Gray */
    --text-light: #999999;
    /* Light Gray */
    --background-white: #FFFFFF;
    /* White */
    --background-light: #F4F4F4;
    /* Light Gray Background */
    --background-off-white: #FAFAFA;
    /* Off White */
    --border-color: #E0E0E0;
    /* Border Gray */
    --whatsapp-green: #25D366;
    /* WhatsApp Green */
    --whatsapp-green-dark: #20BA5A;
    /* WhatsApp Green Dark */
}

body {
    font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--background-white);
}

/* Global Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background-color: var(--text-dark);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-left {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.top-bar-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.top-bar-link:hover {
    opacity: 0.8;
}

.top-bar-whatsapp {
    color: var(--whatsapp-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.top-bar-whatsapp:hover {
    color: var(--whatsapp-green-dark);
}

/* Navigation */
.navbar {
    background: var(--background-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-teal);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo a {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-teal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-teal);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary-teal);
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary-teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 198, 180, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-teal);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 141, 117, 0.85) 0%, rgba(42, 198, 180, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: var(--primary-teal-dark);
}

.btn-primary:hover {
    background: var(--background-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp-hero {
    background: var(--whatsapp-green);
    color: white !important;
}

.btn-whatsapp-hero:hover {
    background: var(--whatsapp-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-hero svg {
    margin-right: 8px;
}

.btn-full {
    width: 100%;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-medium);
    font-size: 18px;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section - UPDATED FOR BETTER RESPONSIVE IMAGES */
.services-section {
    background: var(--background-white);
}

.service-card-detailed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    margin-bottom: 80px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    min-height: 450px;
}

.service-card-detailed.reverse {
    grid-template-columns: 1fr 1fr;
}

.service-card-detailed.reverse .service-image-wrapper {
    order: 2;
}

.service-card-detailed.reverse .service-content {
    order: 1;
}

.service-image-wrapper {
    width: 100%;
    height: 100%;
    min-height: 450px;
    overflow: hidden;
    position: relative;
    background-color: var(--background-light);
}

.service-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.service-card-detailed:hover .service-main-image {
    transform: scale(1.05);
}

.service-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h3 {
    color: var(--primary-teal-dark);
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.service-intro {
    color: var(--text-medium);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.service-features li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-teal);
    font-weight: bold;
    font-size: 18px;
}

.btn-service {
    background: var(--primary-teal);
    color: white !important;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    align-self: flex-start;
}

.btn-service:hover {
    background: var(--primary-teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 198, 180, 0.3);
}

/* Why Choose Section */
.why-choose-section {
    background: var(--background-off-white);
    padding: 80px 0;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.why-item {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.why-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(42, 198, 180, 0.15);
}

.why-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-teal);
}

.why-item h3 {
    color: var(--text-dark);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.why-item p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 15px;
}

/* Testimonials */
.testimonials {
    background: var(--background-off-white);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-item {
    background: white;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-teal);
}

.testimonial-quote {
    margin-bottom: 25px;
}

.testimonial-quote p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    color: var(--primary-teal-dark);
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

.testimonial-author span {
    color: var(--text-medium);
    font-size: 14px;
}

/* Contact Section */
.contact {
    background: var(--background-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h2 {
    color: var(--text-dark);
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-info>p {
    color: var(--text-medium);
    margin-bottom: 35px;
    line-height: 1.7;
    font-size: 16px;
}

.contact-details-box {
    background: var(--background-off-white);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-detail-item strong {
    color: var(--primary-teal-dark);
    font-size: 16px;
    font-weight: 600;
}

.contact-detail-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.contact-detail-item a:hover {
    color: var(--primary-teal);
}

.contact-detail-item span {
    color: var(--text-medium);
    line-height: 1.6;
}

.contact-form {
    background: var(--background-off-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    color: var(--text-dark);
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(42, 198, 180, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 15px;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background: var(--text-dark);
    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-col h3 {
    color: var(--primary-teal-light);
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col h4 {
    color: var(--primary-teal-light);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-teal-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-teal-light);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: var(--whatsapp-green);
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-green-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .service-card-detailed {
        grid-template-columns: 1fr;
        margin-bottom: 50px;
    }

    .service-card-detailed.reverse .service-image-wrapper {
        order: 1;
    }

    .service-card-detailed.reverse .service-content {
        order: 2;
    }

    .service-image-wrapper {
        min-height: 350px;
        height: 350px;
    }

    .service-content {
        padding: 35px 30px;
    }

    .service-content h3 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }

    .top-bar-left {
        flex-direction: column;
        gap: 10px;
    }

    .nav-menu {
        position: fixed;
        top: 85px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 30px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .service-image-wrapper {
        min-height: 300px;
        height: 300px;
    }

    .service-content {
        padding: 30px 25px;
    }

    .service-content h3 {
        font-size: 26px;
    }

    .service-intro {
        font-size: 16px;
    }

    .service-features li {
        font-size: 15px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    section {
        padding: 50px 0;
    }

    .hero {
        min-height: 500px;
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .service-image-wrapper {
        min-height: 250px;
        height: 250px;
    }

    .service-content {
        padding: 25px 20px;
    }

    .service-content h3 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .service-intro {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .service-features {
        margin-bottom: 25px;
    }

    .service-features li {
        font-size: 14px;
        padding: 10px 0;
        padding-left: 28px;
    }

    .btn-service {
        width: 100%;
        align-self: stretch;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Image Fallback and Loading States */
img {
    background-color: var(--background-light);
}

img[src=""],
img:not([src]) {
    opacity: 0.3;
}

/* Ensure images load properly */
.service-main-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Loading placeholder for images */
.service-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--background-light) 0%, var(--background-off-white) 50%, var(--background-light) 100%);
    animation: shimmer 1.5s infinite;
    z-index: 0;
}

.service-main-image[src] {
    z-index: 1;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}