/*
 * The 2026 redesign, in Arabic (dir="rtl") and English (dir="ltr"). Most styling is inline in the Blade views, as in
 * the design file; this sheet holds the fonts, the responsive rules, the
 * animations, and the states that public/js/rodud.js toggles.
 */

/* Cairo and Manrope (SIL Open Font License), self-hosted from Google Fonts. */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/rodud/cairo-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EEFF;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/rodud/cairo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/rodud/cairo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/fonts/rodud/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/fonts/rodud/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
summary::-webkit-details-marker { display: none; }
a { color: #7818C0; }
a:hover { color: #5F12A0; }
:focus-visible { outline: 3px solid #9646D3; outline-offset: 2px; }

/* From the design file. */
.rd-door { transition: scale .35s ease, opacity .35s ease, translate .35s ease; }
.rd-door:hover { translate: 0 -8px; }
.rd-route { stroke-dasharray: 10 10; animation: rdDash 1.2s linear infinite; }
@keyframes rdDash { to { stroke-dashoffset: -20; } }
.rd-pulse { animation: rdPulse 2s ease-out infinite; transform-origin: 320px 225px; transform-box: view-box; }
@keyframes rdPulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.rd-ticker { animation: rdTick 40s linear infinite; }
.rd-burger { display: none; }
.rd-pop { animation: rdPop .5s ease; }
@keyframes rdPop { from { opacity: 0; transform: translateY(16px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
.rd-logos { animation: rdTick 140s linear infinite; }
.rd-logos-wrap { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
@keyframes rdTick { from { transform: translateX(0); } to { transform: translateX(50%); } }
/* Left to right, the strips scroll the other way. */
[dir="ltr"] .rd-ticker, [dir="ltr"] .rd-logos { animation-name: rdTickLtr; }
@keyframes rdTickLtr { from { transform: translateX(0); } to { transform: translateX(-50%); } }

#about svg[width="14"] { transform: scaleX(-1) !important; }
#about svg[width="14"][style] { transform: none !important; }
#about img { order: -1; height: 52px !important; max-width: 190px; object-fit: contain; }

/* The home page's trailer drawings sit on black: recolour the light-page drawing. */
#trailers svg [fill="#ECDFF7"] { fill: #2B2333; }
#trailers svg path[fill="#D7B8EE"] { fill: #0E0A14; }
#trailers svg [stroke="#D7B8EE"] { stroke: #E0A800; }
#trailers svg line[stroke="#3A2F48"] { stroke: #BDBDBD; }
#trailers svg g[fill="#2B2333"] { fill: #2B2333; stroke: #BDBDBD; }
#trailers span[style*="#3A2F48"] { border-color: #C8C8C8 !important; }
#trailers span[style*="background: #7818C0"] { color: #FFFFFF; }

@media (max-width: 700px) {
  .rd-navlinks { display: none !important; }
  .rd-burger { display: block !important; }
  .rd-nav { flex-wrap: nowrap !important; padding-left: 16px !important; padding-right: 16px !important; }
  .rd-nav-brand { min-width: 0; gap: 10px !important; }
  .rd-nav-brand img { height: 22px !important; }
  .rd-burger > div { max-width: calc(100vw - 32px); }
  section { padding-left: 16px !important; padding-right: 16px !important; }
  .rd-card { padding: 28px 20px !important; }
  #quote { padding: 24px 18px !important; }
  h1:not(.rd-h1-small) { font-size: 36px !important; line-height: 1.3 !important; }
  h2 { font-size: 28px !important; line-height: 1.35 !important; }
  .rd-hero-big span:first-child { font-size: 64px !important; }
  .rd-hero-big span:last-child { font-size: 36px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-route, .rd-pulse, .rd-ticker, .rd-logos, .rd-pop { animation: none !important; }
  .rd-door { transition: none; }
}

/* Lead forms: the send button stays grey until every required field is filled. */
.rd-lead-submit { background: #7818C0; color: #FFFFFF; cursor: pointer; border: 0; font: inherit; }
.rd-lead-submit:hover { background: #5F12A0; color: #FFFFFF; }
.rd-lead-submit[aria-disabled="true"] { background: #B7B2C2; cursor: not-allowed; }
.rd-lead-submit .rd-lead-ready { display: none; }
.rd-lead-submit[aria-disabled="false"] .rd-lead-ready { display: inline; }
.rd-lead-submit[aria-disabled="false"] .rd-lead-incomplete { display: none; }
.rd-lead-honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/*
 * "I'm a factory / I'm a carrier" switch: content for each audience stays in the
 * page (so search engines read both), and the one not chosen is hidden.
 */
[data-audience-root][data-audience-current="factory"] [data-audience="carrier"],
[data-audience-root][data-audience-current="carrier"] [data-audience="factory"] { display: none !important; }

/* Long-form text: blog posts and the privacy policy. */
.rd-article { font-size: 18px; line-height: 1.9; color: #2B2733; overflow-wrap: break-word; }
.rd-article > :first-child { margin-top: 0; }
.rd-article h2, .rd-article h3, .rd-article h4 { color: #0E0A14; font-weight: 800; line-height: 1.4; margin: 1.8em 0 .6em; }
.rd-article h2 { font-size: 28px; }
.rd-article h3 { font-size: 23px; }
.rd-article h4 { font-size: 20px; }
.rd-article p { margin: 0 0 1.1em; }
.rd-article ul, .rd-article ol { margin: 0 0 1.2em; padding-inline-start: 1.4em; }
.rd-article li { margin-bottom: .4em; }
.rd-article a { color: #7818C0; font-weight: 700; }
.rd-article strong { color: #0E0A14; }
.rd-article blockquote { margin: 1.5em 0; padding: 16px 24px; border-inline-start: 4px solid #7818C0; background: #F7F0FC; border-radius: 16px; color: #3A2F48; }
.rd-article img { display: block; max-width: 100%; height: auto; border-radius: 20px; margin: 1.5em auto; }
.rd-article figure { margin: 1.5em 0; }
.rd-article figcaption { font-size: 14px; color: #8A8497; text-align: center; margin-top: -.8em; }
.rd-article table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 16px; display: block; overflow-x: auto; }
.rd-article th, .rd-article td { border: 1px solid #ECDFF7; padding: 10px 14px; text-align: start; }
.rd-article iframe, .rd-article video { max-width: 100%; border-radius: 16px; }
@media (max-width: 700px) {
  .rd-article { font-size: 17px; }
  .rd-article h2 { font-size: 23px !important; }
  .rd-article h3 { font-size: 20px; }
}
