/* Blue Ocean public website and customer portal.
   Royal-blue hero, yellow accents, tall condensed uppercase headings. Logical properties keep RTL/LTR symmetric. */
@font-face { font-family: "Noto Sans Arabic"; src: url("../fonts/noto-sans-arabic-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans Arabic"; src: url("../fonts/noto-sans-arabic-arabic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
    --royal: #0b2fa8; --royal-dark: #071f73; --royal-deep: #04134a; --royal-soft: #e9eefb;
    --yellow: #ffd23f; --yellow-dark: #e6b800;
    --ink: #10183a; --muted: #5d6685; --line: #dfe4f2; --white: #fff;
    --ok: #13795b; --warn: #8a5a00; --err: #b42318; --radius: 14px; --shadow: 0 10px 30px rgba(7, 31, 115, .12);
    --display: "Bebas Neue", "Oswald", Impact, "Haettenschweiler", "Arial Narrow Bold", "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.site { margin: 0; font-family: "Noto Sans", "Noto Sans Arabic", system-ui, sans-serif; color: var(--ink); background: var(--white); line-height: 1.65; font-size: 16px; }
[dir="rtl"] body.site { font-family: "Noto Sans Arabic", "Noto Sans", system-ui, sans-serif; }
a { color: var(--royal); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 20; }
.small { font-size: .875rem; } .muted { color: var(--muted); } .req { color: var(--err); } .center { text-align: center; }

/* Display headings */
.display { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; font-stretch: condensed; }
[dir="rtl"] .display { font-family: "Noto Sans Arabic", sans-serif; text-transform: none; letter-spacing: 0; }
.section-heading { color: var(--royal); font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0; }
.bar { display: block; width: 90px; height: 4px; background: var(--yellow); border-radius: 2px; margin: 1rem 0 1.5rem; }
.bar.center { margin-inline: auto; }
.wave { position: relative; display: inline-block; white-space: nowrap; }
.wave::after { content: ""; position: absolute; inset-inline: 0; bottom: -.12em; height: .22em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 6c5-6 10-6 15 0s10 6 15 0 10-6 15 0' fill='none' stroke='%23ffd23f' stroke-width='3'/%3E%3C/svg%3E") repeat-x left center / auto 100%; }

/* Header: transparent over the homepage hero, solid elsewhere */
.site-header { background: var(--royal-dark); color: var(--white); position: sticky; top: 0; z-index: 10; transition: background .2s ease; }
.is-home .site-header { background: var(--royal); }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 78px; }
.site-brand { display: flex; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.site-brand img { border-radius: 8px; background: var(--white); max-height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; margin-inline-start: auto; flex-wrap: wrap; }
.site-nav a { color: #dbe3ff; text-decoration: none; font-weight: 500; padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.active { color: var(--white); border-bottom-color: var(--white); }
.site-nav .btn-cta { padding: .55rem 1.1rem; border-bottom: 0; }
.site-nav .lang button { background: transparent; border: 1px solid #6f86d6; color: var(--white); border-radius: 999px; padding: .2rem .8rem; cursor: pointer; font: inherit; }
.nav-toggle { display: none; margin-inline-start: auto; background: transparent; color: var(--white); border: 1px solid #6f86d6; border-radius: 8px; padding: .4rem .8rem; font: inherit; }
.pill { background: var(--royal-dark); color: var(--yellow); border-radius: 999px; padding: 0 .5rem; font-size: .8rem; margin-inline-start: .25rem; }

/* Buttons and links */
.btn-cta, .btn-ghost, .btn-small, .btn-outline { display: inline-block; border-radius: 10px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn-cta { background: var(--yellow); color: var(--ink) !important; border: 0; padding: .9rem 1.7rem; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.btn-cta:hover { background: #ffdc66; transform: translateY(-2px); }
.btn-ghost, .btn-outline { border: 2px solid var(--royal); color: var(--royal); padding: .7rem 1.4rem; background: transparent; }
.btn-outline:hover, .btn-ghost:hover { background: var(--royal); color: var(--white); }
.btn-small { background: var(--royal); color: var(--white); border: 0; padding: .5rem 1rem; font-size: .9rem; }
.btn-small:hover { background: var(--royal-dark); }
.link-light { color: var(--white); font-weight: 600; text-underline-offset: 5px; }
.link-dark { color: var(--royal); font-weight: 600; text-underline-offset: 5px; }
.link { background: none; border: 0; color: var(--royal); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* Hero */
.hero-ocean { background: radial-gradient(120% 120% at 80% 30%, #1440d0 0%, var(--royal) 45%, var(--royal-dark) 100%); color: var(--white); padding: 4rem 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: center; min-height: 520px; }
.hero-ocean h1 { font-size: clamp(3rem, 7vw, 5.4rem); margin: 0 0 1.3rem; }
.hero-ocean .lead { font-size: 1.15rem; color: #e3e9ff; max-width: 34rem; margin: 0; }
.hero-actions { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; margin-top: 2rem; }
.hero-media img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); filter: drop-shadow(0 25px 40px rgba(0, 0, 0, .35)); }
.hero-fish { width: 100%; height: auto; }
.page-hero { background: linear-gradient(135deg, var(--royal), var(--royal-dark)); color: var(--white); padding: 3rem 0 2.6rem; }
.page-hero h1 { margin: 0 0 .5rem; font-family: var(--display); text-transform: uppercase; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; }
[dir="rtl"] .page-hero h1 { font-family: "Noto Sans Arabic", sans-serif; text-transform: none; }
.page-hero p { color: #dbe3ff; margin: 0; }

/* Sections */
.section { padding: 5rem 0; }
.section.alt { background: var(--royal-soft); }
.section-title { color: var(--royal); margin: 3rem 0 1.2rem; font-family: var(--display); text-transform: uppercase; font-size: 2.2rem; line-height: 1.05; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.lead-dark { font-size: 1.08rem; color: #2a3358; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin: 0; }
.stats-grid div { border-inline-start: 4px solid var(--yellow); padding-inline-start: 1rem; }
.stats-grid dt { color: var(--royal); font-size: clamp(2.6rem, 5vw, 3.6rem); }
.stats-grid dd { margin: .2rem 0 0; color: var(--muted); }
.band-yellow { background: var(--yellow); padding: 4.5rem 0; }
.process h2 { color: var(--royal-dark); font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 2rem; text-align: center; }
.process ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; }
.process li { background: var(--white); border-radius: var(--radius); padding: 1.3rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; box-shadow: var(--shadow); }
.process .num { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--royal); color: var(--yellow); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; }
.process strong { color: var(--royal-dark); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; }
.process li span:last-child { color: #3a4366; font-size: .93rem; }
.cat-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; margin: 3rem 0; }
.cat-row.flip .cat-media { order: 2; }
.cat-media { background: linear-gradient(135deg, var(--royal), #1745d6); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; display: grid; place-items: center; box-shadow: var(--shadow); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-media svg { width: 60%; }
.cat-copy h3 { color: var(--royal); font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 .6rem; }
.cat-copy p { color: #3a4366; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.pillars article { text-align: center; padding: 1rem; }
.pillars h3 { color: var(--royal); font-size: 2rem; margin: 0 0 .6rem; }
.pillars p { color: #3a4366; }
.quote-band { background: radial-gradient(120% 100% at 20% 0%, #1440d0, var(--royal-deep)); padding: 5rem 0; }
.quote-card { background: var(--white); border-radius: 28px; padding: clamp(1.5rem, 4vw, 3rem); box-shadow: 0 30px 60px rgba(0, 0, 0, .25); max-width: 920px; margin-inline: auto; }
.quote-card h2 { color: var(--royal); font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0 0 .3rem; }
.prose { max-width: 75ch; padding-block: 2.5rem; } .prose h2 { color: var(--royal); }
.banner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; align-items: center; margin-top: 2.5rem; background: var(--royal-soft); border-radius: var(--radius); padding: 1.5rem; }
.chips { display: flex; gap: .6rem; flex-wrap: wrap; }
.chip { background: var(--royal-soft); color: var(--royal-dark); padding: .45rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; margin: 1.5rem 0 2rem; }
.product-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s ease; }
.product-card:hover { transform: translateY(-4px); }
.product-media { display: block; aspect-ratio: 16 / 11; background: linear-gradient(135deg, var(--royal), #1745d6); }
.product-media img, .product-media svg { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.product-body h3 { margin: 0; font-size: 1.08rem; } .product-body h3 a { color: var(--ink); text-decoration: none; }
.product-body form { margin-top: auto; padding-top: .6rem; }
.meta { color: var(--muted); font-size: .9rem; margin: 0; }
.price { font-weight: 700; color: var(--royal); margin: .3rem 0; } .price.big { font-size: 1.5rem; } .price small { color: var(--muted); font-weight: 400; }
.avail { font-size: .8rem; border-radius: 999px; padding: .1rem .6rem; background: var(--royal-soft); color: var(--royal); }
.avail-available { background: #def5ec; color: var(--ok); } .avail-limited, .avail-seasonal { background: #fff3cc; color: var(--warn); } .avail-unavailable { background: #fde7e5; color: var(--err); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding-block: 3rem; }
.product-media.large { border-radius: var(--radius); overflow: hidden; }
.product-detail h1 { font-family: var(--display); text-transform: uppercase; color: var(--royal); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; margin: .3rem 0; }
[dir="rtl"] .product-detail h1 { font-family: "Noto Sans Arabic", sans-serif; text-transform: none; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; } .specs dt { color: var(--muted); } .specs dd { margin: 0; }
.crumbs { font-size: .9rem; }
.catalogue-filters { display: flex; gap: 1rem; flex-wrap: wrap; align-items: end; margin: 2rem 0 1rem; }
.catalogue-filters label { display: flex; flex-direction: column; font-size: .9rem; gap: .2rem; }

/* Forms */
.quote-form, .auth-box form { display: grid; gap: 1.2rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem 1.2rem; margin: 0; }
legend { font-weight: 700; color: var(--royal); padding-inline: .4rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .9rem 1.1rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 500; }
label.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; flex-wrap: wrap; }
input, select, textarea { font: inherit; padding: .7rem .8rem; border: 1px solid #c3cce4; border-radius: 10px; background: var(--white); color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--royal); }
input[type="checkbox"] { width: auto; }
input[aria-invalid="true"] { border-color: var(--err); }
table.lines, table.data { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; }
table.lines th, table.data th { text-align: start; font-size: .85rem; color: var(--muted); border-bottom: 1px solid var(--line); padding: .45rem; }
table.lines td, table.data td { padding: .4rem .45rem; border-bottom: 1px solid #eef1f8; vertical-align: top; }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 10px; padding: .8rem 1rem; margin: 1rem 0; }
.notice-ok { background: #def5ec; color: #0b5a43; } .notice-err { background: #fde7e5; color: #8a1c12; } .notice-warn { background: #fff3cc; color: #6b4600; } .notice-info { background: var(--royal-soft); color: var(--royal-dark); }
.inline { display: inline-flex; gap: .6rem; align-items: end; flex-wrap: wrap; }
.basket { padding-inline-start: 1.2rem; } .basket form { display: inline; }
.thanks { text-align: center; padding-block: 5rem; } .thanks h1 { font-family: var(--display); text-transform: uppercase; color: var(--royal); font-size: 3rem; }
.reference { font-size: 2.2rem; font-weight: 700; color: var(--royal); letter-spacing: .05em; }
.steps ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.contact-card strong { color: var(--royal); text-transform: uppercase; letter-spacing: .03em; }
.contact-card.cta { background: var(--royal); color: var(--white); } .contact-card.cta strong { color: var(--yellow); }
.doc-list li { margin: .4rem 0; }

/* Portal */
.portal { padding-block: 2rem 4rem; }
.portal h1 { color: var(--royal); }
.portal-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: .9rem; margin-bottom: 1.6rem; align-items: center; }
.portal-nav a { text-decoration: none; font-weight: 600; color: var(--muted); } .portal-nav a.active { color: var(--royal); }
.portal-nav form { margin-inline-start: auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.stat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: .3rem; box-shadow: var(--shadow); border-top: 4px solid var(--yellow); }
.stat-card strong { font-size: 1.6rem; color: var(--royal); }
.auth-box { max-width: 460px; margin: 2rem auto; } .auth-box.wide { max-width: 840px; }
.messages { list-style: none; padding: 0; display: grid; gap: .6rem; }
.messages li { border-radius: 10px; padding: .6rem .9rem; background: var(--royal-soft); max-width: 80%; } .messages li.mine { background: #fff3cc; margin-inline-start: auto; }
.progress li { margin: .2rem 0; }

/* Footer */
.site-footer { background: var(--royal-deep); color: #c3cdf0; padding: 3rem 0 1.5rem; }
.site-footer strong { color: var(--white); }
.site-footer a { color: #e7ecff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: .4rem 0 0; }
.wa-float { position: fixed; inset-inline-end: 1.2rem; bottom: 1.2rem; background: #1f9d55; color: var(--white); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 6; }

@media (max-width: 960px) {
    .process ol { grid-template-columns: 1fr 1fr; }
    .split, .cat-row { grid-template-columns: 1fr; gap: 1.5rem; }
    .cat-row.flip .cat-media { order: 0; }
}
@media (max-width: 860px) {
    .hero-grid, .product-detail, .banner { grid-template-columns: 1fr; }
    .hero-grid { min-height: 0; }
    .nav-toggle { display: block; }
    .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-bottom: 1rem; gap: .8rem; }
    .site-nav.open { display: flex; }
    .header-row { flex-wrap: wrap; }
    .section { padding: 3.5rem 0; }
    table.lines thead { display: none; } table.lines tr { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; border-bottom: 1px solid var(--line); padding: .4rem 0; }
}
@media (max-width: 520px) { .process ol { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .wa-float, .portal-nav { display: none; } }
