/* ==========================================================================
   UNAKOTI HOSPITAL - REUSABLE COMPONENTS (components.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOPBAR & HEADER NAVIGATION
   -------------------------------------------------------------------------- */
.topbar {
    background-color: var(--color-secondary);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    /* Roboto Regular */
    padding: 3px 0;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    /* Roboto Regular */
}

.topbar-item span,
.topbar-item strong {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    /* Roboto Regular */
}

.topbar-item .icon-svg {
    width: 13px;
    height: 13px;
    filter: brightness(0) invert(1);
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 6px;
}

.topbar-social-link {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-fast);
}

.topbar-social-link:hover {
    opacity: 0.8;
}

.topbar-social-link .icon-svg {
    width: 12px;
    height: 12px;
    filter: brightness(0) invert(1);
}

.site-header {
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Logo Component */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo img {
    height: 60px;
    width: auto;
    max-width: 320px;
    display: block;
    object-fit: contain;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    position: relative;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: #e21b24;
}

.nav-link.active {
    font-weight: 700;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-action .btn {
    padding: 7px 18px;
    font-size: 0.84rem;
    border-radius: 8px;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
    padding: 4px;
}

/* --------------------------------------------------------------------------
   2. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn .icon-svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--color-secondary-dark);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 35, 42, 0.35);
}

.btn-dark {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-dark:hover {
    background-color: var(--color-primary-light);
    color: #ffffff;
}

.btn-outline-white {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: var(--color-primary);
    border-color: #ffffff;
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-pill {
    border-radius: 8px;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.775rem;
    border-radius: 6px;
}

.btn-lg {
    padding: 10px 22px;
    font-size: 0.92rem;
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   3. EXACT FIGMA IMAGE PLACEHOLDERS (RULE 3 & 4)
   Preserves exact width, height, aspect ratio, position & border-radius
   -------------------------------------------------------------------------- */
.image-placeholder {
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: inherit;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: background var(--transition-fast);
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.image-placeholder-icon {
    font-size: 1.75rem;
    margin-bottom: 6px;
    opacity: 0.8;
}

.image-placeholder-icon svg {
    width: 38px;
    height: 38px;
    stroke: rgba(255, 255, 255, 0.7);
}

.image-placeholder-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.6;
}

/* Specific Figma Image Aspect Ratios & Heights */
.placeholder-home-hero {
    height: 380px;
    background: radial-gradient(circle at 50% 50%, #1e3a8a 0%, #0a1936 100%);
}

.placeholder-trust-main {
    height: 280px;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}

.placeholder-trust-sec {
    height: 240px;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}

.placeholder-doctor-banner {
    height: 480px;
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
}

.placeholder-standards-doctor {
    height: 360px;
    width: 320px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.placeholder-news-thumb {
    height: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

.placeholder-facility-main {
    height: 360px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e293b 0%, #091a3c 100%);
}

.placeholder-expert-avatar {
    height: 100%;
    min-height: 230px;
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
}

.placeholder-testimonial-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #cbd5e1 0%, #64748b 100%);
}

/* If actual images are provided later, clean wrapper styling */
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   4. SVG ICON UTILITIES
   -------------------------------------------------------------------------- */
.icon-svg {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    stroke: currentColor;
    fill: none;
}

.icon-svg-red {
    stroke: var(--color-secondary);
}

.icon-svg-white {
    stroke: #ffffff;
}