/*
Theme Name: All Aboard
Theme URI: https://allaboardcc.com
Description: A custom nautical theme for All Aboard — the cruise companion app. Navy, teal, and brass over cream, with a feature-rich app landing page, configurable download links, and the full set of blog/page templates. Classic PHP theme, no build step.
Author: The Meier Co
Author URI: https://themeierco.com
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: allaboard
Tags: nautical, cruise, one-page, custom-colors, custom-logo, custom-menu, featured-images, blog, translation-ready
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --navy:        #14324F;
  --navy-deep:   #0E2438;
  --teal:        #1F8A9B;
  --teal-bright: #2BB7C9;
  --teal-deep:   #0F5E6B;
  --gold:        #C9A24B;
  --gold-light:  #DCBE78;
  --cream:       #FBF8F1;
  --sand:        #ECE3D2;
  --ink:         #1B2733;
  --muted:       #5B6B7A;
  --line:        #E3E8EE;
  --white:       #FFFFFF;

  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 18px 40px rgba(14, 36, 56, 0.12);
  --shadow-sm:   0 8px 20px rgba(14, 36, 56, 0.08);
  --maxw:        1140px;

  --font-head: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
:root { --navy-soft: #1C4straight; } /* no-op guard */

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--teal); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
blockquote { margin: 1.5em 0; padding: .4em 1.2em; border-left: 4px solid var(--gold); color: var(--muted); font-style: italic; }
hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
pre { background: var(--navy-deep); color: #E6EDF3; padding: 16px; border-radius: var(--radius-sm); overflow:auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--alt { background: var(--white); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.86); }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow { display:inline-block; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.section--navy .eyebrow { color: var(--gold-light); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section--navy .lede { color: rgba(255,255,255,.72); }
.center { text-align: center; }
.center .lede { margin-left:auto; margin-right:auto; }

.skip-link { position:absolute; left:-9999px; }
.skip-link:focus { left:12px; top:12px; background:#fff; padding:10px 16px; border-radius:8px; z-index:1000; box-shadow: var(--shadow-sm); }

/* ============================================================
   Buttons + store badges
   ============================================================ */
.btn { display:inline-flex; align-items:center; gap:.5em; font-family: var(--font-head); font-weight: 600; font-size: 16px; padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .15s ease; }
.btn--primary { background: var(--gold); color: var(--navy-deep); box-shadow: 0 8px 20px rgba(201,162,75,.35); }
.btn--primary:hover { background: var(--gold-light); color: var(--navy-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn--ghost:hover { border-color:#fff; color:#fff; }
.btn--teal { background: var(--teal); color:#fff; }
.btn--teal:hover { background: var(--teal-deep); color:#fff; transform: translateY(-2px); }

.store-row { display:flex; flex-wrap:wrap; gap:14px; }
.store-badge { display:inline-flex; align-items:center; gap:11px; background:#0B1B28; color:#fff; padding:10px 18px; border-radius:12px; transition: transform .12s ease, box-shadow .12s ease; }
.store-badge:hover { color:#fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.store-badge svg { width:26px; height:26px; flex:0 0 auto; }
.store-badge .sb-top { display:block; font-size:10px; letter-spacing:.04em; opacity:.8; line-height:1.1; }
.store-badge .sb-name { display:block; font-family: var(--font-head); font-weight:600; font-size:17px; line-height:1.15; }
/* Official store badge images (current). */
.store-img { display:inline-block; transition: transform .12s ease; }
.store-img:hover { transform: translateY(-2px); }
.store-img img { height: 50px; width:auto; display:block; }

/* Screenshots gallery */
.gallery { display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 42px; }
.shot { margin:0; border-radius: 22px; overflow:hidden; box-shadow: var(--shadow); background:#0B1B28; }
.shot img { width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; max-width: 360px; margin: 42px auto 0; } }

/* ============================================================
   Site header / nav
   ============================================================ */
.site-header { position: sticky; top:0; z-index: 60; background: rgba(20,50,79,.92); backdrop-filter: blur(10px); color:#fff; }
.site-header .wrap { display:flex; align-items:center; justify-content:space-between; height: 72px; }
.brand { display:flex; align-items:center; gap:11px; color:#fff; font-family: var(--font-head); font-weight:800; font-size:20px; letter-spacing:.01em; }
.brand:hover { color:#fff; }
.brand img { height: 38px; width:auto; border-radius:8px; }
.brand .brand-mark { width:38px; height:38px; border-radius:10px; background: linear-gradient(135deg, var(--teal-bright), var(--teal-deep)); display:grid; place-items:center; color:#fff; font-size:20px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
.nav-toggle { display:none; background:none; border:0; color:#fff; cursor:pointer; padding:8px; }
.nav-toggle svg { width:26px; height:26px; }
.main-nav ul { display:flex; align-items:center; gap:6px; list-style:none; margin:0; padding:0; }
.main-nav a { color: rgba(255,255,255,.85); font-weight:500; font-size:15px; padding:8px 14px; border-radius:8px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color:#fff; background: rgba(255,255,255,.10); }
.header-cta { margin-left: 8px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position:relative; background: radial-gradient(1200px 600px at 80% -10%, rgba(43,183,201,.28), transparent 60%), linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 48%, var(--teal-deep) 130%); color:#fff; overflow:hidden; }
.hero .wrap { display:grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items:center; padding-top: 76px; padding-bottom: 110px; }
.hero-wordmark { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.8rem, 7.5vw, 4.6rem); line-height: 1; letter-spacing: .03em; text-transform: uppercase; color:#fff; margin: 0 0 12px; }
.hero h1 { color:#fff; margin-bottom: 18px; }
.hero h1 .accent { color: var(--gold-light); }
.hero .sub { font-size: 1.22rem; color: rgba(255,255,255,.82); max-width: 520px; margin-bottom: 30px; }
.hero .store-row { margin-bottom: 18px; }
.hero .hero-note { font-size: 13px; color: rgba(255,255,255,.6); }
.hero-art { display:flex; justify-content:center; }

/* Hero collage — a standalone square montage, rounded + shadowed. */
.hero-collage { width: 440px; max-width: 88vw; border-radius: 24px; overflow:hidden; line-height:0; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.hero-collage img { width:100%; height:auto; display:block; border-radius:24px; }

/* CSS phone mockup (kept for any page that still frames a screenshot). */
.phone { width: 300px; max-width: 82vw; background: #0B1B28; padding: 11px; border-radius: 40px; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.phone .screen { border-radius: 30px; overflow:hidden; display:block; line-height:0; background:#000; }
.phone .screen img { width:100%; height:auto; display:block; }

/* Wave divider */
.wave { display:block; width:100%; height: 56px; }
.wave--cream path { fill: var(--cream); }
.wave--white path { fill: var(--white); }
.wave--sand path { fill: var(--sand); }

/* ============================================================
   Value props strip
   ============================================================ */
.props { display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prop { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.prop:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prop .ic { width:46px; height:46px; border-radius:12px; background: linear-gradient(135deg, var(--teal-bright), var(--teal-deep)); display:grid; place-items:center; color:#fff; font-size:23px; margin-bottom:14px; }
.prop h3 { font-size:1.12rem; margin-bottom:6px; }
.prop p { color: var(--muted); font-size: 15px; margin:0; }

/* ============================================================
   Alternating feature sections
   ============================================================ */
.feature { display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center; }
.feature + .feature { margin-top: 84px; }
.feature--flip .feature-media { order: 2; }
.feature-media { display:flex; justify-content:center; }
.feature-card { width:100%; max-width: 440px; border-radius: var(--radius); background: linear-gradient(160deg, var(--navy) 0%, var(--teal-deep) 120%); color:#fff; padding: 40px; box-shadow: var(--shadow); min-height: 280px; display:flex; flex-direction:column; justify-content:center; gap:8px; }
.feature-card .fc-ic { font-size: 40px; margin-bottom: 8px; }
.feature-card .fc-big { font-family: var(--font-head); font-weight:800; font-size: 2rem; color: var(--gold-light); }
.feature-card .fc-line { color: rgba(255,255,255,.85); }
.feature h2 { margin-bottom: 14px; }
.feature .feat-list { list-style:none; padding:0; margin: 16px 0 0; }
.feature .feat-list li { padding: 8px 0 8px 30px; position:relative; color: var(--ink); border-bottom:1px solid var(--line); }
.feature .feat-list li::before { content:"⚓"; position:absolute; left:0; color: var(--teal); }

/* ============================================================
   Steps
   ============================================================ */
.steps { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: s; }
.step { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 26px; position:relative; }
.step::before { counter-increment: s; content: counter(s); position:absolute; top:-18px; left:26px; width:42px; height:42px; border-radius:50%; background: var(--gold); color: var(--navy-deep); font-family: var(--font-head); font-weight:800; display:grid; place-items:center; box-shadow: var(--shadow-sm); }
.step h3 { margin-top: 12px; }
.step p { color: var(--muted); margin:0; font-size:15px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%); color:#fff; border-radius: 22px; padding: 54px; text-align:center; box-shadow: var(--shadow); }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 24px; }
.cta-band .store-row { justify-content:center; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background:#fff; border:1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; transition: border-color .15s ease; }
.faq details[open] { border-color: var(--teal); }
.faq summary { cursor:pointer; font-family: var(--font-head); font-weight:600; color: var(--navy); list-style:none; display:flex; justify-content:space-between; align-items:center; gap: 14px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; color: var(--gold); font-size: 24px; font-weight:700; line-height:1; }
.faq details[open] summary::after { content:"\2212"; }
.faq details p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

/* ============================================================
   Blog / page content (prose)
   ============================================================ */
.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--teal-deep) 130%); color:#fff; padding: 64px 0 40px; }
.page-hero h1 { color:#fff; margin:0; }
.page-hero .crumbs { color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 10px; }
.page-hero .crumbs a { color: var(--gold-light); }

.content-area { padding: 28px 0 64px; }
.layout { display:grid; grid-template-columns: minmax(0,1fr) 300px; gap: 48px; }
.layout--full { grid-template-columns: minmax(0,1fr); max-width: 820px; margin: 0 auto; }
.prose { font-size: 1.05rem; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin: 1.4em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul li, .prose ol li { margin-bottom: .4em; }

.post-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; margin-bottom: 28px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--teal), var(--navy)); overflow:hidden; }
.post-card .thumb img { width:100%; height:100%; object-fit:cover; }
.post-card .pc-body { padding: 24px 26px; }
.post-card .pc-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; text-transform:uppercase; letter-spacing:.05em; }
.post-card h2 { font-size: 1.4rem; margin-bottom: 8px; }
.post-card p { color: var(--muted); margin: 0 0 14px; }

.widget { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.widget-title { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy); margin: 0 0 14px; }
.widget ul { list-style:none; padding:0; margin:0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }

.pagination { display:flex; gap:8px; flex-wrap:wrap; margin-top: 20px; }
.pagination .page-numbers { display:inline-grid; place-items:center; min-width:42px; height:42px; padding:0 12px; border-radius:10px; border:1px solid var(--line); background:#fff; color:var(--navy); font-weight:600; }
.pagination .page-numbers.current { background: var(--navy); color:#fff; border-color: var(--navy); }

.meta-tags a { display:inline-block; background: var(--sand); color: var(--navy); padding: 4px 12px; border-radius: 999px; font-size: 13px; margin: 4px 6px 0 0; }

/* Forms */
input[type=text], input[type=email], input[type=search], input[type=url], textarea, select {
  width:100%; border:1px solid #CDD6DF; border-radius: 10px; padding: 12px 14px; font-size: 16px; font-family: var(--font-body); background:#fff;
}
input:focus, textarea:focus, select:focus { outline:none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,138,155,.15); }
.search-form { display:flex; gap:8px; }
.search-form .btn { flex:0 0 auto; }

/* 404 */
.notfound { text-align:center; padding: 90px 0; }
.notfound .big { font-family: var(--font-head); font-weight:800; font-size: clamp(4rem, 14vw, 9rem); color: var(--teal); line-height:1; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.66); padding: 64px 0 28px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color:#fff; }
.footer-grid { display:grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.10); }
.footer-brand .brand { color:#fff; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.6); max-width: 300px; }
.footer-col h4 { color:#fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 14px; }
.footer-col ul { list-style:none; padding:0; margin:0; }
.footer-col li { padding: 5px 0; font-size: 15px; }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom .store-badge { padding:8px 14px; }
.footer-bottom .store-badge .sb-name { font-size:14px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; padding-bottom: 80px; gap: 36px; }
  .hero-art { order:-1; }
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 28px; }
  .feature--flip .feature-media { order: 0; }
  .props, .steps { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .nav-toggle { display:block; }
  .main-nav { position: absolute; top: 72px; left:0; right:0; background: var(--navy); padding: 12px 24px 20px; display:none; box-shadow: var(--shadow); }
  .main-nav.open { display:block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { display:block; padding: 12px 14px; }
  .header-cta { display:none; }
  .section { padding: 60px 0; }
  .cta-band { padding: 38px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
