/*
 * Orlando Suite — theme styles that are not part of the precompiled
 * Tailwind build (assets/css/app.css). Plain CSS, no build step.
 * Loaded after app.css.
 */

/* ---------------------------------------------------------------------------
 * Utilities
 * Tailwind classes used by the theme but absent from the precompiled app.css
 * (a class missing from app.css silently does nothing).
 * ------------------------------------------------------------------------ */
.gap-y-2 { row-gap: 0.5rem; }
.my-5 { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-24 { padding-bottom: 6rem; }
.object-top { object-position: top; }
.text-black { color: #000; }
.text-\[\#1a7f37\] { color: #1a7f37; }
.text-\[\#5F6368\] { color: #5F6368; }
.text-\[\#B4B8BB\] { color: #B4B8BB; }
.hover\:bg-\[\#004878\]:hover { background-color: #004878; }
.orlando-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.orlando-skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: #004878; color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.orlando-skip-link:focus { top: 12px; }
#main:focus { outline: none; }

/* Visible keyboard focus everywhere. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #0072B2; outline-offset: 2px; border-radius: 4px;
}
footer :where(a, button):focus-visible,
.bg-\[\#004878\] :where(a, button):focus-visible,
.bg-\[\#204783\] :where(a, button):focus-visible { outline-color: #fff; }

/* Anchored sections are not hidden under the sticky header. */
.orlando-anchor { scroll-margin-top: 72px; }

/* ---------------------------------------------------------------------------
 * Header / navigation (RESP-1)
 * The full menu needs up to ~1150 px (French); below 1280 px the
 * hamburger menu is used, so nothing ever overflows.
 * ------------------------------------------------------------------------ */
.orlando-header-logo { height: 32px; width: auto; max-width: none; }
.orlando-nav-desktop { display: none; gap: 2px; }
.orlando-nav-link { padding: 6px 9px; font-size: 15px; }
.orlando-nav-cta { padding: 8px 18px; margin-left: 8px; font-size: 15px; }
.orlando-nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px; }
@media (min-width: 1280px) {
  .orlando-nav-desktop { display: flex; }
  .orlando-nav-toggle, .orlando-mobile-menu { display: none !important; }
}

/* Language switcher: 44 px touch targets (RESP-5). */
.orlando-lang-switcher { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 0 0 8px; padding: 0 0 0 8px; border-left: 1px solid #D4E5F5; }
.orlando-lang-switcher.is-mobile { margin: 0; padding: 8px 4px 0; border-left: 0; flex-wrap: wrap; }
.orlando-flag { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 8px; border-radius: 8px; color: #3E3E40; }
.orlando-flag:hover, .orlando-flag.is-current { background: #EDF3FB; }
.orlando-flag img { display: block; width: 18px; height: 12px; max-width: none; border-radius: 2px; }

/* ---------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------ */
.orlando-footer-logo { display: block; height: 40px; width: auto; max-width: none; margin: 0 0 20px; }
.orlando-infotel-logo { display: block; height: 20px; width: auto; max-width: none; }
.orlando-footer-link { color: #B4B8BB; text-decoration: none; transition: color .2s ease; }
.orlando-footer-link:hover { color: #7CC4EC; text-decoration: underline; }

/* ---------------------------------------------------------------------------
 * Content styles for pages written in the editor (CONC-1): legal pages,
 * articles, 404, search. Replaces the missing Tailwind "prose" class.
 * ------------------------------------------------------------------------ */
.orlando-prose {
  max-width: 760px; margin: 0 auto; padding: 0 20px;
  color: #3E3E40; font-size: 17px; line-height: 1.7;
}
.orlando-prose.is-flush { padding: 0; max-width: none; }
.orlando-prose > * + * { margin-top: 1em; }
.orlando-prose h2 { font-size: 1.6em; line-height: 1.25; font-weight: 700; color: #121413; margin-top: 1.8em; }
.orlando-prose h3 { font-size: 1.3em; line-height: 1.3; font-weight: 700; color: #121413; margin-top: 1.6em; }
.orlando-prose h4 { font-size: 1.1em; font-weight: 700; color: #121413; margin-top: 1.4em; }
.orlando-prose h2 + *, .orlando-prose h3 + *, .orlando-prose h4 + * { margin-top: .6em; }
.orlando-prose a { color: #095DA5; text-decoration: underline; text-underline-offset: 2px; }
.orlando-prose a:hover { color: #004878; }
.orlando-prose ul { list-style: disc; padding-left: 1.5em; }
.orlando-prose ol { list-style: decimal; padding-left: 1.5em; }
.orlando-prose li + li { margin-top: .35em; }
.orlando-prose li::marker { color: #095DA5; }
.orlando-prose strong { color: #121413; font-weight: 700; }
.orlando-prose blockquote { border-left: 4px solid #BDD0F0; padding-left: 1em; font-style: italic; }
.orlando-prose table { width: 100%; border-collapse: collapse; font-size: .95em; display: block; overflow-x: auto; }
.orlando-prose th, .orlando-prose td { border: 1px solid #D4E5F5; padding: .5em .75em; text-align: left; vertical-align: top; }
.orlando-prose th { background: #EDF3FB; color: #121413; }
.orlando-prose img, .orlando-prose figure { max-width: 100%; height: auto; }
.orlando-prose hr { border: 0; border-top: 1px solid #D4E5F5; margin: 2em 0; }
.orlando-prose .orlando-meta, .orlando-meta { color: #5F6368; font-size: .9em; }
.orlando-prose .orlando-article-image { position: relative; height: clamp(240px, 55vh, 520px); border-radius: 16px; overflow: hidden; }
.orlando-prose .orlando-media-fg { height: 100%; }
.orlando-prose .orlando-media-bg { height: calc(100% + 48px); max-width: none; }
.orlando-article-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 2.5em; padding-top: 1.5em; border-top: 1px solid #D4E5F5; }
.orlando-prose .orlando-btn { text-decoration: none; }
.orlando-prose .orlando-btn--primary, .orlando-prose .orlando-btn--primary:hover { color: #fff; }
.orlando-adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1.5em; }
.orlando-prose a.orlando-adjacent-link { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: 1px solid #BDD0F0; border-radius: 12px; text-decoration: none; color: #121413; transition: border-color .2s ease, background-color .2s ease; }
.orlando-prose a.orlando-adjacent-link:hover { border-color: #095DA5; background: #EDF3FB; }
.orlando-adjacent-link.is-next { text-align: right; }
.orlando-adjacent-label { font-size: 13px; font-weight: 600; color: #095DA5; text-transform: uppercase; letter-spacing: .04em; }
.orlando-adjacent-title { font-weight: 600; line-height: 1.35; }
@media (max-width: 560px) { .orlando-adjacent { grid-template-columns: 1fr; } .orlando-adjacent-link.is-next { text-align: left; } }
.orlando-search-results { list-style: none !important; padding-left: 0 !important; }
.orlando-search-results li { padding: 1em 0; border-bottom: 1px solid #D4E5F5; }
.orlando-search-results h2 { font-size: 1.25em; margin-top: 0; }
.orlando-editor-content { border-top: 1px solid #D4E5F5; }

/* Legal notice page (page-legal.php). */
.orlando-legal-card { padding: 28px 24px; }
@media (min-width: 640px) { .orlando-legal-card { padding: 44px 52px; } }
.orlando-legal-card .orlando-prose { font-size: 16px; }
.orlando-legal-card .orlando-prose > :first-child { margin-top: 0; }
.orlando-legal-card .orlando-prose h2 { font-size: 1.35em; padding-top: 1.4em; margin-top: 1.4em; border-top: 1px solid #D4E5F5; }
.orlando-legal-card .orlando-prose > h2:first-child, .orlando-legal-card .orlando-draft-note + h2 { padding-top: 0; border-top: 0; margin-top: 0; }
.orlando-prose ul.orlando-legal-list { list-style: none; padding: 16px 20px; background: #F5F9FE; border: 1px solid #D4E5F5; border-radius: 12px; }
.orlando-prose ul.orlando-legal-list li + li { margin-top: .4em; }
.orlando-prose .orlando-draft-note { padding: 14px 16px; border-radius: 10px; background: #FFF4E5; border: 1px solid #F5C27A; color: #7A4B00; font-size: .9em; }
.orlando-legal-updated { margin-top: 2em; padding-top: 1em; border-top: 1px solid #D4E5F5; }

/* Search form (WordPress core markup). */
.search-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search-form label { flex: 1 1 240px; }
.search-form .search-field { width: 100%; padding: 10px 14px; border: 1px solid #8A9099; border-radius: 8px; font-size: 16px; }
.search-form .search-submit { padding: 10px 20px; background: #095DA5; color: #fff; border-radius: 8px; font-weight: 600; cursor: pointer; }
.search-form .search-submit:hover { background: #004878; }

/* Pagination. */
.orlando-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.orlando-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid #BDD0F0; color: #095DA5; text-decoration: none; }
.orlando-pagination .page-numbers.current { background: #095DA5; color: #fff; border-color: #095DA5; }

/* Links inside running text. */
.orlando-text-link { color: #095DA5; text-decoration: underline; text-underline-offset: 2px; }
.orlando-text-link:hover { color: #004878; }
.orlando-icon-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: #5F6368; }
.orlando-icon-link:hover { color: #095DA5; }

/* ---------------------------------------------------------------------------
 * Contact form
 * ------------------------------------------------------------------------ */
.orlando-label { display: block; font-size: 14px; font-weight: 500; color: #3E3E40; margin-bottom: 8px; }
.orlando-input {
  width: 100%; padding: 10px 16px; font-size: 16px; color: #121413; background: #fff;
  border: 1px solid #8A9099; border-radius: 8px;
}
.orlando-input:focus { outline: 3px solid #0072B2; outline-offset: 1px; border-color: #095DA5; }
.orlando-input[aria-invalid="true"] { border-color: #B42318; border-width: 2px; }
.orlando-field-error { margin-top: 6px; font-size: 14px; color: #B42318; font-weight: 500; }
.orlando-alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 8px; background: #FEF3F2; border: 1px solid #FDA29B; color: #912018; font-size: 15px; }
.orlando-alert svg { color: #B42318; }
.orlando-gdpr-notice { font-size: 13px; line-height: 1.55; color: #5F6368; border-top: 1px solid #E5E7EB; padding-top: 16px; }
/* Honeypot: off-screen for everybody; aria-hidden on the wrapper. */
.orlando-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#contact-form { scroll-margin-top: 72px; }
#contact-form:focus { outline: none; }

/* ---------------------------------------------------------------------------
 * Cards: lift on hover only when the card itself is a link (CONC-7).
 * Cards that are not links stay still, so they are not mistaken for links.
 * ------------------------------------------------------------------------ */
.orlando-static-card { cursor: default; }
a.group, button.orlando-news-card { transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, border-color .25s ease; }
a.group:hover, a.group:focus-visible, button.orlando-news-card:hover, button.orlando-news-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,72,120,.22), 0 0 0 1px rgba(0,128,199,.12) !important;
}
button.orlando-news-card { cursor: pointer; font: inherit; }
/* Only real buttons zoom on hover, not plain text links (footer, etc.). */
a.transition-colors:hover, button.transition-colors:hover { transform: none; box-shadow: none; }
a.transition-colors[class*="px-"][class*="rounded"]:hover,
button.transition-colors[class*="px-"][class*="rounded"]:hover { transform: scale(1.03); box-shadow: 0 8px 20px rgba(0,72,120,.18); }

/* ---------------------------------------------------------------------------
 * Contrast (A11Y-1): colours darkened to reach 4.5:1 with white text or
 * on white / light blue backgrounds. Brand blue #095DA5 is unchanged.
 * ------------------------------------------------------------------------ */
main .bg-\[\#0080C7\], main .hover\:bg-\[\#0080C7\]:hover,
main .bg-\[\#0087c9\] { background-color: #0072B2; }
main .bg-\[\#39A4D8\], main .hover\:bg-\[\#39A4D8\]:hover { background-color: #1B75A6; }
main .bg-cyan-600 { background-color: #0E7490; }
main .text-\[\#0080C7\], main .text-\[\#0087c9\] { color: #095DA5; }
main .text-cyan-600 { color: #0E7490; }
main .text-\[\#79B7E0\] { color: #A9D3EE; }
main .bg-\[\#004878\] .text-white\/60 { color: rgba(255,255,255,.78); }
main .text-\[\#39A4D8\] { color: #1B75A6; }
main .text-\[\#929699\] { color: #5F6368; }
main .text-gray-400 { color: #6B7280; }

/* ---------------------------------------------------------------------------
 * Page-specific responsive fixes
 * ------------------------------------------------------------------------ */
.orlando-hero-logo { display: block; height: 56px; width: auto; max-width: none; margin: 0 0 24px; }

/* Home counters: never break "270,000+" on two lines (RESP-4). */
.orlando-stat-number { white-space: nowrap; }

/* Orlando Suite page, AMAS box on phones (RESP-2). */
.orlando-amas-box { padding: 24px; }
.orlando-amas-title { font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
@media (min-width: 640px) { .orlando-amas-box { padding: 36px; } .orlando-amas-title { font-size: 30px; } }
@media (min-width: 1024px) { .orlando-amas-box { padding: 48px; } .orlando-amas-title { font-size: 36px; } }

/* Company page, Infotel figures: 1 column on phones, 3 from 640 px (RESP-3). */
.orlando-company-stats { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .orlando-company-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

/* Compliance page: regulations/standards as text (LEG-5) or logos. */
.orlando-reg-name { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border: 1px solid #BDD0F0; border-radius: 999px; font-size: 14px; font-weight: 600; color: #121413; background: #F8FAFC; }
.orlando-reg-logo { display: inline-block; width: auto; height: 36px; max-width: 80px; object-fit: contain; }

/* Client logo carousel (BUG-12, A11Y-3): paused on hover and keyboard focus,
   pause / play icon in the top-right corner. */
.orlando-carousel-set { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0 20px 0 0; flex-shrink: 0; }
.orlando-client-logo { position: relative; z-index: 10; width: auto; height: 67px; max-width: 180px; object-fit: contain; }
.animate-scroll-smooth:hover, .animate-scroll-smooth:focus-within, .orlando-carousel.is-paused .animate-scroll-smooth { animation-play-state: paused !important; }
.orlando-carousel-toggle {
  position: absolute; top: -8px; right: 0; z-index: 30;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border-radius: 999px;
  border: 1px solid #BDD0F0; background: rgba(255,255,255,.92); color: #095DA5;
  cursor: pointer; opacity: .75; transition: opacity .2s ease, background-color .2s ease;
}
.orlando-carousel-toggle:hover, .orlando-carousel-toggle:focus-visible { opacity: 1; background: #EDF3FB; }
.orlando-carousel .orlando-icon-play { display: none; }
.orlando-carousel.is-paused .orlando-icon-play { display: block; }
.orlando-carousel.is-paused .orlando-icon-pause { display: none; }

/* News images: whole picture always visible (portrait, landscape, square),
   empty space filled with a blurred copy of the same picture. */
.orlando-media { position: absolute; inset: 0; display: block; overflow: hidden; background: #DDE9F7; }
.orlando-media-bg { position: absolute; top: -24px; left: -24px; width: calc(100% + 48px); height: calc(100% + 48px); max-width: none; object-fit: cover; filter: blur(18px) saturate(1.1); opacity: .65; }
.orlando-media-fg { position: relative; z-index: 1; display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.orlando-news-card-media { position: relative; z-index: 10; display: block; width: 100%; height: 210px; overflow: hidden; flex-shrink: 0; }

/* Site buttons (also used in the news popup and on article pages). */
.orlando-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 8px;
  font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.orlando-btn--primary { background: #095DA5; color: #fff; border: 1px solid #095DA5; }
.orlando-btn--primary:hover { background: #004878; border-color: #004878; transform: scale(1.03); box-shadow: 0 8px 20px rgba(0,72,120,.18); }
.orlando-btn--outline { background: #fff; color: #095DA5; border: 1px solid #BDD0F0; }
.orlando-btn--outline:hover { background: #EDF3FB; border-color: #095DA5; }
.orlando-btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.orlando-btn[hidden] { display: none; }

/* News popup (BUG-8). */
.orlando-dialog { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.orlando-dialog[hidden] { display: none; }
.orlando-dialog-backdrop { position: absolute; inset: 0; background: rgba(10,22,40,.6); backdrop-filter: blur(2px); }
.orlando-dialog-panel { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 16px; width: 100%; max-width: 720px; max-height: 88vh; overflow-y: auto; box-shadow: 0 25px 60px rgba(0,0,0,.3); }
.orlando-dialog-panel:focus { outline: none; }
.orlando-dialog-x { position: absolute; top: 12px; right: 12px; z-index: 20; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: #fff; color: #3E3E40; box-shadow: 0 4px 12px rgba(0,0,0,.18); cursor: pointer; }
.orlando-dialog-x:hover { background: #EDF3FB; color: #095DA5; }
.orlando-dialog-media { position: relative; height: clamp(220px, 46vh, 440px); background: #DDE9F7; border-radius: 16px 16px 0 0; overflow: hidden; flex-shrink: 0; }
.orlando-dialog-badge { position: absolute; top: 16px; left: 16px; z-index: 20; margin: 0; padding: 6px 14px; border-radius: 999px; background: #095DA5; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.orlando-dialog-text { padding: 28px 32px 8px; }
.orlando-dialog-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px 32px 24px; margin-top: 16px; background: #fff; border-top: 1px solid #D4E5F5; }
.orlando-dialog-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.orlando-dialog-nav + .orlando-dialog-nav { margin-left: auto; }
.orlando-dialog-actions .orlando-btn { padding: 10px 16px; }
@media (max-width: 560px) {
  .orlando-dialog { padding: 8px; }
  .orlando-dialog-text { padding: 20px 20px 4px; }
  .orlando-dialog-actions { padding: 12px 20px 16px; }
  .orlando-dialog-nav { width: 100%; }
  .orlando-dialog-nav .orlando-btn { flex: 1 1 0; padding: 10px 12px; }
}
html.orlando-dialog-open { overflow: hidden; }

/* ---------------------------------------------------------------------------
 * Reduced motion (A11Y-3): no scroll reveal, no carousel, no count-up.
 * ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  [data-reveal].js-reveal-ready { opacity: 1 !important; transform: none !important; transition: none !important; }
  .animate-scroll-smooth { animation: none !important; }
  /* No movement: all logos shown at once, wrapped on several lines. */
  .orlando-carousel .animate-scroll-smooth { width: auto !important; justify-content: center; }
  .orlando-carousel-set { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .orlando-carousel-set[aria-hidden="true"], .orlando-carousel-toggle { display: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
  a.group:hover, button.group:hover, a.transition-colors:hover, button.transition-colors:hover { transform: none !important; }
}

@media print {
  header, footer, .orlando-skip-link, .orlando-carousel-toggle { display: none !important; }
}

/* Long French/Spanish words in big headings on small phones. */
main h1, main h2, main h3 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 479px) {
  main h2.text-4xl, main h2.md\:text-5xl { font-size: 1.875rem; line-height: 2.25rem; }
  main h1.text-4xl { font-size: 2rem; line-height: 2.5rem; }
}

/* Highlighted words in hero titles: when they wrap, each line keeps its own box. */
main h1 span.inline-block { display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.45; }
