/*
Theme Name: D&G Home Care Services
Theme URI: https://dghomecare.com
Author: D&G Home Care
Author URI: https://dghomecare.com
Description: A custom WordPress theme for D&G Home Care Services featuring a professional design with black, gray, and red color scheme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dg-homecare
Tags: home-care, healthcare, services, custom-colors, responsive
*/

/* ===================================
   Google Fonts Import
   =================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ===================================
   CSS Variables - Color Theme
   =================================== */
:root {
    --primary-black: #000000;
    --primary-gray: #b4b4b4;
    --primary-red: #fe0705;
    --white: #ffffff;
    --light-bg: #f5f5f5;
}

/* ===================================
   Global Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--primary-black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent text size adjustment on mobile */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-black);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 20px;
}

/* ===================================
   Top Bar Styles
   =================================== */
.top-bar {
    background-color: var(--primary-black);
    color: var(--white);
    font-size: 14px;
    padding: 10px 0;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-icon,
.phone-icon {
    font-size: 16px;
}

.top-bar-right a {
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
}

.top-bar-right a:hover {
    color: var(--primary-red);
}

/* ===================================
   Header Styles
   =================================== */
.site-header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-logo {
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
}

.site-logo a {
    display: inline-block;
    line-height: 1;
}

.site-logo-img {
    height: 120px;
    width: auto;
    max-width: 450px;
    display: block;
    transition: transform 0.3s ease;
}

.site-logo-img:hover {
    transform: scale(1.05);
}

.site-logo span {
    color: var(--primary-red);
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex: 1 1 auto;
}

.main-navigation {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.request-care-btn-wrapper {
    flex: 0 0 auto;
}

/* ===================================
   Navigation Styles
   =================================== */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.main-navigation a {
    color: var(--primary-black);
    font-weight: 500;
    padding: 10px 0;
    display: block;
    font-size: 15px;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary-red);
}

.main-navigation .current-menu-item > a {
    color: var(--primary-red);
}

/* Request Care Button */
.request-care-btn {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.request-care-btn:hover {
    background-color: var(--primary-black);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(254, 7, 5, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--primary-gray);
    color: var(--primary-gray);
    font-size: 24px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.mobile-menu-toggle.active {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    width: 100vw;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    background-color: var(--primary-black); /* Fallback color */
    background-image: url('/wp-content/uploads/2026/06/pexels-rdne-6148866-scaled.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
    padding: 150px 20px;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark overlay for better text readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Hero Tagline */
.hero-tagline {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

/* Hero Headline */
.hero-headline {
    font-size: 52px;
    margin-bottom: 25px;
    color: var(--white);
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.3;
    animation: fadeInUp 1s ease-out;
    letter-spacing: -1px;
}

.hero-headline .highlight {
    color: var(--primary-red);
    display: inline;
    font-weight: 800;
    animation: fadeInUp 1.2s ease-out;
}

/* Hero Subheadline */
.hero-subheadline {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 750px;
    margin: 0 auto 45px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.7;
    animation: fadeInUp 1.4s ease-out;
    font-weight: 400;
}

/* Hero animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
    animation: fadeInUp 1.6s ease-out;
}

.btn-primary-hero {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 18px 40px;
    font-size: 17px;
    font-weight: 700;
    border: 2px solid var(--primary-red);
    box-shadow: 0 4px 15px rgba(254, 7, 5, 0.4);
}

.btn-primary-hero:hover {
    background-color: var(--white);
    color: var(--primary-red);
    border-color: var(--white);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary-hero {
    background-color: transparent;
    color: var(--white);
    padding: 18px 40px;
    font-size: 17px;
    font-weight: 700;
    border: 2px solid var(--white);
}

.btn-secondary-hero:hover {
    background-color: var(--white);
    color: var(--primary-black);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    color: var(--white);
    font-size: 36px;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    background-color: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(254, 7, 5, 0.3);
}

.btn:hover {
    background-color: var(--white);
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(254, 7, 5, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--primary-black);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* ===================================
   Main Content
   =================================== */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-area {
    margin-bottom: 40px;
}

/* ===================================
   Who We Help Section
   =================================== */
.who-we-help-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    margin-top: 40px;
}

.section-description {
    text-align: center;
    font-size: 18px;
    color: var(--primary-gray);
    max-width: 800px;
    margin: -30px auto 50px;
    line-height: 1.7;
}

.who-we-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.help-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.help-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-red);
}

.help-icon {
    font-size: 60px;
    margin-bottom: 20px;
    line-height: 1;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.help-card:hover .help-icon {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.help-card h3 {
    font-size: 22px;
    color: var(--primary-black);
    margin-bottom: 15px;
    font-weight: 700;
}

.help-card p {
    font-size: 15px;
    color: var(--primary-gray);
    line-height: 1.7;
    margin: 0;
}

/* ===================================
   Services Section
   =================================== */

/* Services Introduction */
.services-intro-section {
    padding: 80px 0 40px;
    background-color: var(--white);
    margin-top: 40px;
    text-align: center;
}

.services-intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.services-intro-content .section-title {
    margin-bottom: 25px;
}

.services-intro-content .intro-text {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    text-align: center;
}

/* Services Grid Section */
.services-section {
    padding: 60px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border: 2px solid var(--primary-gray);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(254, 7, 5, 0.2);
}

.service-card h3 {
    color: var(--primary-black);
    margin-bottom: 15px;
    font-size: 20px;
}

.service-card p {
    color: #666;
    line-height: 1.7;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-red);
}

/* Services CTA Section */
.services-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-red) 0%, #c50604 100%);
    text-align: center;
}

.services-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.services-cta-content h2 {
    font-size: 42px;
    color: var(--white);
    margin-bottom: 20px;
}

.services-cta-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--white);
    margin-bottom: 40px;
}

/* ===================================
   Why Choose Section
   =================================== */
.why-choose-section {
    padding: 80px 0;
    background-color: var(--white);
    position: relative;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-gray) 100%);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.why-choose-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.why-choose-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(254, 7, 5, 0.05), transparent);
    transition: left 0.5s ease;
}

.why-choose-card:hover::before {
    left: 100%;
}

.why-choose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-red);
}

.why-icon {
    margin: 0 auto 25px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.why-choose-card:hover .why-icon {
    transform: scale(1.15) rotate(5deg);
}

.why-icon svg {
    width: 60px;
    height: 60px;
}

.why-choose-card h3 {
    font-size: 22px;
    color: var(--primary-black);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.why-choose-card p {
    font-size: 15px;
    color: var(--primary-gray);
    line-height: 1.8;
    margin: 0;
}

/* ===================================
   How It Works Section
   =================================== */
.how-it-works-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 60px 0 50px;
    position: relative;
    flex-wrap: wrap;
    gap: 20px;
}

.step-card {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    background: var(--white);
    padding: 40px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
    transition: all 0.4s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-red);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(254, 7, 5, 0.4);
}

.step-icon {
    font-size: 50px;
    margin: 20px 0;
    line-height: 1;
    filter: grayscale(30%);
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.2);
    filter: grayscale(0%);
}

.step-card h3 {
    font-size: 22px;
    color: var(--primary-black);
    margin-bottom: 15px;
    font-weight: 700;
}

.step-card p {
    font-size: 15px;
    color: var(--primary-gray);
    line-height: 1.7;
    margin: 0;
}

.step-arrow {
    font-size: 36px;
    color: var(--primary-red);
    font-weight: 700;
    flex-shrink: 0;
    animation: arrowPulse 2s infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(10px);
        opacity: 0.6;
    }
}

.cta-button-container {
    text-align: center;
    margin-top: 50px;
}

.cta-button-container .btn {
    padding: 20px 50px;
    font-size: 18px;
    box-shadow: 0 6px 25px rgba(254, 7, 5, 0.3);
}

.cta-button-container .btn:hover {
    box-shadow: 0 8px 30px rgba(254, 7, 5, 0.5);
}

/* ===================================
   Posts and Articles
   =================================== */
.post {
    background-color: var(--white);
    margin-bottom: 40px;
    padding: 30px;
    border-left: 4px solid var(--primary-red);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.post-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.post-meta {
    color: var(--primary-gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
}

.post-thumbnail {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-thumbnail a:hover img {
    transform: scale(1.05);
}

/* ===================================
   Sidebar
   =================================== */
.sidebar {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-red);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--primary-gray);
}

/* ===================================
   Footer Styles
   =================================== */
.site-footer {
    background-color: var(--primary-black);
    color: var(--primary-gray);
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: var(--primary-gray);
}

.footer-widget a:hover {
    color: var(--primary-red);
}

.footer-disclaimer {
    background-color: rgba(180, 180, 180, 0.1);
    border: 1px solid rgba(180, 180, 180, 0.3);
    border-radius: 5px;
    padding: 20px;
    margin: 40px 0 20px 0;
    text-align: center;
}

.footer-disclaimer p {
    color: var(--primary-gray);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.footer-disclaimer strong {
    color: var(--white);
    font-weight: 700;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: var(--primary-gray);
}

.footer-bottom a {
    color: var(--primary-red);
}

/* ===================================
   About Page Styles
   =================================== */

/* About Introduction Section */
.about-intro-section {
    padding: 80px 0 60px;
    background-color: var(--white);
    margin-top: 40px;
}

.about-intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text {
    font-size: 18px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 25px;
    text-align: left;
}

/* What Guides Us Section */
.guides-us-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    text-align: center;
}

.guides-us-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-subtitle {
    font-size: 32px;
    color: var(--primary-black);
    margin-bottom: 20px;
    font-weight: 700;
}

.guides-text {
    font-size: 20px;
    line-height: 1.8;
    color: #555;
    font-style: italic;
}

/* Why Choose Us Section on About Page */
.why-choose-section {
    padding: 80px 0;
    background-color: var(--white);
}

.why-choose-section .why-choose-content {
    max-width: 900px;
    margin: 0 auto;
}

.why-choose-section .why-choose-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.why-choose-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.why-choose-list li {
    margin-bottom: 30px;
    padding-left: 0;
    background: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-red);
}

.why-choose-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.why-choose-list li strong {
    display: block;
    font-size: 18px;
    color: var(--primary-black);
    margin-bottom: 10px;
    line-height: 1.4;
}

.why-choose-list li span {
    display: block;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    padding-left: 0;
    border-left: none;
}

/* CTA Section on About Page */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-red) 0%, #c50604 100%);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 42px;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--white);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-red);
    border: 2px solid var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-black);
    border-color: var(--primary-black);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-red);
}

/* ===================================
   Contact Section
   =================================== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Full-Width Contact Form Section */
.contact-form-section {
    position: relative;
    width: 100vw;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    padding: 80px 20px;
}

.contact-form-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-form-header h2 {
    font-size: 42px;
    color: var(--primary-black);
    margin-bottom: 15px;
}

.contact-form-header p {
    font-size: 18px;
    color: var(--primary-gray);
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-fullwidth {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group-full {
    margin-bottom: 25px;
}

.form-group label,
.form-group-full label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-black);
    font-size: 15px;
}

.form-group input,
.form-group textarea,
.form-group select,
.form-group-full textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group select {
    cursor: pointer;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-group-full textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(254, 7, 5, 0.1);
}

.form-group textarea,
.form-group-full textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    font-weight: 400 !important;
    font-size: 14px !important;
    color: var(--primary-gray) !important;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-red);
    text-decoration: underline;
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

.btn-large {
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 700;
}

.form-note {
    margin-top: 15px;
    font-size: 14px;
    color: var(--primary-gray);
}

/* Form error states */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--primary-red);
    background-color: rgba(254, 7, 5, 0.05);
}

.form-group input.error::placeholder,
.form-group textarea.error::placeholder {
    color: var(--primary-red);
}

/* Contact Form Messages */
.contact-message {
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
}

.contact-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.contact-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-black);
}

.section-title span {
    color: var(--primary-red);
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet and below */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .site-content {
        margin: 40px auto;
    }
    
    .site-logo-img {
        height: 110px;
        max-width: 400px;
    }
    
    /* Header on Tablet */
    .header-right {
        gap: 20px;
    }
    
    .main-navigation ul {
        gap: 20px;
    }
    
    .main-navigation a {
        font-size: 14px;
    }
    
    .request-care-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Services Page on Tablet */
    .services-intro-section {
        padding: 60px 0 30px;
        margin-top: 30px;
    }
    
    .services-intro-content .intro-text {
        font-size: 17px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .services-cta-section {
        padding: 60px 0;
    }
    
    .services-cta-content h2 {
        font-size: 36px;
    }
    
    .services-cta-content p {
        font-size: 17px;
    }
    
    .services-cta-content .cta-buttons {
        gap: 15px;
    }
    
    /* Who We Help Section on Tablet */
    .who-we-help-section {
        padding: 60px 0;
        margin-top: 30px;
    }
    
    .who-we-help-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    /* Why Choose Section on Tablet */
    .why-choose-section {
        padding: 60px 0;
    }
    
    .why-choose-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    /* How It Works Section on Tablet */
    .how-it-works-section {
        padding: 60px 0;
    }
    
    .steps-container {
        margin: 50px 0 40px;
    }
    
    .step-card {
        max-width: 250px;
    }
    
    .step-arrow {
        font-size: 32px;
    }
    
    /* Hero Section on Tablet */
    .hero-headline {
        font-size: 42px;
    }
    
    .hero-subheadline {
        font-size: 18px;
    }
    
    /* Contact Form on Tablet */
    .contact-form-container {
        padding: 40px 30px;
    }
    
    .contact-form-header h2 {
        font-size: 36px;
    }
    
    /* About Page on Tablet */
    .about-intro-section {
        padding: 60px 0 50px;
        margin-top: 30px;
    }
    
    .intro-text {
        font-size: 17px;
    }
    
    .guides-us-section {
        padding: 50px 0;
    }
    
    .section-subtitle {
        font-size: 28px;
    }
    
    .guides-text {
        font-size: 18px;
    }
    
    .why-choose-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 36px;
    }
    
    .cta-content p {
        font-size: 17px;
    }
    
    .cta-buttons {
        gap: 15px;
    }
}

/* Mobile and Small Tablets */
@media (max-width: 768px) {
    /* Header & Navigation */
    .site-header {
        padding: 15px 0;
        width: 100%;
        margin: 0;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        position: relative;
        max-width: 100%;
    }
    
    .site-branding {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .site-logo {
        font-size: 24px;
        text-align: left;
    }
    
    .site-logo-img {
        height: 110px;
        max-width: 380px;
    }
    
    /* Top Bar on Mobile */
    .top-bar {
        font-size: 12px;
        padding: 8px 0;
    }
    
    .top-bar-container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    /* Header on Mobile */
    .header-container {
        flex-wrap: wrap;
        position: relative;
    }
    
    .site-branding {
        width: 100%;
        justify-content: space-between;
    }
    
    .header-right {
        width: 100%;
        flex-direction: column;
        gap: 0;
        order: 3;
    }
    
    /* Show mobile menu toggle on mobile */
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Request Care Button on Mobile - Hidden by default */
    .request-care-btn {
        display: none;
        text-align: center;
        padding: 15px 20px 20px 20px;
        order: 999;
    }
    
    /* Show Request Care button when nav is active */
    .main-navigation.active ~ .request-care-btn,
    .menu-active .request-care-btn {
        display: block;
    }
    
    /* Hide navigation by default on mobile */
    .main-navigation {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        order: 3;
    }
    
    .main-navigation.active {
        max-height: 600px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        text-align: center;
        width: 100%;
        padding-top: 15px;
    }
    
    .main-navigation li {
        width: 100%;
    }
    
    .main-navigation a {
        padding: 12px 20px;
        display: block;
        border-bottom: 1px solid rgba(180, 180, 180, 0.2);
    }
    
    /* Hero Section */
    .hero-section {
        width: 100%;
        margin: 0;
        margin-left: 0;
        padding: 80px 20px;
        min-height: 500px;
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .scroll-indicator {
        display: none; /* Hide scroll indicator on mobile */
    }
    
    .hero-tagline {
        font-size: 13px;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }
    
    .hero-headline {
        font-size: 32px;
        margin-bottom: 20px;
        line-height: 1.3;
        letter-spacing: -0.5px;
    }
    
    .hero-headline br {
        display: block;
    }
    
    .hero-subheadline {
        font-size: 16px;
        margin-bottom: 30px;
        line-height: 1.6;
    }
    
    .hero-subheadline br {
        display: none; /* Remove line break on mobile for better flow */
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin-top: 25px;
    }
    
    .hero-buttons .btn,
    .btn-primary-hero,
    .btn-secondary-hero {
        width: 100%;
        max-width: 320px;
        padding: 16px 30px;
        font-size: 16px;
    }
    
    /* Content Area */
    .site-main {
        padding: 0 15px;
    }
    
    .site-content {
        margin: 30px auto;
    }
    
    .post {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .post-title {
        font-size: 24px;
    }
    
    .post-meta {
        font-size: 13px;
    }
    
    /* Services Page on Mobile */
    .services-intro-section {
        padding: 50px 0 30px;
        margin-top: 25px;
    }
    
    .services-intro-content .intro-text {
        font-size: 16px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .service-card h3 {
        font-size: 18px;
    }
    
    .service-icon {
        font-size: 40px;
    }
    
    .services-cta-section {
        padding: 50px 20px;
    }
    
    .services-cta-content h2 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .services-cta-content p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .services-cta-content .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .services-cta-content .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Who We Help Section on Mobile */
    .who-we-help-section {
        padding: 50px 0;
        margin-top: 25px;
    }
    
    .section-description {
        font-size: 16px;
        margin: -20px auto 40px;
    }
    
    .who-we-help-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .help-card {
        padding: 30px 25px;
    }
    
    .help-icon {
        font-size: 50px;
    }
    
    .help-card h3 {
        font-size: 20px;
    }
    
    /* Why Choose Section on Mobile */
    .why-choose-section {
        padding: 50px 0;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .why-choose-card {
        padding: 30px 25px;
    }
    
    .why-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .why-choose-card h3 {
        font-size: 20px;
    }
    
    .why-choose-card p {
        font-size: 14px;
    }
    
    /* How It Works Section on Mobile */
    .how-it-works-section {
        padding: 50px 0;
    }
    
    .steps-container {
        flex-direction: column;
        margin: 40px 0 30px;
        gap: 40px;
    }
    
    .step-card {
        max-width: 100%;
        padding: 35px 25px;
    }
    
    .step-arrow {
        display: none; /* Hide arrows on mobile */
    }
    
    .step-icon {
        font-size: 45px;
    }
    
    .step-card h3 {
        font-size: 20px;
    }
    
    .step-card p {
        font-size: 14px;
    }
    
    .cta-button-container .btn {
        padding: 16px 35px;
        font-size: 16px;
        width: 100%;
        max-width: 320px;
    }
    
    /* Sidebar */
    .sidebar {
        margin-top: 30px;
        padding: 20px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 25px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Forms */
    .contact-form {
        padding: 0 15px;
    }
    
    /* Full-Width Contact Form on Mobile */
    .contact-form-section {
        padding: 40px 15px;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .contact-form-header h2 {
        font-size: 28px;
    }
    
    .contact-form-header p {
        font-size: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .btn-large {
        padding: 16px 30px;
        font-size: 16px;
        width: 100%;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer */
    .site-footer {
        padding: 30px 15px 20px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-widget {
        text-align: center;
    }
    
    .footer-disclaimer {
        padding: 15px;
        margin: 30px 0 15px 0;
    }
    
    .footer-disclaimer p {
        font-size: 13px;
    }
    
    .footer-bottom {
        font-size: 14px;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    /* About Page on Mobile */
    .about-intro-section {
        padding: 50px 0 40px;
        margin-top: 25px;
    }
    
    .intro-text {
        font-size: 16px;
        line-height: 1.8;
    }
    
    .guides-us-section {
        padding: 40px 0;
    }
    
    .section-subtitle {
        font-size: 24px;
    }
    
    .guides-text {
        font-size: 17px;
    }
    
    .why-choose-section {
        padding: 50px 0;
    }
    
    .why-choose-section .why-choose-text p {
        font-size: 16px;
    }
    
    .why-choose-list li {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .why-choose-list li strong {
        font-size: 16px;
    }
    
    .why-choose-list li span {
        font-size: 14px;
        padding-left: 0;
    }
    
    .cta-section {
        padding: 50px 20px;
    }
    
    .cta-content h2 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .cta-content p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Tables (if any) */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    /* Even smaller adjustments for tiny screens */
    .site-logo {
        font-size: 20px;
    }
    
    .site-logo-img {
        height: 80px;
        max-width: 280px;
    }
    
    .hero-section {
        width: 100%;
        margin: 0;
        margin-left: 0;
        padding: 60px 15px;
        min-height: 450px;
    }
    
    .hero-tagline {
        font-size: 12px;
        letter-spacing: 1.5px;
    }
    
    .hero-headline {
        font-size: 26px;
        line-height: 1.3;
    }
    
    .hero-subheadline {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-description {
        font-size: 15px;
    }
    
    .who-we-help-section {
        padding: 40px 0;
    }
    
    .help-card {
        padding: 25px 20px;
    }
    
    .help-icon {
        font-size: 45px;
    }
    
    .help-card h3 {
        font-size: 19px;
    }
    
    .help-card p {
        font-size: 14px;
    }
    
    .why-choose-section {
        padding: 40px 0;
    }
    
    .why-choose-card {
        padding: 25px 20px;
    }
    
    .why-icon svg {
        width: 45px;
        height: 45px;
    }
    
    .why-choose-card h3 {
        font-size: 19px;
    }
    
    .why-choose-card p {
        font-size: 14px;
    }
    
    .how-it-works-section {
        padding: 40px 0;
    }
    
    .steps-container {
        margin: 30px 0 25px;
        gap: 30px;
    }
    
    .step-card {
        padding: 30px 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .step-icon {
        font-size: 40px;
    }
    
    .step-card h3 {
        font-size: 19px;
    }
    
    .step-card p {
        font-size: 14px;
    }
    
    .cta-button-container .btn {
        padding: 14px 30px;
        font-size: 15px;
    }
    
    .service-card h3 {
        font-size: 18px;
    }
    
    .service-card p {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .post-title {
        font-size: 20px;
    }
    
    .footer-widget h3 {
        font-size: 16px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 60px 20px;
        min-height: 400px;
    }
    
    .hero-section h1 {
        font-size: 28px;
    }
    
    .hero-section p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        margin-top: 20px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile devices */
    .btn,
    .main-navigation a,
    .service-card {
        min-height: 44px; /* Apple's recommended minimum touch target */
    }
    
    .main-navigation a {
        padding: 15px 20px;
    }
}

/* ===================================
   Accessibility
   =================================== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.skip-link {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px;
    position: absolute;
    top: -40px;
    left: 0;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ===================================
   WordPress Core Styles
   =================================== */
.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Embedded content - responsive videos */
iframe,
embed,
object,
video {
    max-width: 100%;
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
}

/* Mobile-friendly table styles */
@media (max-width: 768px) {
    .alignleft,
    .alignright {
        float: none;
        margin: 0 auto 20px;
        display: block;
    }
}

/* Loading optimization */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility and mobile */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}
