/* Sharky website — matches the app: navy + teal, Space Grotesk headings, Inter text. */
:root {
  --navy: #1a3d55;
  --navy-dark: #0e2233;
  --teal: #0b6e79;
  --teal-bright: #6ae0d9;
  --orange: #c25e00;
  --expert: #0b4f8a;
  --bg: #f4f7f9;
  --surface: #ffffff;
  --text: #0e2233;
  --muted: #5f6b73;
  --line: rgba(14, 34, 51, 0.12);
  --radius: 16px;
  --shadow: 0 6px 24px rgba(14, 34, 51, 0.08);
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e2233;
    --surface: #15324a;
    --text: #e8eef2;
    --muted: #a6b4bd;
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.muted {
  color: var(--muted);
}

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--teal);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
}

.brand img {
  width: 38px;
  height: 38px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  color: var(--teal);
}

.nav .btn {
  margin-left: 8px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow);
  }
  .nav.open {
    display: flex;
  }
  .nav .btn {
    margin: 8px 0 0;
    text-align: center;
  }
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: #095c66;
}

.btn-light {
  background: #fff;
  color: var(--navy-dark);
}

.btn-outline {
  border-color: currentColor;
  color: inherit;
  background: transparent;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------------------------------------------------------- Hero */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(106, 224, 217, 0.25), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 80px;
}

.hero p.lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 34ch;
}

.hero .eyebrow {
  color: var(--teal-bright);
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: min(360px, 80%);
  height: auto;
  aspect-ratio: 1;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.35));
  animation: bob 6s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translateY(-10px) rotate(-2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art img {
    animation: none;
  }
}

@media (max-width: 820px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 48px;
    padding-bottom: 56px;
  }
  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero .btn-row {
    justify-content: center;
  }
  .hero-art {
    order: -1;
  }
  .hero-art img {
    width: 180px;
  }
}

.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 56px 0 48px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
  font-size: 1.1rem;
}

.page-hero .eyebrow {
  color: var(--teal-bright);
}

/* ---------------------------------------------------------------- Sections */
section.block {
  padding: 72px 0;
}

section.block.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-head p {
  margin: 0;
  max-width: 56ch;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 820px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.alt .card {
  background: var(--bg);
}

.card .icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 12px;
}

.card h3 {
  margin-bottom: 0.35em;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.card li + li {
  margin-top: 6px;
}

/* ---------------------------------------------------------------- Learn */
.species .species-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.species h3 {
  margin: 0;
}

.species .risk {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.species .sci {
  font-style: italic;
  color: var(--muted);
  margin: 4px 0 10px;
}

.species details {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.species summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--teal);
}

.species details[open] summary {
  margin-bottom: 10px;
}

.species details p {
  margin: 0 0 8px;
}

.species details ul {
  margin-bottom: 8px;
}

.page-hero .btn-row {
  margin-top: 20px;
}

/* ---------------------------------------------------------------- About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-grid img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-grid img {
    max-width: 180px;
  }
}

/* ---------------------------------------------------------------- 404 */
.not-found {
  text-align: center;
  padding: 96px 20px;
}

.not-found img {
  width: 140px;
  margin: 0 auto 24px;
}

.not-found .btn-row {
  justify-content: center;
}

/* ---------------------------------------------------------------- News */
.news-list {
  display: grid;
  gap: 16px;
}

.news-list.compact {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .news-list.compact {
    grid-template-columns: 1fr;
  }
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.news-item:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}

.news-item .meta {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.news-item .source {
  font-weight: 700;
  color: var(--teal);
}

.news-item h3 {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.35;
}

.news-status {
  color: var(--muted);
  padding: 24px 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filters button {
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* ---------------------------------------------------------------- Shop */
.product {
  overflow: hidden;
  padding: 0;
}

.product .art {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy), var(--navy-dark));
  position: relative;
}

.product .art.light {
  background: linear-gradient(160deg, #eaf6f7, #cfe9ec);
}

.product .art img {
  width: 46%;
}

.product .art .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.product .body {
  padding: 18px 20px 22px;
}

.product .body h3 {
  font-size: 1.05rem;
}

.product-live {
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.product-live:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}

.product .art.photo {
  background: #eef4f6;
}

.filters[hidden] {
  display: none;
}

.product .art.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.shop-more {
  text-align: center;
  margin-top: 32px;
}

.shop-more[hidden] {
  display: none;
}

.shop-more p {
  margin-top: 12px;
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------- Donate */
.charity {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.charity .where {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.charity .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------------------------------------------------------------- CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--teal), #0a5862);
  color: #fff;
  border-radius: 24px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.cta-band .btn-row {
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .cta-band {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    text-align: center;
  }
  .cta-band .btn-row {
    justify-content: center;
  }
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  background: #000;
  color: #fff;
  border-radius: 12px;
  padding: 8px 16px;
  text-decoration: none;
  line-height: 1.2;
  min-width: 150px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.store-badge small {
  font-size: 0.7rem;
  opacity: 0.8;
}

.store-badge strong {
  font-size: 1.05rem;
}

/* ---------------------------------------------------------------- Notice */
.callout {
  background: var(--surface);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}

/* ---------------------------------------------------------------- Legal pages */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.prose h1 {
  color: var(--teal);
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.prose h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.prose .meta {
  color: var(--muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  background: color-mix(in srgb, var(--teal) 12%, transparent);
}

@media (max-width: 600px) {
  .prose table {
    display: block;
    overflow-x: auto;
  }
}

/* ---------------------------------------------------------------- Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 32px;
  font-size: 0.95rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h4 {
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
