/* =====================================================================
   Shared design system for the landing site (loaded by inc/head.php on
   every page). Everything is prefixed "oh-" except the nav overrides.
   px units on purpose: bootstrap.css (v3) sets html font-size to 10px.
   ===================================================================== */

:root {
    --oh-navy: #053679;
    --oh-navy-deep: #031f4a;
    --oh-blue: #01589e;
    --oh-sky: #00aeff;
    --oh-ink: #0b1f3a;
    --oh-text: #334155;
    --oh-muted: #64748b;
    --oh-line: #e2e8f0;
    --oh-soft: #eef5ff;
    --oh-yellow: #ffc533;
    --oh-radius: 24px;
    --oh-shadow: 0 20px 45px -20px rgba(5, 54, 121, .35);
    --oh-grad-navy: linear-gradient(135deg, var(--oh-blue) 0%, var(--oh-navy) 100%);
}

.oh-page { font-family: 'Poppins', sans-serif; color: var(--oh-text); overflow-x: hidden; }
.oh-page h1, .oh-page h2, .oh-page h3, .oh-page h4, .oh-page h5 { font-family: 'Poppins', sans-serif; color: var(--oh-navy); margin: 0; }
.oh-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.oh-section { padding: 96px 0; }
.oh-section-sm { padding: 64px 0; }
.oh-bg-soft { background: linear-gradient(180deg, #ffffff 0%, var(--oh-soft) 100%); }

/* ---------- Typography helpers ---------- */
.oh-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
    background: var(--oh-soft); color: var(--oh-blue); font-size: 12px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4 !important;
}
.oh-eyebrow i { font-size: 12px; }
.oh-section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.oh-section-head .oh-title { margin-top: 16px; }
.oh-title { font-size: 38px !important; line-height: 1.2 !important; font-weight: 700; letter-spacing: -.01em; color: var(--oh-navy); }
.oh-lead { font-size: 16px !important; line-height: 1.75 !important; color: var(--oh-muted); margin: 16px 0 0; }

/* ---------- Buttons ---------- */
.oh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
    font-size: 15px !important; font-weight: 600; line-height: 1 !important; text-decoration: none !important; cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; border: 2px solid transparent; white-space: nowrap;
}
.oh-btn i { font-size: 14px; }
.oh-btn:hover { transform: translateY(-2px); }
.oh-btn-primary { background: var(--oh-grad-navy); color: #fff !important; box-shadow: 0 12px 24px -12px rgba(5, 54, 121, .8); }
.oh-btn-primary:hover { box-shadow: 0 18px 30px -12px rgba(5, 54, 121, .9); color: #fff !important; }
.oh-btn-outline { border-color: #c7d6ea; color: var(--oh-navy) !important; background: #fff; }
.oh-btn-outline:hover { border-color: var(--oh-navy); color: var(--oh-navy) !important; }
.oh-btn-white { background: #fff; color: var(--oh-navy) !important; }
.oh-btn-white:hover { box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .45); color: var(--oh-blue) !important; }
.oh-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px !important; font-weight: 600; color: var(--oh-blue) !important; text-decoration: none !important; }
.oh-link i { font-size: 13px; transition: transform .2s; }
.oh-link:hover i { transform: translateX(4px); }

/* ---------- Inner-page hero (Company / FAQ / Calculator) ---------- */
.oh-page-hero {
    position: relative; overflow: hidden; padding: 72px 0 80px; color: #fff;
    background: radial-gradient(circle at 85% 20%, rgba(0, 174, 255, .28) 0%, rgba(0, 174, 255, 0) 45%), linear-gradient(135deg, var(--oh-navy-deep) 0%, var(--oh-navy) 55%, var(--oh-blue) 100%);
}
.oh-page-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.oh-page-hero .oh-container { position: relative; }
.oh-page-hero .oh-eyebrow { background: rgba(255, 255, 255, .12); color: #cdeeff; }
.oh-page-hero h1 { color: #fff !important; font-size: 44px !important; line-height: 1.15 !important; font-weight: 700; letter-spacing: -.01em; margin-top: 18px; }
.oh-page-hero p { color: rgba(255, 255, 255, .82) !important; font-size: 16px !important; line-height: 1.75 !important; max-width: 680px; margin: 16px 0 0; }
.oh-page-hero.is-center { text-align: center; }
.oh-page-hero.is-center p { margin-left: auto; margin-right: auto; }
.oh-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.oh-breadcrumb a { color: rgba(255, 255, 255, .85) !important; font-size: 13px !important; text-decoration: none !important; }
.oh-breadcrumb a:hover { color: #fff !important; }
.oh-breadcrumb span { font-size: 13px !important; }
.oh-page-hero.is-center .oh-breadcrumb { justify-content: center; }

/* ---------- Cards ---------- */
.oh-card { background: #fff; border: 1px solid var(--oh-line); border-radius: 20px; padding: 28px; transition: transform .3s, box-shadow .3s; }
.oh-card-hover:hover { transform: translateY(-4px); box-shadow: var(--oh-shadow); }
.oh-icon-tile {
    width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: var(--oh-grad-navy); color: #fff; font-size: 20px; box-shadow: 0 10px 20px -12px rgba(5, 54, 121, .8);
}
.oh-icon-tile img { width: 32px; height: 32px; object-fit: contain; }

/* ---------- Logo marquee ---------- */
.oh-logos { padding: 40px 0; border-top: 1px solid var(--oh-line); border-bottom: 1px solid var(--oh-line); background: #fff; }
.oh-logos.is-muted { background: #f8fafc; }
.oh-logos-label { text-align: center; font-size: 12px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oh-navy) !important; margin: 0 0 24px; }
.oh-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.oh-marquee-track { display: flex; align-items: center; gap: 72px; width: max-content; animation: oh-marquee 40s linear infinite; padding: 0; margin: 0; list-style: none; }
.oh-marquee:hover .oh-marquee-track { animation-play-state: paused; }
.oh-marquee-track li { flex-shrink: 0; margin: 0; }
.oh-marquee-track img { height: 44px; width: auto; max-width: 160px; object-fit: contain; transition: transform .3s; }
.oh-marquee-track img:hover { transform: scale(1.08); }
@keyframes oh-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Reveal on scroll (js/site.js) ---------- */
.oh-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.oh-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .oh-reveal { opacity: 1; transform: none; transition: none; }
    .oh-marquee-track { animation: none; }
}

/* =====================================================================
   Navigation (inc/nav.php) - one primary button (Apply Now), everything
   else plain links with an animated underline. Desktop only; the mobile
   drawer keeps mega_menu.css styling.
   ===================================================================== */
#header .menu-li-a.oh-nav-link,
#header .menu-li-a.oh-nav-link:focus { color: var(--oh-navy) !important; }
#header .oh-nav-lang i { margin-right: 4px; }

@media screen and (min-width: 993px) {
    #header .mega-menu .menu-links { display: flex !important; align-items: center; padding-top: 8px; }
    #header .mega-menu .menu-links > li { float: none; }
    #header .mega-menu .menu-links > li > a.oh-nav-link {
        position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 2px !important; margin: 0 16px;
        font-size: 14px !important; font-weight: 600; line-height: 1.4 !important; color: var(--oh-navy) !important; background: none !important; box-shadow: none !important;
    }
    #header .mega-menu .menu-links > li > a.oh-nav-link::after {
        content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 2px;
        background: var(--oh-sky); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
    }
    #header .mega-menu .menu-links > li:hover > a.oh-nav-link::after,
    #header .mega-menu .menu-links > li > a.oh-nav-link.is-active::after { transform: scaleX(1); }
    #header .mega-menu .menu-links > li > a.oh-nav-link.is-active { color: var(--oh-blue) !important; }
    #header .mega-menu .menu-links > li > a.oh-nav-link i { font-size: 13px; }

    #header .mega-menu .menu-links > li > a.oh-nav-lang {
        padding: 7px 12px !important; margin: 0 8px; border-radius: 999px; border: 1px solid var(--oh-line); font-size: 13px !important;
    }
    #header .mega-menu .menu-links > li > a.oh-nav-lang::after { display: none; }
    #header .mega-menu .menu-links > li > a.oh-nav-lang:hover { border-color: var(--oh-navy); }

    #header .mega-menu .menu-links > li > a.oh-nav-cta {
        display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px !important; margin: 0 0 0 12px; border-radius: 999px;
        background: var(--oh-grad-navy) !important; color: #fff !important; font-size: 14px !important; font-weight: 600; line-height: 1 !important;
        box-shadow: 0 10px 20px -10px rgba(5, 54, 121, .8); transition: transform .2s, box-shadow .2s;
    }
    #header .mega-menu .menu-links > li > a.oh-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(5, 54, 121, .9); color: #fff !important; }
    #header .mega-menu .menu-links > li > a.oh-nav-cta i { font-size: 12px; }

    #header .mega-menu .drop-down-multilevel { border-radius: 14px; border: 1px solid var(--oh-line); box-shadow: 0 20px 40px -20px rgba(5, 54, 121, .45); padding: 8px; overflow: hidden; }
    #header .mega-menu .drop-down-multilevel li a.menu-li-a-drop { display: block; padding: 10px 14px !important; border-radius: 10px; color: var(--oh-navy) !important; font-weight: 500; }
    #header .mega-menu .drop-down-multilevel li a.menu-li-a-drop:hover { background: var(--oh-soft) !important; color: var(--oh-blue) !important; }
}

/* Laptop widths (993-1199px): the full nav only just fits, so tighten the spacing to keep it on one line. */
@media screen and (min-width: 993px) and (max-width: 1199px) {
    #header .mega-menu .menu-links > li { margin: 0 !important; padding: 0 !important; }
    #header .mega-menu .menu-links > li > a.oh-nav-link { margin: 0 9px; font-size: 13px !important; }
    #header .mega-menu .menu-links > li > a.oh-nav-lang { margin: 0 4px; }
    #header .mega-menu .menu-links > li > a.oh-nav-cta { padding: 11px 16px !important; margin-left: 6px; font-size: 13px !important; }
}
/* Safety net: if the floated menu ever wraps below the header, page content must still start below it
   (otherwise it is squeezed beside the float to 0px wide and the page looks blank). */
main.oh-page { clear: both; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .oh-section { padding: 72px 0; }
    .oh-title { font-size: 32px !important; }
    .oh-page-hero { padding: 56px 0 64px; }
    .oh-page-hero h1 { font-size: 36px !important; }
}
@media (max-width: 767px) {
    .oh-container { padding: 0 18px; }
    .oh-section { padding: 56px 0; }
    .oh-title { font-size: 27px !important; }
    .oh-page-hero h1 { font-size: 30px !important; }
    .oh-marquee-track { gap: 48px; }
    .oh-marquee-track img { height: 34px; }
}

/* ---------- Animated nav logo (markup: inc/nav.php) ----------
   The PNG keeps the wordmark; its static icon (left 20.3% of the 300x67 image) is clipped off
   and the SVG rings sit exactly over that spot. Sizes are % of the logo width because every
   logo size rule only sets the height plus equal top/bottom margins. */
.oh-logo { position: relative; display: inline-block; line-height: 0; }
.oh-logo #logo_img { display: block; clip-path: inset(0 0 0 20.3%); animation: oh-logo-wordmark .8s cubic-bezier(.22, 1, .36, 1) .45s both; }
.oh-logo-mark {
    position: absolute; left: 5%; top: 50%; width: 14.667%; height: auto; aspect-ratio: 1;
    margin-top: -.667%; transform: translateY(-50%); overflow: visible; pointer-events: none;
}
.oh-logo-mark circle { fill: none; }
.oh-logo-arc { stroke-linecap: round; stroke-dasharray: var(--arc) 360; animation: oh-logo-draw 1s cubic-bezier(.65, 0, .35, 1) both; }
.oh-logo-dot { stroke: #3ddcf8; transform-box: fill-box; transform-origin: center; animation: oh-logo-pop .45s cubic-bezier(.34, 1.56, .64, 1) .9s both; }
.oh-logo-outer, .oh-logo-middle, .oh-logo-inner { transform-box: view-box; transform-origin: 139px 137.5px; }
.oh-logo-outer { animation: oh-logo-spin 14s linear 1.3s infinite; }
.oh-logo-middle { animation: oh-logo-spin 20s linear 1.3s infinite reverse; }
.oh-logo-middle .oh-logo-arc { animation-delay: .12s; }
.oh-logo-inner .oh-logo-arc { animation-delay: .24s; }
.oh-logo-inner { animation: oh-logo-glow 3.2s ease-in-out 1.3s infinite; }

@keyframes oh-logo-draw { from { stroke-dashoffset: var(--arc); opacity: 0; } 15% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes oh-logo-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes oh-logo-spin { to { transform: rotate(360deg); } }
@keyframes oh-logo-glow { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
@keyframes oh-logo-wordmark { from { clip-path: inset(0 100% 0 20.3%); opacity: .4; } to { clip-path: inset(0 0 0 20.3%); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .oh-logo #logo_img, .oh-logo-arc, .oh-logo-dot, .oh-logo-outer, .oh-logo-middle, .oh-logo-inner { animation: none !important; }
}

/* =====================================================================
   Footer (markup: inc/footer.php). Light so it reads as a continuation
   of the page after the blue "Apply now" banner, not a second banner.
   ===================================================================== */
.oh-footer {
    position: relative; overflow: hidden; padding: 64px 0 0; font-family: 'Poppins', sans-serif; color: var(--oh-text);
    background: radial-gradient(circle at 100% 0%, rgba(0, 174, 255, .10) 0%, rgba(0, 174, 255, 0) 40%), linear-gradient(180deg, #f8fbff 0%, var(--oh-soft) 100%);
}
.oh-footer ul { list-style: none; margin: 0; padding: 0; }
.oh-footer li { margin: 0; }
.oh-footer p { margin: 0; }
.oh-footer a { text-decoration: none !important; transition: color .2s, background .2s, border-color .2s, transform .2s, box-shadow .2s; }

.oh-footer-top { display: grid; grid-template-columns: 1.35fr .8fr 1.15fr; gap: 48px; }
.oh-footer-logo { display: inline-block; line-height: 0; }
.oh-footer-logo img { height: 46px; width: auto; }
.oh-footer-about { font-size: 15px !important; line-height: 1.75 !important; color: var(--oh-text); max-width: 380px; margin-top: 20px !important; }
.oh-footer-about b { color: var(--oh-navy); font-weight: 600; }

.oh-footer-heading { font-size: 15px !important; line-height: 1.4 !important; font-weight: 700; color: var(--oh-navy) !important; margin: 0 0 20px !important; }
.oh-footer-label { display: block; font-size: 12px !important; line-height: 1.4 !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--oh-navy) !important; margin: 0 0 14px !important; }
.oh-footer-brand .oh-footer-label { margin-top: 28px !important; }

.oh-footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.oh-footer-social a {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--oh-line); color: var(--oh-navy) !important; font-size: 15px !important;
}
.oh-footer-social a:hover { background: var(--oh-grad-navy); border-color: transparent; color: #fff !important; transform: translateY(-3px); box-shadow: 0 12px 20px -12px rgba(5, 54, 121, .8); }
.oh-footer-social a:focus-visible { outline: 2px solid var(--oh-sky); outline-offset: 2px; }

.oh-footer-links li + li { margin-top: 12px; }
.oh-footer-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px !important; line-height: 1.5 !important; color: var(--oh-text) !important; }
.oh-footer-links a i { font-size: 11px; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.oh-footer-links a:hover { color: var(--oh-blue) !important; }
.oh-footer-links a:hover i { opacity: 1; transform: none; }

.oh-footer-contact li { display: flex; align-items: flex-start; gap: 14px; }
.oh-footer-contact li + li { margin-top: 16px; }
.oh-footer-ic {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--oh-line); color: var(--oh-blue); font-size: 14px !important;
}
.oh-footer-contact a { font-size: 14px !important; line-height: 1.65 !important; color: var(--oh-text) !important; padding-top: 6px; overflow-wrap: anywhere; }
.oh-footer-contact a:hover { color: var(--oh-blue) !important; }
.oh-footer-phones { display: flex; flex-wrap: wrap; column-gap: 14px; padding-top: 6px; }
.oh-footer-phones a { padding-top: 0; white-space: nowrap; }

.oh-footer-mid {
    display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 48px; padding: 28px 32px;
    background: #fff; border: 1px solid var(--oh-line); border-radius: var(--oh-radius); box-shadow: 0 20px 40px -32px rgba(5, 54, 121, .45);
}
.oh-footer-subscribe { flex: 1 1 380px; max-width: 460px; }
.oh-footer-form {
    position: relative; display: flex; align-items: center; height: 54px; padding: 0 6px 0 46px; border-radius: 999px;
    background: #f8fafc; border: 1px solid var(--oh-line); transition: border-color .2s, box-shadow .2s, background .2s;
}
.oh-footer-form:focus-within { border-color: var(--oh-blue); background: #fff; box-shadow: 0 0 0 4px rgba(1, 88, 158, .12); }
.oh-footer-form > i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--oh-muted); font-size: 15px; }
.oh-footer-form input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; box-shadow: none;
    font-family: 'Poppins', sans-serif; font-size: 14px !important; color: var(--oh-ink);
}
.oh-footer-form input::placeholder { color: #94a3b8; }
.oh-footer-form button {
    flex-shrink: 0; width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
    background: var(--oh-grad-navy); color: #fff; font-size: 14px; box-shadow: 0 10px 18px -10px rgba(5, 54, 121, .9); transition: transform .2s, box-shadow .2s;
}
.oh-footer-form button:hover { transform: translateX(2px); box-shadow: 0 14px 22px -10px rgba(5, 54, 121, .9); }
.oh-footer-form button:focus-visible { outline: 2px solid var(--oh-sky); outline-offset: 2px; }

.oh-footer-certs { text-align: right; }
.oh-footer-certs ul { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 28px; }
.oh-footer-certs img { height: 44px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(.15); transition: transform .3s, filter .3s; }
.oh-footer-certs img:hover { transform: scale(1.06); filter: none; }

.oh-footer-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 40px; padding: 24px 0 28px; border-top: 1px solid #d7e3f3;
}
.oh-footer-bottom p, .oh-footer-bottom span { font-size: 13px !important; line-height: 1.6 !important; color: var(--oh-muted) !important; }

@media (max-width: 991px) {
    .oh-footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
    .oh-footer-brand { grid-column: 1 / -1; }
    .oh-footer-mid { flex-direction: column; align-items: stretch; }
    .oh-footer-subscribe { max-width: none; flex-basis: auto; }
    .oh-footer-certs { text-align: left; }
    .oh-footer-certs ul { justify-content: flex-start; }
}
@media (max-width: 767px) {
    .oh-footer { padding-top: 48px; }
    .oh-footer-top { grid-template-columns: 1fr; gap: 32px; }
    .oh-footer-mid { padding: 24px 20px; margin-top: 36px; }
    .oh-footer-certs ul { gap: 20px; }
    .oh-footer-certs img { height: 36px; }
    .oh-footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .oh-footer a, .oh-footer-form button, .oh-footer-certs img, .oh-footer-links a i { transition: none; }
}
