/* ============================================================
   ISRAND COMPONENTS CSS
   Shared across all pages
============================================================ */

/* ============================================================
   SKIP LINK
============================================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--gold);
    color: var(--navy-deep);
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 0.5rem; }

/* ============================================================
   SITE HEADER
============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    padding-block: 1.2rem;
    transition: all 0.4s ease;
}
.site-header.scrolled {
    background: rgba(13,26,54,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gold);
    padding-block: 0.85rem;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.site-header__inner { gap: 2rem; }

.header-spacer { height: 80px; }

/* ============================================================
   SITE LOGO
============================================================ */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo__mark {
    width: 38px; height: 38px;
    background: var(--gold);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    flex-shrink: 0;
    transition: transform var(--transition);
}
.site-logo:hover .site-logo__mark { transform: rotate(30deg); }
.site-logo__name {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
    line-height: 1;
}
.site-logo__sub {
    display: block;
    font-size: 0.6rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2px;
}
.footer-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; margin-bottom: 1.2rem; }

/* ============================================================
   PRIMARY NAV
============================================================ */
.primary-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}
.primary-nav__list li a {
    display: block;
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    transition: color var(--transition);
    white-space: nowrap;
}
.primary-nav__list li a:hover,
.primary-nav__list li.current-menu-item > a { color: var(--gold); }

/* Dropdown support */
.primary-nav__list li { position: relative; }
.primary-nav__list li ul {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    min-width: 200px;
    background: var(--navy-deep);
    border: 1px solid var(--border-gold);
    list-style: none;
    padding: 0.5rem 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.primary-nav__list li:hover > ul { display: block; }
.primary-nav__list li ul li a {
    padding: 0.6rem 1.2rem;
    font-size: 0.78rem;
    text-transform: none;
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ============================================================
   HEADER ACTIONS
============================================================ */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
.header-cta { font-size: 0.75rem !important; padding: 0.6rem 1.2rem !important; }

/* ============================================================
   LANGUAGE SWITCHER
============================================================ */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}
.lang-switcher__item {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    padding: 0.25rem 0.4rem;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.lang-switcher__item:hover,
.lang-switcher__item--active {
    color: var(--gold);
    border-color: var(--border-gold);
}

/* ============================================================
   MOBILE TOGGLE
============================================================ */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-toggle span {
    display: block;
    width: 24px; height: 1.5px;
    background: var(--white);
    transition: all 0.3s;
    transform-origin: center;
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   MOBILE MENU
============================================================ */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--navy-deep);
    z-index: 850;
    padding-top: 80px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition);
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu__inner { padding-block: 2rem; }
.mobile-nav__list { list-style: none; }
.mobile-nav__list li { border-bottom: 1px solid var(--border); }
.mobile-nav__list li a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-family: var(--font-serif);
    color: rgba(255,255,255,0.8);
}
.mobile-nav__list li a:hover { color: var(--gold); }
.mobile-menu__footer {
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 900px) {
    .primary-nav { display: none; }
    .mobile-toggle { display: flex; }
    .mobile-menu { display: block; }
    .header-cta { display: none; }
}

/* ============================================================
   PAGE HERO (shared across interior pages)
============================================================ */
.page-hero {
    min-height: 40vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
    background: var(--navy-deep);
}
.page-hero__bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 60% 40%, rgba(46,80,144,0.3) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 10% 80%, rgba(212,175,55,0.06) 0%, transparent 60%),
        linear-gradient(135deg, var(--navy-deep) 0%, #0f2244 100%);
}
.page-hero__grid {
    position: absolute; inset: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(var(--gold) 1px, transparent 1px),
        linear-gradient(90deg, var(--gold) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridScroll 20s linear infinite;
}
.page-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}
.page-hero h1 {
    animation: fadeUp 0.8s ease 0.2s both;
}
.page-hero .eyebrow {
    animation: fadeUp 0.8s ease 0s both;
}
.page-hero__desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    max-width: 600px;
    margin-top: 1rem;
    line-height: 1.75;
    animation: fadeUp 0.8s ease 0.4s both;
}

/* Breadcrumb */
.breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s ease both;
}
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin-inline: 0.4rem; }

/* ============================================================
   STATS STRIP
============================================================ */
.stats-strip {
    background: var(--gold);
    padding-block: 2.5rem;
}
.stats-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.stat-item { text-align: center; }
.stat-item__number {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2rem,4vw,3rem);
    font-weight: 900;
    color: var(--navy-deep);
    line-height: 1;
}
.stat-item__label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(13,26,54,0.65);
    font-weight: 600;
    margin-top: 0.4rem;
}
@media (max-width: 640px) {
    .stats-strip__grid { grid-template-columns: repeat(2,1fr); }
}

/* ============================================================
   CONTACT / PARTNER FORM
============================================================ */
.contact-form {
    max-width: 700px;
    margin-inline: auto;
}
.contact-form__header { margin-bottom: 2.5rem; }
.contact-form__title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.contact-form__sub {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    transition: border-color var(--transition), background var(--transition);
    outline: none;
    width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: rgba(212,175,55,0.04);
}
.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D4AF37' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.form-group select option { background: var(--navy-deep); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit {
    margin-top: 2rem;
    width: 100%;
    background: var(--gold);
    color: var(--navy-deep);
    padding: 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-sans);
    clip-path: var(--radius-clip);
}
.form-submit:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(212,175,55,0.25);
}
.form-submit:disabled {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    clip-path: none;
}
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    font-size: 0.85rem;
    display: none;
}
.form-message.success { background: rgba(46,80,144,0.2); border-left: 3px solid var(--gold); color: var(--gold); }
.form-message.error   { background: rgba(200,50,50,0.1); border-left: 3px solid #e55; color: #f99; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
============================================================ */
.site-footer { background: #060e20; }

.footer-quote {
    background: var(--navy);
    padding-block: 3rem;
    border-bottom: 1px solid var(--border-gold);
}
.footer-quote__inner { text-align: center; }
.footer-quote__text {
    font-family: var(--font-serif);
    font-size: clamp(1rem,2vw,1.3rem);
    font-style: italic;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    max-width: 750px;
    margin-inline: auto;
}
.footer-quote__source {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-top: 1rem;
    font-style: normal;
    text-transform: uppercase;
}

.footer-main { padding-block: 4rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand__desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.75rem;
    max-width: 280px;
}
.footer-brand__reg {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.05em;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.footer-social { display: flex; gap: 0.75rem; }
.footer-social__link {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.4);
    transition: all var(--transition);
}
.footer-social__link:hover { border-color: var(--gold); color: var(--gold); }

.footer-col__title,
.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
    font-weight: 600;
}
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 0.6rem; }
.footer-nav a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

.footer-contact { list-style: none; }
.footer-contact li { margin-bottom: 0.8rem; }
.footer-contact__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 2px;
}
.footer-contact a,
.footer-contact span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-block: 1.5rem;
}
.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom__copy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.2);
    font-family: var(--font-mono);
}
.footer-bottom__right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.footer-doc-id {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(212,175,55,0.25);
    letter-spacing: 0.08em;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RTL OVERRIDES
============================================================ */
.rtl-lang .eyebrow { flex-direction: row-reverse; }
.rtl-lang .site-logo { flex-direction: row-reverse; }
.rtl-lang .card::before { transform-origin: right; }
.rtl-lang .site-header__inner { flex-direction: row-reverse; }
.rtl-lang .primary-nav__list { flex-direction: row-reverse; }
.rtl-lang .footer-brand__desc { text-align: right; }
