/*
Theme Name: bamdc theme
Theme URI: https://lamdacode.com
Author: Lamda Code
Author URI: https://lamdacode.com
Description: A professional WordPress theme for Bakhtawar Amin Hospital.
Version: 1.2.0
Text Domain: bakhtawar-amin-hospital
*/
/* ==========================================================================
   Global Styles
   ========================================================================== */

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

body {
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #E31E24;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #C41E24;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #E31E24 0%, #C41E24 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
    color: white;
}

.btn-secondary {
    background: #f8f9fa;
    color: #E31E24;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    /* Vertical padding handled by links */
    max-width: 100%;
    margin: 0 auto;
}

.site-logo {
    flex: 0 0 auto;
}

.site-logo img {
    height: 80px;
    /* Larger logo */
    width: auto;
    display: block;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Reset all lists in navigation */
.main-navigation ul {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

/* Top-level UL - Must be horizontal */
.main-navigation>ul,
.main-navigation>div>ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px;
    align-items: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #2c3e50;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 25px 0;
    /* Area for hover */
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
    color: #E31E24;
}

/* Sub-menu (Dropdown) - MUST be absolute and vertical */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    /* Hidden by default */
    flex-direction: column !important;
    background-color: #fff;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 10px 0 !important;
    border-top: 3px solid #E31E24;
    margin: 0;
}

/* Specific item for WP nested classes */
.main-navigation .sub-menu {
    /* Redundant but safe for WP */
    display: none;
}

/* Show sub-menu on hover */
.main-navigation li:hover>ul {
    display: flex !important;
}

.main-navigation ul ul li {
    width: 100%;
    display: block;
}

.main-navigation ul ul a {
    padding: 12px 25px !important;
    font-size: 0.8rem;
    color: #444;
    width: 100%;
    display: block !important;
    text-transform: none;
    font-weight: 600;
    border-bottom: 1px solid #f8f8f8;
}

.main-navigation ul ul li:last-child a {
    border-bottom: none;
}

.main-navigation ul ul a:hover {
    background-color: #f9f9f9;
    color: #E31E24;
    padding-left: 30px !important;
}

/* Dropdown indicators */
.menu-item-has-children>a::after {
    content: '▾';
    margin-left: 6px;
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.main-navigation li:hover>a::after {
    transform: rotate(180deg);
}

/* Header Action Area */
.header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-icon {
    width: 40px;
    height: 40px;
    background-color: #E31E24;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.action-icon:hover {
    background-color: #C41E24;
    transform: scale(1.1);
}

.action-pill {
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.call-pill {
    background-color: #E31E24;
    color: white;
}

.call-pill:hover {
    background-color: #C41E24;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(227, 30, 36, 0.2);
    color: white;
}

.booking-pill {
    background: #E31E24;
    color: white;
    border: 2px solid #E31E24;
}

.booking-pill:hover {
    background-color: white;
    color: #E31E24;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(227, 30, 36, 0.1);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
}

.site-footer {
    background-color: #E31E24;
    color: #fff;
    padding: 100px 0 60px;
    /* Increased vertical spacing */
    margin-top: 60px;
    clear: both;
    display: block !important;
    position: relative;
    z-index: 10;
}

.site-footer .container {
    max-width: 1400px;
    /* Widened further for 5 columns */
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    /* 5 Columns */
    gap: 40px;
    text-align: left;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.footer-col p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    max-width: 250px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-description p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 320px;
}

.copyright-info p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.95);
    /* High contrast white background */
    color: #E31E24;
    /* Red icon color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #fff;
    color: #E31E24;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.app-buttons {
    display: flex;
    gap: 10px;
}

.app-btn img {
    height: 40px;
    width: auto;
}

/* Mobile Responsive Footer */
@media (max-width: 1200px) {
    .footer-grid {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 30px;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 60px 0 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-logo img {
        margin: 0 auto 15px;
        display: block;
    }
}

/* ==========================================================================
   Page Content
   ========================================================================== */

.page-content {
    padding: 40px 0;
    min-height: 60vh;
}

.entry-title {
    color: #E31E24;
    margin-bottom: 20px;
}

.entry-content {
    line-height: 1.8;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1100px) {
    .header-container {
        padding: 10px 15px;
    }

    .main-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .call-pill {
        display: none;
    }

    .action-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .booking-pill {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .site-logo img {
        height: 40px;
    }

    .header-actions {
        gap: 8px;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}