/* ============================================================
   LAYOUT — Container, header, footer, section wrappers
   All @media queries live in responsive.css
   ============================================================ */

/* ── Container ── */
.container {
    max-width: var(--container-max-width);
    margin-inline: auto;
    padding-inline: 24px;
    width: 100%;
}

/* ── Section wrappers ── */
.section {
    padding-block: 48px;
}

.section--lg {
    padding-block: 64px;
}

.section--alt {
    background: var(--color-surface-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

/* ── Header ── */
.header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    height: var(--header-height);
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background var(--transition-base),
                border-color var(--transition-base),
                box-shadow var(--transition-base);
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: var(--color-border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.header__container {
    max-width: var(--container-max-width);
    margin-inline: auto;
    padding-inline: 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header__logo-img {
    height: 36px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Header CTA — smaller than page CTAs at mobile base */
.header__cta-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.75rem;
    padding: 8px 16px;
}

/* Mobile/tablet: show short text, hide full text */
.header__cta-full {
    display: none;
}

.header__cta-short {
    display: inline;
}

/* Desktop nav — hidden on mobile, shown by responsive.css */
.header__nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    inset-inline: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    z-index: 99;
    box-shadow: var(--shadow-md);
}

.header__nav--open {
    display: flex;
}

.header__nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}

.header__nav-link:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header__lang-toggle {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    padding: 6px 12px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.header__lang-toggle:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    width: 40px;
    height: 40px;
}

.header__hamburger:hover {
    background: var(--color-primary-light);
}

.header__hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
    pointer-events: none;
}

.header__hamburger--open .header__hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__hamburger--open .header__hamburger-line:nth-child(2) {
    opacity: 0;
}

.header__hamburger--open .header__hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Footer ── */
.footer {
    background: var(--color-text);
    color: var(--color-text-inverse);
    padding-top: 64px;
    padding-bottom: 32px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo-img {
    height: 36px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer__brand-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    max-width: 280px;
}

.footer__heading {
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

[lang="ar"] .footer__heading {
    letter-spacing: 0;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__nav-link {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition-fast);
}

.footer__nav-link:hover {
    color: var(--color-accent);
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 12px;
}

.footer__contact-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-accent);
}

.footer__social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.footer__social-link:hover {
    background: var(--color-primary);
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 32px;
}

.footer__copy {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer__legal {
    display: flex;
    gap: 24px;
}

.footer__legal-link {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition-fast);
}

.footer__legal-link:hover {
    color: rgba(255, 255, 255, 0.8);
}
