/* =========================================================
   PADDLELINK GLOBAL STYLES
   ========================================================= */

:root {
  --primary: #018a33;
  --primary-dark: #00491f;
  --text: #1c1c1e;
  --muted: #5f6b66;
  --card: #ffffff;
  --soft: #f4fff7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #ffffff;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* =========================================================
   GLOBAL HEADER
   ========================================================= */

.global-header {
  width: 100%;
  background: #fff;
  position: relative;
  z-index: 100;
}

.global-header-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Brand */

.global-brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;

  color: inherit;
  text-decoration: none;
}

.global-logo {
  width: 120px;
  height: auto;
  display: block;
}

.global-tagline {
  margin-top: 4px;
  color: #425249;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Main nav */

.global-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.global-nav > a,
.nav-dropdown > summary {
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  padding-bottom: 5px;
}

.global-nav > a:hover,
.nav-dropdown > summary:hover {
  color: var(--primary);
}

/* Categories dropdown */

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "⌄";
  font-size: 14px;
  transition: transform 0.18s ease;
}

.nav-dropdown[open] summary::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;

  width: 220px;
  padding: 8px;

  background: #fff;
  border: 1px solid rgba(0, 73, 31, 0.1);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 73, 31, 0.12);

  transform: translateX(-50%);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;

  color: #20352b;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;

  border-radius: 9px;
}

.nav-dropdown-menu a:hover {
  color: var(--primary-dark);
  background: var(--soft);
}

/* =========================================================
   HAMBURGER
   ========================================================= */

.mobile-menu-toggle {
  display: none;

  width: 42px;
  height: 42px;
  padding: 8px;

  background: transparent;
  border: 0;
  border-radius: 8px;

  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;

  background: var(--primary-dark);
  border-radius: 999px;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

/* Hamburger -> X */

.mobile-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   APP DOWNLOAD BUTTONS
   ========================================================= */

.page-downloads {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.app-store-button,
.google-play-beta {
  width: 220px;
  height: 66px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
  text-decoration: none;

  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.app-store-button {
  gap: 10px;
  padding: 0 16px;

  background: #111;
  color: #fff;
  border-radius: 12px;
}

.google-play-beta {
  margin: 0;
}

.google-play-icon {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: fill;
}

.apple-icon {
  width: 27px;
  height: 27px;
  display: block;
}

.app-store-text {
  text-align: left;
  line-height: 1.05;
}

.small {
  display: block;
  font-size: 12px;
}

.large {
  display: block;
  font-size: 25px;
  font-weight: 700;
}

.app-store-button:hover,
.google-play-beta:hover {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.04);
}

/* =========================================================
   BACK LINK
   ========================================================= */

.back-link {
  display: block;
  margin-top: 32px;

  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--primary);
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  background: linear-gradient(90deg, var(--primary-dark), #006f29);
  color: #fff;
  padding: 18px 24px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  font-weight: 700;
}

.footer-brand img {
  width: 150px;
  height: auto;
  display: block;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links a {
  width: 36px;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  color: #fff;
  text-decoration: none;

  background: rgba(255, 255, 255, 0.12);

  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {
  .global-header {
    position: relative;
    z-index: 10;
    background: #fff;
  }

  .global-header-inner {
    position: relative;
    margin: 0 auto;
    padding: 14px 18px;
    background: #fff;

    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 10px 16px;
  }

  .global-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .global-logo {
    width: 150px;
  }

  .global-tagline {
    display: block;
    margin-top: 0px;
    max-width: 190px;
    font-size: 11px;
    line-height: 1.25;
    color: #425249;
  }

  .mobile-menu-toggle {
    display: block;
    margin: 4px 0 0;
    align-self: start;
  }

  .global-nav {
    display: none;
    grid-column: 1 / -1;

    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    margin-top: 4px;
    padding: 10px 0 2px;

    border-top: 1px solid rgba(0, 73, 31, 0.08);
  }

  .global-nav.is-open {
    display: flex;
  }

  .global-nav > a,
  .nav-dropdown > summary {
    width: 100%;
    padding: 12px 2px;
    font-size: 15px;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown summary {
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    padding: 2px 0 8px 12px;

    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .nav-dropdown-menu a {
    padding: 9px 10px;
    font-size: 14px;
    border-left: 2px solid rgba(1, 138, 51, 0.16);
    border-radius: 0;
  }
  .page-downloads {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .app-store-button,
  .google-play-beta {
    width: 280px;
    height: 82px;
    max-width: 100%;
  }

  .google-play-icon {
    width: 100%;
    height: 100%;
  }

  .apple-icon {
    width: 34px;
    height: 34px;
  }

  .small {
    font-size: 15px;
  }

  .large {
    font-size: 31px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .global-header-inner {
    flex-direction: column;
  }

  .global-nav {
    width: 100%;
    justify-content: space-between;

    padding-top: 10px;

    border-top: 1px solid rgba(0, 73, 31, 0.08);
  }
}
@media (max-width: 420px) {
  .global-logo {
    width: 138px;
  }

  .global-tagline {
    max-width: 165px;
    font-size: 10px;
  }
}
