/* style.css - OPEX INSTITUTE Master Architecture (Audited 2026) */
:root {
    --opex-blue: #0184c1;
    --opex-dark: #082645;
    --white: #ffffff;
    --off-white: #f8fafc;
    --text-main: #334155;
    --text-light: #94a3b8;
    --gold: #d4af37;
}

/* GLOBAL RESET & CENTERING */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--off-white); 
    color: var(--text-main); 
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; width: 100%; }
.text-center { text-align: center; }

/* LANGUAGE SWITCHER - Pill Toggle Logic */
.lang-bar {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 100;
    display: flex;
    background: rgba(8, 38, 69, 0.8);
    padding: 5px;
    border-radius: 50px;
}
.lang-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    transition: 0.3s ease;
    text-transform: uppercase;
}
.lang-link:hover { background: var(--opex-blue); }

/* HERO SECTION */
header { 
    background-color: var(--opex-dark);
    color: var(--white);
    padding: 8rem 0 12rem; 
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); 
}
.main-logo { width: 230px; margin: 0 auto 3rem auto; filter: brightness(0) invert(1); display: block; }
h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
h1 span { color: var(--opex-blue); }
.lead { font-size: 1.25rem; font-weight: 300; color: #cbd5e1; max-width: 750px; margin: 0 auto; }

/* ECOSYSTEM GRID */
.ecosystem-section { margin-top: -6rem; position: relative; z-index: 10; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card {
    background: var(--white);
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-top: 6px solid var(--opex-blue);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card h2 { font-size: 0.9rem; text-transform: uppercase; color: var(--opex-dark); margin-bottom: 1rem; letter-spacing: 2px; font-weight: 800; }
.card-link { font-size: 0.9rem; font-weight: 700; color: var(--opex-blue); text-decoration: none; text-transform: uppercase; margin-top: 1.5rem; display: block; }

/* PROPRIETARY SEAL */
.proprietary-section { padding: 9rem 0 4rem; text-align: center; }
.seal-img { height: 190px; width: auto; margin: 0 auto 2.5rem; filter: drop-shadow(0 15px 35px rgba(0,0,0,0.15)); display: block; }

/* LOGO ROW (CENTERED) */
.standards-section { padding: 4rem 0 7rem; }
.logo-row { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 40px; 
    max-width: 950px; 
    margin: 0 auto; 
}
.logo-row img { height: 85px; width: auto; opacity: 0.95; }

/* FOOTER */
footer { padding: 7rem 0 4rem; background: var(--off-white); border-top: 1px solid #e2e8f0; }
.address { font-size: 1rem; margin-bottom: 2.5rem; color: var(--text-main); }
.address strong { display: block; color: var(--opex-dark); text-transform: uppercase; font-size: 0.85rem; margin-bottom: 0.5rem; }

.contact-btn {
    background: transparent;
    border: 2px solid var(--opex-blue);
    color: var(--opex-blue);
    font-weight: 800;
    padding: 16px 35px;
    border-radius: 5px; 
    cursor: pointer;
    margin-bottom: 3.5rem;
    transition: 0.3s ease;
    text-transform: uppercase;
}
.contact-btn:hover { background: var(--opex-blue); color: var(--white); }

.fine-print { font-size: 0.7rem; line-height: 1.6; color: var(--text-light); text-align: justify; max-width: 900px; margin: 0 auto 2.5rem; }

/* MOBILE BREAKPOINTS */
@media (max-width: 768px) {
    .logo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 10px; justify-items: center; }
    .logo-row img { height: 60px; }
    .lang-bar { top: 15px; right: 15px; }
    body.rtl .lang-bar { left: 15px; right: auto; }
}

body.rtl { direction: rtl; text-align: right; }