@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    /* Professional Corporate/Medical Palette */
    --primary: #003B73;
    /* Deep Royal Blue - Trust & Professionalism */
    --primary-dark: #002855;
    /* Darker Navy */
    --accent: #00A8CC;
    /* Cyan/Teal - Hygiene & Modernity */
    --accent-dark: #008CBA;
    --text-dark: #1A1A1A;
    /* Soft Black */
    --text-light: #555555;
    /* Gray text */
    --bg-light: #F8F9FA;
    /* Very light gray background */
    --white: #FFFFFF;
    --border: #E5E7EB;

    /* Layout & Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 6px;
    /* Sharper corners for professional look */
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    gap: 10px;
    font-size: 1rem;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* ===== TOPBAR ===== */
.topbar {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-right {
    display: flex;
    gap: 24px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-item svg {
    width: 16px;
    height: 16px;
    fill: var(--accent);
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--white);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0;
    line-height: 1;
}

.logo-text span {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1.05rem;
    position: relative;
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8)), url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.stat-card .label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-image-main img {
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 8px solid white;
}

/* ===== PAGE HEADER (Sub-pages) ===== */
.page-header {
    background: var(--primary);
    padding: 120px 0 80px;
    /* Match Hero padding */
    text-align: center;
    color: white;
}

/* ... existing page-header styles ... */

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Initial state for scroll elements */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Page Load Animation */
body {
    animation: fadeInUp 0.5s ease-out;
}

html {
    overflow-y: scroll;
    /* Prevent scrollbar jump */
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.section:nth-child(even) {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: var(--primary);
}

/* ===== CARDS (Services, Reviews, etc) ===== */
.services-grid,
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.svc-card,
.rev-card,
.why-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    /* Subtle shadow initially */
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}

.svc-card:hover,
.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.svc-icon,
.why-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    color: var(--primary);
}

.svc-card h3,
.why-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* ===== REVIEWS SPECIFIC ===== */
.rev-card {
    border-left: 4px solid var(--accent);
}

.rev-stars {
    color: #FFC107;
    margin: 12px 0;
    display: flex;
    gap: 2px;
}

.rev-stars svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.rev-quote {
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: -20px;
    font-family: sans-serif;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.rating-stars svg {
    width: 24px;
    height: 24px;
    fill: #FFC107;
}

.rating-num {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.rating-hero {
    text-align: center;
    margin-bottom: 50px;
}

.rev-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.rev-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--bg-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.rev-name {
    font-weight: 700;
    color: var(--text-dark);
}

.rev-loc {
    font-size: 0.85rem;
    color: var(--text-light);
}

.rev-text {
    font-style: italic;
    color: #444;
}

/* ===== CONTACT GRID ===== */
.contact-grid {
    display: grid;
    gap: 40px;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.ct-card {
    background: white;
    padding: 24px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.ct-icon {
    font-size: 1.5rem;
    background: var(--bg-light);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ct-details h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.ct-details p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 4px;
    line-height: 1.5;
}

.map-wrap iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* ===== VIDEO GRID ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.vid-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.vid-wrap {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    background: #000;
}

.vid-wrap .video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vid-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    transition: var(--transition);
}

.video-link:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: white;
}

.video-link:hover img {
    opacity: 0.7;
}

.vid-info {
    padding: 20px;
}

.vid-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.vid-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary-dark);
    color: #e0e0e0;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.footer-links a {
    display: block;
    margin-bottom: 12px;
    color: #b0c4de;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #889bb0;
}

/* ===== BRANCH TICKER (Simple & Clean) ===== */
.branches {
    background: var(--primary);
    color: white;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-wrap {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 30px;
    font-size: 1rem;
    font-weight: 500;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        flex-direction: column;
        justify-content: center;
        transition: 0.3s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }
}

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
}

.whatsapp-fab svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Scroll Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: white;
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.year-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--accent);
    color: white;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.yb-num {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.yb-txt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}

.pill {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-dark);
}

.pill svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-light);
}

.cta-inner h2 {
    margin-bottom: 16px;
    font-size: 2.5rem;
}

.cta-inner p {
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .year-badge {
        right: 20px;
        bottom: 20px;
    }
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-top:hover {
    background: var(--primary);
    color: white;
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

/* ===== MOBILE RESPONSIVE (Max-Width: 600px) ===== */
@media (max-width: 600px) {

    /* Typography Scaling */
    h1,
    .hero-content h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    h2,
    .section-header h2 {
        font-size: 2rem !important;
    }

    .hero-content p,
    .page-header p {
        font-size: 1rem !important;
    }

    /* Layout Adjustments */
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    /* Header & Nav */
    .navbar .logo-text h2 {
        font-size: 1.5rem;
    }

    .navbar {
        padding: 0 10px;
    }

    /* Hero Section */
    .hero {
        padding-top: 100px;
        background-position: center right;
        /* Adjust bg for mobile */
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-around;
        border-top: none;
        /* Cleaner look on mobile */
        padding-top: 20px;
    }

    .stat-card {
        text-align: center;
        min-width: 100px;
    }

    /* Page Headers */
    .page-header {
        padding: 100px 0 60px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    /* Grids */
    .services-grid,
    .reviews-grid,
    .why-grid,
    .video-grid,
    .branches-grid {
        grid-template-columns: 1fr;
        /* Force single column */
        gap: 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Review Cards */
    .rev-card {
        padding: 24px 20px;
    }

    .rev-quote {
        font-size: 3rem;
    }

    /* Contact Section */
    .contact-grid .contact-cards {
        flex-direction: column;
    }

    .ct-card {
        padding: 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack footer columns */
        gap: 30px;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
        /* Center text */
    }

    .footer-links a:hover {
        padding-left: 0;
        /* Remove hover shift on mobile */
        color: white;
    }

    /* Mobile Menu Adjustments */
    .nav-links {
        padding-top: 80px;
        /* Space for fixed header */
        gap: 20px;
    }

    .nav-links a:not(.btn) {
        font-size: 1.2rem;
    }

    /* Year Badge */
    .year-badge {
        right: 10px;
        bottom: 10px;
        padding: 15px;
    }

    .yb-num {
        font-size: 1.4rem;
    }

    /* About Pills */
    .about-pills {
        grid-template-columns: 1fr;
        /* Single column pills */
    }

    /* WhatsApp FAB */
    .whatsapp-fab {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-fab svg {
        width: 25px;
        height: 25px;
    }

    .scroll-top {
        bottom: 20px;
        left: 20px;
    }
}