/* Cruising Ducks — marketing site styles */
:root {
  --sky: #8dd3ff;
  --sky-2: #55b4ff;
  --ocean: #0b6fc7;
  --ocean-deep: #064e92;
  --duck: #ffd23f;
  --duck-deep: #ffb01f;
  --ink: #0d2740;
  --paper: #ffffff;
  --muted: #5a708a;
  --radius: 22px;
  --shadow: 0 12px 30px rgba(8, 45, 85, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); text-align: center; margin: 0 0 .4em; }
h3 { margin: 0 0 .4em; font-size: 1.2rem; }

/* ===== Nav ===== */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 18px 22px;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 800; font-size: 1.15rem; text-decoration: none;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.nav__brand img { width: 30px; height: 30px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.nav__links a {
  color: #fff; text-decoration: none; margin-left: 22px; font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.nav__links a:hover { text-decoration: underline; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 45%, var(--ocean) 100%);
  color: #fff; position: relative; overflow: hidden; padding-bottom: 30px;
}
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  max-width: 1100px; margin: 0 auto; padding: 30px 22px 10px;
}
.hero__logo { max-width: 420px; margin-bottom: 6px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.hero__tagline { font-size: 1.25rem; max-width: 30ch; text-shadow: 0 1px 3px rgba(0,0,0,.2); }
.hero__note { font-size: .9rem; opacity: .9; margin-top: 12px; }
.hero__art img { filter: drop-shadow(0 16px 24px rgba(0,0,0,.3)); animation: bob 5s ease-in-out infinite; }
.hero__ducks {
  display: flex; justify-content: center; gap: 30px; margin-top: 4px;
}
.hero__ducks img { width: 64px; height: 64px; filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
.hero__ducks img:nth-child(2) { transform: translateY(-10px); }

@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===== App Store badge ===== */
.badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  background: #000; color: #fff; text-decoration: none;
  padding: 10px 22px; border-radius: 14px; line-height: 1.1;
  box-shadow: var(--shadow); transition: transform .15s ease;
}
.badge:hover { transform: translateY(-2px); }
.badge__small { font-size: .72rem; opacity: .85; }
.badge__big { font-size: 1.35rem; font-weight: 700; }
.badge--light { background: #fff; color: #000; }

/* ===== Sections ===== */
.section { max-width: 1100px; margin: 0 auto; padding: 64px 22px; }
.section--alt { max-width: none; background: #eef7ff; }
.section--alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section__lead { text-align: center; color: var(--muted); max-width: 60ch; margin: 0 auto 32px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid #e4eefb; border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.gallery figcaption { padding: 12px 16px; font-weight: 700; }

/* ===== Match callout ===== */
.match {
  text-align: center; background: linear-gradient(180deg, #0d2740, #06365f); color: #fff;
  max-width: none;
}
.match__logo { max-width: 360px; margin: 0 auto 14px; }
.match p { color: #cfe6ff; max-width: 50ch; margin: 0 auto; }

/* ===== CTA ===== */
.cta {
  text-align: center; padding: 64px 22px;
  background: linear-gradient(180deg, var(--ocean) 0%, var(--ocean-deep) 100%); color: #fff;
}
.cta h2 { margin-bottom: 24px; }

/* ===== Footer ===== */
.footer { background: #08243f; color: #b9d2ea; padding: 36px 22px; text-align: center; }
.footer__brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; color: #fff; }
.footer__brand img { width: 28px; height: 28px; }
.footer__links { margin: 14px 0; }
.footer__links a { color: var(--duck); text-decoration: none; margin: 0 12px; font-weight: 600; }
.footer__links a:hover { text-decoration: underline; }
.footer__copy { font-size: .85rem; opacity: .8; margin: 6px 0 0; }

/* ===== Forms (contact page) ===== */
.form-page { max-width: 640px; margin: 0 auto; padding: 48px 22px; }
.form-page .panel {
  background: #fff; border: 1px solid #e4eefb; border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfe0f2; border-radius: 12px;
  font: inherit; color: var(--ink); background: #fbfdff;
}
.field textarea { min-height: 140px; resize: vertical; }
.btn {
  display: inline-block; background: var(--duck); color: #4a3500; font-weight: 800;
  border: none; padding: 13px 26px; border-radius: 14px; font-size: 1rem; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--duck-deep); }
.notice { padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }
.notice--ok { background: #e3f9ec; color: #126a37; border: 1px solid #b6ecc8; }
.notice--err { background: #fdeaea; color: #97231f; border: 1px solid #f4c4c2; }

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__tagline { margin-left: auto; margin-right: auto; }
  .hero__art { order: -1; max-width: 460px; margin: 0 auto; }
  .nav__links a { margin-left: 14px; font-size: .95rem; }
}
