/* FRESHCATCH AFRICA - WEBSITE STYLES */

:root {
  --navy: #092b40;
  --ocean: #087e8b;
  --turquoise: #20c6b2;
  --orange: #f49b45;
  --white: #ffffff;
  --light: #f2f8f8;
  --text: #344b57;
  --muted: #71838b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
}

a {
  text-decoration: none;
}

.container {
  width: min(1120px, 90%);
  margin: auto;
}

.section {
  padding: 90px 0;
}

.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--navy);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
}

.logo span {
  color: var(--ocean);
}

.logo small {
  display: block;
  font-size: 10px;
  letter-spacing: 5px;
  text-align: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--ocean);
}

.nav-links .nav-cta {
  background: var(--ocean);
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 27px;
  cursor: pointer;
}

.hero {
  background:
    linear-gradient(100deg, rgba(5, 35, 54, 0.96), rgba(8, 126, 139, 0.8)),
    url("https://images.unsplash.com/photo-1510130387422-82bed34b37e9?auto=format&fit=crop&w=1800&q=85")
      center/cover;
  color: white;
  min-height: 570px;
  display: flex;
  align-items: center;
}

.hero-content {
  padding-top: 80px;
  padding-bottom: 80px;
}

.eyebrow {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.12;
  margin-bottom: 25px;
}

.hero h1 span,
.section-heading h2 span {
  color: var(--turquoise);
}

.hero-content > p:not(.eyebrow) {
  max-width: 570px;
  color: #e3f3f3;
  font-size: 17px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: 700;
  transition: 0.3s;
}

.btn-primary {
  background: var(--orange);
  color: var(--navy);
}

.btn-primary:hover {
  background: white;
  transform: translateY(-3px);
}

.btn-secondary {
  border: 1px solid white;
  color: white;
}

.btn-secondary:hover {
  background: white;
  color: var(--navy);
}

.hero-note {
  margin-top: 40px;
  color: #d4eded;
  font-size: 13px;
  letter-spacing: 1px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 35px;
}

.section-heading h2 {
  color: var(--navy);
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.2;
}

.section-heading h2 span {
  color: var(--ocean);
}

.about > p {
  max-width: 850px;
  font-size: 17px;
}

.products {
  background: var(--light);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.product-card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(9, 43, 64, 0.07);
}

.product-image {
  height: 210px;
  border-radius: 7px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  letter-spacing: 3px;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  background-size: cover;
  background-position: center;
}

.fish-one {
  background-image:
    linear-gradient(#0005, #0005),
    url("https://images.unsplash.com/photo-1510130387422-82bed34b37e9?auto=format&fit=crop&w=700&q=80");
}

.fish-two {
  background-image:
    linear-gradient(#0005, #0005),
    url("https://images.unsplash.com/photo-1559847844-5315695dadae?auto=format&fit=crop&w=700&q=80");
}

.fish-three {
  background-image:
    linear-gradient(#0005, #0005),
    url("https://images.unsplash.com/photo-1535399831218-d5bd36d1a6b3?auto=format&fit=crop&w=700&q=80");
}

.product-card h3 {
  color: var(--navy);
  margin: 18px 0 8px;
  font-size: 20px;
}

.product-card p {
  color: var(--muted);
  font-size: 14px;
  padding-bottom: 12px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.features-grid article {
  border-left: 4px solid var(--turquoise);
  background: var(--light);
  padding: 25px;
  border-radius: 5px;
}

.features-grid h3 {
  color: var(--navy);
  margin-bottom: 10px;
}

.contact {
  background: var(--navy);
  color: white;
  text-align: center;
}

.contact-content {
  max-width: 750px;
}

.contact h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 20px;
}

.contact-content > p:not(.eyebrow) {
  margin-bottom: 30px;
  color: #d4e5eb;
}

.footer {
  background: #061e2c;
  color: #d4e5eb;
  padding: 25px 0;
  text-align: center;
  font-size: 13px;
}

.footer p + p {
  margin-top: 5px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

@media (max-width: 800px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    width: 100%;
    background: white;
    padding: 25px 5%;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 10px 15px #0001;
  }

  .nav-links.active {
    display: flex;
  }

  .product-grid,
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 550px) {
  .product-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 530px;
  }

  .section {
    padding: 65px 0;
  }
}

/* =================================
   FRESHCATCH AFRICA - PAGE POLISH
================================= */

/* Consistent page headings */
main h1 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

main h2 {
  color: var(--navy);
  margin-bottom: 14px;
}

main p {
  line-height: 1.8;
}

/* Improve content spacing */
main .section {
  padding-top: 75px;
  padding-bottom: 75px;
}

/* Consistent feature and information cards */
.features-grid article {
  background: var(--white);
  padding: 28px;
  border-radius: 14px;
  border: 1px solid #e1eeee;
  box-shadow: 0 8px 24px rgba(9, 43, 64, 0.06);
}

.features-grid article h2 {
  color: var(--ocean);
}

/* Improve links */
main a {
  color: var(--ocean);
  font-weight: 600;
  text-decoration: none;
}

main a:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* Mobile spacing */
@media (max-width: 600px) {
  main .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  main h1 {
    font-size: 2rem;
  }

  .features-grid article {
    padding: 22px;
  }
}

/* ==================================
   FRESHCATCH - UNDERWATER ANIMATION
================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.underwater-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Real tilapia image */
.swim-fish {
  position: absolute;
  width: 145px;
  height: 100px;
  background-image: url("images/nile-tilapia.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.25));
  opacity: 0.85;
  will-change: transform;
}

.swim-fish--one {
  top: 22%;
  animation: swim-right 22s linear infinite;
}

.swim-fish--two {
  top: 58%;
  width: 110px;
  animation: swim-left 27s linear infinite;
  animation-delay: -8s;
  opacity: 0.7;
}

.swim-fish--three {
  top: 78%;
  width: 85px;
  animation: swim-right 30s linear infinite;
  animation-delay: -15s;
  opacity: 0.55;
}

/* Swimming movement */
@keyframes swim-right {
  from {
    transform: translateX(-180px);
  }
  to {
    transform: translateX(calc(100vw + 180px));
  }
}

@keyframes swim-left {
  from {
    transform: translateX(calc(100vw + 180px)) scaleX(-1);
  }
  to {
    transform: translateX(-180px) scaleX(-1);
  }
}

/* Underwater bubbles */
.water-bubbles {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle, white 3px, transparent 4px),
    radial-gradient(circle, white 2px, transparent 3px),
    radial-gradient(circle, white 4px, transparent 5px);
  background-size:
    150px 180px,
    210px 230px,
    280px 250px;
  background-position:
    20px 20px,
    90px 100px,
    160px 50px;
  animation: bubbles-rise 14s linear infinite;
}

@keyframes bubbles-rise {
  from {
    background-position:
      20px 180px,
      90px 230px,
      160px 250px;
  }
  to {
    background-position:
      20px -180px,
      90px -230px,
      160px -250px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .swim-fish,
  .water-bubbles {
    animation: none;
  }
}

/* Make swimming fish blend naturally into water */
.swim-fish {
  background-color: transparent;
  border: none;
  border-radius: 50%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.25)) saturate(1.15);
}

/* Give the fish natural movement */
.swim-fish--one {
  animation:
    swim-right 22s linear infinite,
    fish-wiggle 2s ease-in-out infinite;
}

.swim-fish--two {
  animation:
    swim-left 27s linear infinite,
    fish-wiggle 2.5s ease-in-out infinite;
}

.swim-fish--three {
  animation:
    swim-right 30s linear infinite,
    fish-wiggle 3s ease-in-out infinite;
}

@keyframes fish-wiggle {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .swim-fish {
    animation: none;
  }
}

/* =====================================
   SCROLL REVEAL - ALL WEBSITE PAGES
===================================== */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* Professional card hover effects */
.product-card,
.features-grid article {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.product-card:hover,
.features-grid article:hover {
  transform: translateY(-9px);
  box-shadow: 0 16px 35px rgba(9, 43, 64, 0.13);
}

/* Button hover effects */
.btn,
.nav-cta {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(8, 126, 139, 0.2);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .product-card,
  .features-grid article,
  .btn,
  .nav-cta {
    transition: none;
    transform: none;
  }

  .reveal {
    opacity: 1;
  }
}
