/*
Theme Name: MOJO Adventures
Theme URI: https://www.mojoprofishing.com
Author: Rob Grasska
Description: One-page site for MOJO Adventure Charter, Newport Beach — hero, the boat, adventures, rates, contact form. No dependencies, bundled fonts, form handled by WordPress.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: mojo
*/

/* ============ Fonts (bundled) ============ */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }

/* ============ Tokens ============ */
:root {
  --mj-bg: #f5f6f7; --mj-ink: #16202a; --mj-mute: #6b7684; --mj-line: #dfe3e8; --mj-card: #ffffff;
  --mj-sea: #0b6b9b; --mj-sea-ink: #084e72;
  --mj-max: 1080px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--mj-bg); color: var(--mj-ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
.wrap { width: 100%; max-width: var(--mj-max); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============ Top bar ============ */
.mj-bar { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.mj-bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mj-bar .brand { color: #fff; font-weight: 600; letter-spacing: .14em; font-size: 14px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.mj-bar nav { display: flex; gap: 22px; }
.mj-bar nav a { color: rgba(255,255,255,.92); font-size: 13.5px; font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.mj-bar nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ============ Hero ============ */
.mj-hero { position: relative; min-height: 86vh; display: grid; place-items: end start; color: #fff; isolation: isolate; }
.mj-hero picture, .mj-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mj-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,20,30,.78) 0%, rgba(10,20,30,.25) 55%, rgba(10,20,30,.15) 100%); }
.mj-hero .wrap { padding-bottom: 56px; padding-top: 120px; }
.mj-hero .kicker { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.mj-hero h1 { margin-top: 10px; font-size: clamp(34px, 6vw, 60px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; max-width: 14ch; }
.mj-hero .lead { margin-top: 14px; font-size: clamp(16px, 2vw, 19px); max-width: 48ch; color: rgba(255,255,255,.9); }
.mj-hero .cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; border-radius: 12px; padding: 13px 20px; font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer; border: 1px solid transparent; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn.primary { background: #fff; color: var(--mj-ink); }
.btn.ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.btn.dark { background: var(--mj-ink); color: #fff; }
.btn.dark:focus-visible { outline-color: var(--mj-ink); }

/* ============ Sections ============ */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--mj-line); }
.sec-head { max-width: 640px; }
.sec-head .kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mj-sea); }
.sec-head h2 { margin-top: 8px; font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.sec-head p { margin-top: 12px; font-size: 17px; color: #3a4552; }

/* The boat */
.mj-boat .grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mj-boat .grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: #e6eaef; }
.mj-boat .grid img.wide { grid-column: span 2; aspect-ratio: 8 / 3; }
.mj-boat .facts { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mj-boat .facts li { background: var(--mj-card); border: 1px solid var(--mj-line); border-radius: 14px; padding: 16px 18px; }
.mj-boat .facts b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.mj-boat .facts span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--mj-mute); }

/* Adventures */
.mj-adv .cards { margin-top: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mj-adv .card { background: var(--mj-card); border: 1px solid var(--mj-line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: box-shadow .15s ease, transform .15s ease; }
.mj-adv .card:hover { box-shadow: 0 10px 28px rgba(16,24,40,.10); transform: translateY(-2px); }
.mj-adv .card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #e6eaef; }
.mj-adv .body { padding: 18px 20px 22px; }
.mj-adv .body h3 { font-size: 18px; font-weight: 600; }
.mj-adv .body p { margin-top: 6px; font-size: 15px; color: #3a4552; }

/* Rates */
.mj-rates .box { margin-top: 28px; background: var(--mj-card); border: 1px solid var(--mj-line); border-radius: 16px; padding: 26px 28px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.mj-rates .box p { font-size: 16px; color: #3a4552; }
.mj-rates .box p + p { margin-top: 10px; }
.mj-rates ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.mj-rates li { padding-left: 18px; position: relative; font-size: 15px; color: #3a4552; }
.mj-rates li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--mj-sea); }
.mj-rates li b { color: var(--mj-ink); font-weight: 600; }
.mj-rates .box .btn { margin-top: 18px; }

/* Crew strip */
.mj-crew { padding: 0; border-top: 0; }
.mj-crew img { width: 100%; max-height: 520px; object-fit: cover; }
.mj-crew .cap { text-align: center; font-size: 13.5px; color: var(--mj-mute); padding: 14px 24px 0; }

/* Contact */
.mj-contact .box { margin-top: 28px; background: var(--mj-card); border: 1px solid var(--mj-line); border-radius: 16px; padding: 26px 28px; max-width: 640px; }
.mj-contact label { display: block; font-size: 13px; font-weight: 500; color: #3b4652; margin: 14px 0 6px; }
.mj-contact label:first-of-type { margin-top: 0; }
.mj-contact input, .mj-contact textarea { width: 100%; font-size: 16px; padding: 12px 13px; border: 1px solid var(--mj-line); border-radius: 10px; background: #fff; color: var(--mj-ink); }
.mj-contact input:focus, .mj-contact textarea:focus { outline: 2px solid var(--mj-ink); outline-offset: 0; border-color: var(--mj-ink); }
.mj-contact textarea { min-height: 140px; resize: vertical; }
.mj-contact .hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; opacity: 0; }
.mj-contact .actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.mj-contact .status { font-size: 13.5px; color: var(--mj-mute); min-height: 1.2em; }
.mj-contact .status.err { color: #b42318; }
.mj-contact .done { padding: 10px 0 4px; }
.mj-contact .done h3 { font-size: 20px; font-weight: 600; }
.mj-contact .done p { margin-top: 6px; color: var(--mj-mute); }
.mj-contact .cf-turnstile { margin-top: 14px; }

/* Footer */
.mj-foot { border-top: 1px solid var(--mj-line); padding: 26px 0 36px; font-size: 12.5px; color: #98a2ad; }
.mj-foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mj-foot a:hover { color: var(--mj-ink); }

/* ============ Small screens ============ */
@media (max-width: 820px) {
  .mj-boat .grid { grid-template-columns: 1fr 1fr; }
  .mj-boat .grid img.wide { grid-column: span 2; aspect-ratio: 16 / 9; }
  .mj-boat .facts { grid-template-columns: 1fr; }
  .mj-adv .cards { grid-template-columns: 1fr; }
  .mj-rates .box { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  section { padding: 52px 0; }
  .wrap { padding: 0 16px; }
  .mj-bar nav { display: none; }
  .mj-hero { min-height: 92vh; }
  .mj-hero .wrap { padding-bottom: 40px; }
  .mj-boat .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mj-boat .grid img.wide { grid-column: span 2; aspect-ratio: 16 / 10; }
  .mj-boat .grid img { border-radius: 10px; }
  .mj-rates .box, .mj-contact .box { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .mj-adv .card { transition: none; }
}
