/* Additions for the Laravel port: server-side validation, flash messages and the account link. */
.field-error{display:block;margin-top:7px;color:#9b2c1d;font-size:12px;font-weight:500}
input[aria-invalid=true],textarea[aria-invalid=true],select[aria-invalid=true]{border-color:#9b2c1d}
.form-status.error{border-left-color:#9b2c1d}
.flash{background:var(--soft);border-left:3px solid var(--gold);padding:16px 5.5%;font-size:14px;color:var(--navy)}
.signout{margin:0}
.signout button{background:none;border:1px solid #ffffff59;color:white;padding:9px 14px;font-size:13px;font-weight:600}
.signout button:hover{background:white;color:var(--navy)}
.form-status{scroll-margin-top:100px}
.download-card[hidden],.empty-results[hidden],.product-card[hidden]{display:none}
@media(max-width:800px){.signout{display:none}}

/* Careers and events listings */
.listing{display:grid;gap:14px}
.listing-card{border:1px solid var(--line);background:#fff}
.listing-card[hidden]{display:none}
details.listing-card>summary{display:flex;align-items:center;gap:20px;padding:22px 26px;cursor:pointer;list-style:none}
details.listing-card>summary::-webkit-details-marker{display:none}
.listing-main{display:grid;gap:4px}
.listing-main b{font-family:var(--title);font-size:21px;font-weight:600;letter-spacing:-.4px}
.listing-main small{color:var(--muted);font-size:13px}
details.listing-card[open] .plus{transform:rotate(45deg)}
.listing-body{padding:0 26px 26px;max-width:820px}
.listing-body p{margin:0 0 16px}
.listing-card.event{display:grid;grid-template-columns:96px 1fr;gap:26px;padding:26px}
.listing-card.event:has(>img){grid-template-columns:96px 1fr 240px}
.listing-card.event>img{width:100%;height:100%;min-height:150px;object-fit:cover}
.event-date{border:1px solid var(--line);text-align:center;padding:14px 6px;align-self:start}
.event-date b{display:block;font-family:var(--title);font-size:34px;line-height:1;font-weight:700}
.event-date span{font-size:11px;letter-spacing:1.4px;color:var(--muted)}
.event-body small{font-size:11px;letter-spacing:1.8px;color:var(--muted)}
.event-body h3{margin:6px 0}
.event-body p{margin:8px 0}
.event-body .meta{font-size:14px;color:var(--navy);font-weight:600}
@media(max-width:800px){.listing-card.event,.listing-card.event:has(>img){grid-template-columns:1fr}.event-date{justify-self:start;width:96px}.listing-card.event>img{height:200px}}

/* Floating WhatsApp button */
.wa-float{position:fixed;right:24px;bottom:24px;z-index:60;width:62px;height:62px;border-radius:50%;background:#25d366;color:#fff;display:grid;place-items:center;box-shadow:0 8px 24px rgba(11,60,30,.35);transition:transform .2s ease,box-shadow .2s ease}
.wa-float svg{width:34px;height:34px}
.wa-float:hover{transform:scale(1.08);box-shadow:0 12px 30px rgba(11,60,30,.45);color:#fff}
.wa-float:focus-visible{outline:3px solid #fff;outline-offset:3px;box-shadow:0 0 0 6px #128c7e}
@media(max-width:600px){.wa-float{right:16px;bottom:16px;width:54px;height:54px}.wa-float svg{width:30px;height:30px}}
@media print{.wa-float{display:none}}

/* WhatsApp pop-up */
.wa-modal{position:fixed;inset:0;z-index:70}
.wa-modal[hidden]{display:none}
.wa-card{position:absolute;right:24px;bottom:100px;width:min(400px,calc(100vw - 32px));max-height:calc(100vh - 124px);overflow:auto;background:#fff;border-radius:24px;box-shadow:0 24px 60px rgba(10,33,52,.4);animation:wa-in .22s ease both}
@keyframes wa-in{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.wa-head{position:relative;height:170px;display:grid;place-items:center;background:linear-gradient(135deg,#1b3b5a 0%,#12304d 55%,#0b2238 100%)}
.wa-logo{width:190px;max-width:62%;height:auto;filter:brightness(0) invert(1)}
.wa-close{position:absolute;top:16px;right:16px;width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.2);color:#fff;display:grid;place-items:center;cursor:pointer;transition:background .2s}
.wa-close:hover{background:rgba(255,255,255,.35)}
.wa-close:focus-visible,.wa-cta:focus-visible,.wa-other a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.wa-close svg{width:20px;height:20px}
.wa-body{padding:30px 32px 28px;text-align:center}
.wa-body h2{font-size:27px;letter-spacing:-.6px;font-weight:700;line-height:1.2}
.wa-body p{margin:14px 0 24px;font-size:15px;line-height:1.6}
.wa-cta{display:flex;align-items:center;gap:18px;background:var(--navy);color:#fff;border-radius:14px;padding:16px 22px;text-align:left;transition:background .2s,transform .2s}
.wa-cta:hover{background:#12304d;color:#fff;transform:translateY(-1px)}
.wa-cta svg{width:26px;height:26px;flex:none}
.wa-cta span{display:grid;line-height:1.35}
.wa-cta b{font-family:var(--title);font-size:18px;font-weight:700}
.wa-cta small{font-size:14px;color:#cdd9e4;letter-spacing:.3px}
.wa-body .wa-other{margin:22px 0 0;font-size:14px}
.wa-other a{font-weight:700;color:var(--navy);text-decoration:underline;text-underline-offset:3px}
.wa-other a:hover{color:#8b5b0c}
@media(max-width:600px){.wa-modal{background:rgba(10,33,52,.45)}.wa-card{right:16px;left:16px;bottom:82px;width:auto;max-height:calc(100vh - 100px)}.wa-head{height:140px}.wa-body{padding:24px 22px 22px}.wa-body h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){.wa-card{animation:none}}

/* Header "Get a quote" button: pill shape like a rounded call-to-action */
body>header .button.small{border-radius:999px}
body>header .button.small span{line-height:1}
@media(min-width:801px){body>header .button.small{padding:14px 26px;gap:26px;line-height:1.2}}

/* Language switcher */
.lang{position:relative;flex-shrink:0}
.lang>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:11px 16px;border-radius:12px;background:#eef1f4;color:#5f6e7d;font-size:15px;line-height:1.2;cursor:pointer;user-select:none;transition:background .2s}
.lang>summary::-webkit-details-marker{display:none}
.lang>summary:hover,.lang[open]>summary{background:#fff}
.lang>summary:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.lang .flag{display:inline-grid;place-items:center;width:24px;height:17px;border-radius:3px;overflow:hidden;box-shadow:0 0 0 1px rgba(27,59,90,.15);flex:none}
.lang .flag svg{width:100%;height:100%;display:block}
.flag-ar{display:grid;place-items:center;width:100%;height:100%;background:#0b6b3a;color:#fff;font:700 13px/1 'Cairo','Noto Sans Arabic',Tahoma,sans-serif}
.lang-chevron{width:16px;height:16px;transition:transform .2s}
.lang[open] .lang-chevron{transform:rotate(180deg)}
.lang-menu{position:absolute;bottom:calc(100% + 10px);inset-inline-end:0;min-width:220px;margin:0;padding:8px;list-style:none;background:#fff;border-radius:14px;box-shadow:0 18px 44px rgba(10,33,52,.28);z-index:90}
.lang-menu a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:10px;color:var(--navy);font-size:15px;font-weight:500}
.lang-menu a:hover{background:var(--soft)}
.lang-menu a.on{font-weight:700;background:var(--soft)}
.lang-menu a:focus-visible{outline:3px solid var(--gold);outline-offset:-3px}
.lang-check{width:18px;height:18px;margin-inline-start:auto;color:var(--navy)}


/* The language button lives in the footer, to the right of the tagline; its menu opens upwards */
.footer-end{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.footer-bottom{align-items:center}
@media(min-width:801px){.footer-bottom{padding-inline-end:56px}}
@media(max-width:800px){.footer-end{justify-content:space-between;width:100%}}
@media(max-width:800px){.lang-menu{inset-inline-end:auto;inset-inline-start:0}}

/* The accordion style gives every <details> a bottom border; the language switcher is a <details> too */
details.lang{border:0}

/* Scroll animation: blocks fade in and slide up as they enter the screen, one after another, and play again
   when you scroll back (same behaviour as ScrollReveal with reset:true). The element list must match RV in js/app.js.
   translate/scale are used instead of transform so the hover effects of cards keep working. */
.js :is(
  .page-top .breadcrumb, .page-top .eyebrow, .page-top h1, .page-top > p, .article-heading > *,
  .section-head > *, .resource-heading > *, .video-heading > *,
  .product-card, .article-card, .feature-card, .process-cards > a, .approach-grid > div, .mission-grid > div,
  .principles > div, .team > div, .values > div, .download-card, .listing-card, .sitemap-grid > div, .about-links a,
  .split > *, .faq-layout > aside, .contact-layout > *, .quote-layout > *, .variant-layout > *, .product-detail > *,
  .auth-aside > *, .article-layout > *,
  .featured-story, .vision-box, .video-frame, .resource-help, .empty-state, .narrow > .form-panel, .cta > *,
  .accordion details, .catalog-controls, .wrap > .page-tabs, .footer-grid > div, .footer-bottom
){
  opacity:0;
  translate:0 var(--rv-y,28px);
  scale:.94;
  transition:opacity .6s ease var(--rv-delay,0s),translate .6s cubic-bezier(.2,.7,.2,1) var(--rv-delay,0s),scale .6s cubic-bezier(.2,.7,.2,1) var(--rv-delay,0s),transform .2s ease,box-shadow .2s ease,background .2s ease,color .2s ease,border-color .2s ease;
}
.js :is(
  .page-top .breadcrumb, .page-top .eyebrow, .page-top h1, .page-top > p, .article-heading > *,
  .section-head > *, .resource-heading > *, .video-heading > *,
  .product-card, .article-card, .feature-card, .process-cards > a, .approach-grid > div, .mission-grid > div,
  .principles > div, .team > div, .values > div, .download-card, .listing-card, .sitemap-grid > div, .about-links a,
  .split > *, .faq-layout > aside, .contact-layout > *, .quote-layout > *, .variant-layout > *, .product-detail > *,
  .auth-aside > *, .article-layout > *,
  .featured-story, .vision-box, .video-frame, .resource-help, .empty-state, .narrow > .form-panel, .cta > *,
  .accordion details, .catalog-controls, .wrap > .page-tabs, .footer-grid > div, .footer-bottom
).rv-in{opacity:1;translate:0 0;scale:1}
@media (prefers-reduced-motion:reduce){
  .js :is(
    .page-top .breadcrumb, .page-top .eyebrow, .page-top h1, .page-top > p, .article-heading > *,
    .section-head > *, .resource-heading > *, .video-heading > *,
    .product-card, .article-card, .feature-card, .process-cards > a, .approach-grid > div, .mission-grid > div,
    .principles > div, .team > div, .values > div, .download-card, .listing-card, .sitemap-grid > div, .about-links a,
    .split > *, .faq-layout > aside, .contact-layout > *, .quote-layout > *, .variant-layout > *, .product-detail > *,
    .auth-aside > *, .article-layout > *,
    .featured-story, .vision-box, .video-frame, .resource-help, .empty-state, .narrow > .form-panel, .cta > *,
    .accordion details, .catalog-controls, .wrap > .page-tabs, .footer-grid > div, .footer-bottom
  ){opacity:1!important;translate:none!important;scale:none!important;transition:none!important}
}
@media print{.js *{opacity:1!important;translate:none!important;scale:none!important}}

/* Slides 2-3 use a div (only slide 1 is the page's H1); give it the same base look as the headings */
.hero-title{font-family:var(--title);font-weight:500;line-height:1.15;letter-spacing:-1.8px;margin:0}
.hero-title em{font-style:normal}

/* download cards: the file size is no longer shown, so the button sits at the start */
.download-bottom{justify-content:flex-start}

/* Cookie banner (Google / Meta tracking only runs after Accept) */
.consent{position:fixed;inset-inline:16px;bottom:16px;z-index:90;max-width:640px;display:flex;align-items:center;gap:18px 24px;flex-wrap:wrap;background:#fff;color:var(--navy);border:1px solid #dfe7ee;border-radius:16px;box-shadow:0 18px 50px rgba(15,41,66,.22);padding:18px 22px;opacity:0;transform:translateY(16px);transition:opacity .25s ease,transform .25s ease}
.consent[hidden]{display:none}
.consent.on{opacity:1;transform:none}
.consent-text{flex:1 1 280px;min-width:0}
.consent-text strong{display:block;font-size:16px;margin-bottom:4px}
.consent-text p{margin:0;font-size:14px;line-height:1.55;color:#4a5f72}
.consent-actions{display:flex;gap:10px;flex-shrink:0}
.consent-btn{font:inherit;font-size:14px;font-weight:600;border:1px solid var(--navy);background:var(--navy);color:#fff;border-radius:999px;padding:9px 22px;cursor:pointer;transition:background .2s,color .2s}
.consent-btn.ghost{background:transparent;color:var(--navy)}
.consent-btn:hover{background:var(--gold);border-color:var(--gold);color:var(--navy)}
.consent-btn:focus-visible,.consent-open:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.consent-open{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px;opacity:.85}
.consent-open:hover{opacity:1}
@media(min-width:900px){.consent{right:auto;left:24px;bottom:24px}}
@media(max-width:560px){.consent{padding:16px}.consent-actions{width:100%}.consent-btn{flex:1}}
@media(prefers-reduced-motion:reduce){.consent{transition:none}}
/* Small phones: longer button texts (Indonesian, Arabic) must still fit next to the logo and the menu button */
@media(max-width:420px){body>header .brand img{width:116px}body>header .button.small{padding:8px 10px}}

/* Touch screens: bigger tap areas for text links and a readable smallest text size */
@media(max-width:900px){
  .footer-grid a,.article-layout aside a,.breadcrumb a,.text-link,.sitemap-grid a{display:inline-block;padding-block:6px}
  .footer-grid a{display:block}
  .article-meta,.video-overline{font-size:11px}
}

/* Phones: 16px fields stop iPhones from zooming into the page when a field is tapped */
@media(max-width:800px){body form input:not([type=checkbox]):not([type=radio]):not([type=file]),body form select,body form textarea{font-size:16px}}

/* Spam trap: invisible to people, tempting to bots */
.hp{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;opacity:0;pointer-events:none}

/* The header stays at the top while scrolling */
body>header{position:sticky;top:0;z-index:60;border-bottom:0;box-shadow:none;transition:box-shadow .25s ease}
/* at the very top the header melts into the banner; the shadow only appears once the page has moved */
body>header.is-scrolled{box-shadow:0 2px 14px rgba(8,28,52,.22)}
html{scroll-padding-top:110px}
@media(max-width:800px){html{scroll-padding-top:90px}}

/* Phones and tablets: a slimmer "Get a quote" pill that sits well beside the logo and the menu button */
@media(max-width:800px){body>header .button.small{font-size:13px;padding:8px 15px;gap:10px;line-height:1.2}body>header .button.small span{font-size:15px}}
@media(max-width:420px){body>header .button.small{font-size:12.5px;padding:7px 13px;gap:8px}body>header .brand img{width:112px}}

/* Article contents list: one link per line on touch screens, sub-headings indented */
@media(max-width:900px){.article-layout aside a{display:block;padding-block:7px}.article-layout aside a.toc-sub{padding-inline-start:16px;opacity:.85}}
