/* ============================================
   Default Theme - Company Sub-sites
   ============================================ */

/* --- CSS Variables --- */
:root {
    --theme-primary: #1a5f7a;
    --theme-secondary: #159895;
    --theme-accent: #57c5b6;
    --theme-text: #333333;
    --theme-light: #f8f9fa;
    --theme-dark: #1a1a2e;
    --theme-gradient: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
}

/* --- General --- */
body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    color: var(--theme-text);
}

.section-title {
    font-weight: 700;
    color: var(--theme-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--theme-gradient);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Header --- */
.company-header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.company-header .navbar {
    padding: 12px 0;
}

.company-header .nav-link {
    font-weight: 500;
    color: var(--theme-text);
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s;
}

.company-header .nav-link:hover,
.company-header .nav-link.active {
    color: var(--theme-primary);
    background: rgba(26, 95, 122, 0.06);
}

.company-header .dropdown-menu {
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 8px;
}

.company-header .dropdown-item {
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.2s;
}

.company-header .dropdown-item:hover {
    background: rgba(26, 95, 122, 0.08);
    color: var(--theme-primary);
}

/* --- Hero Slider --- */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-swiper {
    height: 550px;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 60px 30px;
    color: #fff;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    opacity: 0.9;
}

.hero-btn {
    background: var(--theme-gradient);
    border: none;
    border-radius: 50px;
    padding: 12px 40px;
    font-weight: 600;
    transition: all 0.3s;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.4);
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(255,255,255,0.15);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 18px;
}

.hero-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 5px;
    background: var(--theme-accent);
}

/* --- Page Header --- */
.page-header-section {
    position: relative;
    background: var(--theme-gradient);
    padding: 80px 0 60px;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 95, 122, 0.85);
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header-title {
    font-size: 2.2rem;
    font-weight: 800;
}

.page-header-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
}

.page-header-section .breadcrumb {
    margin-bottom: 0;
}

.page-header-section .breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.page-header-section .breadcrumb-item.active {
    color: #fff;
}

/* --- Products --- */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12) !important;
}

.product-img-wrapper {
    height: 250px;
    overflow: hidden;
}

.product-img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-specs table td {
    font-size: 0.9rem;
    padding: 4px 8px;
}

/* --- Features --- */
.feature-card {
    transition: all 0.3s;
    background: var(--theme-light);
}

.feature-card:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--theme-primary);
}

.feature-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* --- Stats --- */
.stats-section {
    background: var(--theme-dark);
    color: #fff;
    background-size: cover;
    background-position: center;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 26, 46, 0.85);
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stats-section .section-title {
    color: #fff;
}

.stats-section .section-title::after {
    background: var(--theme-accent);
}

.stat-card {
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    color: var(--theme-accent);
    margin-bottom: 10px;
    display: block;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--theme-accent);
}

.stat-label {
    color: rgba(255,255,255,0.7) !important;
}

/* --- Services --- */
.service-card {
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12) !important;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--theme-primary);
}

/* --- Gallery --- */
.gallery-item {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.gallery-item img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 0.9rem;
}

/* --- Testimonials --- */
.testimonial-card {
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12) !important;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.8;
    color: #555;
}

/* --- Clients --- */
.client-logo {
    opacity: 0.6;
    transition: all 0.3s;
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.client-logo img {
    max-height: 60px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.client-logo:hover img {
    filter: none;
}

/* --- Team --- */
.team-card {
    transition: all 0.3s;
    background: var(--theme-light);
}

.team-card:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.team-avatar {
    object-fit: cover;
    border: 3px solid var(--theme-accent);
}

/* --- Branch Card --- */
.branch-card {
    transition: all 0.3s;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12) !important;
}

/* --- CTA --- */
.cta-section {
    background: var(--theme-gradient);
    color: #fff;
    position: relative;
    background-size: cover;
    background-position: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 95, 122, 0.88);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--theme-primary);
    border: none;
    font-weight: 600;
}

.cta-section .btn-primary:hover {
    background: var(--theme-accent);
    color: #fff;
    transform: translateY(-2px);
}

/* --- Contact --- */
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-form .form-control {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.contact-form .form-control:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.15);
}

/* --- News --- */
.news-card {
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12) !important;
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* --- FAQ --- */
.faq-section .accordion-button {
    font-weight: 600;
    color: var(--theme-dark);
}

.faq-section .accordion-button:not(.collapsed) {
    background: rgba(26, 95, 122, 0.06);
    color: var(--theme-primary);
    box-shadow: none;
}

.faq-section .accordion-button:focus {
    box-shadow: none;
}

/* --- Footer --- */
.company-footer {
    background: var(--theme-dark);
    color: rgba(255,255,255,0.8);
}

.footer-logo {
    filter: brightness(10);
}

.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--theme-accent);
}

[dir="ltr"] .footer-title::after {
    right: auto;
    left: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--theme-accent);
    padding-right: 5px;
}

[dir="ltr"] .footer-links a:hover {
    padding-right: 0;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-contact i {
    color: var(--theme-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    margin-left: 8px;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--theme-accent);
    color: #fff;
    transform: translateY(-3px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-swiper {
        height: 400px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-content {
        padding: 30px 20px;
    }
    
    .page-header-section {
        padding: 50px 0 40px;
    }
    
    .page-header-title {
        font-size: 1.6rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* --- Buttons --- */
.btn-primary {
    background: var(--theme-gradient);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 5px 20px rgba(26, 95, 122, 0.35);
}

.btn-outline-primary {
    color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.btn-outline-primary:hover {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
}

/* --- Text Primary --- */
.text-primary {
    color: var(--theme-primary) !important;
}
