/* Google Fonts - Elegant Professional Typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* CRITICAL: Mobile Menu Override - Version 2.2 - GOLD HAMBURGER */
.mobile-menu-toggle,
#mobile-menu-toggle,
.nav-toggle,
button.mobile-menu-toggle,
button#mobile-menu-toggle {
    background: linear-gradient(135deg, #ffd700, #ffb347) !important;
    background-color: #ffd700 !important;
    border: 2px solid #b8860b !important;
    box-shadow: 0 2px 8px rgba(218, 165, 32, 0.5) !important;
}

.mobile-menu-toggle:hover,
#mobile-menu-toggle:hover,
button.mobile-menu-toggle:hover,
button#mobile-menu-toggle:hover {
    background: linear-gradient(135deg, #ffed4e, #ffc947) !important;
    background-color: #ffed4e !important;
    border: 2px solid #b8860b !important;
}

.mobile-menu-toggle .hamburger-line,
#mobile-menu-toggle .hamburger-line,
.mobile-menu-toggle span,
#mobile-menu-toggle span {
    background: #000000 !important;
    background-color: #000000 !important;
}

.mobile-menu-toggle.active,
#mobile-menu-toggle.active {
    background: #f0f0f0 !important;
    background-color: #f0f0f0 !important;
}

/* End CRITICAL Override */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Mobile-first responsive design */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Watermark Logo */
.watermark-logo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    height: 120px;
    width: auto;
    opacity: 0.08;
    z-index: 999;
    pointer-events: none;
    transition: all 0.3s ease;
    transform: rotate(0deg);
    filter: grayscale(0.3);
    background: transparent;
    mix-blend-mode: multiply;
}

.watermark-logo-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    height: 300px;
    width: auto;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
    filter: grayscale(0.5);
    background: transparent;
    mix-blend-mode: multiply;
}

@media (max-width: 768px) {
    .watermark-logo {
        height: 80px;
        bottom: 20px;
        right: 20px;
        opacity: 0.06;
    }
    
    .watermark-logo-center {
        height: 200px;
        opacity: 0.02;
    }
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    padding-top: 100px;
}

/* Color Variables - Professional Business Theme */
:root {
    --primary-color: #2d2d2d;
    --primary-dark: #1a1a1a;
    --primary-light: #4a4a4a;
    --secondary-color: #f8f9fa;
    --accent-color: #2d2d2d;
    --gold-color: #d4af37;
    --gold-dark: #b8941f;
    --gold-light: #e6c75b;
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --white: #ffffff;
    --light-bg: #fafafa;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --warning-color: #d4af37;
    --danger-color: #e74c3c;
    --gradient-primary: linear-gradient(135deg, #2d2d2d 0%, #4a4a4a 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    --gradient-hero: linear-gradient(135deg, rgba(45, 45, 45, 0.4) 0%, rgba(74, 74, 74, 0.3) 100%);
    --shadow-sm: 0 2px 4px rgba(45, 45, 45, 0.1);
    --shadow-md: 0 4px 8px rgba(45, 45, 45, 0.15);
    --shadow-lg: 0 10px 20px rgba(45, 45, 45, 0.2);
    --shadow-xl: 0 20px 30px rgba(45, 45, 45, 0.25);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

h1 { 
    font-size: 3.8rem; 
    font-weight: 700;
    font-style: italic;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 { 
    font-size: 3rem; 
    font-weight: 600;
    position: relative;
}

h3 { 
    font-size: 2.2rem; 
    font-weight: 500;
}

h4 { 
    font-size: 1.6rem; 
    font-weight: 500;
    font-family: 'Cormorant Garamond', serif;
}

h5 { 
    font-size: 1.3rem; 
    font-family: 'Cormorant Garamond', serif;
}

h6 { 
    font-size: 1.1rem; 
    font-family: 'Cormorant Garamond', serif;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-family: 'Crimson Text', serif;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    font-weight: 600;
    border: 2px solid var(--gold-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gold-dark);
    border-color: var(--gold-dark);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--gold-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(26, 26, 26, 0.25) 25%, 
        rgba(139, 105, 20, 0.2) 45%, 
        rgba(218, 165, 32, 0.15) 55%, 
        rgba(139, 105, 20, 0.2) 75%, 
        rgba(26, 26, 26, 0.25) 95%, 
        rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(218, 165, 32, 0.1);
    z-index: 1000;
    transition: all 0.4s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(139, 105, 20, 0.1) 30%, 
        rgba(218, 165, 32, 0.08) 50%, 
        rgba(139, 105, 20, 0.1) 70%, 
        rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.navbar.scrolled {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(44, 24, 16, 0.3) 25%, 
        rgba(139, 105, 20, 0.25) 50%, 
        rgba(218, 165, 32, 0.2) 65%, 
        rgba(139, 105, 20, 0.25) 85%, 
        rgba(0, 0, 0, 0.4) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid rgba(218, 165, 32, 0.2);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 25px;
    min-height: 80px;
    position: relative;
    z-index: 2;
}

.navbar .container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.3), transparent);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.navbar.scrolled .container::before {
    width: 60%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    position: relative;
    background: transparent !important;
    padding: 8px;
    border-radius: 12px;
    backdrop-filter: none;
}

.nav-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border-radius: 12px;
    z-index: -1;
}

.nav-brand img {
    background: transparent !important;
    background-color: transparent !important;
    position: relative;
    z-index: 2;
}

.brand-logo {
    height: 65px;
    width: auto;
    min-width: 300px;
    max-width: 380px;
    opacity: 0.95;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
    background: transparent !important;
    mix-blend-mode: normal;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    position: relative;
    z-index: 10;
    
    /* Remove white background using CSS masking */
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 70%, rgba(0,0,0,0.8) 85%, transparent 100%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 70%, rgba(0,0,0,0.8) 85%, transparent 100%);
}

.brand-logo:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.15));
}

.brand-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(218, 165, 32, 0.15);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.brand-text-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.2), transparent, rgba(218, 165, 32, 0.1));
    border-radius: 13px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-text-line {
    font-family: 'Inter', 'Segoe UI', 'Arial', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 1px;
    line-height: 1.2;
    position: relative;
    transition: all 0.4s ease;
    text-transform: none;
    margin: -2px 0;
}

.brand-text-line:first-child {
    /* QualityCare - Professional Gold */
    font-size: 1.7rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    position: relative;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.1));
}

.brand-text-line:nth-child(2) {
    /* Resourcing - Professional Black */
    font-size: 1.2rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: #2c3e50;
    letter-spacing: 1px;
    margin-left: 5px;
    margin-top: -1px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

@keyframes goldShimmer {
    0% {
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 25%, #DAA520 50%, #B8860B 75%, #CD853F 100%);
    }
    100% {
        background: linear-gradient(135deg, #FFF8DC 0%, #FFD700 25%, #FFA500 50%, #DAA520 75%, #B8860B 100%);
    }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes underlineGlow {
    0% {
        box-shadow: 0 0 5px rgba(218, 165, 32, 0.3);
        opacity: 0.7;
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 0 0 25px rgba(218, 165, 32, 0.4);
        opacity: 1;
    }
}

.brand-text-container::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0%;
    height: 1px;
    background: linear-gradient(90deg, #DAA520, #FFD700, #DAA520);
    border-radius: 1px;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.nav-brand:hover .brand-text-container {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-brand:hover .brand-text-container::before {
    opacity: 1;
}

.nav-brand:hover .brand-text-container::after {
    width: 80%;
}

.nav-brand:hover .brand-text-container::after {
    transform: scaleX(0.8);
}

.nav-brand:hover .brand-text-line {
    transform: translateY(-1px) scale(1.02);
}

.nav-brand:hover .brand-text-line:first-child {
    /* Enhanced artistic glow on hover */
    text-shadow: 
        0 0 40px rgba(255, 215, 0, 0.8), 
        0 0 80px rgba(218, 165, 32, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.4)) brightness(1.1);
    animation-duration: 1.5s;
}

.nav-brand:hover .brand-text-line:nth-child(2) {
    /* Enhanced elegance on hover */
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1),
        0 0 25px rgba(218, 165, 32, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.4);
    color: #000;
    filter: drop-shadow(2px 2px 4px rgba(218, 165, 32, 0.4));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 2;
    justify-content: flex-end;
    position: relative;
}

.nav-menu::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(218, 165, 32, 0.15), transparent);
    transform: translateY(-50%);
}

.nav-menu::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(218, 165, 32, 0.15), transparent);
    transform: translateY(-50%);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 8px 12px;
    margin: 0 2px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    position: relative;
    text-transform: capitalize;
    background: transparent;
    border: 2px solid transparent;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--gold-color), var(--gold-light));
    opacity: 0;
    z-index: -1;
    transition: all 0.4s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-color), var(--gold-dark));
    transition: all 0.4s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 0.1;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link:hover,
.nav-link.active {
    color: #2C1810;
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation Toggle */
/* Mobile Navigation Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #ffffff;
    border: 2px solid #000000;
    backdrop-filter: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    width: 45px;
    height: 45px;
    justify-content: center;
    align-items: center;
}

/* Ensure visibility on all mobile devices */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        z-index: 1001;
        background: #ffffff !important;
        border: 2px solid #000000 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
        width: 40px !important;
        height: 40px !important;
        padding: 6px !important;
    }
}

.mobile-menu-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
}

.mobile-menu-toggle:hover::before {
    left: 100%;
}

.mobile-menu-toggle:hover {
    background: #f8f9fa;
    border-color: #000000;
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

/* Mobile hover override */
@media (max-width: 768px) {
    .mobile-menu-toggle:hover {
        background: #f8f9fa !important;
        border-color: #000000 !important;
        transform: scale(1.05) !important;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5) !important;
    }
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #000000;
    transition: all 0.3s ease;
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 2px 0;
}

/* Make hamburger lines more visible on mobile */
@media (max-width: 768px) {
    .hamburger-line {
        background: #000000 !important;
        width: 18px !important;
        height: 2px !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
        margin: 2px 0 !important;
    }
}

.mobile-menu-toggle:hover .hamburger-line {
    background: linear-gradient(90deg, var(--gold-dark), var(--primary-color));
    transform: scaleX(1.1);
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.4);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
    background: #000000;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(25px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(10px, -10px);
    background: #000000;
}

/* Mobile active state override */
@media (max-width: 768px) {
    .mobile-menu-toggle.active .hamburger-line:nth-child(1),
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        background: #000000 !important;
    }
    
    .mobile-menu-toggle.active {
        background: #f0f0f0 !important;
        border-color: #000000 !important;
        transform: scale(1.05) !important;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero), url('../images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    overflow: hidden;
}

/* Video Hero Styles */
.video-hero {
    background: none !important;
}

.video-hero.main-hero {
    background-image: none !important;
    background: transparent !important;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Prefers reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
    
    .video-hero {
        background: linear-gradient(135deg, rgba(45, 45, 45, 0.4), rgba(212, 175, 55, 0.2)), 
                    url('https://images.unsplash.com/photo-1544027993-37dbfe43562a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
        background-size: cover;
        background-position: center;
    }
}

/* Video loading optimization */
.hero-video:not([data-loaded]) {
    opacity: 0;
}

.hero-video[data-loaded] {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(45, 45, 45, 0.2) 25%, 
        rgba(139, 105, 20, 0.1) 45%, 
        rgba(218, 165, 32, 0.05) 55%, 
        rgba(139, 105, 20, 0.1) 75%, 
        rgba(45, 45, 45, 0.2) 95%, 
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* Specific Hero Sections */
.main-hero {
    background-image: linear-gradient(rgba(45, 45, 45, 0.4), rgba(212, 175, 55, 0.2)), url('https://images.unsplash.com/photo-1544027993-37dbfe43562a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about-hero {
    background-image: linear-gradient(rgba(45, 45, 45, 0.4), rgba(212, 175, 55, 0.2)), url('https://images.unsplash.com/photo-1559757148-5c350d0d3c56?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
}

.services-hero {
    background-image: linear-gradient(rgba(45, 45, 45, 0.4), rgba(45, 45, 45, 0.3)), url('https://images.unsplash.com/photo-1584515933487-779824d29309?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-text {
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.2rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 1.8rem;
    color: var(--white);
    line-height: 1.1;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8), 1px 1px 4px rgba(0, 0, 0, 0.9);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.4rem;
    margin-bottom: 2.8rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    font-style: italic;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    animation: bounce 2s infinite;
    font-size: 1.5rem;
    color: var(--white);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    margin-bottom: 1.5rem;
    position: relative;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-style: italic;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-header h2::before {
    content: '✦';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold-color);
    font-size: 1.5rem;
    opacity: 0.7;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Crimson Text', serif;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}

/* Features Section */
.features {
    background: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

.feature-content {
    padding: 2rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-card p {
    line-height: 1.6;
    flex: 1;
}

/* Complex and Specialised Care Feature Card with Custom Background */
.feature-card.complex-care-home {
    background: var(--white); /* Normal white background like other cards */
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card.complex-care-home .feature-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: url('../images/services/complex-specialized-care-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card.complex-care-home .feature-image img {
    display: none; /* Hide the original image, use background instead */
}

.feature-card.complex-care-home .feature-content {
    padding: 2rem;
    background: white; /* Normal white background for text area */
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-card.complex-care-home h3,
.feature-card.complex-care-home p {
    color: var(--text-primary); /* Normal text color */
    text-shadow: none; /* Remove text shadow */
    font-weight: normal; /* Normal font weight */
}

.feature-card.complex-care-home h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card.complex-care-home .feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold); /* Normal gold gradient like other cards */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    border: none;
}

.feature-card.complex-care-home:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Services Section */
.services-grid {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 4px 20px rgba(45, 45, 45, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(45, 45, 45, 0.05);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(45, 45, 45, 0.12);
    border-color: var(--gold-color);
}

.service-card.featured {
    border: 2px solid var(--gold-color);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, var(--white) 100%);
}

.service-card.featured::before {
    transform: scaleX(1);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
}

.service-icon i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.service-header {
    margin-bottom: 12px;
}

.service-header h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.service-outcome {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-color);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.service-metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 12px 0;
    border-top: 1px solid rgba(45, 45, 45, 0.08);
}

.metric {
    text-align: center;
    flex: 1;
}

.metric-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--gold-dark);
    transform: translateX(3px);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(3px);
}

/* Service Details Sections */
.service-details {
    padding: 80px 0;
    background: var(--white);
    min-height: 60vh;
}

.service-details.featured-detail {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.02) 0%, var(--white) 100%);
}

.detail-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.back-nav {
    position: absolute;
    left: 0;
    top: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
}

.detail-header h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.outcome-badge {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 25px;
    border: 2px solid var(--gold-color);
}

.detail-content {
    margin-top: 40px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.detail-info h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.detail-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.service-description {
    background: rgba(212, 175, 55, 0.05);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--gold-color);
    margin-bottom: 30px;
}

.service-description h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-description p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-box {
    background: rgba(45, 45, 45, 0.02);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(45, 45, 45, 0.08);
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--gold-color);
}

.feature-box i {
    color: var(--gold-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.feature-box h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 8px;
}

.feature-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.detail-metrics {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(45, 45, 45, 0.08);
    border: 1px solid rgba(45, 45, 45, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.detail-metrics h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 25px;
    text-align: center;
}

.metrics-list {
    margin-bottom: 25px;
}

.metric-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(45, 45, 45, 0.08);
}

.metric-item:last-child {
    border-bottom: none;
}

.metric-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-color);
}

.metric-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.detail-cta {
    display: block;
    text-align: center;
    background: var(--gradient-gold);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 15px 25px;
    border-radius: 8px;
    border: 2px solid var(--gold-color);
    transition: all 0.3s ease;
}

.detail-cta:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* Enterprise Domiciliary Care Section */
.enterprise-care {
    padding: 100px 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(26, 26, 26, 0.25) 25%, 
        rgba(139, 105, 20, 0.2) 45%, 
        rgba(218, 165, 32, 0.15) 55%, 
        rgba(139, 105, 20, 0.2) 75%, 
        rgba(26, 26, 26, 0.25) 95%, 
        rgba(0, 0, 0, 0.3) 100%);
    position: relative;
}

.enterprise-care::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(139, 105, 20, 0.05) 30%, 
        rgba(218, 165, 32, 0.03) 50%, 
        rgba(139, 105, 20, 0.05) 70%, 
        rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.enterprise-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.enterprise-text .section-header h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.enterprise-text .section-header p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.enterprise-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.enterprise-feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(218, 165, 32, 0.2);
    transition: all 0.3s ease;
}

.enterprise-feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
    border-color: rgba(218, 165, 32, 0.4);
}

.enterprise-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.enterprise-feature-content h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.enterprise-feature-content p {
    color: var(--white);
    line-height: 1.6;
    font-size: 0.95rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.enterprise-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.enterprise-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.enterprise-image:hover img {
    transform: scale(1.05);
}

.enterprise-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
}

.enterprise-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.stat {
    text-align: center;
    color: var(--white);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .enterprise-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .enterprise-text .section-header h2 {
        font-size: 2rem;
    }
    
    .enterprise-image img {
        height: 300px;
    }
    
    .enterprise-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* CTA Section */
.cta {
    background: var(--gradient-primary);
    color: var(--white);
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-text h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-color);
    border: 2px solid var(--gold-color);
}

.cta .btn-primary:hover {
    background: var(--gold-dark);
    color: var(--primary-color);
}

.cta .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

/* Accreditations Section */
.accreditations {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(26, 26, 26, 0.25) 25%, 
        rgba(139, 105, 20, 0.2) 45%, 
        rgba(218, 165, 32, 0.15) 55%, 
        rgba(139, 105, 20, 0.2) 75%, 
        rgba(26, 26, 26, 0.25) 95%, 
        rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(15px);
    padding: 2rem 0;
    border-bottom: 2px solid rgba(218, 165, 32, 0.3);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.accreditations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(139, 105, 20, 0.1) 30%, 
        rgba(218, 165, 32, 0.08) 50%, 
        rgba(139, 105, 20, 0.1) 70%, 
        rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.accreditation-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.accreditation-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(218, 165, 32, 0.2);
}

.accreditation-item:hover {
    opacity: 1;
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(218, 165, 32, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.accreditation-logo {
    height: 50px;
    width: auto;
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 5px;
}

.accreditation-item:hover .accreditation-logo {
    filter: brightness(1.2) contrast(1.2);
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.accreditation-item span {
    font-size: 0.8rem;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    font-weight: 600;
}

.company-details {
    margin-bottom: 1rem;
}

.company-details p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* Contact Links Styling */
.contact-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px dotted transparent;
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.phone-link:hover {
    color: #25D366;
    transform: translateX(2px);
}

.email-link:hover {
    color: #EA4335;
    transform: translateX(2px);
}

.address-link:hover {
    color: #4285F4;
    transform: translateX(2px);
}

.contact-info p {
    transition: all 0.3s ease;
}

.contact-info p:hover {
    transform: translateX(5px);
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(139, 105, 20, 0.5)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="g" cx="50%" cy="50%"><stop offset="0%" style="stop-color:%23f0f0f0;stop-opacity:0.1" /><stop offset="100%" style="stop-color:%23000;stop-opacity:0.3" /></radialGradient></defs><rect width="100" height="100" fill="url(%23g)" /></svg>');
    min-height: 400px;
}

.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-details h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #2d2d2d;
    position: relative;
}

.contact-details h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #DAA520, #FFD700);
    border-radius: 2px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #DAA520, #FFD700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #2d2d2d;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #1a1a1a;
    font-weight: 500;
}

.contact-info span {
    font-size: 0.9rem;
    color: #444;
    font-style: italic;
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-container h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #2d2d2d;
    position: relative;
}

.contact-form-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #DAA520, #FFD700);
    border-radius: 2px;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d2d2d;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #DAA520;
    background: white;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.map-section {
    padding: 80px 0;
    background: white;
}

.map-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2d2d2d;
    position: relative;
}

.map-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #DAA520, #FFD700);
    border-radius: 2px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Mobile Responsiveness for Contact Page */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-item {
        padding: 20px;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .contact-details h2,
    .contact-form-container h2 {
        font-size: 1.8rem;
    }
    
    .map-section h2 {
        font-size: 2rem;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(26, 26, 26, 0.35) 25%, 
        rgba(139, 105, 20, 0.3) 45%, 
        rgba(218, 165, 32, 0.25) 55%, 
        rgba(139, 105, 20, 0.3) 75%, 
        rgba(26, 26, 26, 0.35) 95%, 
        rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(15px);
    color: var(--white);
    padding: 4rem 0 2rem;
    border-top: 2px solid rgba(218, 165, 32, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(139, 105, 20, 0.15) 30%, 
        rgba(218, 165, 32, 0.1) 50%, 
        rgba(139, 105, 20, 0.15) 70%, 
        rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.footer-brand-logo {
    height: 70px;
    width: auto;
    min-width: 200px;
    margin-bottom: 15px;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(255, 255, 255, 0.1));
    background: transparent;
    mix-blend-mode: multiply;
}

.footer-brand-logo:hover {
    opacity: 1;
    transform: scale(1.03);
    filter: drop-shadow(3px 3px 6px rgba(255, 255, 255, 0.2));
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.footer-brand-line {
    font-family: 'Inter', 'Segoe UI', 'Arial', sans-serif;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 1px;
    line-height: 1.2;
    text-transform: none;
    margin: -2px 0;
    transition: all 0.3s ease;
}

.footer-brand-line:first-child {
    /* QualityCare - Gold */
    font-size: 2rem;
    font-weight: 700;
    color: #DAA520;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #FFD700, #DAA520, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 0px;
}

.footer-brand-line:nth-child(2) {
    /* Resourcing - White */
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 1.5rem;
    margin-left: 0px;
    margin-top: -5px;
}

.footer-section h4 {
    color: #FFD700;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(218, 165, 32, 0.3);
    padding-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
    padding: 4px 0;
    position: relative;
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #DAA520);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFD700;
    transform: translateX(5px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.footer-section ul li a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FFD700, #DAA520);
    color: #000000;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.social-links a:hover {
    background: linear-gradient(135deg, #DAA520, #B8860B);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.5);
    border-color: #FFD700;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    opacity: 1;
}

.contact-info p:hover {
    color: #FFD700;
    transform: translateX(3px);
}

.contact-info i {
    color: #FFD700;
    width: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.footer-bottom {
    border-top: 2px solid rgba(218, 165, 32, 0.3);
    padding-top: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.company-details {
    margin-bottom: 1rem;
}

.company-details p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Fix body padding for mobile */
    body {
        padding-top: 70px;
    }
    
    /* Video Hero Mobile Optimizations */
    .hero-video {
        object-fit: cover;
        object-position: center center;
        min-height: 100vh;
        opacity: 1;
    }
    
    .video-hero {
        min-height: 100vh;
        background-attachment: scroll;
    }
    
    .hero-overlay {
        background: linear-gradient(
            135deg, 
            rgba(0, 0, 0, 0.4) 0%, 
            rgba(45, 45, 45, 0.3) 25%, 
            rgba(139, 105, 20, 0.2) 45%, 
            rgba(218, 165, 32, 0.1) 55%, 
            rgba(139, 105, 20, 0.2) 75%, 
            rgba(45, 45, 45, 0.3) 95%, 
            rgba(0, 0, 0, 0.4) 100%
        );
    }
    
    /* Fix navbar height and padding */
    .navbar {
        min-height: 70px;
        padding: 0;
    }
    
    .navbar .container {
        min-height: 70px;
        padding: 0.5rem 15px;
        position: relative;
    }
    
    /* Remove white space above logo and make it smaller */
    .nav-brand {
        flex: 1;
        padding: 5px 0;
        margin: 0;
        background: transparent !important;
    }
    
    .brand-logo {
        height: 45px !important;
        width: auto !important;
        min-width: 200px !important;
        max-width: 250px !important;
        opacity: 1;
    }
    
    /* Hide brand text container on mobile to save space */
    .brand-text-container {
        display: none;
    }
    
    /* Make nav-toggle visible and properly positioned */
    .mobile-menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 1001;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    /* Hide desktop navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100vh);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .nav-menu::before,
    .nav-menu::after {
        display: none;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .accreditation-logos {
        gap: 2rem;
    }

    .accreditation-logo {
        height: 40px;
    }

    .accreditation-item span {
        font-size: 0.7rem;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 20px 15px;
    }

    .service-metrics {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .detail-metrics {
        position: static;
        margin-top: 30px;
    }

    .back-nav {
        position: static;
        text-align: left;
        margin-bottom: 20px;
    }

    .detail-header {
        text-align: left;
    }

    .detail-header h2 {
        font-size: 1.8rem;
    }

    .medical-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .medical-service-card {
        padding: 30px 20px;
    }

    .medical-service-card .service-icon {
        width: 70px;
        height: 70px;
    }

    .medical-service-card .service-icon i {
        font-size: 1.8rem;
    }

    .cta-content {
        text-align: center;
        flex-direction: column;
    }

    .cta-buttons {
        justify-content: center;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Fix body padding for very small screens */
    body {
        padding-top: 60px;
    }
    
    /* Video Hero Extra Small Screen Optimizations */
    .hero-video {
        opacity: 1;
        object-position: center center;
        min-height: 100vh;
    }
    
    .hero-overlay {
        background: linear-gradient(
            135deg, 
            rgba(0, 0, 0, 0.5) 0%, 
            rgba(45, 45, 45, 0.4) 25%, 
            rgba(139, 105, 20, 0.2) 45%, 
            rgba(218, 165, 32, 0.1) 55%, 
            rgba(139, 105, 20, 0.2) 75%, 
            rgba(45, 45, 45, 0.4) 95%, 
            rgba(0, 0, 0, 0.5) 100%
        );
    }
    
    .hero-title {
        text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9), 1px 1px 4px rgba(0, 0, 0, 1);
    }
    
    .hero-subtitle {
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    }
    
    /* Extra navbar optimization for very small screens */
    .navbar .container {
        padding: 0.5rem 10px;
        min-height: 60px;
    }
    
    .navbar {
        min-height: 60px;
    }
    
    .brand-logo {
        height: 40px !important;
        min-width: 180px !important;
        max-width: 220px !important;
    }
    
    .mobile-menu-toggle {
        width: 35px !important;
        height: 35px !important;
        padding: 5px !important;
        background: #ffffff !important;
        border: 2px solid #000000 !important;
    }
    
    .hamburger-line {
        width: 16px !important;
        height: 2px !important;
        margin: 1px 0 !important;
        background: #000000 !important;
    }
    
    .nav-menu {
        top: 60px;
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .feature-card,
    .service-content {
        padding: 1.5rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Services Page Styles */
.services-grid {
    padding: 80px 0;
    background: var(--light-gray);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.service-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.service-features i {
    color: var(--gold-color);
    margin-right: 10px;
    width: 20px;
}

/* About Page Styles */
.about-section {
    padding: 80px 0;
}

.about-image {
    text-align: center;
}

.values-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.values-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.values-list i {
    color: var(--gold-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Specialized Medical Care Services */
.specialized-medical-care {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.medical-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.medical-service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 8px 30px rgba(45, 45, 45, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(45, 45, 45, 0.05);
    position: relative;
    overflow: hidden;
}

.medical-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.medical-service-card:hover::before {
    transform: scaleX(1);
}

.medical-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(45, 45, 45, 0.12);
    border-color: var(--gold-color);
}

.medical-service-card.featured {
    border: 2px solid var(--gold-color);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, var(--white) 100%);
}

.medical-service-card.featured::before {
    transform: scaleX(1);
}

.medical-service-card .service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.medical-service-card .service-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.medical-service-card:hover .service-icon::after {
    width: 100px;
    height: 100px;
}

.medical-service-card .service-icon i {
    font-size: 2.2rem;
    color: var(--primary-color);
    z-index: 2;
    position: relative;
}

.medical-service-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.medical-service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.service-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.service-benefits i {
    color: var(--gold-color);
    font-size: 0.9rem;
    margin-right: 12px;
    width: 16px;
    flex-shrink: 0;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 12px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.service-cta:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.service-cta::after {
    content: '→';
    transition: transform 0.3s ease;
}

.service-cta:hover::after {
    transform: translateX(5px);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background: var(--light-gray);
}

.feature-list {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.feature-icon {
    background: var(--gold-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.feature-icon i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature-content h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-hero);
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-buttons {
    margin-top: 40px;
}

.cta-buttons .btn {
    margin: 0 10px;
}

/* Service Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 20px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    
    /* Enable smooth scrolling */
    scroll-behavior: smooth;
    
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--gold-color) #f1f1f1;
}

.modal.active .modal-content {
    transform: scale(1);
}

/* Custom scrollbar for webkit browsers */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--gold-color);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

.modal-close {
    position: sticky;
    top: 0;
    right: 0;
    background: white;
    z-index: 10001;
    color: #666;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 0 20px 0 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-close:hover,
.modal-close:focus {
    color: var(--primary-color);
    background: #f5f5f5;
    transform: scale(1.1);
}

.modal-hero {
    height: 300px;
    background: var(--gradient-hero);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
    margin-top: -15px; /* Offset for close button */
    border-radius: 20px 20px 0 0;
}

/* Hero backgrounds for different services */
.hero-personal-care {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="80" r="3" fill="white" opacity="0.15"/><circle cx="40" cy="60" r="1" fill="white" opacity="0.1"/></svg>');
}

.hero-companionship {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,20 Q60,10 70,20 Q60,30 50,20 Q40,30 30,20 Q40,10 50,20" fill="white" opacity="0.1"/></svg>');
}

.hero-household {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="10" y="40" width="20" height="20" fill="white" opacity="0.1"/><rect x="40" y="20" width="20" height="40" fill="white" opacity="0.08"/></svg>');
}

.hero-dementia {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,30 Q60,40 50,50 Q40,40 50,30" fill="white" opacity="0.15"/></svg>');
}

.hero-elderly {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="30" r="5" fill="white" opacity="0.1"/><circle cx="70" cy="70" r="4" fill="white" opacity="0.12"/></svg>');
}

.hero-stroke {
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,50 Q50,20 80,50" stroke="white" stroke-width="2" fill="none" opacity="0.2"/></svg>');
}

.hero-parkinsons {
    background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M30,60 L50,40 L70,60 L50,50 Z" fill="white" opacity="0.15"/></svg>');
}

.hero-cancer {
    background: linear-gradient(135deg, #ee9ca7 0%, #ffdde1 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,20 L60,40 L40,40 Z" fill="white" opacity="0.1"/><circle cx="50" cy="60" r="8" fill="white" opacity="0.08"/></svg>');
}

.modal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.modal-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 30px;
}

.modal-hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.modal-hero-content p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.modal-body {
    padding: 50px;
}

.modal-description {
    margin-bottom: 40px;
}

.modal-description p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
    font-size: 1.1rem;
}

.modal-features {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid var(--gold-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    background: var(--gold-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.feature-icon i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature-content h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-content p {
    color: #666;
    line-height: 1.5;
}

.modal-cta {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.modal-cta .btn {
    margin: 0 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gold-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: #c5941a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

/* Service card button styles */
.service-link {
    background: none;
    border: none;
    color: var(--gold-color);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: #c5941a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .modal-hero {
        height: 200px;
    }
    
    .modal-hero-content h2 {
        font-size: 2rem;
    }
    
    .modal-hero-content p {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 30px 25px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto 20px auto;
    }
    
    .modal-cta .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
}

/* Enterprise About Styles */
.enterprise-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.enterprise-hero .hero-overlay {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.7) 0%, rgba(74, 74, 74, 0.5) 100%);
    z-index: 2;
}

.enterprise-hero .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    text-align: center;
    color: white;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-color);
    display: block;
    font-family: 'Inter', sans-serif;
}

.hero-stats .stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.enterprise-about {
    padding: 5rem 0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.company-overview {
    margin-bottom: 4rem;
}

.enterprise-subtitle {
    font-size: 1.3rem;
    color: var(--gold-color);
    font-weight: 500;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.company-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.company-highlights {
    padding-left: 2rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.highlight-icon i {
    font-size: 1.5rem;
    color: white;
}

.highlight-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.highlight-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.mission-vision-section {
    margin: 4rem 0;
}

.mission-card, .vision-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    height: 100%;
    border-left: 5px solid var(--gold-color);
    transition: all 0.3s ease;
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.mission-card .card-icon, .vision-card .card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.mission-card .card-icon i, .vision-card .card-icon i {
    font-size: 2rem;
    color: white;
}

.mission-card h3, .vision-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.mission-card p, .vision-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.values-section {
    padding: 4rem 0;
    background: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.value-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #fafafa;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.value-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold-color);
    background: white;
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon i {
    font-size: 2rem;
    color: white;
}

.value-item h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.value-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.testimonials-section {
    padding: 5rem 0;
    background: var(--gradient-primary);
    color: white;
}

.testimonials-section .section-header h2 {
    color: white;
}

.testimonials-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.quote-icon {
    font-size: 2rem;
    color: var(--gold-color);
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: white;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.author-info h4 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.3rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--gold-color);
}

.rating {
    display: flex;
    gap: 0.3rem;
}

.rating i {
    color: var(--gold-color);
    font-size: 1rem;
}

.company-stats {
    padding: 5rem 0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.company-stats .stat-item {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-top: 4px solid var(--gold-color);
}

.company-stats .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.company-stats .stat-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.company-stats .stat-icon i {
    font-size: 2rem;
    color: white;
}

.company-stats .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.company-stats .stat-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.company-stats .stat-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive Design for Enterprise About */
@media (max-width: 768px) {
    .hero-stats {
        gap: 2rem;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .company-highlights {
        padding-left: 0;
        margin-top: 3rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .enterprise-about {
        padding: 3rem 0;
    }
    
    .mission-card, .vision-card {
        padding: 2rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .company-stats .stat-item {
        padding: 2rem 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Job Applications Animations and Styles */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeOut {
    from { 
        opacity: 1; 
        transform: translateY(0); 
    }
    to { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateX(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.success-message {
    animation: fadeIn 0.5s ease;
}

.job-card {
    animation: slideIn 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Application count badge styles */
.application-count {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    border-radius: 20px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.application-count:hover {
    transform: scale(1.05);
}

/* Enhanced button styles for job applications */
.btn-view-applications {
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-view-applications:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* ================================================= */
/* COMPREHENSIVE MOBILE RESPONSIVE DESIGN */
/* ================================================= */

/* Extra Small Devices (Phones, 0-575px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* Navigation */
    .navbar {
        padding: 10px 15px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .nav-links a {
        padding: 12px;
        font-size: 16px;
        display: block;
        width: 100%;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 40px 15px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin: 15px 0;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    /* Jobs Grid */
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .job-card {
        padding: 20px 15px;
    }
    
    .job-title {
        font-size: 18px;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 20px 15px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Small Devices (Landscape Phones, 576px-767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .nav-links {
        gap: 15px;
    }
}

/* Medium Devices (Tablets, 768px-991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    /* Admin Dashboard Tablet Adjustments */
    .dashboard {
        padding: 20px;
    }
    
    .dashboard-nav {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-btn {
        flex: 1;
        min-width: calc(50% - 5px);
    }
}

/* Large Devices (Desktops, 992px-1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .jobs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Navigation Toggle */
@media (max-width: 991.98px) {
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: #7c3aed;
        cursor: pointer;
        padding: 12px;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
        z-index: 1001;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 48px;
        min-width: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 20px;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar {
        position: relative;
    }
}

/* Mobile-specific improvements */
@media (max-width: 767.98px) {
    /* Improve touch targets */
    button, .btn, a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve form inputs */
    input, select, textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px;
    }
    
    /* Modal adjustments */
    .modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        border-radius: 12px;
    }
    
    /* Job application form mobile */
    .application-form {
        padding: 20px 15px;
    }
    
    .file-upload-area {
        padding: 30px 15px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .mobile-menu-toggle,
    .watermark-logo,
    .btn,
    button {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* Form field focus animations */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(124, 58, 237, 0.15);
    transition: all 0.3s ease;
}

/* ===============================================
   CROSS-BROWSER MOBILE RESPONSIVE FIXES
   =============================================== */

/* Prevent horizontal scroll on all devices */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Fix iOS Safari viewport units */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        min-height: -webkit-fill-available;
    }
}

/* Ultra small phones (320px) */
@media screen and (max-width: 374px) {
    .container {
        padding: 0 10px;
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 28px !important;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 16px !important;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .mobile-menu-toggle {
        padding: 8px;
        font-size: 20px;
    }
    
    .nav-links {
        padding: 15px 10px;
    }
    
    .nav-links a {
        padding: 12px 10px;
        font-size: 16px;
    }
    
    .service-card, .feature-card {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .modal-content {
        margin: 10px;
        padding: 20px 15px;
    }
    
    .job-card {
        padding: 15px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        padding: 15px 12px;
    }
    
    .hero-section {
        padding: 60px 0 40px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 20px 10px;
    }
    
    .stat-number {
        font-size: 32px;
    }
}

/* Small phones (375px - 424px) */
@media screen and (min-width: 375px) and (max-width: 424px) {
    .hero-content h1 {
        font-size: 32px !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Medium phones (425px - 767px) */
@media screen and (min-width: 425px) and (max-width: 767px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .hero-content h1 {
        font-size: 36px !important;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Tablets portrait (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 42px !important;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .btn-group {
        flex-direction: row;
        gap: 20px;
        justify-content: center;
    }
}

/* Fix for Android Chrome address bar */
@media screen and (max-width: 767px) {
    .hero-section {
        min-height: calc(100vh - 56px); /* Account for mobile browser UI */
    }
}

/* High DPI displays (Retina) */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    .hero-section {
        background-attachment: scroll; /* Fix for iOS */
    }
    
    .watermark-logo {
        height: 100px; /* Smaller on high DPI */
    }
}

/* Landscape orientation fixes */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 28px !important;
        margin-bottom: 10px;
    }
    
    .hero-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .btn-group {
        margin-top: 20px;
    }
    
    .navbar {
        padding: 10px 0;
    }
}

/* Fix for Firefox mobile */
@-moz-document url-prefix() {
    .hero-section {
        min-height: 100vh;
    }
    
    button, .btn {
        -moz-appearance: none;
        appearance: none;
    }
}

/* Fix for Safari mobile */
@supports (-webkit-appearance: none) {
    .btn, button, input[type="submit"] {
        -webkit-appearance: none;
        appearance: none;
        -webkit-border-radius: 8px;
        border-radius: 8px;
    }
    
    input, select, textarea {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
    }
    
    /* Prevent zoom on input focus */
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Keep current light theme for now - can be extended later */
    body {
        color-scheme: light;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
}

/* Print optimization */
@media print {
    .hero-section {
        background: white;
        color: black;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .btn {
        border: 1px solid black;
        background: white;
        color: black;
    }
}

/* Focus visible for accessibility */
@supports selector(:focus-visible) {
    button:focus,
    .btn:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 2px solid #7c3aed;
        outline-offset: 2px;
    }
    
    button:focus:not(:focus-visible),
    .btn:focus:not(:focus-visible),
    input:focus:not(:focus-visible),
    select:focus:not(:focus-visible),
    textarea:focus:not(:focus-visible) {
        outline: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .service-card:hover,
    .feature-card:hover,
    .job-card:hover {
        transform: none; /* Disable hover animations on touch */
    }
    
    /* Larger touch targets */
    .mobile-menu-toggle {
        padding: 15px;
        font-size: 24px;
    }
    
    .nav-links a {
        padding: 16px 20px;
        display: block;
        width: 100%;
    }
}

/* Microsoft Edge specific fixes */
@supports (-ms-ime-align: auto) {
    .hero-section {
        min-height: 100vh;
    }
    
    .btn {
        border: none;
    }
}

/* Samsung Internet specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 2.625) {
    .container {
        padding: 0 20px;
    }
}

/* Final fallback for unknown mobile browsers */
@media screen and (max-width: 480px) {
    .hero-section {
        min-height: 100vh !important;
        padding: 80px 0 60px !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        margin: 0 auto !important;
    }
    
    .hero-content h1 {
        font-size: clamp(24px, 6vw, 36px) !important;
        line-height: 1.2 !important;
    }
    
    .hero-content p {
        font-size: clamp(16px, 4vw, 18px) !important;
    }
    
    .btn {
        font-size: 16px !important;
        padding: 14px 24px !important;
        min-height: 48px !important;
        width: 100% !important;
        margin-bottom: 15px !important;
    }
    
    .stats-grid,
    .service-grid,
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .nav-links {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
        z-index: 1000 !important;
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }
}

/* Modern Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: #ffffff;
    border: 3px solid #000000;
    cursor: pointer;
    padding: 15px;
    position: relative;
    z-index: 1001;
    width: 60px;
    height: 60px;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle:hover {
    background-color: #f8f9fa;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hamburger-line {
    width: 30px;
    height: 5px;
    background-color: #ffffff !important;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
    display: block;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Ensure hamburger is visible */
    .mobile-menu-toggle {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
    
    /* Add backup font-awesome icon if hamburger lines don't show */
    .mobile-menu-toggle::before {
        content: '\f0c9'; /* Font Awesome bars icon */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 20px;
        color: #000000;
        position: absolute;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    /* Show icon if hamburger lines are not working */
    .mobile-menu-toggle:not(:has(.hamburger-line:first-child))::before {
        opacity: 1;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        transform: translateY(-100vh);
        transition: transform 0.3s ease;
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        padding: 20px;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .nav-link {
        padding: 15px 20px;
        background: rgba(248, 249, 250, 0.8);
        border-radius: 8px;
        text-align: center;
        font-weight: 500;
        transition: all 0.3s ease;
        display: block;
        color: #333;
        text-decoration: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: #333333;
        color: white;
    }
}


/* Mobile Responsive Improvements */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        font-size: 14px;
        padding: 12px 20px;
        margin-bottom: 10px;
        min-height: 48px;
        border-radius: 8px;
        font-weight: 500;
    }
    
    .nav-link {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    /* Mobile hamburger extra small screens */
    .mobile-menu-toggle {
        width: 70px !important;
        height: 70px !important;
        padding: 18px !important;
        border-width: 4px !important;
        background: #7c3aed !important;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4) !important;
    }
    
    .hamburger-line {
        width: 34px !important;
        height: 6px !important;
        margin: 5px 0 !important;
        background-color: #ffffff !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
    }
    
    /* Contact form mobile improvements */
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 16px;
        padding: 14px;
        border-radius: 8px;
        border: 2px solid #e5e7eb;
        transition: all 0.3s ease;
    }
    
    .contact-form input:focus,
    .contact-form select:focus,
    .contact-form textarea:focus {
        border-color: #7c3aed;
        outline: none;
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    }
    
    /* Better touch targets */
    .nav-brand {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .brand-logo {
        height: 40px;
        width: auto;
    }
    
    /* Prevent zoom on input focus on iOS */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* FINAL OVERRIDE: Anti-Cache Mobile Menu Colors - Version 2.2 - GOLD */
@media (max-width: 768px) {
    .mobile-menu-toggle,
    #mobile-menu-toggle,
    .nav-toggle,
    button[class*="menu-toggle"],
    button[id*="menu-toggle"] {
        background: linear-gradient(135deg, #ffd700, #ffb347) !important;
        background-color: #ffd700 !important;
        border: 2px solid #b8860b !important;
        box-shadow: 0 2px 8px rgba(218, 165, 32, 0.4) !important;
        width: 32px !important;
        height: 32px !important;
    }
    
    .mobile-menu-toggle:hover,
    #mobile-menu-toggle:hover {
        background: linear-gradient(135deg, #ffed4e, #ffc947) !important;
        background-color: #ffed4e !important;
        transform: scale(1.05) !important;
    }
    
    .mobile-menu-toggle .hamburger-line,
    #mobile-menu-toggle .hamburger-line,
    .mobile-menu-toggle span,
    #mobile-menu-toggle span {
        background: #000000 !important;
        background-color: #000000 !important;
        border: none !important;
    }
}

/* Eliminate all purple references */
* {
    --purple-primary: #ffffff !important;
    --purple-hover: #f0f0f0 !important;
    --purple-light: #f8f9fa !important;
}

/* CQC Report Section Styles */
.cqc-report-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.cqc-report-section h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.cqc-report-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
}

.cqc-report-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Care Costs Section Styles */
.care-costs-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.care-costs-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.care-costs-section .section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.care-costs-section .subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

.costs-content {
    max-width: 1000px;
    margin: 0 auto;
}

.intro-text {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.intro-text p {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.6;
}

.intro-text strong {
    color: #f5f5dc;
    font-weight: 700;
    font-size: 1.3em;
    text-shadow: 1px 1px 2px #000000; /* Black outline effect */
    -webkit-text-stroke: 0.5px #000000; /* Black border for text */
}

.costs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cost-feature {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cost-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.cost-icon {
    margin-bottom: 20px;
}

.cost-icon i {
    font-size: 3rem;
    color: #f5f5dc;
    text-shadow: 2px 2px 4px #000000; /* Black outline effect */
    -webkit-text-stroke: 1px #000000; /* Black border for icons */
}

.cost-feature h4 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.cost-feature p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cqc-report-section {
        padding: 30px 20px;
    }
    
    .care-costs-section .section-header h2 {
        font-size: 2rem;
    }
    
    .costs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cost-feature {
        padding: 30px 20px;
    }
    
    .intro-text {
        padding: 20px;
    }
}

/* Modal Hero Background Classes */
.hero-personal-care {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(184, 134, 11, 0.9)), url('../images/services/personal-care-pro.svg');
    background-size: cover;
    background-position: center;
}

.hero-elderly {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(184, 134, 11, 0.9)), url('../images/services/about-us-care.svg');
    background-size: cover;
    background-position: center;
}

.hero-dementia {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(184, 134, 11, 0.9)), url('../images/services/specialized-care.svg');
    background-size: cover;
    background-position: center;
}

.hero-overnight {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(184, 134, 11, 0.9)), url('../images/hero-bg.svg');
    background-size: cover;
    background-position: center;
}

.hero-palliative {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(184, 134, 11, 0.9)), url('../images/services/professional-care-team.svg');
    background-size: cover;
    background-position: center;
}

.hero-respite {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(184, 134, 11, 0.9)), url('../images/services/companionship.svg');
    background-size: cover;
    background-position: center;
}

.hero-companionship {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(184, 134, 11, 0.9)), url('../images/services/companionship-pro.svg');
    background-size: cover;
    background-position: center;
}

.hero-complex {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(184, 134, 11, 0.9)), url('../images/services/specialized-care.svg');
    background-size: cover;
    background-position: center;
}

.hero-emergency {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(184, 134, 11, 0.9)), url('../images/hero-bg.svg');
    background-size: cover;
    background-position: center;
}

.hero-household {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(184, 134, 11, 0.9)), url('../images/services/household-pro.svg');
    background-size: cover;
    background-position: center;
}

.hero-stroke {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(184, 134, 11, 0.9)), url('../images/services/professional-care-team.svg');
    background-size: cover;
    background-position: center;
}

.hero-parkinsons {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(184, 134, 11, 0.9)), url('../images/services/specialized-care.svg');
    background-size: cover;
    background-position: center;
}

.hero-cancer {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(184, 134, 11, 0.9)), url('../images/services/professional-care-team.svg');
    background-size: cover;
    background-position: center;
}

/* Modal Color Overrides - Change Blue to Cream with Black Borders */
.modal .cost-icon i {
    color: #f5f5dc !important; /* Cream color */
    text-shadow: 1px 1px 2px #000000; /* Black outline effect */
    -webkit-text-stroke: 1px #000000; /* Black border for text */
}

.modal .feature-icon {
    background: var(--gold-color) !important;
}

.modal .feature-icon i {
    color: var(--primary-color) !important;
}

/* Override any blue colors in modals with cream and black borders */
.modal [style*="color: #007bff"],
.modal [style*="color: #0056b3"],
.modal [style*="color: #3b82f6"],
.modal [style*="color: #2563eb"],
.modal [style*="color: blue"] {
    color: #f5f5dc !important; /* Cream color */
    text-shadow: 1px 1px 2px #000000 !important; /* Black outline */
    -webkit-text-stroke: 0.5px #000000 !important; /* Black border for text */
}

/* Change any blue backgrounds to cream with black borders in modals */
.modal [style*="background: #007bff"],
.modal [style*="background: #0056b3"],
.modal [style*="background: #3b82f6"],
.modal [style*="background: #2563eb"],
.modal [style*="background: blue"],
.modal [style*="background-color: #007bff"],
.modal [style*="background-color: #0056b3"],
.modal [style*="background-color: #3b82f6"],
.modal [style*="background-color: #2563eb"],
.modal [style*="background-color: blue"] {
    background: #f5f5dc !important; /* Cream color */
    background-color: #f5f5dc !important; /* Cream color */
    border: 2px solid #000000 !important; /* Black border */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important; /* Enhanced shadow */
}

/* Specific icon color overrides for blue FontAwesome icons with black borders */
.modal .fa-thermometer-half,
.modal .fa-heartbeat,
.modal .fa-stethoscope,
.modal .fa-user-md,
.modal .fa-chart-line,
.modal .fa-ambulance,
.modal .fa-hospital,
.modal .fa-phone-alt {
    color: #f5f5dc !important; /* Cream color for medical/blue icons */
    text-shadow: 1px 1px 2px #000000 !important; /* Black outline */
    -webkit-text-stroke: 0.5px #000000 !important; /* Black border for icons */
}

/* General cream color styling with black borders */
[style*="color: #f5f5dc"],
.cream-text {
    text-shadow: 1px 1px 2px #000000 !important;
    -webkit-text-stroke: 0.5px #000000 !important;
}

[style*="background-color: #f5f5dc"],
[style*="background: #f5f5dc"],
.cream-background {
    border: 2px solid #000000 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* FontAwesome icons with cream color get black borders */
.fa[style*="color: #f5f5dc"],
i[style*="color: #f5f5dc"] {
    text-shadow: 1px 1px 2px #000000 !important;
    -webkit-text-stroke: 0.5px #000000 !important;
}

/* Cache Buster Comment: v2.2.0 - GOLD Hamburger Only */
