/* LujyTec language direction overrides (css/lang.css).
 *
 * Small LTR/RTL overrides only. The theme in css/style.css is written for the
 * Arabic RTL layout and MUST NOT be edited (Constitution II); any direction
 * adjustment an English LTR page needs goes here. Verified by opening /en/
 * at desktop and 360px widths per quickstart.md check 3.
 */

html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

/* Header: mirror the RTL float helpers the theme relies on for LTR pages. */
html[dir="ltr"] #header .logo {
    float: left;
}

html[dir="ltr"] .main-nav ul {
    text-align: left;
}

html[dir="ltr"] .main-nav .drop-down > ul {
    left: 0;
    right: auto;
    text-align: left;
}

/* Content: LTR pages align section copy to the left. */
html[dir="ltr"] .section-header p,
html[dir="ltr"] #about .content p,
html[dir="ltr"] #about .content .description,
html[dir="ltr"] #contact .info p {
    text-align: left;
    direction: ltr;
}

/* Footer: align link lists and social icons for LTR pages. */
html[dir="ltr"] #footer .footer-links ul,
html[dir="ltr"] #footer .footer-contact p {
    text-align: left;
    direction: ltr;
}

/* No-JS language fallback link (static markup in each page). */
.noscript-lang {
    background: #00428a;
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    font-size: 14px;
}

.noscript-lang a {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
}

/* Subpage top offset (site-owned override — css/style.css is vendored and
 * must not be edited). The header is position:fixed at 80px tall (60px once
 * scrolled), while #intro on the homepage already carries 200px of top
 * padding. The subpage heroes (#service-hero / #product-hero) had no offset,
 * so the ribbon covered the top of every subpage. 130px = header + air.
 * Direction-neutral: applies to both RTL (Arabic) and LTR (English) pages.
 */
#service-hero,
#product-hero {
    padding-top: 130px;
}

/* Direct loads of anchored URLs (e.g. index.html#contact from subpage CTAs)
 * bypass the smooth-scroll offset in js/main.js — keep section tops clear
 * of the fixed ribbon there too. No visual effect otherwise.
 */
main section[id] {
    scroll-margin-top: 90px;
}
