/*
Theme Name: Talaat Multiactivities
Theme URI: https://talaatmultiactivities.com
Author: Talaat Multiactivities
Author URI: https://talaatmultiactivities.com
Description: A modern, bilingual corporate website for Talaat Multiactivities Co. Ltd. with Elementor support, RTL Arabic support, and comprehensive export/import services.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: talaat
Domain Path: /languages
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E42624;
    --accent-color: #1DAEE4;
    --dark-navy: #0B1B2A;
    --background: #F7F9FC;
    --white: #FFFFFF;
    --text-dark: #0B1B2A;
    --text-light: #666666;
    --border-color: #E0E0E0;
}

body {
    font-family: 'DM Sans', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

/* RTL Support - Arabic */
html[dir="rtl"] body,
body.rtl {
    font-family: 'Noto Sans Arabic', 'Almarai', 'Cairo', Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #C41E1C;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 38, 36, 0.3);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #1A9BC7;
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header */
.site-header {
    background-color: var(--dark-navy);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-title {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.main-navigation a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 0;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Submenu Styles */
.main-navigation ul li {
    position: relative;
}

.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-navy);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
}

.main-navigation ul li:hover > ul {
    display: flex;
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    padding: 0.75rem 1.5rem;
    display: block;
    white-space: nowrap;
}

.main-navigation ul ul a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    padding: 6px 12px;
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.lang-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer */
.site-footer {
    background-color: var(--dark-navy);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--white);
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(228, 38, 36, 0.3);
}

.social-links a svg {
    width: 20px;
    height: 20px;
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-navy) 0%, #1a2a3a 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero-section h1,
.hero-content h1 {
    color: var(--white) !important;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
}

.hero-section p,
.hero-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section a:not(.btn) {
    color: rgba(255, 255, 255, 0.9);
}

.hero-section a:not(.btn):hover {
    color: var(--white);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card h3,
.card h4 {
    color: var(--text-dark);
}

.card p {
    color: var(--text-light);
}

.card ul li {
    color: var(--text-dark);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Sections */
.section {
    padding: 4rem 0;
    background-color: var(--background);
}

.section h2 {
    color: var(--text-dark);
}

.section p {
    color: var(--text-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-title p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Accordion */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 1rem;
    background: var(--white);
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--background);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 1.5rem;
    max-height: 1000px;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark-navy);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .main-navigation.active ul {
        display: flex;
    }

    .main-navigation ul li {
        width: 100%;
    }

    /* Mobile: Show submenus inline */
    .main-navigation ul ul {
        position: static;
        display: block;
        background-color: rgba(0, 0, 0, 0.2);
        margin-left: 1rem;
        margin-top: 0.5rem;
        padding-left: 0;
    }

    .main-navigation ul ul li {
        width: 100%;
    }

    .hero-section h1,
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-section p,
    .hero-content p {
        font-size: 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }
}

/* ================================================
   RTL (Right-to-Left) Comprehensive Styles
   ================================================ */

/* Base RTL */
html[dir="rtl"],
body.rtl {
    direction: rtl;
    text-align: right;
}

/* Header RTL */
[dir="rtl"] .header-inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .site-logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .main-navigation {
    flex-direction: row-reverse;
}

[dir="rtl"] .main-navigation ul {
    flex-direction: row-reverse;
}

[dir="rtl"] .main-navigation ul ul {
    left: auto;
    right: 0;
    text-align: right;
}

[dir="rtl"] .header-actions {
    flex-direction: row-reverse;
}

/* Footer RTL */
[dir="rtl"] .footer-content {
    direction: rtl;
}

[dir="rtl"] .footer-section {
    text-align: right;
}

[dir="rtl"] .social-links {
    justify-content: flex-start;
}

/* Content RTL */
[dir="rtl"] .hero-cta {
    flex-direction: row-reverse;
}

[dir="rtl"] .card-grid {
    direction: rtl;
}

[dir="rtl"] .card {
    text-align: right;
}

[dir="rtl"] .section-title {
    text-align: center;
}

[dir="rtl"] ul {
    padding-right: 1.5rem;
    padding-left: 0;
}

[dir="rtl"] .accordion-header {
    flex-direction: row-reverse;
}

/* Form RTL */
[dir="rtl"] .form-group label {
    text-align: right;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea,
[dir="rtl"] .form-group select {
    text-align: right;
}

/* Grid layouts RTL */
[dir="rtl"] [style*="grid-template-columns: 1fr 1fr"] {
    direction: rtl;
}

[dir="rtl"] [style*="display: flex"] {
    flex-direction: row-reverse;
}

/* Exceptions - Keep some flex items in normal order */
[dir="rtl"] .hero-cta,
[dir="rtl"] .card-grid,
[dir="rtl"] .language-switcher {
    flex-direction: row;
}

/* Buttons and links with arrows RTL */
[dir="rtl"] .btn-primary::after,
[dir="rtl"] a[href]::after {
    content: none;
}

/* Margins and paddings RTL */
[dir="rtl"] [style*="margin-left"] {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] [style*="margin-right: auto"] {
    margin-right: 0 !important;
    margin-left: auto !important;
}

/* Mobile Menu RTL */
@media (max-width: 768px) {
    [dir="rtl"] .main-navigation ul ul {
        margin-left: 0;
        margin-right: 1rem;
    }
}

/* Phone numbers and emails should always be LTR */
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href^="mailto:"],
[dir="rtl"] .ltr-text {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

/* Keep numbers in proper order in RTL */
[dir="rtl"] .phone-number,
[dir="rtl"] .email-address {
    direction: ltr;
    unicode-bidi: isolate;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Toast Animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

[dir="rtl"] @keyframes slideIn {
    from {
        transform: translateX(-400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

[dir="rtl"] @keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-400px);
        opacity: 0;
    }
}

