/* SeaAj public site (home, fish guide). Plain CSS, no framework: one request, cached for good. */
:root {
  --deep: #0B3D5C; --teal: #1F8A8A; --coral: #E8735A; --cream: #F4EFE8; --ink: #14202b; --muted: #566472;
  --card: #ffffff; --line: #e3dccf; --ok: #1E8E5A; --warn: #B8860B; --danger: #C0392B; --soft: #e9f3f3;
  --radius: 18px; --shadow: 0 2px 14px rgba(11, 61, 92, .08);
}
@media (prefers-color-scheme: dark) {
  :root { --cream: #0d1a24; --ink: #eef3f6; --muted: #a8b4bf; --card: #14202b; --line: #25384a; --soft: #16303a; --shadow: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); line-height: 1.6; font-size: 17px;
  font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
body.has-sticky { padding-bottom: 84px; }
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 8px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 9; }

/* header */
.top { background: linear-gradient(120deg, #0B3D5C, #1F6F7C 70%, #2a8d8a); color: #fff; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; flex-wrap: wrap; }
.logo { color: #fff; font-weight: 800; font-size: 1.25rem; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.menu { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.menu a { color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: .95rem; opacity: .92; }
.menu a:hover, .menu a[aria-current] { background: rgba(255, 255, 255, .16); opacity: 1; }
.menu .sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .35); margin: 0 4px; }
.menu a.lang { font-size: .85rem; border: 1px solid rgba(255, 255, 255, .4); }
.menu a.lang[aria-current] { background: #fff; color: var(--deep); border-color: #fff; }

/* hero */
.hero { padding: 28px 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.hero p.lead { font-size: 1.15rem; max-width: 34em; opacity: .95; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin-top: 8px; }
.phone { width: 31%; max-width: 190px; border-radius: 22px 22px 0 0; border: 6px solid #0a2a40; border-bottom: 0; background: #0a2a40; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); display: block; }
.phone.mid { width: 36%; max-width: 220px; margin-bottom: 0; transform: translateY(-14px); }
@media (min-width: 860px) {
  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .phones { justify-content: flex-end; }
}

/* buttons and download blocks */
.cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 20px 0 8px; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--deep); font-weight: 700; text-decoration: none;
  padding: 13px 22px; border-radius: 14px; border: 0; font-size: 1.05rem; cursor: pointer; font-family: inherit; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.btn:hover { transform: translateY(-1px); }
.btn.solid { background: var(--coral); color: #fff; }
.btn svg { width: 22px; height: 22px; flex: none; }
.soon { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 14px; border: 2px dashed rgba(255, 255, 255, .55); font-weight: 700; }
.on-light .soon { border-color: var(--teal); color: var(--teal); }
.note { font-size: .9rem; opacity: .85; margin: 0; }
.qr { display: none; align-items: center; gap: 12px; background: #fff; color: var(--deep); padding: 10px 14px; border-radius: 14px; font-size: .9rem; max-width: 22em; }
.qr img { width: 92px; height: 92px; image-rendering: pixelated; flex: none; }
html.desktop .qr { display: flex; }
.ios-note { display: none; font-size: .9rem; opacity: .9; }
html.ios .ios-note { display: block; }

/* sections and cards */
main { padding-bottom: 28px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .ico { font-size: 1.6rem; display: block; margin-bottom: 4px; }
.band { background: var(--soft); border-radius: var(--radius); padding: 22px; margin: 28px 0; }
.fish-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); padding: 0; list-style: none; margin: 0; }
.fish-card a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); height: 100%; }
.fish-card .ph { aspect-ratio: 4/3; background: var(--soft) center/cover; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.fish-card .nm { padding: 8px 10px 10px; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.fish-card .sci { display: block; font-weight: 400; font-style: italic; color: var(--muted); font-size: .8rem; direction: ltr; text-align: start; }
html[dir=rtl] .fish-card .sci { text-align: right; }

/* species page */
.crumbs { font-size: .88rem; padding: 14px 0 0; color: var(--muted); }
.crumbs a { color: var(--muted); }
.sp-head { display: grid; gap: 18px; margin: 12px 0 8px; align-items: center; }
.sp-head .sci { font-style: italic; color: var(--muted); direction: ltr; unicode-bidi: isolate; }
.top .sci, .top .note { color: #d5e6ee; }
.sp-photo { margin: 0; }
.sp-photo img { width: 100%; max-height: 340px; object-fit: cover; border-radius: var(--radius); background: var(--soft); display: block; }
.sp-photo figcaption { font-size: .78rem; color: var(--muted); margin-top: 4px; }
@media (min-width: 760px) { .sp-head { grid-template-columns: 1.1fr .9fr; } }
.layout { display: grid; gap: 22px; }
@media (min-width: 900px) { .layout { grid-template-columns: 1fr 320px; align-items: start; } .side { position: sticky; top: 16px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 1em; list-style: none; }
.chips li { background: var(--soft); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; font-size: .92rem; }
.facts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 0 0 1em; }
.fact h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .2em; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin: 8px 0 4px; direction: ltr; }
.months span { text-align: center; font-size: .72rem; padding: 6px 0; border-radius: 6px; background: var(--soft); color: var(--muted); }
.months span.on { background: var(--teal); color: #fff; font-weight: 700; }
.tip { background: var(--soft); border-inline-start: 4px solid var(--teal); padding: 12px 16px; border-radius: 12px; margin: 0 0 1em; font-weight: 600; }
.danger { border: 2px solid var(--danger); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 1em; background: color-mix(in srgb, var(--danger) 8%, var(--card)); }
.danger h3 { color: var(--danger); margin-bottom: .2em; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.small { font-size: .85rem; color: var(--muted); }
.side .card { text-align: center; }
.side .btn { background: var(--coral); color: #fff; width: 100%; justify-content: center; }
.side .soon { width: 100%; justify-content: center; border-color: var(--teal); color: var(--teal); }
.side .qr { background: var(--soft); margin-top: 12px; }
.side ul { text-align: start; color: var(--muted); font-size: .95rem; padding-inline-start: 1.2em; margin: 10px 0 14px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 0 0 10px; }
summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 8px; }
.alpha { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }

/* footer */
footer { background: #0b2231; color: #cfe0ea; padding: 26px 0 30px; font-size: .92rem; }
footer a { color: #cfe0ea; margin-inline-end: 16px; }
footer .langs a { opacity: .9; }
footer p { margin: 0 0 10px; }
.disclaimer { font-size: .82rem; color: var(--muted); }

/* sticky install bar (mobile only, shown by site.js) */
.sticky-cta { position: fixed; inset-inline: 0; bottom: 0; background: #0B3D5C; color: #fff; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); display: none; align-items: center; gap: 10px; z-index: 20; box-shadow: 0 -4px 18px rgba(0, 0, 0, .25); }
.sticky-cta.show { display: flex; }
.sticky-cta .t { flex: 1; font-size: .92rem; line-height: 1.3; }
.sticky-cta .btn { padding: 9px 16px; font-size: .95rem; box-shadow: none; }
.sticky-cta .x { background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; padding: 4px 8px; opacity: .8; }
@media (min-width: 900px) { .sticky-cta { display: none !important; } body.has-sticky { padding-bottom: 0; } }
@media print { .top .menu, .sticky-cta, .side { display: none; } }

.soon svg { width: 22px; height: 22px; flex: none; }
.top .sp-photo figcaption { color: #cfe0ea; }
.top .sp-photo figcaption a { color: #cfe0ea; }
.facts { margin-top: 16px; }
