* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
body { font-family: 'Roboto', sans-serif; color: #333; background: #fff; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
nav { background: #0a2540; display: flex; align-items: center; justify-content: flex-end; padding: 0 clamp(1rem, 4vw, 2rem); height: 68px; position: sticky; top: 0; z-index: 100; }
.nav-links { display: flex; gap: 0; }
.nav-links a { font-family: 'Roboto', sans-serif; color: #c5dff0; text-decoration: none; font-size: 15px; padding: 0 16px; height: 68px; display: flex; align-items: center; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; cursor: pointer; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: #fff; border-bottom-color: #4ab0e8; }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #c5dff0; border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; background: #0a2540; border-top: 1px solid rgba(255,255,255,0.1); position: sticky; top: 68px; z-index: 99; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Roboto', sans-serif; color: #c5dff0; text-decoration: none; font-size: 16px; padding: 16px clamp(1rem, 4vw, 2rem); border-bottom: 1px solid rgba(255,255,255,0.07); cursor: pointer; transition: background 0.2s, color 0.2s; min-height: 48px; display: flex; align-items: center; }
.mobile-menu a:hover, .mobile-menu a.active { color: #fff; background: rgba(74,176,232,0.15); }
.hero { min-height: clamp(185px, 30vw, 320px); background: #0a2540; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(1.25rem, 4vw, 2rem); }
.hero-title { font-family: 'Roboto', sans-serif; font-size: clamp(26px, 6vw, 56px); font-weight: 300; color: #fff; letter-spacing: 0.12em; margin-bottom: 12px; text-transform: uppercase; line-height: 1.15; }
.hero-subtitle { font-family: 'Roboto', sans-serif; font-size: clamp(14px, 2.8vw, 28px); font-weight: 300; color: #7fb3d3; letter-spacing: 0.08em; line-height: 1.4; max-width: 100%; }
.content-section { display: none; padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem); max-width: 960px; margin: 0 auto; background: #fff; }
.content-section.active-section { display: block; }
.section-title { font-family: 'Roboto', sans-serif; font-size: clamp(24px, 4vw, 34px); font-weight: 400; color: #0a2540; margin-bottom: 10px; }
.section-rule { width: 52px; height: 3px; background: #4ab0e8; margin-bottom: 2rem; }
.section-body { font-family: 'Roboto', sans-serif; font-size: clamp(15px, 2vw, 18px); line-height: 1.85; color: #555; }
.section-body p { margin-bottom: 1.2rem; }
.section-body p:last-child { margin-bottom: 0; }
.section-body a { color: #4ab0e8; text-decoration: none; }
.section-body a:hover { text-decoration: underline; }
/* Section-level layout control (set via CMS "Layout" field). Flows body
   content into two newspaper-style columns on wider screens. */
.section-body.body-2col { columns: 2; column-gap: 2.5rem; }
.section-body.body-2col ul,
.section-body.body-2col h3 { break-inside: avoid; }
/* Paragraphs (intro/closing prose) span the full width; only the heading+list
   blocks between them flow into the two newspaper columns. */
.section-body.body-2col p { -webkit-column-span: all; column-span: all; }
/* Extra breathing room above the closing paragraph that follows the list block. */
.section-body.body-2col ul + p { margin-top: 2rem; }
/* Zero top margins so whichever element leads each column starts flush (aligned
   column tops); section spacing comes from the list's bottom margin instead.
   Keep each heading attached to its list so a heading can't strand at a column foot. */
.section-body.body-2col h3 { margin-top: 0; -webkit-column-break-after: avoid; break-after: avoid; }
.section-body.body-2col ul { margin-top: 0; margin-bottom: 1.8rem; }
/* Markdown-authored headings and lists inside a section body. Bullet lists
   render with the house "›" marker and divider rules (the old .spec-list look). */
.section-body h2, .section-body h3, .section-body h4 { font-family: 'Roboto', sans-serif; font-size: clamp(18px, 2.5vw, 22px); font-weight: 400; color: #0a2540; margin: 2rem 0 0.75rem; }
.section-body h2:first-child, .section-body h3:first-child, .section-body h4:first-child { margin-top: 0; }
.section-body ul { list-style: none; padding: 0; margin: 0.5rem 0 1.2rem; }
.section-body ul li { font-family: 'Roboto', sans-serif; font-size: clamp(14px, 1.8vw, 16px); color: #555; padding: 6px 0; border-bottom: 0.5px solid #e0e0e0; line-height: 1.5; }
.section-body ul li:last-child { border-bottom: none; }
.section-body ul li::before { content: "›"; color: #4ab0e8; margin-right: 8px; font-weight: 500; }
.cost-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: clamp(13px, 1.8vw, 16px); }
.cost-table th { font-family: 'Roboto', sans-serif; background: #0a2540; color: #fff; padding: 12px 14px; text-align: left; font-weight: 500; }
.cost-table td { font-family: 'Roboto', sans-serif; padding: 11px 14px; border-bottom: 0.5px solid #e0e0e0; color: #555; vertical-align: top; }
.cost-table tr:nth-child(even) td { background: #f0f6fb; }
.cost-table .boat-name { display: block; color: #4ab0e8; text-decoration: none; font-weight: 500; }
.cost-table .boat-name:hover { text-decoration: underline; }
.cost-table .boat-model { display: block; font-size: 0.88em; color: #888; margin-top: 2px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 1.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 2rem; }
.gallery-thumb { aspect-ratio: 4/3; overflow: hidden; border-radius: 6px; cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-thumb:hover img { transform: scale(1.05); }
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 999; align-items: center; justify-content: center; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92%; max-height: 78vh; border-radius: 4px; object-fit: contain; }
.lightbox-close { position: absolute; top: 12px; right: 16px; color: #fff; font-size: 36px; cursor: pointer; background: none; border: none; line-height: 1; min-width: 44px; min-height: 44px; }
.lb-nav { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; justify-content: center; padding: 0 1rem; }
.lb-btn { font-family: 'Roboto', sans-serif; background: rgba(255,255,255,0.15); color: #fff; border: none; padding: 12px 24px; border-radius: 4px; cursor: pointer; font-size: 16px; transition: background 0.2s; min-height: 44px; }
.lb-btn:hover { background: rgba(255,255,255,0.3); }

/* Contact form */
.contact-form { max-width: 600px; margin-top: 1.5rem; }
.form-group { display: flex; flex-direction: column; margin-bottom: 1.2rem; }
.form-group label { font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 500; color: #0a2540; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #333;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
  max-width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #4ab0e8; }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input.invalid, .form-group textarea.invalid, .form-group select.invalid { border-color: #c0392b; }
.submit-btn {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 36px;
  background: #0a2540;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.03em;
  min-height: 48px;
  width: 100%;
  max-width: 260px;
}
.submit-btn:hover { background: #4ab0e8; }
.form-error { font-family: 'Roboto', sans-serif; font-size: 13px; color: #c0392b; margin-top: 4px; display: none; }
.form-error.visible { display: block; }
.form-success { display: none; font-family: 'Roboto', sans-serif; font-size: 15px; color: #2d7a2d; margin-top: 1rem; padding: 12px 16px; background: #e8f5e8; border-radius: 4px; border-left: 4px solid #2d7a2d; }
.form-success.visible { display: block; }

footer { font-family: 'Roboto', sans-serif; background: #0a2540; color: #7fb3d3; text-align: center; padding: 1.5rem; font-size: clamp(12px, 1.5vw, 14px); letter-spacing: 0.04em; margin-top: 2rem; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } .section-body.body-2col { columns: 1; } }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cost-table th, .cost-table td { padding: 8px 10px; }
  .table-wrap::after { content: "← swipe →"; display: block; font-size: 12px; color: #888; text-align: center; padding: 6px 0; }
}
@media (max-width: 480px) {
  nav { padding: 0 1rem; }
  .gallery-grid { grid-template-columns: 1fr; gap: 8px; }
  .lb-btn { padding: 10px 18px; font-size: 14px; }
  .hero-title { letter-spacing: 0.08em; }
}
