/* sharkаfnInn.com - Unique aggregator styling */
html {
  font-size: 16px;
}

:root {
  color-scheme: only light;
  --reef-ink: #060621;
  --surf-pearl: #f8f9ff;
  --tidal-lime: #c0ff72;
  --prism-coral: #ff7ab3;
  --abyss-blue: #1b1f4b;
  --halo-mint: #6df7d2;
  --grid-max-width: 1200px;
  --navbar-height: 74px;
  --soft-shadow: 0 25px 80px rgba(3, 7, 36, 0.25);
  --card-shadow: 0 20px 60px rgba(4, 11, 43, 0.18);
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Inter", "Segoe UI", system-ui, -apple-system,
    sans-serif;
  background: var(--reef-ink);
  color: var(--surf-pearl);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  font-size: 16px;
  /* Prevent font-related layout shifts */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fix for deprecated H1UserAgentFontSizeInSection API */
/* Set explicit font-size for all sectioning elements FIRST to prevent browser from using deprecated API */
section,
header,
footer,
article,
nav,
aside,
main {
  font-size: 1rem;
  /* Explicitly prevent browser from using deprecated font-size calculation */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* CRITICAL: Set explicit font-size for ALL h1 elements globally BEFORE any other rules */
/* This prevents browser from using deprecated H1UserAgentFontSizeInSection API */
/* Must use !important to override user agent styles completely */
h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  /* Force explicit font-size calculation, prevent user agent from using deprecated API */
  font-size-adjust: none;
}

/* Ensure h1 in sections uses explicit size (not inherited from user agent) */
section h1,
section > h1,
article h1,
article > h1,
main h1,
main > h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
}

/* CRITICAL: h1 elements always use h1 size, even with section-title class */
/* This prevents browser from using deprecated H1UserAgentFontSizeInSection API */
h1.section-title,
h1[class*="section-title"] {
  font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
}

/* Section titles (h2 styled as titles) */
.section-title {
  font-size: clamp(2rem, 4vw, 2.7rem) !important;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 122, 179, 0.24), transparent 55%),
    radial-gradient(circle at 70% 20%, rgba(109, 247, 210, 0.2), transparent 45%),
    radial-gradient(circle at 45% 80%, rgba(192, 255, 114, 0.15), transparent 45%);
  mix-blend-mode: screen;
  animation: auroraFlow 24s ease-in-out infinite;
}

body::after {
  background: conic-gradient(
      from 90deg,
      rgba(255, 122, 179, 0.3),
      rgba(109, 247, 210, 0.18),
      rgba(192, 255, 114, 0.22),
      rgba(255, 122, 179, 0.3)
    );
  opacity: 0.55;
  filter: blur(95px);
  mix-blend-mode: screen;
  animation: auroraHalo 32s linear infinite;
}

@keyframes auroraFlow {
  0% {
    background-position: 0% 0%, 80% 0%, 50% 100%;
    transform: scale(1);
  }
  50% {
    background-position: 20% 20%, 60% 15%, 35% 85%;
    transform: scale(1.08);
  }
  100% {
    background-position: 0% 10%, 90% 5%, 60% 95%;
    transform: scale(0.98);
  }
}

@keyframes auroraHalo {
  0% {
    transform: rotate(0deg) scale(1.05);
  }
  50% {
    transform: rotate(180deg) scale(1.18);
  }
  100% {
    transform: rotate(360deg) scale(1.05);
  }
}

img {
  max-width: 100%;
  display: block;
  /* Prevent layout shift from images loading */
  height: auto;
  /* Images with width/height attributes will maintain aspect ratio automatically */
}

a {
  color: inherit;
  text-decoration: none;
}

.flow-shell {
  width: min(100%, var(--grid-max-width));
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.prism-header {
  position: sticky;
  inset: 0;
  backdrop-filter: blur(20px);
  background: rgba(6, 6, 33, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 9;
}

.prism-header__bar {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  transition: padding 0.3s ease;
}

.prism-header.is-condensed .prism-header__bar {
  padding-block: 0.2rem;
}

.marina-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.marina-logo img {
  width: 46px;
  height: 46px;
}

.marina-logo__label {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.tidal-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.tidal-nav__link {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 0.2rem;
}

.tidal-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: linear-gradient(120deg, var(--tidal-lime), var(--prism-coral));
  transition: transform 0.4s ease;
}

.tidal-nav__link:hover::after,
.tidal-nav__link:focus-visible::after,
.tidal-nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.lumen-cta {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--reef-ink);
  background: linear-gradient(120deg, var(--tidal-lime), var(--halo-mint));
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lumen-cta--mobile {
  display: none;
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.lumen-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(109, 247, 210, 0.35);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  background: transparent;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  position: absolute;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--surf-pearl);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span::before {
  transform: translateY(-7px);
}

.nav-toggle span::after {
  transform: translateY(7px);
}

.nav-toggle.is-open span {
  transform: rotate(45deg);
}

.nav-toggle.is-open span::before {
  transform: rotate(-90deg);
}

.nav-toggle.is-open span::after {
  opacity: 0;
}

.hero-capsule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  gap: 2.5rem;
  padding-block: clamp(4rem, 12vw, 7rem);
}

.hero-capsule__copy h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
  font-weight: 700;
  line-height: 1.15 !important;
  margin-bottom: 1.5rem;
}

/* Critical: Hero section must be visible immediately for LCP */
.hero-capsule__copy,
.hero-capsule__media {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.hero-capsule__copy p {
  max-width: 520px;
  color: rgba(248, 249, 255, 0.85);
  margin-bottom: 1.5rem;
}

.hero-capsule__list {
  display: grid;
  gap: 0.9rem;
}

.hero-capsule__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-capsule__chip::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--prism-coral), var(--tidal-lime));
  box-shadow: 0 0 10px rgba(255, 122, 179, 0.8);
}

.hero-capsule__media {
  position: relative;
}


.hero-capsule__art {
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  background: radial-gradient(circle, rgba(6, 6, 33, 0.6), rgba(6, 6, 33, 0.95));
  position: relative;
}

.hero-capsule__art::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: conic-gradient(
    from 120deg,
    rgba(255, 122, 179, 0.25),
    rgba(109, 247, 210, 0.15),
    rgba(192, 255, 114, 0.2),
    rgba(255, 122, 179, 0.25)
  );
  mix-blend-mode: screen;
  filter: blur(40px);
  opacity: 0.8;
  animation: heroAurora 14s linear infinite;
}

.hero-capsule__art img {
  width: 100%;
  height: auto;
  object-fit: cover;
  animation: heroFloat 18s ease-in-out infinite;
  transform-origin: center;
}

@keyframes heroAurora {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes heroFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  display: block;
  color: rgba(248, 249, 255, 0.6);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin-bottom: 1rem;
}

.section-subtext {
  color: rgba(248, 249, 255, 0.78);
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.reef-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.reef-card {
  padding: 1.75rem;
  border-radius: 28px;
  background: rgba(14, 14, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 230px;
  position: relative;
  overflow: hidden;
}

.reef-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 122, 179, 0.25), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.reef-card:hover::after {
  opacity: 1;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.reef-card p {
  color: rgba(248, 249, 255, 0.78);
}

.partner-ribbon {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.partner-panel {
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(15, 15, 39, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
}

.partner-panel img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.25));
  /* Prevent layout shift */
  aspect-ratio: 3 / 1;
}

.partner-panel__badge {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tidal-lime);
}

.partner-panel__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--halo-mint);
  font-weight: 600;
}

.partner-panel__cta svg {
  transition: transform 0.3s ease;
}

.partner-panel:hover .partner-panel__cta svg {
  transform: translateX(4px);
}

.testimony-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.testimony-card {
  padding: 1.75rem;
  border-radius: 28px;
  background: rgba(11, 14, 39, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.testimony-card__stars {
  color: var(--tidal-lime);
  letter-spacing: 0.15em;
}

.faq-grid {
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.faq-item {
  padding: 1.5rem;
  background: rgba(8, 9, 30, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.faq-item p {
  color: rgba(248, 249, 255, 0.78);
}

.cta-block {
  margin-top: 4rem;
  padding: clamp(2rem, 6vw, 3.5rem);
  border-radius: 36px;
  background: linear-gradient(120deg, rgba(27, 31, 75, 0.95), rgba(255, 122, 179, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--soft-shadow);
  text-align: center;
}

.cta-block p {
  color: rgba(248, 249, 255, 0.8);
  margin-block: 1rem 1.5rem;
}

.contact-shell {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding-block: 4rem;
  position: relative;
}

.contact-shell::after {
  content: "";
  position: absolute;
  inset: 10% auto auto 60%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 122, 179, 0.25), transparent 70%);
  pointer-events: none;
}

.contact-panel,
.contact-visual {
  border-radius: 32px;
  background: rgba(10, 12, 33, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.contact-panel {
  padding: 2.5rem;
}

.contact-panel form {
  display: grid;
  gap: 1.2rem;
}

.contact-panel label {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 249, 255, 0.7);
}

.contact-panel input,
.contact-panel textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  color: var(--surf-pearl);
  font-size: 1rem;
  font-family: inherit;
}

.contact-panel textarea {
  min-height: 140px;
}

.contact-visual {
  max-height: 320px;
}

.contact-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.policy-stack {
  padding-top: 20px;
  display: grid;
  gap: 1.5rem;
}

.policy-stack h2 {
  font-size: 1.7rem;
}

.policy-stack h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.policy-stack p,
.policy-stack li {
  color: rgba(248, 249, 255, 0.78);
}

.policy-stack ul {
  list-style: none;
  padding-left: 1rem;
}

.policy-stack li::before {
  content: "•";
  color: var(--halo-mint);
  margin-right: 0.6rem;
}

[data-wave] {
  /* Use opacity for smooth fade-in, but keep element in layout to prevent shift */
  opacity: 0;
  /* Transform for animation, doesn't affect layout flow */
  transform: translateY(35px);
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0s 0.8s;
  will-change: opacity, transform;
  /* Keep element in layout flow to prevent layout shift */
  /* Don't use visibility: hidden as it removes from layout - use opacity only */
  /* Element remains in document flow, just invisible */
  min-height: 1px;
  /* Ensure content doesn't cause layout shift when revealed */
  contain: layout style;
}

/* When visible, show element with smooth animation */
[data-wave].is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Removed duplicate - now handled above */

.responsible-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.responsible-card {
  padding: 1.5rem;
  border-radius: 28px;
  background: rgba(9, 12, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer {
  margin-top: 4rem;
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__organizations {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__organizations a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 16px;
    background: rgb(255 255 255 / 20%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.site-footer__organizations a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(192, 255, 114, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-footer__organizations a:hover::before {
  opacity: 1;
}

.site-footer__organizations a:hover {
  transform: translateY(-3px);
  border-color: rgba(192, 255, 114, 0.3);
  box-shadow: 0 8px 24px rgba(192, 255, 114, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.site-footer__organizations img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0.9) contrast(1.1);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.site-footer__organizations a:hover img {
  filter: brightness(1.1) contrast(1.15);
  transform: scale(1.05);
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(248, 249, 255, 0.6);
}

.site-footer__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer__links a {
  color: var(--halo-mint);
  font-size: 0.9rem;
}

@media (max-width: 991px) {
  .prism-header__bar {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .tidal-nav {
    position: fixed;
    inset: var(--navbar-height) 0 auto;
    flex-direction: column;
    background: rgba(6, 6, 33, 0.98);
    padding: 1.5rem 2rem 2.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.3s ease;
  }

  .tidal-nav.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .lumen-cta {
    width: 100%;
    justify-content: center;
    order: 3;
  }

  .lumen-cta:not(.lumen-cta--mobile) {
    display: none;
  }

  .lumen-cta--mobile {
    display: inline-flex;
    order: unset;
  }

  .marina-logo {
    order: 1;
  }

  .nav-toggle {
    order: 2;
  }
}

@media (max-width: 620px) {
  .hero-capsule {
    padding-top: 3rem;
  }

  .partner-ribbon {
    grid-template-columns: 1fr;
  }

  .site-footer__organizations {
    gap: 1rem;
    padding: 1.5rem 0;
  }

  .site-footer__organizations a {
    padding: 0.6rem 0.8rem;
  }

  .site-footer__organizations img {
    height: 35px;
    max-width: 100px;
  }

  .site-footer__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  :root {
    font-size: 14px;
  }

  .prism-header__bar {
    gap: 0.6rem;
  }

  .marina-logo__label {
    letter-spacing: 0.04em;
    font-size: 0.8rem;
  }

  .tidal-nav {
    padding: 1.25rem;
  }

  .hero-capsule__copy h1 {
    font-size: 2rem;
  }

  .hero-capsule__list {
    gap: 0.6rem;
  }

  .partner-panel,
  .reef-card,
  .testimony-card,
  .responsible-card {
    padding: 1.25rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .contact-panel {
    padding: 1.75rem;
  }

  .success-modal {
    width: 90vw;
    padding: 1.75rem;
  }

  .site-footer__organizations {
    gap: 0.8rem;
    padding: 1rem 0;
  }

  .site-footer__organizations a {
    padding: 0.5rem 0.7rem;
  }

  .site-footer__organizations img {
    height: 30px;
    max-width: 80px;
  }

  .site-footer__links {
    flex-direction: column;
    gap: 0.4rem;
  }

  .hero-capsule__copy p {
    font-size: 11px;
  }
}

.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 33, 0.75);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.success-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.success-modal {
  width: min(90vw, 420px);
  background: rgba(11, 12, 40, 0.95);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--soft-shadow);
}

.success-modal h2 {
  margin-bottom: 0.8rem;
}

.success-modal p {
  color: rgba(248, 249, 255, 0.78);
  margin-bottom: 1.5rem;
}

