@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* --- DESIGN SYSTEM TOKENS --- */
:root {
    --primary: #0D9488;
    --primary-rgb: 13, 148, 136;
    --secondary: #0F766E;
    --secondary-rgb: 15, 118, 110;
    --primary-dark: #115E59;
    --accent: #CCFBF1;
    
    --bg-white: #FAFDFD; /* Soft off-white to reduce glare and plain look */
    --bg-light: #F0FDFA; /* Warmer mint-grey background for alternating sections */
    --bg-card: #FFFFFF;
    --bg-input: #F0F6F5;
    
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-light: #64748B;
    --text-white: #FFFFFF;
    
    --border-color: rgba(13, 148, 136, 0.15); /* Soft colored border */
    --border-radius-sm: 10px;
    --border-radius-md: 20px;
    --border-radius-lg: 30px;
    --border-radius-full: 9999px;
    
    --shadow-sm: 0 4px 10px rgba(13, 148, 136, 0.04);
    --shadow-md: 0 10px 30px rgba(13, 148, 136, 0.06);
    --shadow-lg: 0 20px 50px rgba(13, 148, 136, 0.1);
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.25;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary);
}

/* --- LAYOUT UTILITIES --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-bg-light {
    background-color: var(--bg-light);
}

.section-title-wrapper {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title-wrapper span {
    display: inline-block;
    background-color: var(--accent);
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-full);
    margin-bottom: 1rem;
}

.section-title-wrapper p {
    font-size: 1.125rem;
    margin-top: 1rem;
}

/* --- GRID SYSTEM --- */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- BUTTONS & CTAs --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--bg-white);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.1);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--secondary);
}

.btn-white:hover {
    background-color: var(--accent);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius-sm);
}

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
}

header.header-transparent {
    background-color: transparent;
}

header.header-solid {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

header .container {
    max-width: 1280px;
    padding: 0 2rem;
    transition: max-width 0.3s ease, padding 0.3s ease;
}

@media (min-width: 1025px) {
    header .container {
        max-width: 1440px;
        padding: 0 3rem;
    }
    .logo {
        margin-right: 4rem;
    }
    .navbar .nav-cta {
        margin-left: 4rem;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition-normal);
}

header.scrolled .navbar {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--secondary);
}

.logo span {
    font-size: 1.15rem;
    line-height: 1.05;
    display: block;
    white-space: nowrap;
}

.footer-about .logo span {
    font-size: 1.4rem;
    white-space: nowrap;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
}

/* The cropped source removes excess transparent canvas for a clear navbar brand mark. */
header .navbar-logo {
    display: block;
    margin-left: 1.5rem;
    width: 195px;
    height: 56px;
}

header .navbar-logo .logo-img {
    display: block;
    width: 195px;
    height: auto;
    max-width: none;
    border-radius: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem; /* increased from 1.25rem for breathing room on desktop */
    list-style: none;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem; /* decreased from 0.95rem for sleek design */
    color: var(--text-primary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
}

.nav-menu .nav-cta {
    display: none;
}

.lang-switcher {
    display: inline-flex;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-full);
    padding: 1.5px;
    margin-right: 0;
}

.lang-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--border-radius-full);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.lang-btn:hover {
    color: var(--primary);
}

.lang-btn.active {
    background-color: var(--primary);
    color: white;
}

/* Responsive adjustments for mid-size desktop / laptop screens to prevent crowding */
@media (max-width: 1366px) {
    .nav-menu {
        gap: 1.1rem; /* tighter spacing for laptops */
    }
    .nav-link {
        font-size: 0.85rem; /* smaller font for laptops */
    }
    .logo span {
        font-size: 1.05rem; /* slightly smaller logo text */
    }
    .logo-img {
        width: 36px;
        height: 36px;
    }
    .lang-switcher {
        margin-right: 0.5rem;
    }
    .btn-sm {
        padding: 0.55rem 1.1rem; /* slightly smaller CTA button */
        font-size: 0.825rem;
    }
}

@media (max-width: 1200px) {
    .nav-menu {
        gap: 0.85rem; /* even tighter spacing for very small screens */
    }
    .nav-link {
        font-size: 0.8rem;
    }
    .lang-switcher {
        padding: 1px;
    }
    .lang-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* --- DROPDOWN NAVIGATION --- */
.has-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.dropdown-toggle .dropdown-arrow {
    display: inline-block;
    width: 14px;
    height: 14px;
    stroke-width: 2.5px;
    transition: transform var(--transition-fast);
    vertical-align: middle;
}

.has-dropdown:hover .dropdown-toggle .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(10px);
    width: 280px;
    background-color: var(--bg-white);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.1);
    list-style: none;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.625rem 1.25rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    text-align: left;
}

.dropdown-menu a:hover {
    background-color: var(--accent);
    color: var(--secondary);
    padding-left: 1.5rem;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.75rem;
    color: var(--secondary);
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 12rem 0 8rem 0;
    background: linear-gradient(135deg, #F0FDFA 0%, #CCFBF1 50%, #E0F2FE 100%);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-item h3 {
    font-size: 2.25rem;
    color: var(--secondary);
    font-weight: 700;
}

.stat-item p {
    font-size: 0.875rem;
    margin-bottom: 0;
    color: var(--text-light);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 480px;
    height: 520px;
    background-color: var(--accent);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-svg-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.floating-badge-1 {
    top: 15%;
    left: -5%;
}

.floating-badge-2 {
    bottom: 15%;
    right: -5%;
}

.floating-badge-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.floating-badge-info h4 {
    font-size: 0.95rem;
    color: var(--secondary);
    margin-bottom: 0.15rem;
}

.floating-badge-info p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* --- QUICK INFORMATION --- */
.quick-info-section {
    padding: 0;
    margin-top: -3rem;
    z-index: 20;
    position: relative;
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: var(--bg-card);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border-top: 4px solid var(--primary);
}

.info-card {
    padding: 2.5rem;
    display: flex;
    gap: 1.5rem;
    border-right: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.info-card:last-child {
    border-right: none;
}

.info-card:hover {
    background-color: var(--bg-light);
}

.info-card-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.info-card-content h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.info-card-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.info-card-content a {
    font-weight: 600;
}

/* --- WHY CHOOSE US --- */
.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary);
    border-radius: var(--border-radius-md);
    padding: 3rem 2.25rem;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    border-top-color: var(--secondary);
}

.feature-icon-wrapper {
    width: 60px;
    height: 56px;
    background-color: var(--accent);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    margin-bottom: 1.75rem;
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--primary);
    color: white;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.feature-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* --- PANEL LOGO CARDS --- */
.panel-logo-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(13, 148, 136, 0.12);
    border-radius: var(--border-radius-sm);
    height: 130px; /* increased to 130px for even larger logos */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem; /* minimal padding to give logo maximum space */
    transition: var(--transition-normal);
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.02);
}

.panel-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.08);
    border-color: rgba(13, 148, 136, 0.3);
}

.panel-logo-card img {
    max-width: 95%; /* allowed to take up more width */
    max-height: 90%; /* allowed to take up more height */
    object-fit: contain;
    transition: var(--transition-normal);
}

.panel-logo-card:hover img {
    transform: scale(1.08); /* subtle zoom on hover */
}

/* --- SERVICE HIGHLIGHT CARDS --- */
.service-highlight-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(13, 148, 136, 0.08);
    border-radius: var(--border-radius-md);
    padding: 2rem 1.75rem;
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 148, 136, 0.2);
}

.service-highlight-icon {
    width: 44px;
    height: 44px;
    background-color: var(--bg-light);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 0.5rem;
    transition: var(--transition-normal);
}

.service-highlight-card:hover .service-highlight-icon {
    background-color: var(--primary);
    color: white;
    transform: scale(1.05);
}

.service-highlight-card h4 {
    color: var(--secondary);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
}

.service-highlight-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- PREMIUM MOBILE ONSITE EXTRA CLASSES --- */
.floating-visual-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-light) 100%);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition-normal);
    animation: floatAnimation 4s ease-in-out infinite;
}

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-visual-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.3);
}

.floating-card-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: var(--border-radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premium-check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.premium-check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.premium-check-list li i {
    color: var(--primary);
    flex-shrink: 0;
}

.package-highlight-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(13, 148, 136, 0.1);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 2rem;
    transition: var(--transition-normal);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.package-highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.package-highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.25);
}

.package-icon-circle {
    width: 60px;
    height: 56px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin: 0 auto 1.5rem auto;
    transition: var(--transition-normal);
}

.package-highlight-card:hover .package-icon-circle {
    background-color: var(--primary);
    color: white;
    transform: rotate(360deg);
}

.package-highlight-card h4 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.package-highlight-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.package-btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    background-color: var(--bg-light);
    color: var(--secondary);
    border: 1px solid rgba(13, 148, 136, 0.2);
    transition: var(--transition-fast);
}

.package-highlight-card:hover .package-btn {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.stats-highlight-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.stats-highlight-box::after {
    content: '%';
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(13, 148, 136, 0.03);
    line-height: 1;
    pointer-events: none;
}

.contact-mini-card {
    transition: var(--transition-normal);
}

.contact-mini-card:hover {
    transform: translateY(-4px);
    border-color: rgba(13, 148, 136, 0.3) !important;
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-card) !important;
}

/* --- FILTER BUTTONS --- */
.filter-btn.active {
    background-color: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 10px -2px rgba(13, 148, 136, 0.3);
}

/* --- SERVICES CARDS --- */
.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    border-top-color: var(--secondary);
}

.service-img-wrapper {
    height: 220px;
    background-color: var(--accent);
    position: relative;
    overflow: hidden;
}

.service-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition-slow);
}

.service-card:hover .service-img-placeholder {
    transform: scale(1.08);
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 75%;
    transition: var(--transition-slow);
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.08);
}

.service-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--secondary);
    color: white;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--border-radius-full);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.service-card:nth-child(even) .service-badge {
    background-color: var(--primary);
}

.service-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-body h3 {
    margin-bottom: 0.75rem;
}

.service-body p {
    font-size: 0.925rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-body .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.service-body .btn-link:hover {
    color: var(--secondary);
}

/* --- MOBILE AUDIOMETRY SECTION --- */
.audiometry-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 5rem;
}

.audiometry-visual {
    background-color: var(--accent);
    border-radius: var(--border-radius-lg);
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.audiometry-content span {
    display: inline-block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.audiometry-content h2 {
    margin-bottom: 1.5rem;
}

.audiometry-content p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.audiometry-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.audiometry-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

.audiometry-features li i {
    color: var(--primary);
    flex-shrink: 0;
}

/* --- CORPORATE PANEL LOGO CAROUSEL --- */
.logo-slider {
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
}

.logo-slider::before, .logo-slider::after {
    content: "";
    height: 90px;
    position: absolute;
    width: 200px;
    z-index: 2;
}

.logo-slider::before {
    left: 0;
    top: 0;
    background: linear-gradient(to right, var(--bg-white) 0%, transparent 100%);
}

.logo-slider::after {
    right: 0;
    top: 0;
    background: linear-gradient(to left, var(--bg-white) 0%, transparent 100%);
}

.logo-track {
    display: flex;
    width: calc(250px * 12);
    animation: scrollLogos 25s linear infinite;
}

.logo-item {
    width: 250px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.logo-box {
    background-color: var(--bg-light);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-sm);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-normal);
}

.logo-box:hover {
    color: var(--primary);
    border-color: var(--primary);
    background-color: var(--bg-white);
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 6)); }
}

/* --- BRANCHES SECTION --- */
.branch-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.branch-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    border-top-color: var(--secondary);
}

.branch-card-img {
    height: 160px;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.branch-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.branch-card-body h3 {
    margin-bottom: 0.75rem;
}

.branch-details {
    list-style: none;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.branch-details li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.branch-details li i {
    color: var(--primary);
    margin-top: 3px;
}

.branch-card-body .btn {
    width: 100%;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 3rem 2.5rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.quote-icon {
    font-size: 3.5rem;
    color: var(--accent);
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-rating {
    color: #FFC107;
    margin-bottom: 1.25rem;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.author-info p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* --- FAQ ACCORDION --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: var(--bg-card);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-normal);
}

.faq-header h3 {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary);
    margin-right: 1.5rem;
}

.faq-icon-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--secondary);
    font-size: 0.85rem;
    transition: var(--transition-normal);
}

.faq-item.active .faq-icon-toggle {
    background-color: var(--primary);
    color: white;
    transform: rotate(180deg);
}

.faq-content-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--transition-normal);
}

.faq-item.active .faq-content-wrapper {
    grid-template-rows: 1fr;
}

.faq-content {
    overflow: hidden;
}

.faq-content-inner {
    padding: 0 2rem 1.5rem 2rem;
    font-size: 0.975rem;
    color: var(--text-secondary);
}

/* --- CALL TO ACTION --- */
.cta-banner {
    background-color: var(--secondary);
    color: var(--text-white);
    border-radius: var(--border-radius-lg);
    padding: 5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(89, 191, 181, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    max-width: 650px;
}

.cta-content h2 {
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* --- FOOTER --- */
footer {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    padding: 6rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: var(--text-white);
    margin-bottom: 1.75rem;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-col .logo {
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.footer-col .logo-icon {
    background-color: var(--text-white);
    color: var(--secondary);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

.social-links {
    display: flex;
    gap: 0.875rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition-normal);
}

.social-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link:hover .social-icon-img {
    transform: scale(1.1);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    display: inline-block;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-contact-info {
    list-style: none;
}

.footer-contact-info li {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.footer-contact-info li i {
    color: var(--primary);
    margin-top: 4px;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.85rem 1rem;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    background-color: var(--primary);
    border: none;
    color: white;
    padding: 0 1.25rem;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background-color: #4bb3a8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 1.5rem;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* --- SCROLL TO TOP & WHATSAPP BUTTONS --- */
/* --- SCROLL TO TOP & FLOATING CONTACT BUTTONS --- */
.back-to-top {
    position: fixed;
    bottom: 10.5rem;
    right: 2.25rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* Floating contact actions speed dial stack */
.speed-dial-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 999;
}

.speed-dial-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.speed-dial-container.active .speed-dial-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.speed-dial-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition-normal);
}

.speed-dial-btn:hover {
    transform: scale(1.08) translateY(-3px);
}

.speed-dial-btn.whatsapp-dial {
    background-color: #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.speed-dial-btn.whatsapp-dial:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.speed-dial-btn.phone-dial {
    background-color: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.speed-dial-btn.phone-dial:hover {
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

.speed-dial-btn.booking-dial {
    background-color: #c92c2c;
    box-shadow: 0 4px 15px rgba(201, 44, 44, 0.4);
}

.speed-dial-btn.booking-dial:hover {
    box-shadow: 0 6px 20px rgba(201, 44, 44, 0.5);
}

.speed-dial-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(89, 191, 181, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1000;
}

.speed-dial-toggle:hover {
    transform: scale(1.08);
}

.speed-dial-container.active .speed-dial-toggle {
    background-color: #721c24;
    box-shadow: 0 6px 20px rgba(114, 28, 36, 0.4);
    transform: rotate(90deg);
}

.speed-dial-toggle svg,
.speed-dial-btn svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2px;
    display: block;
}

/* WhatsApp brand SVG is a filled path, so it should not have stroke, only fill */
.speed-dial-btn.whatsapp-dial svg {
    width: 26px;
    height: 26px;
    display: block;
}

.speed-dial-btn.whatsapp-dial svg path {
    fill: #ffffff !important;
    stroke: none !important;
    stroke-width: 0 !important;
}

/* --- ABOUT PAGE SPECIFICS --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-visual {
    background-color: var(--accent);
    border-radius: var(--border-radius-lg);
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.about-features-list {
    list-style: none;
    margin-top: 1.5rem;
}

.about-features-list li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-features-list li i {
    color: var(--primary);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-white);
    border: 4px solid var(--primary);
    top: 24px;
    border-radius: 50%;
    z-index: 1;
}

.left-timeline {
    left: 0;
}

.right-timeline {
    left: 50%;
}

.right-timeline::after {
    left: -8px;
}

.timeline-content {
    padding: 2rem;
    background-color: var(--bg-card);
    position: relative;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    margin-bottom: 0.75rem;
    color: var(--secondary);
    font-size: 1.25rem;
}

.timeline-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- SERVICES CATEGORIES TAB SYSTEM --- */
.services-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    margin-bottom: 4rem;
}

.service-tab-btn {
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    padding: 0.85rem 1.75rem;
    border-radius: var(--border-radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-normal);
}

.service-tab-btn:hover, .service-tab-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.services-list-container {
    margin-top: 2rem;
}

.services-category-block {
    display: none;
}

.services-category-block.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* --- DOCTORS TEAM SHOWCASE --- */
.doctor-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.doctor-img-wrapper {
    height: 300px;
    background-color: var(--accent);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--primary);
}

.doctor-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-slow);
}

.doctor-card:hover .doctor-img-placeholder {
    transform: scale(1.05);
}

.doctor-body {
    padding: 2rem;
    text-align: center;
}

.doctor-body h3 {
    font-size: 1.35rem;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.doctor-body .qualification {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.doctor-body p {
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.doctor-body .btn {
    width: 100%;
}

/* --- CORPORATE BENEFITS & PACKAGE --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    padding: 2.25rem;
    border: 1px solid var(--border-color);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-desc h3 {
    margin-bottom: 0.5rem;
}

.benefit-desc p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.package-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 3rem 2.5rem;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.package-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.package-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.package-price {
    font-size: 2.5rem;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.package-price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.package-features {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.package-features li i {
    color: var(--primary);
}

.package-card .btn {
    width: 100%;
}

/* --- CONTACT FORM & TABS MAPS --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
}

.contact-form-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 4rem 3.5rem;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h2 {
    margin-bottom: 1rem;
}

.contact-form-wrapper p {
    margin-bottom: 2.5rem;
}

.form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(89, 191, 181, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: var(--secondary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-details h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.contact-info-details p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Branch Map Selector */
.map-tabs-container {
    margin-top: 4rem;
}

.map-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    margin-bottom: 2rem;
    justify-content: center;
}

.map-tab-btn {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
}

.map-tab-btn:hover, .map-tab-btn.active {
    background-color: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.map-viewport {
    height: 450px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    box-shadow: var(--shadow-md);
}

.map-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

.map-frame.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* --- INDIVIDUAL BRANCH PAGES --- */
.branch-hero {
    height: 440px;
    padding-top: 5.5rem;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, var(--secondary) 50%, var(--primary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.branch-hero .container {
    width: 100%;
}

@media (max-width: 768px) {
    .branch-hero {
        height: auto;
        padding: 8rem 0 5rem 0;
    }
}

/* Premium subpage hero tech-grid overlay */
.branch-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 60% 40%, black 50%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, black 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Floating Aurora Orb */
.branch-hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.22) 0%, rgba(45, 212, 191, 0.15) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    top: -120px;
    right: 5%;
    pointer-events: none;
    z-index: 2;
    animation: aurora-float 15s ease-in-out infinite alternate;
}

@keyframes aurora-float {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(40px, 30px) scale(1.15);
        opacity: 1;
    }
    100% {
        transform: translate(-30px, -20px) scale(0.9);
        opacity: 0.7;
    }
}

.branch-hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 5; /* Sit on top of grid/aurora */
}

/* Premium subpage hero badge pill */
.hero-badge-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    padding: 0.35rem 1.15rem !important;
    border-radius: 50px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 1.25rem !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero-badge-pill svg,
.hero-badge-pill i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    width: 14px !important;
    height: 14px !important;
}

.hero-badge-pill span {
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.branch-hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.branch-hero-content p {
    font-size: 1.15rem;
    line-height: 1.75;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Global right column glass card style (for backward compatibility if needed) */
.branch-hero-grid > div:not(.branch-hero-content) {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.branch-hero-grid > div:not(.branch-hero-content) > div {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 24px !important;
    padding: 1.5rem 2.5rem !important;
    text-align: center !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    max-width: 360px;
    width: 100%;
    margin-top: 1rem;
}

.branch-hero-grid > div:not(.branch-hero-content) > div:hover {
    transform: translateY(-5px) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15) !important;
}

/* Center SVGs in the hero */
.branch-hero-grid > div:not(.branch-hero-content) svg {
    margin: 1rem auto 0 auto !important;
    display: block !important;
    max-width: 220px !important;
}

/* --- HERO BRIDGE FLOATING CARDS --- */
.hero-bridge-section {
    position: relative;
    z-index: 10;
    margin-top: -3.5rem; /* Pull it up to overlap the hero banner bottom */
    margin-bottom: 2rem;
}

.hero-bridge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.hero-bridge-card {
    background: #ffffff;
    border: 1px solid rgba(13, 148, 136, 0.08);
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: var(--transition-normal);
}

.hero-bridge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.2);
}

.bridge-card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--accent);
    color: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.hero-bridge-card:hover .bridge-card-icon {
    background-color: var(--primary);
    color: #ffffff;
    transform: scale(1.05) rotate(3deg);
}

.bridge-card-info h4 {
    font-size: 1.05rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
}

.bridge-card-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.4;
}

@media (max-width: 991px) {
    .hero-bridge-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-bridge-section {
        margin-top: -2.5rem;
        margin-bottom: 1rem;
    }
}

.branch-hero-meta {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}

.branch-hero-meta li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary);
}

.branch-hero-meta li i {
    color: var(--primary);
}

.branch-info-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
}

.branch-content-section h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
}

.branch-facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.facility-badge {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: var(--transition-normal);
}

.facility-badge:hover {
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.facility-badge i {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.facility-badge h4 {
    font-size: 0.95rem;
    color: var(--secondary);
}

.branch-sidebar {
    position: sticky;
    top: 110px;
    height: fit-content;
}

.sidebar-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.sidebar-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.hours-table tr {
    border-bottom: 1px solid var(--border-color);
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table td {
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.hours-table td:first-child {
    font-weight: 600;
    color: var(--secondary);
}

.hours-table td:last-child {
    text-align: right;
    color: var(--text-secondary);
}

/* --- ANIMATION CLASS AND KEYFRAMES --- */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.75s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.75s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVENESS MEDIA QUERIES --- */

/* Laptop (1440px) */
@media (max-width: 1440px) {
    html { font-size: 15px; }
    .container { max-width: 1200px; }
}

/* Tablet (1024px) / iPad */
@media (max-width: 1024px) {
    html { font-size: 14px; }
    
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    
    /* Header mobile structure */
    .navbar {
        display: flex;
        justify-content: space-between;
    }
    
    .mobile-nav-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background-color: var(--bg-white);
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 6rem 2rem 2rem 2rem;
        gap: 1.5rem;
        transition: var(--transition-normal);
        z-index: 1000;
        overflow-y: auto;
        margin-left: 0;
        margin-right: 0;
    }
    
    .nav-menu.active {
        right: 0;
    }

    /* Mobile Accordion Dropdowns */
    .nav-menu .has-dropdown {
        width: 100%;
    }
    
    .nav-menu .dropdown-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
    }
    
    .nav-menu .dropdown-toggle::after {
        margin-left: auto;
        transition: transform 0.3s ease;
    }
    
    .nav-menu .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        background-color: rgba(13, 148, 136, 0.03) !important;
        padding: 0 !important;
        margin-top: 0.25rem;
        border-left: 2px solid var(--primary) !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
        border-radius: 0 !important;
    }
    
    .nav-menu .has-dropdown.open .dropdown-menu {
        max-height: 500px;
        transition: max-height 0.3s cubic-bezier(0.95, 0.05, 0.795, 0.035);
    }
    
    .nav-menu .has-dropdown.open .dropdown-toggle::after {
        transform: rotate(-135deg);
    }
    
    .nav-menu .dropdown-menu a {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    .nav-cta {
        display: none;
    }
    
    .nav-menu .nav-cta {
        display: flex;
        width: 100%;
        margin-top: 1rem;
    }
    
    .nav-menu .nav-cta .btn {
        width: 100%;
    }
    
    /* Hero layout adjustments */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .quick-info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .info-card:last-child {
        border-bottom: none;
    }
    
    .quick-info-section {
        margin-top: 2rem;
        padding: 0 2rem;
    }
    
    /* Audiometry layout */
    .audiometry-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .audiometry-visual {
        order: -1;
    }
    
    /* Footer layout */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    /* Contact layout */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    /* Branch page layouts */
    .branch-hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .branch-info-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .branch-sidebar {
        position: static;
    }
}

/* Mobile (768px and down) */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .hero-section {
        padding: 8rem 0 4rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 4rem 2rem;
        gap: 2rem;
    }
    
    .cta-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .form-group-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 5rem;
        padding-right: 1.5rem;
    }
    
    .timeline-item::after {
        left: 23px;
    }
    
    .right-timeline {
        left: 0%;
    }
    
    .branch-facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
}

/* Mobile Phone Sizing (480px) */
@media (max-width: 480px) {
    .logo {
        gap: 0.5rem;
    }
    .logo span {
        font-size: 0.95rem;
    }
    .logo-img {
        width: 32px;
        height: 32px;
    }
}

/* iPhone / Small Mobile (390px) */
@media (max-width: 390px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .floating-badge {
        display: none;
    }
    
    .hero-image-wrapper {
        height: 380px;
    }
    
    .back-to-top {
        bottom: 16rem;
        right: 1.75rem;
    }
    
    .speed-dial-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .speed-dial-btn, .speed-dial-toggle {
        width: 50px;
        height: 50px;
    }
    
    .speed-dial-btn.whatsapp-dial img {
        width: 36px !important;
        height: 36px !important;
    }
}
}

/* Clickable Contact Links */
.clickable-contact {
    color: inherit !important;
    text-decoration: none !important;
    transition: var(--transition-fast) !important;
    cursor: pointer !important;
    display: inline-block;
}
.clickable-contact:hover {
    color: inherit !important;
    text-decoration: underline !important;
}

/* --- Clinic Slideshow Styles --- */
.clinic-slideshow-container {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: var(--bg-light);
}

.clinic-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.clinic-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.clinic-slide.active {
    opacity: 1;
    z-index: 2;
}

.clinic-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinic-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    color: white;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    z-index: 3;
}

.clinic-slide-caption h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
}

.clinic-slide-caption p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.clinic-slider-prev,
.clinic-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.25);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
    backdrop-filter: blur(4px);
}

.clinic-slider-prev:hover,
.clinic-slider-next:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.clinic-slider-prev {
    left: 1rem;
}

.clinic-slider-next {
    right: 1rem;
}

.clinic-slider-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.clinic-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
}

.clinic-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .clinic-slideshow-container {
        height: 280px;
    }
}


