/* BRAND PALETTE & VARIABLES */
:root {
    --primary: #0F3D3E;
    --secondary: #1E5B5C;
    --accent: #C8AA7D;
    --dark: #2B2F33;
    --muted: #667371;
    --bg: #F6F7F5;
    --white: #FFFFFF;
    --border: #E3E7E5;
    
    --shadow: 0 4px 20px rgba(15, 61, 62, 0.08);
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--bg);
    color: var(--dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

/* TYPOGRAPHY SHIFT FOR ARABIC */
html[lang="ar"] body {
    font-family: 'Cairo', 'Inter', sans-serif;
}

/* BILINGUAL DISPLAY LOGIC (THE GATEKEEPER) */
html[lang="en"] .ar { display: none !important; }
html[lang="ar"] .en { display: none !important; }

/* NAVBAR */
.navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.nav-logo {
    display: block;
    max-height: 40px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.lang-switch button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 0.5rem;
    transition: var(--transition);
}
.lang-switch button:hover {
    border-color: var(--primary);
    color: var(--primary);
}
html[lang="ar"] .lang-switch button {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* HERO SECTION */
.hero {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-title {
    font-size: 4rem;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.hero-tagline {
    font-size: 1.125rem;
    color: var(--muted);
    margin-bottom: 2rem;
}
.cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.btn {
    padding: 0.875rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}
.btn-primary:hover {
    background-color: var(--secondary);
}
.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--primary);
}
.hero-link a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}
.hero-link a:hover {
    color: var(--accent);
}
.hero-image-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--white);
    position: relative;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-placeholder {
    display: none; /* Shows via JS fallback if img fails */
    width: 100%;
    height: 100%;
    background-color: var(--border);
    color: var(--muted);
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.2rem;
}

/* CAROUSEL */
.feature-carousel {
    background-color: var(--white);
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: var(--bg);
}
.slide {
    display: none;
    grid-template-columns: 1fr 1fr;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.slide.active {
    display: grid;
    opacity: 1;
}
.slide-image {
    width: 100%;
    height: 400px;
    background: var(--border);
}
.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slide-text {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.slide-text h3 {
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.slide-text p {
    color: var(--muted);
    font-size: 1.1rem;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 1.2rem;
    z-index: 10;
}
.prev { left: 1rem; }
.next { right: 1rem; }

/* Flip arrows for Arabic */
html[lang="ar"] .prev { left: auto; right: 1rem; transform: translateY(-50%) rotate(180deg); }
html[lang="ar"] .next { right: auto; left: 1rem; transform: translateY(-50%) rotate(180deg); }

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}
.dot {
    width: 10px;
    height: 10px;
    background: var(--border);
    border-radius: 50%;
    cursor: pointer;
}
.dot.active {
    background: var(--accent);
}

/* CTA REPEAT */
.cta-repeat {
    text-align: center;
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
}

/* KNOW MORE GRID */
.know-more-section {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.grid-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.grid-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.grid-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.grid-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* FOOTER */
.footer {
    background-color: var(--white);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
}
.footer-logo {
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.footer-tagline {
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.disclaimer {
    color: var(--muted);
    font-size: 0.8rem;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .cta-group {
        justify-content: center;
        flex-direction: column;
    }
    .slide {
        grid-template-columns: 1fr;
    }
    .slide-image {
        height: 250px;
    }
}
/* =========================================
   PLANS & ACCORDION MATRIX STYLING 
   ========================================= */
.plans-wrapper {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 2rem;
}
.matrix-container {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}
.comparison-matrix {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
html[lang="ar"] .comparison-matrix {
    text-align: right;
}
.comparison-matrix th {
    background-color: var(--primary);
    color: var(--white);
    padding: 1.25rem;
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
}
.comparison-matrix td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    vertical-align: middle;
}

/* Accordion Logic */
.accordion-group .accordion-content {
    display: none; /* Hidden by default */
    background-color: #FAFAFA;
}
.accordion-group.active .accordion-content {
    display: table-row; /* Show when active */
}
.accordion-header {
    cursor: pointer;
    background-color: var(--white);
    transition: var(--transition);
}
.accordion-header:hover {
    background-color: rgba(200, 170, 125, 0.05);
}
.role-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}
.toggle-icon {
    font-size: 0.8rem;
    color: var(--accent);
    margin: 0 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}
.accordion-group.active .toggle-icon {
    transform: rotate(180deg);
}

/* Sub-features & Badges */
.sub-feature {
    padding-left: 3rem !important; /* Indent under role */
    color: var(--dark);
}
html[lang="ar"] .sub-feature {
    padding-left: 1.25rem !important;
    padding-right: 3rem !important; 
}
.check-mark {
    color: var(--secondary);
    font-weight: 600;
}
.cross-mark {
    color: var(--muted);
    opacity: 0.5;
}
.locked-text {
    color: var(--muted);
    font-style: italic;
}

/* The Highlight Badge */
.clinical-badge {
    display: inline-block;
    background-color: rgba(15, 61, 62, 0.06); /* Soft teal background */
    color: var(--primary);
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}
html[lang="ar"] .clinical-badge {
    border-left: none;
    border-right: 3px solid var(--accent);
}

/* Pro-Exclusive Box (For locked roles) */
.pro-only-row td {
    padding: 0; 
}
.pro-exclusive-box {
    background: linear-gradient(135deg, var(--white) 0%, #FAFAFA 100%);
    padding: 2rem 3rem;
    border-top: 1px dashed var(--border);
}
.pro-feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}
.pro-feature-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--dark);
}
html[lang="ar"] .pro-feature-list li {
    padding-left: 0;
    padding-right: 1.5rem;
}
.pro-feature-list li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}
html[lang="ar"] .pro-feature-list li::before {
    left: auto;
    right: 0;
}

/* FUTURE HORIZON CARD */
.future-note-card {
    background-color: var(--white);
    border-left: 4px solid var(--accent);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
html[lang="ar"] .future-note-card {
    border-left: none;
    border-right: 4px solid var(--accent);
}
.future-note-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.future-note-card p {
    color: var(--muted);
    font-size: 0.9rem;
}
/* =========================================
   EXECUTIVE GLASS SLATE (NO-SCROLL CONTACT) 
   ========================================= */
.no-scroll-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.slate-viewport {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    flex-grow: 1;
}
.executive-slate {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(15, 61, 62, 0.08);
    max-width: 1050px;
    width: 100%;
    display: grid;
    grid-template-columns: 42% 58%;
    overflow: hidden;
}

/* Left Column: Authority & Portrait */
.slate-authority {
    background: linear-gradient(135deg, var(--bg) 0%, #ECEFEF 100%);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border);
}
html[lang="ar"] .slate-authority {
    border-right: none;
    border-left: 1px solid var(--border);
}
.landscape-frame {
    width: 100%;
    aspect-ratio: 3 / 2; /* 100% preserves your 1536x1024 geometry */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(15, 61, 62, 0.12);
    border: 2px solid var(--white);
    margin-bottom: 1.5rem;
    background-color: var(--dark);
}
.authority-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.authority-bio {
    text-align: left;
}
html[lang="ar"] .authority-bio {
    text-align: right;
}
.authority-name {
    font-size: 1.75rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
.authority-title {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.authority-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Right Column: Professional Communication Bands */
.slate-channels {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.channels-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.channel-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.channel-band {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    background-color: var(--white);
    transition: var(--transition);
}
.channel-band:hover {
    border-color: var(--primary);
    background-color: rgba(15, 61, 62, 0.02);
    box-shadow: 0 4px 12px rgba(15, 61, 62, 0.05);
    transform: translateX(4px);
}
html[lang="ar"] .channel-band:hover {
    transform: translateX(-4px);
}
.svg-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    flex-shrink: 0;
}
html[lang="ar"] .svg-icon-box {
    margin-right: 0;
    margin-left: 1.25rem;
}

/* Official Minimalist Icon Styling */
.whatsapp-style { background: rgba(37, 211, 102, 0.1); color: #25D366; }
.phone-style    { background: rgba(15, 61, 62, 0.1); color: var(--primary); }
.email-style    { background: rgba(0, 114, 198, 0.1); color: #0072C6; }
.youtube-style  { background: rgba(255, 0, 0, 0.1); color: #FF0000; }

.band-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.band-label {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
}
.band-value {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 600;
}
.band-arrow {
    font-size: 1.25rem;
    color: var(--border);
    transition: var(--transition);
}
.channel-band:hover .band-arrow {
    color: var(--accent);
}
html[lang="ar"] .band-arrow {
    transform: rotate(180deg);
}

.full-width-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
}

/* Responsive adjustment for screens smaller than laptop */
@media (max-width: 850px) {
    .no-scroll-body { min-height: auto; }
    .executive-slate { grid-template-columns: 1fr; }
    .slate-authority { border-right: none; border-bottom: 1px solid var(--border); padding: 1.5rem; }
    .slate-channels { padding: 1.5rem; }
    .channel-band:hover { transform: translateY(-2px); }
    html[lang="ar"] .channel-band:hover { transform: translateY(-2px); }
}
/* =========================================
   OVERVIEW ROOM STYLING 
   ========================================= */
.overview-header {
    background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
    padding: 5rem 2rem 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.overview-header-content {
    max-width: 900px;
    margin: 0 auto;
}
.style-badge-accent {
    background-color: rgba(200, 170, 125, 0.15) !important;
    color: var(--primary) !important;
    border: 1px solid var(--accent) !important;
    font-size: 0.9rem !important;
    padding: 6px 16px !important;
}

.overview-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}
.bg-alt {
    background-color: #FAFAFA;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-width: 100%;
}
.section-title-box {
    text-align: center;
    margin-bottom: 4rem;
}
.section-title-box h2 {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 0 auto;
}

/* Three Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.pillar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.pillar-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}
.pillar-highlight {
    border: 2px solid var(--secondary);
    background: linear-gradient(180deg, var(--white) 0%, rgba(15, 61, 62, 0.02) 100%);
}
.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.pillar-card h3 {
    color: var(--primary);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}
.pillar-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Clinical Spectrum Grid */
.spectrum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.spectrum-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.spectrum-badge {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.style-badge-gold {
    background-color: var(--accent) !important;
    color: var(--primary) !important;
}
.spectrum-card h4 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.spectrum-card p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Alternating Showcase Rows */
.showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}
.showcase-row:last-child {
    margin-bottom: 1rem;
}
.reverse-row {
    direction: ltr; /* Keeps layout mechanics stable before language override */
}
.reverse-row .showcase-text {
    order: 2;
}
.reverse-row .showcase-visual {
    order: 1;
}
/* Flip ordering gracefully on mobile or RTL */
html[lang="ar"] .reverse-row .showcase-text { order: 1; }
html[lang="ar"] .reverse-row .showcase-visual { order: 2; }

.showcase-text h3 {
    font-size: 2rem;
    color: var(--primary);
    margin: 1rem 0;
    line-height: 1.25;
}
.showcase-text p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.showcase-visual {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background-color: var(--bg);
}
.showcase-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Clean Bullet Checklist */
.clean-check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.clean-check-list li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
}
html[lang="ar"] .clean-check-list li {
    padding-left: 0;
    padding-right: 1.75rem;
}
.clean-check-list li::before {
    content: "✔";
    color: var(--secondary);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}
html[lang="ar"] .clean-check-list li::before {
    left: auto;
    right: 0;
}

/* Responsive Overrides for Overview */
@media (max-width: 850px) {
    .showcase-row, .reverse-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }
    .reverse-row .showcase-text, html[lang="ar"] .reverse-row .showcase-text { order: 1; }
    .reverse-row .showcase-visual, html[lang="ar"] .reverse-row .showcase-visual { order: 2; }
    .spectrum-grid { grid-template-columns: 1fr; }
    .overview-header { padding: 3.5rem 1.5rem 3rem; }
    .hero-title { font-size: 2.25rem !important; }
}