/**
 * ==========================================
 * PAYANGAN HOSPITAL - BRAND IDENTITY CSS
 * Global Brand Components & Standards
 * ==========================================
 * 
 * Branding Standards:
 * - Hospital Name: PAYANGAN HOSPITAL
 * - Tagline: PAVITRAM IDAM UTTAMAM
 * - Font: Montserrat
 * - Primary Color: #0891b2 (Teal)
 */

/* ==========================================
   BRAND CSS VARIABLES
   ========================================== */
:root {
    /* Brand Colors */
    --brand-primary: #0891b2;
    --brand-primary-dark: #0e7490;
    --brand-primary-light: #22d3ee;
    --brand-primary-50: #ecfeff;
    --brand-primary-100: #cffafe;
    --brand-primary-600: #0891b2;
    --brand-primary-700: #0e7490;
    --brand-primary-800: #155e75;
    --brand-primary-900: #164e63;
    
    --brand-secondary: #f4c430;
    --brand-secondary-dark: #d4a40a;
    
    --brand-text-dark: #0f172a;
    --brand-text-muted: #64748b;
    --brand-text-light: #94a3b8;
    
    /* Brand Typography */
    --brand-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --brand-font-display: 'Playfair Display', Georgia, serif;
    
    /* Brand Spacing */
    --brand-logo-height: 50px;
    --brand-logo-height-sm: 40px;
    --brand-logo-height-lg: 60px;
    
    /* Brand Transitions */
    --brand-transition: 0.3s ease;
}

/* ==========================================
   BRAND WRAPPER - Logo + Text Container
   ========================================== */
.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-wrapper-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.brand-wrapper-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

/* ==========================================
   BRAND LOGO IMAGE
   ========================================== */
.brand-logo {
    height: var(--brand-logo-height);
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-logo-sm {
    height: var(--brand-logo-height-sm);
}

.brand-logo-lg {
    height: var(--brand-logo-height-lg);
}

/* SVG Logo */
.brand-logo-svg {
    height: var(--brand-logo-height);
    width: auto;
    display: block;
}

.brand-logo-svg-sm {
    height: var(--brand-logo-height-sm);
}

.brand-logo-svg-lg {
    height: var(--brand-logo-height-lg);
}

/* Fallback logo with cross icon */
.brand-logo-icon {
    height: var(--brand-logo-height);
    width: var(--brand-logo-height);
    background: var(--brand-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.brand-logo-icon-sm {
    height: var(--brand-logo-height-sm);
    width: var(--brand-logo-height-sm);
    font-size: 18px;
}

.brand-logo-icon-lg {
    height: var(--brand-logo-height-lg);
    width: var(--brand-logo-height-lg);
    font-size: 28px;
}

/* ==========================================
   BRAND TEXT - Name & Tagline
   ========================================== */
.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    font-family: var(--brand-font);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-primary);
    line-height: 1.2;
    white-space: nowrap;
}

.brand-title-white {
    color: #ffffff;
}

.brand-title-dark {
    color: var(--brand-primary-dark);
}

.brand-tagline {
    font-family: var(--brand-font);
    font-size: 0.55rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--brand-text-muted);
    line-height: 1.2;
    white-space: nowrap;
}

.brand-tagline-white {
    color: rgba(255, 255, 255, 0.8);
}

.brand-tagline-primary {
    color: var(--brand-primary-dark);
}

/* Responsive text sizes */
.brand-title-sm {
    font-size: 0.9rem;
}

.brand-title-lg {
    font-size: 1.4rem;
}

.brand-title-xl {
    font-size: 1.6rem;
}

.brand-tagline-sm {
    font-size: 0.45rem;
}

.brand-tagline-lg {
    font-size: 0.65rem;
}

/* ==========================================
   BRAND LOGO CONTAINER (Header)
   ========================================== */
.brand-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-header .brand-logo {
    height: 48px;
}

.brand-header .brand-logo-svg {
    height: 48px;
}

.brand-header .brand-logo-icon {
    height: 48px;
    width: 48px;
    font-size: 22px;
}

.brand-header .brand-title {
    font-size: 1.15rem;
}

.brand-header .brand-tagline {
    font-size: 0.55rem;
}

/* Sticky header (scrolled) */
.brand-header-scrolled .brand-logo {
    height: 42px;
}

.brand-header-scrolled .brand-title {
    font-size: 1rem;
}

.brand-header-scrolled .brand-tagline {
    font-size: 0.5rem;
}

/* ==========================================
   BRAND FOOTER
   ========================================== */
.brand-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-footer .brand-logo {
    height: 44px;
}

.brand-footer .brand-logo-svg {
    height: 44px;
}

.brand-footer .brand-logo-icon {
    height: 44px;
    width: 44px;
    font-size: 20px;
}

.brand-footer .brand-title {
    font-size: 1rem;
    color: #ffffff;
}

.brand-footer .brand-title-white {
    color: #ffffff;
}

.brand-footer .brand-tagline {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   BRAND MOBILE
   ========================================== */
.brand-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mobile .brand-logo {
    height: 38px;
}

.brand-mobile .brand-logo-svg {
    height: 38px;
}

.brand-mobile .brand-logo-icon {
    height: 38px;
    width: 38px;
    font-size: 18px;
}

.brand-mobile .brand-title {
    font-size: 0.95rem;
}

.brand-mobile .brand-tagline {
    font-size: 0.45rem;
}

/* ==========================================
   BRAND RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .brand-title-lg {
        font-size: 1.2rem;
    }
    
    .brand-title-xl {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .brand-wrapper {
        gap: 10px;
    }
    
    .brand-logo,
    .brand-logo-svg {
        height: var(--brand-logo-height-sm);
    }
    
    .brand-logo-icon {
        height: 40px;
        width: 40px;
        font-size: 18px;
    }
    
    .brand-title {
        font-size: 0.95rem;
    }
    
    .brand-title-lg,
    .brand-title-xl {
        font-size: 1rem;
    }
    
    .brand-tagline {
        font-size: 0.45rem;
    }
    
    .brand-header .brand-logo,
    .brand-header .brand-logo-svg {
        height: 42px;
    }
    
    .brand-header .brand-title {
        font-size: 1rem;
    }
    
    .brand-footer .brand-logo,
    .brand-footer .brand-logo-svg {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .brand-wrapper {
        gap: 8px;
    }
    
    .brand-logo,
    .brand-logo-svg {
        height: 36px;
    }
    
    .brand-logo-icon {
        height: 36px;
        width: 36px;
        font-size: 16px;
    }
    
    .brand-title {
        font-size: 0.85rem;
    }
    
    .brand-title-lg,
    .brand-title-xl {
        font-size: 0.9rem;
    }
    
    .brand-tagline {
        font-size: 0.4rem;
        letter-spacing: 0.15em;
    }
    
    .brand-header .brand-logo,
    .brand-header .brand-logo-svg {
        height: 38px;
    }
    
    .brand-header .brand-title {
        font-size: 0.9rem;
    }
    
    .brand-footer .brand-logo,
    .brand-footer .brand-logo-svg {
        height: 36px;
    }
}

/* ==========================================
   BRAND HOVER EFFECTS
   ========================================== */
.brand-wrapper:hover .brand-logo,
.brand-wrapper:hover .brand-logo-svg {
    transform: scale(1.02);
    transition: transform var(--brand-transition);
}

.brand-wrapper:hover .brand-title {
    color: var(--brand-primary-dark);
    transition: color var(--brand-transition);
}

/* ==========================================
   BRAND ACCESSIBILITY
   ========================================== */
.brand-wrapper:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================
   LEGACY CLASSES - For backward compatibility
   ========================================== */

/* Legacy logo class */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img,
.logo .brand-logo {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-name {
    font-family: var(--brand-font);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-primary);
    line-height: 1.2;
}

.logo-name-white {
    color: #ffffff;
}

.logo-tagline {
    font-family: var(--brand-font);
    font-size: 0.55rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--brand-text-muted);
    line-height: 1.2;
}

.logo-tagline-white {
    color: rgba(255, 255, 255, 0.8);
}

/* Header specific */
.header .logo img {
    height: 48px;
}

.header.scrolled .logo img {
    height: 42px;
}

.header.scrolled .logo-name {
    font-size: 1rem;
}

.header.scrolled .logo-tagline {
    font-size: 0.5rem;
}

/* Footer specific */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img,
.footer-logo .brand-logo {
    height: 44px;
    width: auto;
}

.footer-logo-text {
    font-family: var(--brand-font);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
}

/* Mobile menu specific */
.mobile-menu-header .logo img {
    height: 38px;
    width: auto;
}

.mobile-menu-header .logo-name {
    font-size: 0.95rem;
}

.mobile-menu-header .logo-tagline {
    font-size: 0.45rem;
}
