/* Palm Beach Fishing Boats — responsive stylesheet (mobile-first)
   Light refresh of the original nautical-blue identity.
------------------------------------------------------------------- */

:root {
  --navy:    #003871;
  --blue:    #004992;
  --link:    #0050a0;
  --accent:  #0064c8;
  --tint:    #f0f8ff;          /* aliceblue — original table fill */
  --border:  #c7d6e5;
  --text:    #1f2933;
  --muted:   #5a6b7b;
  --card-bg: #ffffff;
  --page-bg: #eef3f8;
  --content-max: 1080px;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 40, 90, .12), 0 6px 18px rgba(0, 40, 90, .06);
}

/* Reset
------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dd, dt,
figure, form, fieldset, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; border: 0; display: block; }

/* Base
------------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  color: var(--text);
  background: var(--page-bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; }
h1 { font-size: 1.6rem; margin: 0 0 .5em; }
h2 { font-size: 1.35rem; margin: 1.4em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.2em 0 .4em; }
h4 { font-size: 1rem; margin: 1em 0 .3em; }

p  { margin: 0 0 1em; }
ol, ul.bullets { margin: 0 0 1em 1.3em; }
ol { list-style: decimal; }
ul.bullets { list-style: disc; }
ol li, ul.bullets li { margin: 0 0 .5em; }

a { color: var(--link); font-weight: 600; text-decoration: none; }
a:hover, a:focus { color: var(--accent); text-decoration: underline; }

strong, b, .important { font-weight: 700; }
.important { color: var(--blue); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .6em 1em; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* Header / brand
------------------------------------------------------------------- */
.site-header {
  background: #fff;
  border-top: 4px solid var(--navy);
  box-shadow: var(--shadow);
}
.brand {
  display: flex;
  align-items: stretch;
  max-width: 748px;
  margin: 0 auto;
  padding: 0;
}
.brand:hover, .brand:focus { text-decoration: none; }
.brand img { display: block; height: auto; }
.brand .brand-mark { width: 29.95%; }   /* 224 / 748 */
.brand .brand-word { width: 70.05%; }    /* 524 / 748 */

/* Navigation
------------------------------------------------------------------- */
.nav-wrap { background: var(--navy); }
.main-nav {
  max-width: var(--content-max);
  margin: 0 auto;
}
#navToggle {
  display: none;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
#navToggle:hover, #navToggle:focus { background: var(--blue); }
.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-list a {
  display: block;
  padding: 13px 18px;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.nav-list a:hover, .nav-list a:focus {
  background: var(--blue);
  color: #fff;
  text-decoration: none;
}
.nav-list a[aria-current="page"] {
  background: var(--blue);
  box-shadow: inset 0 -3px 0 var(--accent);
}

/* When JS present, collapse nav on small screens */
html.js #navToggle { display: block; }
html.js .nav-list { display: none; }
html.js .nav-list.open { display: block; }
html.js .nav-list.open a { border-top: 1px solid rgba(255,255,255,.12); text-align: left; }

/* Layout
------------------------------------------------------------------- */
main { display: block; }
.wrap {
  max-width: var(--content-max);
  margin: 22px auto;
  padding: 0 16px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
}
.card + .card { margin-top: 22px; }
.page-title { text-align: center; margin-bottom: .8em; }
.lead { font-size: 1.05rem; }
.center { text-align: center; }
.muted { color: var(--muted); }

.heading-img { margin: 0 auto .6em; }

/* Buttons
------------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  padding: .7em 1.4em;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: background .15s ease;
}
.btn:hover, .btn:focus { background: var(--accent); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn--ghost:hover, .btn--ghost:focus { background: var(--blue); color: #fff; }

/* Boat model cards
------------------------------------------------------------------- */
.model-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 1em;
}
.model-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .15s ease, transform .15s ease;
}
.model-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.model-card .thumb {
  background: var(--tint);
  padding: 16px 0;
  display: flex; align-items: center; justify-content: center;
}
.model-card .thumb img {
  width: 130px; height: 88px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px;
  box-shadow: 0 1px 3px rgba(0, 40, 90, .12);
}
.model-card .thumb:empty, .model-card span.thumb:not(:has(img)) { display: none; }
.model-card .model-body { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; }
.model-card h2 { margin: 0 0 .4em; font-size: 1.15rem; text-align: left; }
.model-card h2 a { color: var(--navy); }
.spec-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  font-size: .88rem;
  margin: 0 0 .8em;
}
.spec-list dt { color: var(--muted); font-weight: 600; }
.spec-list dd { margin: 0; text-align: right; }
.model-card .btn { margin-top: auto; align-self: flex-start; }
.tag-nodetail { font-size: .82rem; color: var(--muted); margin-top: auto; }

/* Spec table (detail pages) + generic data tables
------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1em 0; }
table.data {
  border-collapse: collapse;
  width: 100%;
  background: var(--tint);
  font-size: .92rem;
}
table.data caption { caption-side: top; font-weight: 700; color: var(--navy); padding: .4em 0; }
table.data th, table.data td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
table.data thead th, table.data th[scope="row"] { background: var(--blue); color: #fff; }
table.data th[scope="row"] { text-align: left; font-weight: 600; }

.specbox { max-width: 340px; margin: 0 auto 1em; }
.featurebox { margin: 0 auto 1em; }
.featurebox ul { list-style: none; margin: .4em 0; padding: 0; columns: 2; column-gap: 24px; }
.featurebox li { break-inside: avoid; padding: .15em 0 .15em 1.2em; position: relative; font-size: .9rem; }
.featurebox li::before { content: "\25B8"; color: var(--accent); position: absolute; left: 0; }

/* Notes / disclaimer blocks
------------------------------------------------------------------- */
.note {
  background: var(--tint);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 1.2em 0;
  font-size: .92rem;
}
.note p:last-child { margin-bottom: 0; }

/* Forms (contact)
------------------------------------------------------------------- */
.form-grid { display: grid; gap: 14px; max-width: 620px; margin: 0 auto; }
.field { display: flex; flex-direction: column; }
.field.row2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field label, fieldset legend { font-weight: 600; margin-bottom: .3em; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: .55em .7em;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(0,100,200,.25);
  outline-offset: 0;
}
fieldset { border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; }
.choice { display: flex; align-items: center; gap: .5em; font-weight: 400; margin: .2em 0; }
.choice input { width: auto; }
.contact-details { list-style: none; margin: 0 0 1em; padding: 0; }
.contact-details li { padding: .3em 0; }

/* Construction gallery
------------------------------------------------------------------- */
.step-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 1em 0; }
.step-nav a, .step-nav span {
  display: inline-block; min-width: 34px; text-align: center;
  padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border);
  font-weight: 700; font-size: .9rem;
}
.step-nav span[aria-current] { background: var(--blue); color: #fff; border-color: var(--blue); }
.step-nav .step-arrow { background: var(--tint); }
.step-figure { margin: 1em 0; text-align: center; }
.step-figure img { margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.step-figure figcaption { margin-top: .6em; color: var(--muted); font-size: .9rem; }

/* Media / hero
------------------------------------------------------------------- */
.hero { display: grid; gap: 20px; align-items: start; }
.hero .slider { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* Simple CSS/JS slideshow
------------------------------------------------------------------- */
.slideshow { position: relative; background: var(--navy); border-radius: var(--radius); overflow: hidden; }
.slideshow img {
  width: 100%; display: none; aspect-ratio: 423 / 281; object-fit: cover;
}
.slideshow img.active { display: block; animation: fade .8s ease; }
@keyframes fade { from { opacity: .3; } to { opacity: 1; } }

/* Footer
------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #cfe0f0;
  margin-top: 30px;
  padding: 26px 16px;
  text-align: center;
  font-size: .88rem;
}
.site-footer a { color: #fff; }
.site-footer .foot-nav { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.site-footer .foot-nav a { font-weight: 600; }
.site-footer .contact-banner img { margin: 0 auto 14px; opacity: .95; }
.copyright { color: #9db9d4; }

/* Responsive
------------------------------------------------------------------- */
@media (min-width: 600px) {
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .field.row2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 760px) {
  html.js #navToggle { display: none; }
  html.js .nav-list { display: flex; }
  .hero { grid-template-columns: 1.4fr 1fr; }
  h1 { font-size: 1.9rem; }
}
@media (min-width: 900px) {
  .model-grid { grid-template-columns: repeat(3, 1fr); }
}
