@media (max-width: 768px) {
    /* Mobile-only fix for Non-Invasive Ventilation section - doesn't affect desktop */
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .service-item .service-image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 12px !important;
        margin: 0 auto 20px auto !important;
    }
    
    .service-item .service-image-wrapper img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .respiratory-hero ~ .services-section .service-item .service-text {
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .respiratory-hero ~ .services-section .service-item .service-text p,
    .respiratory-hero ~ .services-section .service-item .service-text h3,
    .respiratory-hero ~ .services-section .service-item .service-text ul,
    .respiratory-hero ~ .services-section .service-item .service-text li {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
}
@media (max-width: 600px) {
    .travel-cpap-mobile .service-content {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .travel-cpap-mobile .service-images,
    .travel-cpap-mobile .service-text {
        width: 100% !important;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .travel-cpap-mobile .service-image-wrapper {
        margin: 0 0 24px 0 !important;
        max-width: 95vw !important;
        width: 100% !important;
        display: flex;
        justify-content: center;
    }
    .travel-cpap-mobile .service-image {
        width: 100% !important;
        max-width: 350px !important;
        height: auto !important;
    }
    .travel-cpap-mobile .trav2-mobile-img {
        max-width: 250px !important;
        margin-left: 0 !important;
    }
    .travel-cpap-mobile .trav1-mobile-img .service-image-wrapper {
        max-width: 350px !important;
    }
}
@media (max-width: 600px) {
    /* Travel CPAP's section mobile layout fix */
    .service-item h2.animate-on-scroll.fade-in-down:contains("Travel CPAP's") ~ .service-content,
    .service-item:has(h2.animate-on-scroll.fade-in-down:contains("Travel CPAP's")) .service-content {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .service-item:has(h2.animate-on-scroll.fade-in-down:contains("Travel CPAP's")) .service-images {
        width: 100% !important;
        margin-left: 0 !important;
        justify-content: center !important;
        display: flex !important;
    }
    .service-item:has(h2.animate-on-scroll.fade-in-down:contains("Travel CPAP's")) .service-image-wrapper {
        margin: 0 auto 24px auto !important;
        max-width: 90vw !important;
        width: 100% !important;
        display: flex;
        justify-content: center;
    }
    .service-item:has(h2.animate-on-scroll.fade-in-down:contains("Travel CPAP's")) .service-image {
        width: 100% !important;
        max-width: 350px !important;
        height: auto !important;
    }
    .service-item:has(h2.animate-on-scroll.fade-in-down:contains("Travel CPAP's")) .service-text {
        width: 100% !important;
        margin: 0 !important;
    }
}
@media (max-width: 600px) {
    .modal {
        display: none !important;
        align-items: flex-start !important;
        justify-content: center !important;
        padding: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .modal.modal-open {
        display: flex !important;
    }
    .modal-content {
        position: relative !important;
        margin: calc(5vh + 15px) 0 5vh 0 !important;
        transform: none !important;
        max-width: 98vw !important;
        width: 98vw !important;
        min-width: 0 !important;
        padding: 0.7rem 0.7rem 1.2rem 0.7rem !important;
        border-radius: 12px !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
        max-height: 75vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    }
    .close-modal {
        top: 0.5rem !important;
        right: 0.5rem !important;
        font-size: 2.2rem !important;
        z-index: 10 !important;
        background: rgba(255,255,255,0.85) !important;
        border-radius: 50% !important;
        width: 2.5rem !important;
        height: 2.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    }
    .modal-form label,
    .modal-form input,
    .modal-form textarea,
    .modal-form button[type="submit"] {
        font-size: 1rem !important;
    }
    .modal-form input,
    .modal-form textarea {
        font-size: 1rem !important;
        padding: 0.5rem 0.7rem !important;
    }
    .modal-form button[type="submit"] {
        font-size: 1.1rem !important;
        padding: 1rem 0 !important;
        border-radius: 8px !important;
    }
    .modal-form {
        margin-bottom: 0 !important;
    }
    /* Prevent iOS input zoom */
    input, textarea, select, button {
        font-size: 16px !important;
    }
    .reviews-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 0 !important;
    }
    .review-card {
        width: 90% !important;
        max-width: 400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
}
@media (max-width: 600px) {
    .modal-content {
        max-width: 98vw !important;
        width: 98vw !important;
        min-width: 0 !important;
        padding: 0.7rem 0.5rem 0.7rem 0.5rem !important;
        border-radius: 10px !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
    }
    .modal-form label,
    .modal-form input,
    .modal-form textarea,
    .modal-form button[type="submit"] {
        font-size: 1rem !important;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.45);
    transition: background 0.3s;
}

.modal-content {
    background: #fff;
    margin: 50vh auto 0 auto;
    transform: translateY(-50%);
    padding: 0.4rem 2.5rem 0.4rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    max-width: 680px;
    width: 99%;
    position: relative;
    animation: fadeIn 0.3s;
}

.modal-content h2 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.modal-content h4 {
    font-size: 0.85rem;
    margin-top: 0.1rem;
    margin-bottom: 0.4rem;
    font-weight: 400;
}

.close-modal {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}
.close-modal:hover {
    color: #d32f2f;
}

.modal-form label {
    display: block;
    margin-top: 0.1rem;
    font-weight: 500;
    color: #333;
    font-size: 0.85rem;
}
.modal-form input,
.modal-form textarea,
.modal-form select {
     width: 100%;
     padding: 0.22rem 0.45rem;
     margin-top: 0.02rem;
     border: 1px solid #ccc;
     border-radius: 5px;
     font-size: 0.85rem;
     box-sizing: border-box;
     background: #fafbfc;
     transition: border 0.2s;
}
.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
    border: 1.5px solid #1976d2;
    outline: none;
}
.modal-form button[type="submit"] {
    margin-top: 0.4rem;
    width: 100%;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(25,118,210,0.08);
    transition: background 0.2s;
}
.modal-form button[type="submit"]:hover {
    background: #1251a3;
}

/* Desktop optimizations for modal */
@media (min-width: 768px) {
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
        padding: 1.5rem 2.5rem 1.5rem 2.5rem;
        margin: 5vh auto;
        transform: none;
    }
    
    .modal-form label {
        margin-top: 0.5rem;
        margin-bottom: 0.15rem;
    }
    
    .modal-form input,
    .modal-form textarea,
    .modal-form select {
        padding: 0.45rem 0.6rem;
        font-size: 0.9rem;
    }
    
    .modal-form textarea {
        resize: vertical;
    }
    
    .modal-form button[type="submit"] {
        margin-top: 1rem;
        padding: 0.65rem 0;
    }
    
    /* Grid layout for form fields on desktop */
    .modal-form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .modal-form-full {
        grid-column: 1 / -1;
    }
}

/* Add spacing between stacked images in service section */
.service-image-wrapper:not(:last-child) {
    margin-bottom: 24px;
}
/* ========================================
   Medical Comfort Systems - Main Styles
   ======================================== */

/* ========================================
   Animations & Keyframes
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}



@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Animation utility classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Stagger animation delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #1e8bc3;
    --accent-color: #50c878;
    --warning-color: #ff6b6b;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent horizontal scroll on mobile */
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Improve touch interactions on mobile */
a, button, input, textarea, select {
    -webkit-tap-highlight-color: rgba(44, 90, 160, 0.2);
}

/* Main content wrapper - make it grow to push footer down */
main, .main-content, section:not(.main-footer) {
    flex-shrink: 0;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Better text readability on mobile */
p, li, td, th {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   Top Header
   ======================================== */
.top-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 4px solid var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    animation: fadeInDown 0.6s ease-out;
    position: relative;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    animation: fadeInLeft 0.8s ease-out;
    margin-left: 0;
}

.logo:hover {
    opacity: 0.9;
    cursor: pointer;
    transform: scale(1.02);
}


.logo img {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.logo-text {
    display: flex; /* Show text on desktop */
    flex-direction: column;
    gap: 2px;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo .tagline {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-info {
    display: flex;
    align-items: center;
    animation: fadeInRight 0.8s ease-out;
}

.contact-info {
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-item.phone-numbers {
    gap: 6px;
}

.phone-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-link {
    white-space: nowrap;
}

.phone-divider {
    color: var(--border-color);
    font-weight: 300;
    font-size: 14px;
}

.contact-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.contact-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
}

.contact-value a,
a.contact-value {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover,
a.contact-value:hover {
    color: var(--secondary-color);
}

/* ========================================
   Mobile Menu Toggle (Hamburger)
   ======================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 2000;
    position: relative;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(44, 90, 160, 0.1);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5aa0 100%);
    border-radius: 10px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
    background: linear-gradient(135deg, #fff 0%, #e8f1ff 100%);
    animation: pulse 0.3s ease-in-out;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0) rotate(180deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
    background: linear-gradient(135deg, #fff 0%, #e8f1ff 100%);
    animation: pulse 0.3s ease-in-out;
}

/* Mobile Menu Logo - Hidden on desktop */
.mobile-menu-logo {
    display: none !important;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-overlay.closing {
    opacity: 0;
}

/* Mobile Menu Tabs */
.mobile-menu-tabs {
    display: none;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
}

.mobile-menu-tabs > li {
    border-bottom: 1px solid rgba(44, 90, 160, 0.1);
}

.mobile-menu-tabs > li:last-child {
    border-bottom: none;
}

.mobile-menu-tabs .dropdown {
    position: relative;
}

.mobile-menu-tabs a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    position: relative;
}

.mobile-menu-tabs a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    z-index: -1;
}

.mobile-menu-tabs a:hover::before,
.mobile-menu-tabs a:active::before {
    width: 4px;
}

.mobile-menu-tabs a:hover,
.mobile-menu-tabs a:active {
    background: rgba(44, 90, 160, 0.08);
    color: var(--primary-color);
    padding-left: 24px;
}

.mobile-menu-tabs a.active {
    background: linear-gradient(90deg, rgba(44, 90, 160, 0.15), rgba(44, 90, 160, 0.05));
    color: var(--primary-color);
    font-weight: 600;
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
}

.mobile-menu-tabs .dropdown > a::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.3s ease;
    color: var(--primary-color);
    margin-left: 8px;
}

.mobile-menu-tabs .dropdown.active > a::after {
    transform: rotate(180deg);
}

/* Mobile Dropdown Menu */
.mobile-menu-tabs .dropdown-menu {
    position: static !important;
    background: rgba(44, 90, 160, 0.03);
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
}

.mobile-menu-tabs .dropdown.active .dropdown-menu {
    max-height: 600px;
}

.mobile-menu-tabs .dropdown-menu li {
    border-bottom: 1px solid rgba(44, 90, 160, 0.08);
    width: 100%;
}

.mobile-menu-tabs .dropdown-menu li:last-child {
    border-bottom: none;
}

.mobile-menu-tabs .dropdown-menu a {
    padding: 15px 20px 15px 40px;
    font-size: 15px;
    background: transparent;
    font-weight: 400;
    width: 100%;
}

.mobile-menu-tabs .dropdown-menu a::before {
    display: none;
}

.mobile-menu-tabs .dropdown-menu a:hover,
.mobile-menu-tabs .dropdown-menu a:active {
    background: rgba(44, 90, 160, 0.1);
    padding-left: 44px;
}

/* Nested dropdown for mobile */
.mobile-menu-tabs .dropdown-menu .dropdown .dropdown-menu {
    background: rgba(44, 90, 160, 0.05);
    max-height: 0;
    transition: max-height 0.4s ease-in-out;
}

.mobile-menu-tabs .dropdown-menu .dropdown.active .dropdown-menu {
    max-height: 300px;
}

.mobile-menu-tabs .dropdown-menu .dropdown-menu a {
    padding-left: 60px;
}

.mobile-menu-tabs .dropdown-menu .dropdown-menu a:hover,
.mobile-menu-tabs .dropdown-menu .dropdown-menu a:active {
    background: rgba(44, 90, 160, 0.12);
    padding-left: 64px;
}

/* Arrow for nested dropdowns in mobile menu */
.mobile-menu-tabs .dropdown-menu .dropdown > a::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.3s ease;
    color: var(--primary-color);
    margin-left: 8px;
    display: inline-block;
    position: static;
    width: auto;
    height: auto;
    background: none;
}

.mobile-menu-tabs .dropdown-menu .dropdown.active > a::after {
    transform: rotate(180deg);
}

/* ========================================
   Navigation
   ======================================== */
.main-nav {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    animation: fadeInDown 0.6s ease-out 0.2s both;
}

/* Hide header-info in desktop nav */
.main-nav .header-info {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-links li {
    margin: 0;
    flex-shrink: 0;
}

.nav-links a {
    display: block;
    padding: 18px 24px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(44, 90, 160, 0.05);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

/* Dropdown Menu */
.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown > a::after {
    display: none;
}

.nav-links .dropdown > a.active {
    border-bottom: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    z-index: 1001;
}

.dropdown.active .dropdown-menu,
.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 12px 20px;
    border-bottom: none;
    display: block;
    color: var(--text-dark);
    font-size: 14px;
}

.dropdown-menu a:hover {
    background-color: rgba(44, 90, 160, 0.1);
    color: var(--primary-color);
}

/* Nested dropdown styles */
.dropdown-menu .nested-dropdown {
    position: relative;
}

.dropdown-menu .nested-dropdown > a {
    position: relative;
    padding-right: 30px;
}

.dropdown-menu .nested-dropdown > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.dropdown-menu .nested-dropdown > a:hover::after {
    width: calc(100% - 40px);
}

.nested-dropdown-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: white;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1002;
}

.dropdown-menu .nested-dropdown.active > .nested-dropdown-menu,
.dropdown-menu .nested-dropdown:hover > .nested-dropdown-menu {
    display: block;
}

.nested-dropdown-menu a {
    padding: 12px 20px;
    display: block;
    color: var(--text-dark);
    font-size: 14px;
}

.nested-dropdown-menu a:hover {
    background-color: rgba(44, 90, 160, 0.1);
    color: var(--primary-color);
}

/* Hide mobile-only items on desktop */
.mobile-only {
    display: none;
}

/* Desktop only: Prevent nested dropdown from showing on parent Services hover */
@media (min-width: 769px) {
    .nav-links .dropdown:hover .nested-dropdown-menu {
        display: none !important;
    }
    
    .nav-links .dropdown-menu .nested-dropdown:hover > .nested-dropdown-menu {
        display: block !important;
    }
}

    .nav-links a.btn-link {
        background: linear-gradient(135deg, var(--accent-color) 0%, #45b069 100%);
        color: white;
        border-radius: 8px;
        margin: 10px;
        padding: 14px 20px;
        border-bottom: none;
        box-shadow: 0 2px 10px rgba(80, 200, 120, 0.4);
        font-weight: 600;
        font-size: 14px;
        min-height: 50px;
    }.nav-links a.btn-link:hover {
    background: linear-gradient(135deg, #45b069 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(80, 200, 120, 0.4);
}

/* ========================================
   Featured Products Section
   ======================================== */
.featured-products {
    padding: 60px 40px;
    background-color: white;
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background-color: white;
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.product-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.product-card h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.1) rotate(2deg);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.3);
}
/* ========================================
   Welcome Section
   ======================================== */
.welcome-section {
    padding: 60px 40px;
    background-color: var(--bg-white);
    position: relative;
    z-index: 10;
}

.welcome-content h2 {
    color: var(--primary-color);
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
}

.subtitle {
    text-align: center;
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.welcome-text {
    max-width: 1000px;
    margin: 0 auto;
    background-image: url('/img/home.jpg');
    background-size: 470px 400px;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    letter-spacing: 0.2px;
}

.welcome-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 17px;
    font-weight: 400;
}

.cta-text {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-top: 30px;
}

.accreditation {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.badge {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    height: 500px;
    background-image: url('/img/hero2.jpg');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-out;
    z-index: 1;
    overflow: hidden;
        /* Add zoom effect for respiratory image while keeping border */
        .zoomed-border {
            transition: transform 0.3s ease;
            transform: scale(1.4); /* Zoom in by 40% */
            z-index: 1;
        }
}

/* Desktop only: Zoom out hero background image */
@media (min-width: 769px) {
    .hero-section {
        background-size: 100%;
    }
}

.hero-section.respiratory-hero {
    background-image: url('/img/a wide banner-style _optimized_.png');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 90, 160, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-cta {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-cta:hover {
    background-color: #45b369;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Coming Soon Section
   ======================================== */
.coming-soon-section {
    padding: 100px 40px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.coming-soon-content h1 {
    color: var(--primary-color);
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 700;
}

.coming-soon-content h2 {
    color: var(--accent-color);
    font-size: 36px;
    margin-bottom: 30px;
    font-weight: 600;
}

.coming-soon-content p {
    color: #333;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.coming-soon-cta {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #45b369;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    border: none;
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Why Choose Us Section
   ======================================== */
.why-choose-section {
    padding: 60px 40px;
    background: #f5f5f5;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.why-choose-section h2 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 15px;
}

.section-intro {
    color: var(--text-light);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.feature-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.feature-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.feature-image {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-white);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    transform: scale(1.3);
}

.feature-card:hover .feature-image img {
    transform: scale(1.35);
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
}

/* ========================================
   Reviews Section
   ======================================== */
.reviews-section {
    padding: 60px 40px;
    background-color: var(--bg-white);
    text-align: center;
}

.reviews-section h2 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 15px;
}

.reviews-intro {
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.review-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transform: translateY(30px);
}

.review-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.review-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.review-stars {
    color: #ffc107;
    font-size: 20px;
    letter-spacing: 2px;
}

.review-text {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.7;
    font-style: italic;
    flex-grow: 1;
}

.review-author {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

/* ========================================
   Brands Section
   ======================================== */
.brands-section {
    padding: 60px 40px;
    background-color: #f5f5f5;
    text-align: center;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.brands-grid img {
    max-width: 250px;
    height: 130px;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.4s ease;
    mix-blend-mode: multiply;
}

.brands-grid a {
    display: block;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.brands-grid a:hover {
    background-color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.brands-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.15) rotate(2deg);
}

/* ========================================
   Locations Section
   ======================================== */
.locations-section {
    padding: 60px 0;
    background-color: white;
}

.locations-section h2 {
    color: var(--primary-color);
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
}

.locations-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 50px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.location-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.location-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
}

.location-header h3 {
    margin: 0;
    font-size: 22px;
}

.location-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.location-card iframe {
    width: 100%;
    height: 250px;
    display: block;
}

.location-info {
    padding: 25px;
}

.location-info p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.location-info .phone {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 18px;
    margin-top: 15px;
}

.location-links {
    margin-top: 20px;
    text-align: center;
}

/* ========================================
   Locations Page - New Design
   ======================================== */
.container-full {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

.locations-page {
    background-color: #f5f5f5;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.locations-header {
    background-color: white;
    padding: 30px 40px 20px;
    border-bottom: 3px solid #00a9e0;
}

.locations-header h1 {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 300;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.search-bar-container {
    padding: 20px;
    background-color: white;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

#locationSearch {
    flex: 1;
    min-width: 200px;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px; /* Prevents zoom on iOS */
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

#locationSearch:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.search-btn {
    padding: 14px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 100px;
}

.search-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.locations-count {
    padding: 20px 40px;
    background-color: white;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid #e0e0e0;
}

.locations-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    height: calc(100vh - 400px);
    min-height: 600px;
}

.locations-list {
    background-color: white;
    overflow-y: auto;
    border-right: 1px solid #e0e0e0;
    -webkit-overflow-scrolling: touch;
}

.location-item {
    padding: 25px 30px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.location-item:hover {
    background-color: #f9f9f9;
}

.location-item h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.location-address {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.location-phone,
.location-fax {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.5;
}

.location-phone strong,
.location-fax strong {
    color: var(--text-light);
    font-weight: 600;
    margin-right: 5px;
}

.location-phone a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.location-phone a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.location-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.location-link,
.location-details {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 4px;
}

.location-link {
    background-color: rgba(44, 90, 160, 0.08);
}

.location-link:hover {
    background-color: rgba(44, 90, 160, 0.15);
    text-decoration: none;
}

.location-details:hover {
    text-decoration: underline;
}

.locations-map {
    position: relative;
    background-color: #e5e3df;
}

.map-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    gap: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.map-tab {
    padding: 8px 16px;
    background-color: white;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-dark);
    transition: background-color 0.2s;
}

.map-tab:first-child {
    border-radius: 4px 0 0 4px;
}

.map-tab.active {
    background-color: #f0f0f0;
    font-weight: 600;
}

.map-tab:hover {
    background-color: #f5f5f5;
}

.fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    background-color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    font-size: 16px;
    z-index: 10;
}

.fullscreen-btn:hover {
    background-color: #f5f5f5;
}

.locations-map iframe {
    width: 100%;
    height: 100%;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-form-container,
.contact-info-container {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.contact-form-container {
    animation-delay: 0.2s;
}

.contact-info-container {
    animation-delay: 0.4s;
}

.contact-form-container h2,
.contact-info-container h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 28px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.form-group:nth-child(1) { animation-delay: 0.3s; }
.form-group:nth-child(2) { animation-delay: 0.4s; }
.form-group:nth-child(3) { animation-delay: 0.5s; }
.form-group:nth-child(4) { animation-delay: 0.6s; }
.form-group:nth-child(5) { animation-delay: 0.7s; }
.form-group:nth-child(6) { animation-delay: 0.8s; }

.form-row:nth-child(1) .form-group:nth-child(1) { animation-delay: 0.4s; }
.form-row:nth-child(1) .form-group:nth-child(2) { animation-delay: 0.5s; }
.form-row:nth-child(2) .form-group:nth-child(1) { animation-delay: 0.6s; }
.form-row:nth-child(2) .form-group:nth-child(2) { animation-delay: 0.7s; }

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.contact-info-card {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.6s ease-out forwards;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateX(0) translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-left-width: 6px;
}

.contact-info-card:nth-child(1) { animation-delay: 0.5s; }
.contact-info-card:nth-child(2) { animation-delay: 0.6s; }
.contact-info-card:nth-child(3) { animation-delay: 0.7s; }
.contact-info-card:nth-child(4) { animation-delay: 0.8s; }
.contact-info-card:nth-child(5) { animation-delay: 0.9s; }

.contact-info-card h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-info-card p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-dark);
}

.contact-info-card strong {
    color: var(--text-light);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.contact-info-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-info-card.business-hours {
    background-color: #e3f2fd;
    border-left-color: var(--secondary-color);
}

.contact-info-card .note {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
    margin-top: 10px;
}

.btn-link {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1s forwards;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.btn-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4);
}

.submit-btn {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4);
}

.btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 90, 160, 0.3);
}

.btn-small {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: #45b069;
    transform: translateY(-2px);
}

/* ========================================
   Footer
   ======================================== */
.main-footer {
    background-color: #2c2c2c;
    color: white;
    padding: 50px 40px 50px;
    padding-bottom: max(50px, env(safe-area-inset-bottom, 50px));
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section p {
    line-height: 1.8;
    color: #ccc;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    padding-bottom: max(30px, calc(20px + env(safe-area-inset-bottom, 20px)));
    text-align: center;
}

.footer-bottom p {
    color: #999;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-spacer {
    display: none;
    height: 0;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet and smaller screens */
@media (max-width: 1024px) {
    .review-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .review-card .review-author {
        justify-content: center;
        display: flex;
        width: 100%;
    }
    .review-card p, .review-card .review-text {
        text-align: center;
        width: 100%;
    }
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Improve navigation wrapping on tablets */
    .nav-links {
        justify-content: center;
    }

    .nav-links a {
        padding: 16px 18px;
        font-size: 14px;
    }

    .nav-links a.btn-link {
        margin: 6px 8px;
        padding: 12px 20px;
    }
}

/* Mobile landscape and smaller tablets */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
        padding-bottom: max(60px, env(safe-area-inset-bottom, 60px));
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    .container {
        padding: 0 20px;
    }

    .top-header {
        padding: 3px 0;
        border-bottom: 2px solid var(--primary-color);
        box-shadow: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        z-index: 2100;
        background: #ffffff;
        animation: none !important;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        overflow: hidden;
    }

    .header-content {
        flex-direction: row;
        text-align: left;
        padding: 0 10px;
        gap: 8px;
        justify-content: space-between;
        align-items: center;
        min-height: 45px;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        order: 2;
        flex-shrink: 0;
    }

    .logo {
        flex-direction: row;
        gap: 6px;
        justify-content: flex-start;
        align-items: center;
        order: 1;
        flex: 1;
        min-width: 0;
        animation: none !important;
        transition: none !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .logo:hover {
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
    
    .logo img {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .logo h1 {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .header-info {
        animation: none !important;
    }

    .logo img {
        max-height: 30px !important;
        height: 30px !important;
        flex-shrink: 0;
    }

    .logo-text {
        display: flex; /* Show on mobile */
        text-align: left;
        overflow: hidden;
    }

    .logo h1 {
        font-size: 14px;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
    }

    .logo .tagline {
        font-size: 9px;
        margin-top: 0;
        letter-spacing: 0.5px;
    }

    /* Hide header info on mobile */
    .header-info {
        display: none;
    }

    /* Show header info in mobile menu */
    .main-nav .header-info {
        display: block;
        padding: 25px 20px;
        background: transparent !important;
        border-top: 1px solid rgba(44, 90, 160, 0.15);
        margin: 0;
    }

    .main-nav .contact-info {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
        background: transparent !important;
    }

    .main-nav .contact-item {
        width: 100%;
        background: transparent !important;
    }

    .main-nav .contact-label {
        display: block;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--text-light);
        margin-bottom: 8px;
        opacity: 0.8;
    }

    .main-nav .contact-value,
    .main-nav .phone-link {
        font-size: 16px;
        color: var(--primary-color);
        font-weight: 600;
        text-decoration: none;
        display: block;
        transition: color 0.3s ease;
    }

    .main-nav .phone-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .main-nav .phone-divider {
        display: none;
    }

    .main-nav .contact-value:hover,
    .main-nav .phone-link:hover {
        color: var(--secondary-color);
    }

    /* Mobile navigation - sliding sidebar */
    .main-nav {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.98) url('/img/foo-bg-mb.jpg') center/cover no-repeat;
        z-index: 1600;
        transition: right 0.3s ease, opacity 0.3s ease;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
        opacity: 0;
    }

    .main-nav.active {
        right: 0;
        opacity: 1;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.3);
    }
    
    .main-nav.closing {
        right: -100%;
        opacity: 0;
    }
    
    /* Custom scrollbar for mobile menu */
    .main-nav::-webkit-scrollbar {
        width: 4px;
    }
    
    .main-nav::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }
    
    .main-nav::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }
    
    .main-nav::-webkit-scrollbar-thumb:hover {
        background: var(--secondary-color);
    }

    /* Mobile menu logo */
    .mobile-menu-logo {
        display: none !important; /* Hide since header is now visible */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 20px;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 2px solid var(--primary-color);
        align-items: center;
        justify-content: center;
        z-index: 10;
    }
    
    .mobile-menu-logo img {
        max-width: 180px;
        height: auto;
        display: block;
    }

    /* Show mobile menu tabs instead of desktop nav */
    .nav-links {
        display: none !important; /* Hide desktop navigation */
    }

    .mobile-menu-tabs {
        display: flex !important; /* Show mobile menu tabs */
        padding-top: 0;
    }

    .welcome-content h2 {
        font-size: 28px;
    }

    .hero-section {
        height: 350px;
    }

    .hero-content {
        padding: 20px 15px;
    }

    .hero-content h1 {
        font-size: 24px;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 15px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .hero-cta {
        font-size: 15px;
        padding: 12px 30px;
    }

    .locations-section h2 {
        font-size: 28px;
    }

    .why-choose-section {
        padding: 40px 20px;
    }

    .why-choose-section h2 {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px;
    }

    .feature-card {
        padding: 25px;
    }

    .feature-image {
        height: 180px;
    }

    .product-cards,
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Page header for mobile */
    .page-header {
        padding: 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid #00a9e0;
    }

    .page-header h1 {
        font-size: 18px;
        margin: 2px 15px 0px 15px !important;
        padding: 0 !important;
        font-weight: 400;
        line-height: 1;
    }

    .breadcrumb {
        font-size: 10px;
        margin: 0 15px 2px 15px !important;
        padding: 0 !important;
    }

    .page-section {
        padding: 5px 15px;
    }

    .page-intro {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .page-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Content section (Privacy, Terms) mobile optimization */
    .content-section {
        padding: 15px;
        min-height: auto;
    }

    .content-section .container {
        padding: 20px;
        border-radius: 0;
    }

    .content-section h1 {
        font-size: 24px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .content-section h2 {
        font-size: 20px;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .content-section h3 {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .content-section p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .content-section ul,
    .content-section ol {
        margin-left: 20px;
        margin-bottom: 15px;
        line-height: 1.7;
    }

    .content-section li {
        margin-bottom: 8px;
        font-size: 15px;
    }

    .content-section table {
        font-size: 14px;
        margin: 20px 0;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .content-section table th,
    .content-section table td {
        padding: 8px;
        font-size: 14px;
    }

    .main-footer {
        padding: 40px 20px 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-bottom {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-column h3 {
        margin-bottom: 15px;
    }

    /* Contact page responsiveness */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 30px 20px;
    }

    /* Locations page specific */
    .locations-layout {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .locations-list {
        width: 100%;
        max-height: 500px;
        min-height: 300px;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
        grid-template-columns: 1fr;
    }
    
    .location-item {
        border-right: none !important;
    }
    
    .location-item:nth-last-child(-n+2) {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .location-item:last-child {
        border-bottom: none;
    }

    .locations-map {
        width: 100%;
        min-height: 400px;
        height: 500px;
    }

    .locations-header {
        padding: 2px 15px 0px 15px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        border-bottom: 1px solid #00a9e0;
    }

    .locations-header h1 {
        font-size: 18px;
        margin-bottom: 0px !important;
        margin-top: 2px !important;
        line-height: 1;
        font-weight: 400;
    }
    
    .locations-header .breadcrumb {
        font-size: 10px;
        margin-bottom: 2px !important;
    }
    
    .locations-page {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    .container-full {
        padding: 0 !important;
        margin: 0 !important;
    }

    .locations-count {
        padding: 8px 15px;
        font-size: 13px;
    }

    .search-bar-container {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }

    #locationSearch {
        width: 100%;
        min-width: 100%;
    }

    .search-btn {
        width: 100%;
    }

    /* Form improvements */
    .form-row {
        flex-direction: column;
    }

    .form-group {
        width: 100%;
    }

    /* Table responsiveness */
    table {
        font-size: 14px;
    }

    table th,
    table td {
        padding: 10px 8px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        padding: 0 8px;
        gap: 5px;
    }

    .top-header {
        padding: 8px 0;
    }

    .logo {
        gap: 8px;
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }

    .logo img {
        max-height: 40px;
        flex-shrink: 0;
    }

    .logo-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
    }

    .logo h1 {
        font-size: 15px;
        line-height: 1;
    }

    .logo .tagline {
        font-size: 7px;
        letter-spacing: 0.5px;
        line-height: 1;
    }

    .contact-info {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-item {
        min-width: auto;
        text-align: center;
    }

    .contact-label {
        font-size: 7px;
        margin-bottom: 2px;
    }

    .contact-value {
        font-size: 10px;
        line-height: 1.1;
    }

    /* Keep 2-row layout for smaller phones */
    .nav-links li {
        min-width: 33.33%;
    }

    .nav-links li:last-child {
        min-width: 100%;
    }

    .nav-links a {
        padding: 8px 4px;
        font-size: 10px;
        min-height: 38px;
    }

    .nav-links a.btn-link {
        padding: 8px 4px;
        font-size: 11px;
        min-height: 38px;
    }

    .recall-notice h2 {
        font-size: 20px;
    }

    .hero-section {
        height: 320px;
    }

    .hero-content {
        padding: 15px 12px;
    }

    .hero-content h1 {
        font-size: 20px;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 18px;
        line-height: 1.4;
    }

    .hero-cta {
        font-size: 14px;
        padding: 11px 26px;
    }

    .welcome-content h2 {
        font-size: 24px;
    }

    .why-choose-section {
        padding: 30px 15px;
    }

    .why-choose-section h2 {
        font-size: 22px;
    }

    .section-intro {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .features-grid {
        gap: 25px;
        margin-top: 25px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-image {
        height: 160px;
    }

    .feature-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .feature-card p {
        font-size: 15px;
    }

    .subtitle {
        font-size: 16px;
    }

    .btn,
    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Improve tap targets for mobile */
    button,
    a.btn,
    .location-link,
    .product-card {
        min-height: 44px;
        min-width: 44px;
    }

    /* Mobile locations page */
    .locations-header {
        padding: 15px;
    }

    .locations-header h1 {
        font-size: 26px;
    }

    .page-header {
        padding: 15px !important;
    }

    .page-header h1 {
        font-size: 26px !important;
        margin: 0 !important;
    }

    .locations-count {
        padding: 12px 15px;
        font-size: 14px;
    }

    .location-item {
        padding: 20px 15px;
    }

    .location-item h3 {
        font-size: 15px;
    }

    .location-actions {
        flex-direction: column;
        gap: 10px;
    }

    .location-link,
    .location-details {
        width: 100%;
        text-align: center;
        padding: 10px 15px;
        display: block;
    }

    .locations-list {
        max-height: 400px;
        grid-template-columns: 1fr;
    }
    
    .location-item {
        border-right: none;
    }
    
    .location-item:nth-last-child(-n+2) {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .location-item:last-child {
        border-bottom: none;
    }

    .locations-map {
        min-height: 350px;
        height: 400px;
    }

    .map-controls {
        top: 8px;
        left: 8px;
        font-size: 12px;
    }

    .map-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .fullscreen-btn {
        top: 8px;
        right: 8px;
        padding: 6px 10px;
        font-size: 14px;
    }

    /* Better spacing on mobile */
    section {
        padding: 30px 0;
    }

    .welcome-section,
    .featured-products,
    .locations-section {
        padding: 25px 0;
    }

    /* Footer improvements for mobile */
    .main-footer {
        padding: 30px 15px 30px;
        padding-bottom: max(30px, calc(20px + env(safe-area-inset-bottom, 20px)));
    }

    .footer-content {
        margin-bottom: 25px;
    }

    .footer-bottom {
        padding-top: 20px;
        padding-bottom: max(30px, calc(20px + env(safe-area-inset-bottom, 20px)));
    }

    .footer-bottom p {
        margin-bottom: 15px;
        font-size: 13px;
    }

    .footer-links a {
        font-size: 13px;
    }

    /* Reduce font sizes slightly */
    body {
        font-size: 15px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    /* Make tables scroll horizontally on very small screens */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 13px;
        min-width: 100%;
    }

    table th,
    table td {
        padding: 8px 6px;
        white-space: nowrap;
    }

    /* Content section for smaller mobile */
    .content-section {
        padding: 10px;
    }

    .content-section .container {
        padding: 15px;
    }

    .content-section h1 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .content-section h2 {
        font-size: 18px;
        margin-top: 25px;
    }

    .content-section h3 {
        font-size: 16px;
    }

    .content-section p,
    .content-section li {
        font-size: 14px;
    }

    .content-section table {
        font-size: 12px;
    }

    .content-section table th,
    .content-section table td {
        padding: 6px 4px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 18px;
    }

    .contact-info {
        gap: 10px;
    }

    .contact-value {
        font-size: 11px;
    }

    .nav-links a {
        font-size: 13px;
        padding: 12px 10px;
    }

    body {
        font-size: 14px;
    }
}

/* iPhone specific fixes (XR: 414x896, 14 Pro: 393x852) */
@media screen and (max-width: 414px) {
    html {
        height: 100%;
    }
    
    body {
        padding-bottom: 0;
        margin-bottom: 0;
        min-height: 100%;
        position: relative;
    }
    
    .main-footer {
        padding: 30px 15px 30px 15px;
        margin-bottom: 0;
        position: relative;
        z-index: 1;
    }
    
    .footer-content {
        margin-bottom: 20px;
    }
    
    .footer-bottom {
        padding-bottom: 30px;
        margin-bottom: 0;
    }
    
    .footer-spacer {
        display: none;
    }
    
    .footer-links {
        margin-bottom: 10px;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-section,
.featured-products,
.locations-section {
    animation: fadeIn 0.8s ease-in-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    height: 100%;
}

/* Fix for mobile Safari viewport height issues */
@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
}

/* ========================================
   Page Sections (for separate pages)
   ======================================== */
.page-content {
    background-color: #f5f5f5;
    min-height: calc(100vh - 200px);
    flex: 1;
}

.page-header {
    background-color: white;
    padding: 30px 40px 20px;
    border-bottom: 3px solid #00a9e0;
}

.page-header h1 {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 300;
}

.page-section {
    padding: 60px 40px;
}

.page-intro {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
}

.shop-content,
.form-content,
.contact-content,
.about-content,
.billpay-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.shop-content h2,
.form-content h2,
.contact-content h2,
.about-content h2,
.billpay-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.shop-content h3,
.form-content h3,
.contact-content h3,
.about-content h3,
.billpay-content h3 {
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.shop-content p,
.form-content p,
.contact-content p,
.about-content p,
.billpay-content p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.shop-content ul,
.form-content ul,
.contact-content ul,
.about-content ul,
.billpay-content ul {
    margin-left: 20px;
    line-height: 2;
}

.shop-content a,
.form-content a,
.contact-content a,
.about-content a,
.billpay-content a {
    color: var(--primary-color);
    font-weight: 600;
}

.shop-content a:hover,
.form-content a:hover,
.contact-content a:hover,
.about-content a:hover,
.billpay-content a:hover {
    color: var(--secondary-color);
}

/* ========================================
   Content Section (for legal pages)
   ======================================== */
.content-section {
    padding: 60px 40px;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.content-section .container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 60px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.content-section h1 {
    color: var(--primary-color);
    font-size: 42px;
    margin-bottom: 30px;
    border-bottom: 3px solid #00a9e0;
    padding-bottom: 15px;
}

.content-section h2 {
    color: var(--text-dark);
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.content-section h3 {
    color: var(--text-dark);
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.content-section ul,
.content-section ol {
    margin-left: 40px;
    margin-bottom: 20px;
    line-height: 2;
}

.content-section li {
    margin-bottom: 10px;
}

.content-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

.content-section a:hover {
    color: var(--secondary-color);
}

.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.content-section strong {
    font-weight: 600;
    color: var(--text-dark);
}

/* Breadcrumb Styling */
.breadcrumb {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 10px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-light);
}

/* ========================================
   Form Styling (Mobile-Friendly)
   ======================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

button[type="submit"],
input[type="submit"],
.submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px; /* iOS tap target */
}

button[type="submit"]:hover,
input[type="submit"]:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 90, 160, 0.3);
}

button[type="submit"]:active,
input[type="submit"]:active,
.submit-btn:active {
    transform: translateY(0);
}

/* Checkbox and radio buttons - mobile friendly */
input[type="checkbox"],
input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Better mobile table handling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

/* Improve button spacing on mobile */
.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.button-group button,
.button-group a {
    flex: 1 1 auto;
    min-width: 120px;
}

    /* Coming Soon Section - Mobile */
    .coming-soon-section {
        padding: 60px 20px;
        min-height: 400px;
    }

    .coming-soon-content h1 {
        font-size: 32px;
    }

    .coming-soon-content h2 {
        font-size: 28px;
    }

    .coming-soon-content p {
        font-size: 16px;
    }

    .coming-soon-cta {
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 14px 30px;
        font-size: 16px;
    }

/* ========================================
   Respiratory Services Section
   ======================================== */
.services-section {
    padding: 60px 40px;
    background-color: var(--bg-light);
}

.service-item {
    background: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    transition: all 0.4s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-item h2 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-item h2::before {
    font-size: 42px;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.service-text {
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out 0.2s forwards;
}

.service-text p {
    color: var(--text-dark);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-text p:last-child {
    margin-bottom: 0;
}

.service-highlights {
    background: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.service-highlights h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-highlights ul {
    list-style: none;
    padding: 0;
}

.service-highlights li {
    color: var(--text-dark);
    font-size: 15px;
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
}

.service-highlights li::before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    left: 0;
}

.service-images {
    position: relative;
    opacity: 0;
    animation: fadeInRight 0.8s ease-out 0.3s forwards;
}

.service-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
}




.service-images img {
    width: 100%;
    max-width: 320px;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    margin: 0 auto;
}

/* Show full image on mobile for respiratory page images */
@media (max-width: 600px) {
    .service-images img {
        object-fit: contain !important;
        height: auto !important;
        max-width: 95vw !important;
        background: #fff;
    }
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .services-section {
        padding: 40px 20px;
    }
    
    .service-item {
        padding: 30px 20px;
    }
    
    .service-item h2 {
        font-size: 28px;
        flex-wrap: wrap;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-highlights {
        margin-top: 20px;
    }
}

/* Sensory Page - Cubby Bed Mobile Responsive */
@media screen and (max-width: 768px) {
    /* Hero section adjustments */
    .cubby-hero-section {
        padding: 40px 20px !important;
    }
    
    .cubby-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .cubby-title {
        font-size: 32px !important;
    }
    
    .cubby-text {
        font-size: 16px !important;
    }
    
    .cubby-image-wrapper {
        transform: none !important;
    }
    
    /* Features section adjustments */
    .cubby-features-section {
        padding: 40px 20px !important;
    }
    
    .cubby-features-title {
        font-size: 24px !important;
    }
    
    /* CTA section */
    section[style*="background: linear-gradient(135deg, var(--primary-color)"] {
        padding: 40px 20px !important;
    }
    
    section[style*="background: linear-gradient(135deg, var(--primary-color)"] h3 {
        font-size: 28px !important;
    }
    
    section[style*="background: linear-gradient(135deg, var(--primary-color)"] p {
        font-size: 16px !important;
    }
    
    /* zPod section adjustments */
    .zpod-hero-section {
        padding: 40px 20px !important;
    }
    
    .zpod-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .zpod-title {
        font-size: 32px !important;
    }
    
    .zpod-text {
        font-size: 16px !important;
    }
    
    .zpod-image-wrapper {
        transform: none !important;
    }
    
    .zpod-features-section {
        padding: 40px 20px !important;
    }
    
    .zpod-features-title {
        font-size: 24px !important;
    }
    
    /* zPod CTA section */
    section[style*="background: linear-gradient(135deg, var(--secondary-color)"] {
        padding: 40px 20px !important;
    }
    
    section[style*="background: linear-gradient(135deg, var(--secondary-color)"] h3 {
        font-size: 28px !important;
    }
    
    section[style*="background: linear-gradient(135deg, var(--secondary-color)"] p {
        font-size: 16px !important;
    }
}