/* Fish Log - Ocean-Themed Website Stylesheet */

/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #0B548B;
  --primary-dark: #063A5D;
  --primary-light: #C3E0F7;
  --secondary: #06747F;
  --secondary-light: #A2E5EF;
  --accent: #FF7F25;
  --background: #E5F4FF;
  --pearl-white: #F5F7F8;
  --white: #FFFFFF;
  --text-primary: #263238;
  --text-secondary: #546E7A;
  --text-tertiary: #78909C;
  --border: #B2DEF9;
  --ocean-deep: #042C5C;
  --ocean-surface: #85C5E5;
  --success: #2E7D4B;
  --error: #D32F2F;
  --shadow: rgba(7, 52, 94, 0.12);
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-stack);
  color: var(--text-primary);
  background-color: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ===== Layout ===== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1040px;
}

/* ===== Navigation ===== */
.nav {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.nav__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav__link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  font-size: 24px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(160deg, var(--primary), var(--primary-dark) 60%, var(--ocean-deep));
  color: var(--white);
  padding: 80px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--background);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero__icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 24px;
}

.hero__title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero__subtitle {
  font-size: 20px;
  font-weight: 400;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.hero__badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: background 0.2s ease;
}

.hero__badge:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  text-decoration: none;
}

/* ===== Features Section ===== */
.features {
  padding: 60px 0 40px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 12px var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow);
}

.feature-card__icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
}

.feature-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== Page Header (for legal/interior pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 48px 0 36px;
  text-align: center;
}

.page-header__title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header__meta {
  font-size: 14px;
  opacity: 0.8;
}

/* ===== Content Cards ===== */
.content {
  padding: 40px 0 60px;
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px var(--shadow);
  border: 1px solid var(--border);
}

/* Wave accent card variants — replaces left-border accent pattern */
.card--highlight,
.card--warning,
.card--success,
.card--error {
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
}

.card--warning { background: #FFFAF5; }
.card--success { background: #F5FFF8; }
.card--error   { background: #FFF5F5; }

.card--highlight::after,
.card--warning::after,
.card--success::after,
.card--error::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.card--highlight::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 28' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0%25' stop-color='%230B548B'/%3E%3Cstop offset='50%25' stop-color='%2306747F'/%3E%3Cstop offset='100%25' stop-color='%2385C5E5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 12 Q50 0,100 10 Q150 20,200 8 Q250 -2,300 12 Q350 22,400 8 L400 28 L0 28 Z' fill='url(%23g)' opacity='0.85'/%3E%3Cpath d='M0 18 Q60 8,120 16 Q180 24,240 14 Q300 6,360 16 Q380 20,400 14 L400 28 L0 28 Z' fill='url(%23g)' opacity='0.35'/%3E%3C/svg%3E");
}

.card--warning::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 28' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0%25' stop-color='%23FF7F25'/%3E%3Cstop offset='50%25' stop-color='%23E06610'/%3E%3Cstop offset='100%25' stop-color='%23FFB86C'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 12 Q50 0,100 10 Q150 20,200 8 Q250 -2,300 12 Q350 22,400 8 L400 28 L0 28 Z' fill='url(%23g)' opacity='0.85'/%3E%3Cpath d='M0 18 Q60 8,120 16 Q180 24,240 14 Q300 6,360 16 Q380 20,400 14 L400 28 L0 28 Z' fill='url(%23g)' opacity='0.35'/%3E%3C/svg%3E");
}

.card--success::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 28' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0%25' stop-color='%232E7D4B'/%3E%3Cstop offset='50%25' stop-color='%231B5E35'/%3E%3Cstop offset='100%25' stop-color='%2371EEB8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 12 Q50 0,100 10 Q150 20,200 8 Q250 -2,300 12 Q350 22,400 8 L400 28 L0 28 Z' fill='url(%23g)' opacity='0.85'/%3E%3Cpath d='M0 18 Q60 8,120 16 Q180 24,240 14 Q300 6,360 16 Q380 20,400 14 L400 28 L0 28 Z' fill='url(%23g)' opacity='0.35'/%3E%3C/svg%3E");
}

.card--error::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 28' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0%25' stop-color='%23D32F2F'/%3E%3Cstop offset='50%25' stop-color='%23B71C1C'/%3E%3Cstop offset='100%25' stop-color='%23EF9A9A'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 12 Q50 0,100 10 Q150 20,200 8 Q250 -2,300 12 Q350 22,400 8 L400 28 L0 28 Z' fill='url(%23g)' opacity='0.85'/%3E%3Cpath d='M0 18 Q60 8,120 16 Q180 24,240 14 Q300 6,360 16 Q380 20,400 14 L400 28 L0 28 Z' fill='url(%23g)' opacity='0.35'/%3E%3C/svg%3E");
}

.card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.card__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card__text + .card__text {
  margin-top: 12px;
}

/* ===== Legal Document Styles ===== */
.legal {
  padding: 40px 0 60px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.legal h2:first-child {
  margin-top: 0;
}

.legal h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 24px 0 10px;
}

.legal p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal ul, .legal ol {
  margin: 10px 0 18px 24px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.legal li {
  margin-bottom: 6px;
}

.legal strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 40px;
  box-shadow: 0 2px 12px var(--shadow);
  border: 1px solid var(--border);
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 28px;
}

/* ===== Steps / Instructions ===== */
.steps {
  counter-reset: step-counter;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.step__number {
  counter-increment: step-counter;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--shadow);
}

.step__content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.step__content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Contact / Support ===== */
.contact-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 16px;
  padding: 36px;
  text-align: center;
  color: var(--white);
  box-shadow: 0 4px 20px var(--shadow);
}

.contact-card__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-card__text {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 20px;
  line-height: 1.5;
}

.contact-card__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.2s ease;
  text-decoration: none;
}

.contact-card__email:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  text-decoration: none;
}

/* ===== Footer ===== */
.footer {
  background: var(--ocean-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 32px;
  margin-top: auto;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  opacity: 0.9;
}

.footer__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.footer__copy {
  font-size: 13px;
  margin-top: 4px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer__link:hover {
  color: var(--white);
  text-decoration: none;
}

.footer__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 24px 0 16px;
}

.footer__bottom {
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-small { font-size: 13px; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 2px 8px var(--shadow);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--shadow);
  color: var(--white);
  text-decoration: none;
}

.btn--outline {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
}

.btn--error {
  background: var(--error);
  color: var(--white);
}

/* ===== Table of Contents ===== */
.toc {
  background: var(--pearl-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.toc__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc__list li {
  margin-bottom: 6px;
}

.toc__list a {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding-top: 12px;
  }

  .nav__links--open {
    display: flex;
  }

  .nav__link {
    width: 100%;
    text-align: center;
    padding: 10px 14px;
  }

  .hero {
    padding: 50px 0 90px;
  }

  .hero__title {
    font-size: 30px;
  }

  .hero__subtitle {
    font-size: 16px;
    padding: 0 16px;
  }

  .hero__icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }

  .page-header {
    padding: 32px 0 24px;
  }

  .page-header__title {
    font-size: 26px;
  }

  .card, .legal-card {
    padding: 24px 20px;
  }

  .features__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__links {
    align-items: center;
  }

  .contact-card {
    padding: 28px 20px;
  }
}

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

  .hero__badges {
    flex-direction: column;
    align-items: center;
  }
}
