/* ============================================
   SOS Medical Liban - Main Stylesheet
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #0a4a5a;
    --primary-dark: #073642;
    --primary-light: #0d5f73;
    --accent: #1abc9c;
    --accent-light: #d4f5ef;
    --text-dark: #1a1a2e;
    --text-body: #4a4a5a;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --white: #ffffff;
    --offwhite: #f8f9fa;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 12px 0;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

p {
    margin: 0 0 16px 0;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

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

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

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

.btn-white {
    background-color: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--white);
}

.btn-outline-white {
    background-color: rgba(255,255,255,0.12);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
}

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

/* ---- Header ---- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
	background: linear-gradient(135deg, #073642 0%, #0a4a5a 50%, #0d5f73 100%);
	  padding: 5px;
	  border-radius: var(--border-radius);
}

.logo img {
    max-height: 45px;
    width: auto;
	
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-menu li a:hover {
    color: var(--primary);
    background-color: var(--gray-100);
}

.nav-menu li.active a {
    color: var(--primary);
    background-color: var(--gray-100);
}

.nav-menu li.active a::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 14px;
    right: 14px;
    height: 2px;
    background-color: var(--primary);
    border-radius: 1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.language-toggle a {
    color: var(--text-muted);
    padding: 2px 4px;
}

.language-toggle a.active {
    color: var(--primary);
    font-weight: 600;
}

.language-toggle a:hover {
    color: var(--primary);
}

.lang-separator {
    color: var(--gray-300);
    font-size: 12px;
}

.btn-emergency {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-emergency:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--white);
}

/* ---- Mobile Menu ---- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ---- Main Content ---- */
.site-main {
    min-height: calc(100vh - 72px - 400px);
}

/* ---- Footer ---- */
.site-footer {
    background-color: var(--offwhite);
    border-top: 1px solid var(--gray-200);
}

.footer-main {
    padding: 64px 0 48px;
}

.footer-col {
    margin-bottom: 24px;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo {
    max-height: 42px;
    width: auto;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--gray-200);
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.footer-social .social-link:hover {
    background-color: var(--primary);
    color: var(--white);
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

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

.footer-links li a {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-contact li i {
    margin-top: 3px;
    color: var(--primary);
    font-size: 14px;
    width: 16px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.copyright {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.credits {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.credits a {
    color: var(--primary);
    font-weight: 600;
}

.credits a:hover {
    text-decoration: underline;
}

/* ---- Section Badge ---- */
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--accent-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 16px;
}

/* ---- Hero Section Base ---- */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section .hero-overlay {
    position: absolute;
    inset: 0;
  /*  background: linear-gradient(135deg, rgba(10,74,90,0.92) 0%, rgba(7,54,66,0.88) 50%, rgba(10,74,90,0.85) 100%);*/
    z-index: 1;
}

.hero-section .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    /*background-position: center;*/
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* ---- Card Styles ---- */
.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.card-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
}

.card-link:hover {
    gap: 10px;
}

.card-link i {
    font-size: 11px;
}

/* ---- Icon Box ---- */
.icon-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.icon-box-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    background-color: var(--accent-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.icon-box-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.icon-box-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- Form Styles ---- */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-dark);
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10,74,90,0.08);
}

.form-control::placeholder {
    color: var(--text-light);
}

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

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 24px;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .main-nav.open {
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-bottom: 24px;
    }
    
    .nav-menu li a {
        padding: 14px 16px;
        font-size: 16px;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .nav-menu li.active a::after {
        display: none;
    }
    
    .nav-right {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .language-toggle {
        justify-content: center;
    }
    
    .btn-emergency {
        justify-content: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 767px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-main {
        padding: 40px 0 24px;
    }
    
    .footer-desc {
        max-width: 100%;
    }
}
