/* ============================================
   PostOptimist Sea Salt Soda — Common
   ============================================ */
:root {
  --bg: #f4fafb;
  --sky: #e9f4f6;
  --sky-deep: #d9edf0;
  --navy: #1e4a56;
  --navy-soft: #3e6874;
  --muted: #6d8b95;
  --accent: #2c8da6;
  --accent-hover: #1f7590;
  --accent-deep: #175f76;
  --accent-soft: rgba(44, 141, 166, 0.11);
  --lime: #a8ce3e;
  --lime-soft: rgba(168, 206, 62, 0.16);
  --border: #dceaef;
  --radius: 16px;
  --shadow: 0 4px 18px rgba(30, 74, 86, 0.06);
  --shadow-hover: 0 18px 44px rgba(23, 95, 118, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Trust card ---- */
.trust-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.trust-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(44, 141, 166, 0.45);
}

/* ---- Section label ---- */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 7px 18px;
  margin-bottom: 1.2rem;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  margin-right: 9px;
  vertical-align: 1px;
}

.section-label-light {
  color: #a9dce8;
  background: rgba(169, 220, 232, 0.12);
}

.section-label-light::before {
  background: var(--lime);
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ---- Accent underline ---- */
.accent-underline {
  position: relative;
  display: inline-block;
}

.accent-underline::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 8px;
  height: 12px;
  background: linear-gradient(
    90deg,
    rgba(44, 141, 166, 0.28),
    rgba(168, 206, 62, 0.4)
  );
  border-radius: 999px;
  z-index: -1;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #3ba5be 0%, #1f7590 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(31, 117, 144, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3496af 0%, #1b6782 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(31, 117, 144, 0.45);
}

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--accent-deep);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30, 74, 86, 0.2);
}

.btn-large {
  padding: 16px 44px;
  font-size: 1.06rem;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(244, 250, 251, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 50px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.92rem;
  color: var(--navy-soft);
  border-radius: 999px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.nav-link.active {
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-weight: 600;
}

.nav-link.cta-btn {
  background: linear-gradient(135deg, #3ba5be 0%, #1f7590 100%);
  color: #fff;
  font-weight: 600;
  margin-left: 12px;
  box-shadow: 0 4px 14px rgba(31, 117, 144, 0.35);
}

.nav-link.cta-btn:hover {
  background: linear-gradient(135deg, #3496af 0%, #1b6782 100%);
  color: #fff;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
}

.nav-toggle .bar {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Footer ---- */
.footer {
  background: linear-gradient(180deg, var(--sky) 0%, #dfeff2 100%);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
  margin-top: 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-section h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy-soft);
  margin-bottom: 16px;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: var(--accent-deep);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---- Entrance animation ---- */
.fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bubbleRise {
  0% {
    transform: translateY(20px) scale(0.92);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    transform: translateY(-60px) scale(1.08);
    opacity: 0;
  }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(244, 250, 251, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 12px 16px;
  }

  .nav-link.cta-btn {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
    justify-content: center;
  }

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