/* ============================================================
   ExpatTel site chrome — shared by every page.

   Load right after brand.css (tokens + .et-btn), before the page's
   own <style>, so page rules still win on equal specificity:
     <link rel="stylesheet" href="/assets/css/brand.css?v=1">
     <link rel="stylesheet" href="/assets/css/site.css?v=1">
   Bump ?v= on change: .htaccess caches CSS for a week.

   What belongs here: the parts that look the same on every page and
   are rendered by the shared includes —
     - the PolySans @font-face and base type (body, headings, strong,
       links, focus rings);
     - the fixed navbar (includes/site-nav.php);
     - the FAQ accordion look (homepage, /faq, country pages);
     - the footer (includes/site-footer.php).
   What does not: page heroes, sections, the contact modal and anything
   else only one page (or one page type) uses. That stays in the page's
   <style>. The no-JS fallback is a <noscript><style> in each page.

   Colours come only from brand.css tokens (the one literal, #2e4f96,
   is the light end of the navy hero gradient).
   ============================================================ */

@font-face {
    font-family: 'PolySans';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/PolySans-Neutral.woff') format('woff');
}
html { scroll-padding-top: 86px; scroll-behavior: smooth; }
body {
    font-family: "PolySans", "Helvetica", "Arial", sans-serif;
    color: var(--et-text);
    line-height: 1.6;
    padding-top: 70px;
    background: #fff;
}
/* PolySans Neutral ships one weight, so bold renders regular: say so
   honestly, and give emphasis colour instead (white on dark surfaces). */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, th { font-weight: 400; }
strong, b { font-weight: inherit; color: var(--et-navy); }
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--et-pink);
    outline-offset: 2px;
    border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Navbar: a 70px bar (14 + 40px logo + 14 + 2px rule) = body padding-top */
.navbar { padding: 14px 15px; }
.navbar.fixed-top { border-bottom: 2px solid var(--et-pink); }
.navbar-brand { padding: 0; margin-right: 16px; }
.navbar-brand img { display: block; width: 150px; height: auto; }
.navbar-nav .nav-link {
    color: var(--et-navy);
    padding: 8px 10px;
    margin: 0 6px;
    line-height: 1.5;
    transition: color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible { color: var(--et-pink); }
.navbar-nav .nav-link:focus-visible {
    outline: 2px solid var(--et-pink);
    outline-offset: 2px;
    border-radius: 4px;
    box-shadow: none;
}
.navbar-nav .nav-link[aria-current="page"] {
    text-decoration: underline 2px var(--et-pink);
    text-underline-offset: 6px;
}
.navbar-nav .nav-link i { color: var(--et-pink); margin-right: 8px; }
.navbar-nav .nav-signup { align-items: center; margin: 0 6px; }
.nav-signup-bar { margin-left: auto; margin-right: 10px; }
.navbar-toggler {
    border: 1px solid var(--et-line);
    border-radius: 8px;
    padding: 4px 8px;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler:focus-visible { outline: 2px solid var(--et-pink); outline-offset: 2px; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-nav .nav-link { margin: 0 1px; padding: 8px 7px; }
    .navbar-nav .nav-link i { margin-right: 6px; }
    .navbar-nav .nav-signup { margin: 0 4px; }
}
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin: 14px -15px -14px;
        padding: 4px 15px 8px;
        border-top: 1px solid var(--et-line);
    }
    .navbar-nav .nav-link {
        margin: 0;
        padding: 12px 2px;
        border-bottom: 1px solid var(--et-line);
    }
    .navbar-nav .nav-item:last-child .nav-link { border-bottom: 0; }
    .navbar-nav .nav-link i { width: 20px; margin-right: 12px; text-align: center; }
}

/* Accordions (FAQ): white cards, navy question, pink when open */
.accordion-item,
.accordion-item:not(:first-of-type) {
    border: 1px solid var(--et-line);
    border-radius: var(--et-radius) !important;
    background: #fff;
    margin-bottom: 10px;
    overflow: hidden;
}
.accordion-item:last-child { margin-bottom: 0; }
.accordion-button {
    gap: 16px;
    padding: 1.15rem 1.3rem;
    background: #fff;
    color: var(--et-navy);
    font-size: 1rem;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    background: var(--et-surface);
    color: var(--et-pink-hover);
}
.accordion-button::after {
    background-image: none;
    background-color: var(--et-navy);
    -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") center / contain no-repeat;
}
.accordion-button:not(.collapsed)::after { background-image: none; background-color: var(--et-pink); }
.accordion-button:focus-visible { outline: 2px solid var(--et-pink); outline-offset: -4px; }
.accordion-body {
    padding: 1.15rem 1.3rem 1.3rem;
    color: var(--et-text);
    border-top: 1px solid var(--et-line);
}
.accordion-body a { color: var(--et-navy); text-decoration: underline; text-underline-offset: 2px; }
.accordion-body a:hover { color: var(--et-pink-hover); }

/* Footer: brand navy */
.footer { background-color: var(--et-navy-deep); color: #fff; padding: 48px 0 36px; }
.footer .footer-title { margin: 0 0 8px; color: #fff; font-size: 1.25rem; letter-spacing: -0.01em; }
.social-icons { display: flex; gap: 4px; margin-left: -12px; }
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: #fff;
    font-size: 1.35rem;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}
.social-icons a:hover { color: var(--et-pink); background-color: rgba(255, 255, 255, 0.06); }
.download-app { text-align: right; }
.app-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 18px 16px;
    justify-content: flex-end;
    padding-top: 10px;
}
.app-badge-wrap { position: relative; display: inline-block; line-height: 0; }
.app-badge-wrap img { height: 45px; width: auto; opacity: 0.85; }
.app-coming {
    position: absolute;
    top: -10px;
    right: -8px;
    padding: 3px 7px;
    border-radius: 4px;
    background: var(--et-pink-hover);
    color: #fff;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 20px;
    margin: 28px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}
.footer-links a,
.footer-links button {
    display: inline-block;
    padding: 4px 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.9);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.footer-links a:hover,
.footer-links button:hover {
    color: #fff;
    text-decoration: underline 2px var(--et-pink);
    text-underline-offset: 4px;
}
@media (max-width: 767.98px) {
    .download-app { text-align: left; margin-top: 28px; }
    .app-badges { justify-content: flex-start; }
    .footer-links li:first-child { flex-basis: 100%; }
}
