/*
Theme Name: FishingMap Official
Theme URI: https://www.fishingmap.online
Author: FishingMap
Description: Official product website theme for FishingMap.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Text Domain: fishingmap-official
*/

:root {
  --fm-ink: #17211d;
  --fm-muted: #5a6c64;
  --fm-soft: #eef5f1;
  --fm-soft-blue: #edf5fb;
  --fm-line: #dbe4df;
  --fm-green: #0d7a5f;
  --fm-blue: #1d6fa3;
  --fm-coral: #e56b4f;
  --fm-yellow: #f2b84b;
  --fm-paper: #ffffff;
  --fm-bg: #f7f9f7;
  --fm-shadow: 0 22px 60px rgba(20, 35, 30, 0.11);
  --fm-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--fm-ink);
  background: var(--fm-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.site-shell {
  min-height: 100vh;
  background: var(--fm-bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 228, 223, 0.86);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.site-header__inner,
.section__inner,
.site-footer__inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: var(--fm-radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--fm-green), var(--fm-blue));
  box-shadow: 0 10px 24px rgba(13, 122, 95, 0.22);
}

.brand-name {
  font-size: 18px;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--fm-muted);
  font-size: 14px;
}

.main-navigation a {
  text-decoration: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--fm-ink);
}

.nav-list,
.footer-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--fm-radius);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-cta,
.button--primary {
  color: #ffffff;
  background: var(--fm-green);
  box-shadow: 0 12px 28px rgba(13, 122, 95, 0.22);
}

.button--secondary {
  color: var(--fm-green);
  border: 1px solid rgba(13, 122, 95, 0.35);
  background: rgba(255, 255, 255, 0.86);
}

.button:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 20px));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background-color: #10261f;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 42%;
  transform: scale(1.02);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(9, 26, 20, 0.88) 0%, rgba(9, 26, 20, 0.67) 42%, rgba(9, 26, 20, 0.24) 100%),
    linear-gradient(0deg, rgba(9, 26, 20, 0.82) 0%, rgba(9, 26, 20, 0) 46%);
}

.hero__inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 84px;
}

.hero__content {
  width: min(690px, 100%);
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 18px;
  color: #b8ead8;
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero__fact {
  min-width: 128px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--fm-radius);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.09);
}

.hero__fact strong {
  display: block;
  color: #ffffff;
  font-size: 17px;
}

.section {
  padding: 76px 0;
}

.section--white {
  background: var(--fm-paper);
}

.section--soft {
  background: var(--fm-soft);
}

.section--download {
  background: #10251f;
  color: #ffffff;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.page-content h1,
.page-content h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--fm-muted);
  font-size: 17px;
}

.section--download .section-heading p {
  color: rgba(255, 255, 255, 0.75);
}

.feature-grid,
.trust-grid,
.roadmap-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.feature-card,
.trust-card,
.roadmap-card,
.download-panel,
.content-card {
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-radius);
  background: var(--fm-paper);
}

.feature-card,
.trust-card,
.roadmap-card,
.content-card {
  padding: 22px;
}

.feature-card h3,
.trust-card h3,
.roadmap-card h3,
.content-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.feature-card p,
.trust-card p,
.roadmap-card p,
.content-card p {
  margin: 0;
  color: var(--fm-muted);
}

.feature-card:nth-child(2) {
  background: var(--fm-soft-blue);
}

.feature-card:nth-child(3) {
  border-color: #f0d9c8;
  background: #fff6ef;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
}

.product-window {
  overflow: hidden;
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-radius);
  background: #ffffff;
  box-shadow: var(--fm-shadow);
}

.product-window img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 28%;
}

.check-list {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  color: var(--fm-muted);
}

.check-list li::before {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--fm-green);
  content: "✓";
  font-size: 13px;
  font-weight: 800;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 28px;
  align-items: stretch;
}

.download-panel {
  padding: 26px;
  color: var(--fm-ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.download-panel dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 16px;
  margin: 0 0 24px;
}

.download-panel dt {
  color: var(--fm-muted);
}

.download-panel dd {
  margin: 0;
  font-weight: 800;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--fm-line);
  color: var(--fm-muted);
  background: #ffffff;
  font-size: 14px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.page-main {
  background: #ffffff;
}

.page-hero {
  padding: 72px 0 34px;
  background: var(--fm-soft);
}

.page-hero__inner {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--fm-muted);
  font-size: 18px;
}

.page-content {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 84px;
}

.page-content p,
.page-content li {
  color: var(--fm-muted);
}

.page-content a {
  color: var(--fm-green);
  font-weight: 700;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.page-content th,
.page-content td {
  padding: 14px 12px;
  border: 1px solid var(--fm-line);
  vertical-align: top;
  text-align: left;
}

.page-content th {
  color: var(--fm-ink);
  background: var(--fm-soft);
}

@media (max-width: 900px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .main-navigation {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-list {
    min-width: max-content;
  }

  .header-cta {
    margin-left: auto;
  }

  .hero {
    min-height: 760px;
  }

  .hero::before {
    background-position: center top;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(9, 26, 20, 0.92) 0%, rgba(9, 26, 20, 0.64) 58%, rgba(9, 26, 20, 0.18) 100%);
  }

  .hero__inner {
    padding: 280px 0 54px;
  }

  .feature-grid,
  .trust-grid,
  .roadmap-grid,
  .section-split,
  .download-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header__inner,
  .section__inner,
  .site-footer__inner,
  .hero__inner,
  .page-hero__inner,
  .page-content {
    width: min(100% - 28px, 1160px);
  }

  .brand-name {
    font-size: 16px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 13px;
    font-size: 13px;
  }

  .hero {
    min-height: 720px;
  }

  .hero__inner {
    padding-top: 270px;
  }

  .hero__content {
    max-width: calc(100vw - 28px);
  }

  .hero__lead {
    max-width: 320px;
    font-size: 16px;
  }

  .hero__actions .button,
  .download-panel .button {
    width: 100%;
  }

  .section {
    padding: 54px 0;
  }

  .site-footer__inner {
    display: grid;
  }

  .footer-menu {
    flex-wrap: wrap;
  }

  .download-panel dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
