:root {
    --navy-950: #031d2d;
    --navy-900: #062e47;
    --navy-800: #084766;
    --navy-700: #0a607f;
    --teal: #0a8193;
    --gold: #d6a64b;
    --gold-light: #f2d38a;
    --ink: #173246;
    --muted: #687d8b;
    --line: #dce6eb;
    --soft: #f4f8fa;
    --white: #fff;
    --green: #16845b;
    --red: #b43d46;
    --shadow: 0 20px 55px rgba(3, 40, 61, .12);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "Cairo", Tahoma, Arial, sans-serif; line-height: 1.7; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; right: 20px; z-index: 9999; padding: 10px 18px; background: var(--gold); color: var(--navy-950); border-radius: 0 0 10px 10px; font-weight: 700; }
.skip-link:focus { top: 0; }

.utility-bar { background: var(--navy-950); color: #d9e7ec; font-size: 12px; }
.utility-inner { min-height: 37px; display: flex; align-items: center; gap: 24px; }
.utility-inner span { display: flex; align-items: center; gap: 7px; }
.utility-inner svg { color: var(--gold-light); width: 15px; }
.site-header { position: absolute; z-index: 50; top: 0; inset-inline: 0; }
.main-nav { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .16); transition: .25s ease; }
.main-nav.is-fixed { position: fixed; top: 0; inset-inline: 0; background: rgba(3, 29, 45, .96); box-shadow: 0 8px 25px rgba(0, 0, 0, .18); backdrop-filter: blur(14px); }
.nav-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 255px; }
.brand > img { width: 62px; height: 62px; object-fit: contain; border-radius: 12px; background: #fff; padding: 4px; }
.brand-mark { width: 56px; height: 56px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(214, 166, 75, .65); color: var(--gold-light); border-radius: 50%; background: rgba(255, 255, 255, .06); }
.brand-mark svg { width: 30px; height: 30px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.4; }
.brand-copy strong { max-width: 330px; font-size: 16px; font-weight: 800; }
.brand-copy small { color: #c5d5de; font-size: 12px; }
.nav-links { align-self: stretch; display: flex; align-items: center; gap: 28px; }
.nav-links a { position: relative; display: flex; height: 100%; align-items: center; font-size: 14px; font-weight: 600; color: #eef5f7; transition: color .2s; }
.nav-links a::after { position: absolute; content: ""; height: 3px; right: 0; left: 0; bottom: 0; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.menu-button { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; padding: 10px; cursor: pointer; }
.menu-button span { height: 2px; display: block; background: white; margin: 5px 0; transition: .2s; }

.hero { position: relative; min-height: 790px; display: grid; align-items: center; overflow: hidden; color: #fff; background-image: linear-gradient(90deg, rgba(2, 25, 40, .36) 0%, rgba(2, 28, 44, .78) 50%, rgba(2, 27, 43, .96) 100%), url("assets/maritime-hero.png"); background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 170px; background: linear-gradient(transparent, rgba(1, 21, 33, .45)); pointer-events: none; }
.hero-grid { position: relative; z-index: 2; padding-top: 112px; display: grid; grid-template-columns: 1.12fr .72fr; align-items: end; gap: 70px; }
.hero-copy { max-width: 710px; }
.eyebrow { width: max-content; max-width: 100%; display: inline-flex; gap: 9px; align-items: center; padding: 8px 15px; margin-bottom: 20px; color: #f9e2ac; border: 1px solid rgba(214,166,75,.42); background: rgba(214,166,75,.1); border-radius: 999px; font-size: 13px; font-weight: 600; }
.eyebrow svg { width: 18px; }
.hero h1 { margin: 0 0 22px; max-width: 670px; font-size: clamp(42px, 5.5vw, 72px); line-height: 1.24; letter-spacing: -.8px; font-weight: 800; text-shadow: 0 4px 30px rgba(0,0,0,.16); }
.hero-copy > p { max-width: 680px; margin: 0; color: #dbe9ef; font-size: 18px; line-height: 2; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.button { min-height: 51px; padding: 11px 23px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-gold { color: var(--navy-950); background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 12px 28px rgba(214,166,75,.2); }
.button-gold:hover { box-shadow: 0 15px 30px rgba(214,166,75,.32); }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.04); }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.hero-badge { margin-bottom: 15px; min-width: 320px; padding: 21px; display: flex; gap: 15px; align-items: center; border: 1px solid rgba(255,255,255,.18); border-right: 3px solid var(--gold); background: rgba(4,45,67,.72); box-shadow: 0 20px 50px rgba(0,0,0,.18); backdrop-filter: blur(10px); border-radius: 13px; }
.hero-badge-icon { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; color: var(--gold-light); border-radius: 50%; background: rgba(214,166,75,.13); }
.hero-badge-icon svg { width: 27px; height: 27px; }
.hero-badge div { display: flex; flex-direction: column; }
.hero-badge strong { font-size: 15px; }
.hero-badge small { color: #bfd1da; font-size: 11px; }
.scroll-cue { position: absolute; z-index: 3; bottom: 28px; left: 50%; width: 27px; height: 44px; border: 2px solid rgba(255,255,255,.5); border-radius: 20px; }
.scroll-cue span { width: 4px; height: 8px; position: absolute; top: 8px; left: 50%; translate: -50% 0; border-radius: 3px; background: var(--gold-light); animation: scroll 1.7s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(15px); } }

.verify-section { position: relative; z-index: 5; margin-top: -1px; padding: 82px 0 96px; background: linear-gradient(180deg, #eef5f7, #fff); }
.verify-section::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; background: rgba(255,255,255,.15); }
.verify-card { padding: 38px 42px; border: 1px solid #dfe9ed; border-top: 4px solid var(--gold); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.verify-heading { display: flex; gap: 18px; align-items: center; padding-bottom: 27px; margin-bottom: 25px; border-bottom: 1px solid #e4ecef; }
.section-icon { width: 62px; height: 62px; display: grid; flex: 0 0 auto; place-items: center; color: var(--navy-700); background: #eaf4f6; border-radius: 15px; }
.section-icon svg { width: 31px; height: 31px; }
.overline { display: block; margin-bottom: 3px; color: #aa7922; font-weight: 700; font-size: 12px; letter-spacing: .4px; }
.verify-heading h2, .section-heading h2, .about-copy h2 { margin: 0; color: var(--navy-900); font-size: clamp(26px, 3vw, 38px); line-height: 1.45; }
.verify-heading p, .section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.verify-form label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #385365; }
.search-control { height: 62px; display: flex; align-items: stretch; border: 1px solid #cddce3; border-radius: 10px; background: #fdfefe; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.search-control:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(10,129,147,.11); }
.search-control > span { width: 56px; display: grid; place-items: center; color: #8194a0; }
.search-control input { min-width: 0; flex: 1; padding: 0 4px; direction: ltr; text-align: right; border: 0; outline: 0; color: var(--navy-900); background: transparent; font-size: 16px; font-weight: 600; }
.search-control input::placeholder { color: #a2b0b8; font-weight: 400; }
.search-control button { min-width: 175px; margin: 5px; color: #fff; border: 0; border-radius: 7px; background: var(--navy-900); font-weight: 700; cursor: pointer; transition: background .2s; }
.search-control button:hover { background: var(--navy-700); }
.search-control button svg { vertical-align: middle; margin-right: 5px; }
.verify-form > small { display: block; margin-top: 7px; color: #8798a2; font-size: 11px; }
.result-message { margin-top: 25px; display: flex; gap: 14px; padding: 17px 19px; border-radius: 10px; }
.result-message > svg { margin-top: 2px; flex: 0 0 auto; }
.result-message strong { font-size: 14px; }
.result-message p { margin: 2px 0 0; font-size: 12px; }
.result-error { color: #8f2932; background: #fff1f2; border: 1px solid #ffd7da; }
.certificate-result { margin-top: 25px; overflow: hidden; border: 1px solid #cfe7dd; border-radius: 13px; }
.result-success { display: flex; gap: 13px; align-items: center; padding: 17px 21px; color: #126445; background: #eef9f4; border-bottom: 1px solid #d5ebe1; }
.result-success > span { width: 39px; height: 39px; display: grid; place-items: center; color: white; border-radius: 50%; background: var(--green); }
.result-success > span svg { width: 22px; }
.result-success div { display: flex; flex-direction: column; }
.result-success strong { font-size: 15px; }
.result-success p { margin: 0; font-size: 12px; color: #54806c; }
.certificate-details { padding: 22px; }
.certificate-details dl { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.certificate-details dl > div { min-height: 85px; padding: 15px; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.certificate-details dt { color: var(--muted); font-size: 11px; }
.certificate-details dd { margin: 2px 0 0; color: var(--navy-900); font-size: 14px; font-weight: 700; }
.status-pill { display: inline-flex; width: max-content; color: var(--green); font-size: 11px; padding: 3px 9px; border-radius: 999px; background: #e4f6ee; }
.result-actions { display: flex; gap: 10px; margin-top: 18px; }
.button-navy { color: white; background: var(--navy-900); }
.button-outline { color: var(--navy-900); border-color: #b9cdd7; background: white; }
.certificate-preview { padding: 0 22px 22px; }
.certificate-preview img, .certificate-preview iframe { width: 100%; max-height: 750px; border: 1px solid var(--line); border-radius: 10px; background: #eef3f5; object-fit: contain; }
.certificate-preview iframe { height: 680px; }

.about-section { padding: 110px 0; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 85px; align-items: center; }
.about-visual { position: relative; padding: 18px 0 18px 18px; }
.photo-frame { position: relative; height: 470px; overflow: hidden; border-radius: 3px 40px 3px 3px; box-shadow: 0 25px 55px rgba(5,48,71,.2); }
.photo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(20deg, rgba(3,38,57,.58), transparent 58%); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 33% center; }
.about-visual::before { content: ""; position: absolute; inset: 0 36% 0 0; border: 2px solid #ead49f; transform: translate(18px, 18px); z-index: -1; }
.floating-stat { position: absolute; left: -12px; bottom: 0; min-width: 150px; padding: 18px 24px; color: #fff; background: var(--navy-900); border-bottom: 4px solid var(--gold); box-shadow: var(--shadow); }
.floating-stat strong { display: block; color: var(--gold-light); font-size: 30px; line-height: 1.2; }
.floating-stat span { font-size: 12px; }
.about-copy > p { margin: 20px 0 28px; color: var(--muted); font-size: 15px; }
.feature-list { display: grid; gap: 13px; }
.feature-list > div { display: flex; gap: 14px; padding: 15px 17px; border: 1px solid #e0e9ed; border-radius: 11px; background: #fff; transition: transform .2s, border-color .2s, box-shadow .2s; }
.feature-list > div:hover { transform: translateX(-5px); border-color: #c8dce3; box-shadow: 0 12px 28px rgba(4,47,70,.07); }
.feature-list > div > span { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; color: var(--navy-700); background: #eaf4f6; border-radius: 50%; }
.feature-list > div > div { display: flex; flex-direction: column; }
.feature-list strong { color: var(--navy-900); font-size: 14px; }
.feature-list small { color: var(--muted); font-size: 11px; }

.steps-section { padding: 98px 0 110px; background-color: var(--soft); background-image: radial-gradient(#cbdde4 1px, transparent 1px); background-size: 24px 24px; }
.section-heading { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { position: relative; padding: 35px 28px 30px; text-align: center; background: white; border: 1px solid #dfe9ed; border-radius: 14px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.step-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.step-number { position: absolute; top: -10px; left: 12px; color: #edf3f5; font-size: 65px; line-height: 1; font-weight: 800; }
.step-icon { position: relative; width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 17px; color: var(--gold); border: 1px solid #dfca9b; border-radius: 50%; background: #fffaf0; }
.step-icon svg { width: 31px; height: 31px; }
.step-card h3 { margin: 0 0 8px; color: var(--navy-900); font-size: 17px; }
.step-card p { margin: 0; color: var(--muted); font-size: 12px; }

.trust-banner { padding: 66px 0; color: white; background: linear-gradient(115deg, rgba(3,36,55,.98), rgba(6,76,104,.94)), url("assets/maritime-hero.png") center 61%/cover; }
.trust-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.trust-icon { width: 70px; height: 70px; display: grid; place-items: center; color: var(--gold-light); border: 1px solid rgba(214,166,75,.6); border-radius: 50%; }
.trust-icon svg { width: 34px; height: 34px; }
.trust-banner .overline { color: var(--gold-light); }
.trust-banner h2 { margin: 0; font-size: clamp(23px, 3vw, 34px); }

.site-footer { color: #ccdae1; background: #021b2a; }
.footer-grid { padding: 66px 0 55px; display: grid; grid-template-columns: 1.4fr .65fr 1fr; gap: 70px; }
.footer-brand p { max-width: 440px; margin-top: 22px; color: #93aab6; font-size: 13px; }
.brand-light .brand-copy strong { color: white; }
.footer-grid h3 { position: relative; padding-bottom: 10px; margin: 0 0 20px; color: #fff; font-size: 16px; }
.footer-grid h3::after { content: ""; position: absolute; bottom: 0; right: 0; width: 35px; height: 2px; background: var(--gold); }
.footer-grid > div:not(:first-child) a { display: block; width: max-content; max-width: 100%; margin: 8px 0; color: #a8bac3; font-size: 12px; transition: color .2s, transform .2s; }
.footer-grid > div:not(:first-child) a:hover { color: var(--gold-light); transform: translateX(-3px); }
.footer-grid > div:not(:first-child) p { display: flex; align-items: flex-start; gap: 9px; color: #a8bac3; font-size: 12px; }
.footer-grid p svg { width: 17px; flex: 0 0 auto; margin-top: 3px; color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #6f8997; font-size: 11px; }
.back-top { position: fixed; z-index: 20; left: 24px; bottom: 24px; width: 43px; height: 43px; display: grid; place-items: center; color: white; border: 0; border-radius: 50%; background: var(--navy-700); box-shadow: 0 10px 25px rgba(3,45,67,.2); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s; }
.back-top.visible { opacity: 1; visibility: visible; transform: none; }
.reveal { opacity: 0; transform: translateY(25px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
    .site-header { position: absolute; }
    .menu-button { display: block; }
    .nav-links { position: fixed; top: 0; bottom: 0; right: 0; width: min(340px, 87vw); padding: 105px 30px 30px; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy-950); box-shadow: -20px 0 50px rgba(0,0,0,.3); transform: translateX(105%); transition: transform .25s; }
    .nav-links.open { transform: none; }
    .nav-links a { height: auto; padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
    .nav-links a::after { display: none; }
    .menu-button { position: relative; z-index: 2; }
    .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .hero { min-height: 720px; background-position: 30% center; }
    .hero-grid { grid-template-columns: 1fr; gap: 35px; }
    .hero-badge { justify-self: start; }
    .about-grid { gap: 45px; }
    .certificate-details dl { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .container { width: min(100% - 28px, 1180px); }
    .utility-inner { justify-content: center; }
    .utility-inner span:first-child { display: none; }
    .nav-inner { height: 76px; }
    .brand { min-width: 0; }
    .brand-mark { width: 47px; height: 47px; }
    .brand-mark svg { width: 25px; }
    .brand-copy strong { max-width: 215px; font-size: 12px; }
    .brand-copy small { font-size: 10px; }
    .hero { min-height: 690px; background-position: 35% center; }
    .hero-grid { padding-top: 115px; }
    .hero h1 { font-size: clamp(36px, 11vw, 50px); }
    .hero-copy > p { font-size: 15px; }
    .hero-badge { min-width: 0; width: 100%; }
    .scroll-cue { display: none; }
    .verify-section { padding: 55px 0 65px; }
    .verify-card { padding: 27px 20px; }
    .verify-heading { align-items: flex-start; }
    .section-icon { width: 52px; height: 52px; }
    .verify-heading h2 { font-size: 24px; }
    .search-control { height: auto; flex-wrap: wrap; overflow: visible; border: 0; background: transparent; }
    .search-control > span { position: absolute; height: 56px; }
    .search-control input { width: 100%; flex: 0 0 100%; height: 56px; padding: 0 48px 0 14px; border: 1px solid #cddce3; border-radius: 9px; background: #fff; }
    .search-control button { width: 100%; min-height: 52px; margin: 10px 0 0; }
    .certificate-details dl { grid-template-columns: 1fr; }
    .result-actions { flex-direction: column; }
    .about-section { padding: 75px 0; }
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { order: 2; }
    .photo-frame { height: 360px; }
    .steps-section { padding: 75px 0; }
    .steps-grid { grid-template-columns: 1fr; }
    .trust-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    .footer-bottom .container { padding: 15px 0; flex-direction: column; justify-content: center; text-align: center; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
