/* Reliance Ultimate Care Ltd - External Styles */

/* CSS Variables */
:root {
    --primary-color: #0066cc;
    --secondary-color: #191919;
    --third-color: #ff4b16;
    --dark-color: #191919;
    --primary-color-rgb: 0,102,204;
    --secondary-color-rgb: 25,25,25;
    --third-color-rgb: 255,75,22;
    --dark-color-rgb: 25,25,25;
    --link-color: #0066cc;
    --link-color-hover: #0052a3;
    --link-color-active: #004080;
    --gradient-color-from: #0066cc;
    --gradient-color-to: #0080ff;
    --gradient-color-from-rgb: 0,102,204;
    --gradient-color-to-rgb: 0,128,255;
    --healthcare-primary: #0066cc;
    --healthcare-secondary: #0080ff;
    --healthcare-accent: #4fd1c7;
}

/* Button Variations */
.button--lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.button--sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.icon {
    flex-shrink: 0;
}

/* Topbar Styles */
.topbar {
    background: #f8fafc;
    color: black;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    position: fixed;
    top: 80px; /* Position below the fixed header */
    left: 0;
    right: 0;
    z-index: 999;
    margin-bottom: 4px;
}

.topbar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 40px;
}

.topbar-icon {
    color: var(--healthcare-accent);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.topbar-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.topbar-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    white-space: nowrap;
}

.topbar-link {
    color: black;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    word-break: break-word;
}

.topbar-link:hover {
    color: var(--healthcare-primary);
}

.topbar-text {
    color: black;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 2rem 0;
}

.hero-image {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-image {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.banner-image:hover {
    transform: translateY(-10px);
}

.hero-eyebrow {
    color: var(--healthcare-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-weight: 600;
}

.hero-description {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.button--ghost {
    background: transparent;
    color: var(--healthcare-primary);
    border: 2px solid var(--healthcare-primary);
}

.button--ghost:hover {
    background: var(--healthcare-primary);
    color: white;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section--alt {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-lead {
    font-size: 1.25rem;
    text-align: center;
    color: #475569;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Carousel Styles */
.carousel {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.carousel-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.carousel .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
}

.carousel .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--healthcare-primary), var(--healthcare-secondary));
    border-radius: 2px;
}

.carousel .section-lead {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
    transition: transform 0.8s ease;
}

.slide.active img {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 3rem 2rem 2rem;
    transform: translateY(100%);
    transition: transform 0.6s ease 0.2s;
}

.slide.active .slide-overlay {
    transform: translateY(0);
}

.slide-overlay h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.slide-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--healthcare-primary);
    padding: 20px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.prev { left: -30px; }
.next { right: -30px; }

.carousel-btn:hover {
    background: var(--healthcare-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 102, 204, 0.3);
}

.carousel-btn svg {
    transition: transform 0.3s ease;
}

.carousel-btn:hover svg {
    transform: scale(1.2);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.carousel-indicators button {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.carousel-indicators button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--healthcare-primary);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.carousel-indicators button.active::before {
    transform: scale(1);
}

.carousel-indicators button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.carousel-indicators button.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--healthcare-primary), var(--healthcare-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: #475569;
    line-height: 1.6;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-us-image {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.why-us-image:hover {
    transform: translateY(-10px);
}

.about-content {
    text-align: left;
    max-width: none;
    margin: 0;
}

.about-description {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.features-list {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: #334155;
}

.features-list svg {
    color: var(--healthcare-primary);
    flex-shrink: 0;
}

.about-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-description {
    font-size: 1.125rem;
    color: #475569;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.contact-item svg {
    color: var(--healthcare-primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.contact-item p {
    color: #475569;
    margin: 0;
}

.hours-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.hours-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.hours-info p {
    color: #475569;
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--healthcare-accent);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .features-list {
        text-align: center;
    }
    
    .about-actions {
        flex-direction: column;
        align-items: center;
    }
    
    /* Mobile About Section Adjustments */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-content {
        order: 2;
        text-align: center;
    }
    
    .why-us-image {
        max-width: 100%;
        border-radius: 15px;
    }
    
    .features-list {
        text-align: center;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-actions {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    /* Mobile Carousel Adjustments */
    .carousel-container {
        height: 400px;
        max-width: 100%;
        border-radius: 0;
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
        padding: 15px;
    }
    
    .prev { left: 20px; }
    .next { right: 20px; }
    
    .carousel-indicators {
        bottom: 20px;
        gap: 12px;
    }
    
    .carousel-indicators button {
        width: 16px;
        height: 16px;
    }
    
    .slide-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .slide-overlay h3 {
        font-size: 1.5rem;
    }
    
    .slide-overlay p {
        font-size: 0.9rem;
    }
    
    .carousel {
        padding: 4rem 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .carousel-header {
        margin-bottom: 3rem;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-inner {
        padding: 1rem 15px;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-item {
        padding: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .nav-toggle,
    .button,
    .hero-actions {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 18pt;
    }
    
    .service-card,
    .contact-item {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .service-card,
    .contact-item {
        border: 2px solid #000;
    }
    
    .button--primary {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .button--ghost {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .service-card {
        animation: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .button:hover {
        transform: none;
    }
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 2rem 20px;
        max-width: 100%;
        order: 1;
    }
    
    .hero-image {
        order: 2;
        padding: 0 20px;
    }
    
    .banner-image {
        max-width: 100%;
        border-radius: 15px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .button {
        justify-content: center;
        text-align: center;
    }
    
    /* Mobile Topbar Adjustments */
    .topbar-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .topbar-item {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
        min-height: 50px;
    }
    
    .topbar-content {
        align-items: center;
        text-align: center;
    }
    
    .topbar-label {
        font-size: 0.7rem;
    }
    
    .topbar-link,
    .topbar-text {
        font-size: 0.875rem;
    }
    
    /* Ensure topbar is visible on all screen sizes */
    @media (min-width: 769px) {
        .topbar-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            text-align: left;
        }
        
        .topbar-item {
            justify-content: flex-start;
            flex-direction: row;
            gap: 0.75rem;
        }
        
        .topbar-content {
            align-items: flex-start;
            text-align: left;
        }
    }
    
    /* Extra wide screen support */
    @media (min-width: 1400px) {
        .topbar-grid {
            max-width: 1400px;
        }
    }
}

        /* Header Styles */
        .site-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            z-index: 1000;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            margin-top: 0;
            margin-bottom: 4px;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: var(--dark-color);
            background-color: #ffffff;
            padding-top: 140px; /* Account for fixed header + fixed topbar */
        }