/* Shared parts of the content pages (guide, sizes, buyer request, sell, compare, about, FAQ, contact, legal).
   Loaded after site.css. Each page adds its own file for its centrepiece (assets/css/<page>.css). */

/* ---------- photo intro: one real yacht photo, one headline, one line ---------- */

.p-hero { position: relative; min-height: 76dvh; display: grid; align-items: end; color: #fff; background: var(--sea); isolation: isolate; overflow: hidden; }
.p-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.p-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgb(6 16 25 / .55) 0%, rgb(6 16 25 / 0) 24%), linear-gradient(0deg, rgb(6 16 25 / .82) 0%, rgb(6 16 25 / .25) 45%, rgb(6 16 25 / 0) 70%);
}
.p-hero-inner { padding-top: 140px; padding-bottom: 56px; display: grid; gap: 16px; }
.p-hero h1 { font-size: clamp(2.8rem, 1.6rem + 4.4vw, 5.6rem); line-height: .98; max-width: 16ch; }
.p-hero .lede { color: rgb(255 255 255 / .88); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); max-width: 46ch; }
.p-hero .crumbs { font-size: 0.8125rem; color: rgb(255 255 255 / .75); }
.p-hero .crumbs a { color: rgb(255 255 255 / .85); }
@media (prefers-reduced-motion: no-preference) {
  .p-hero > img { animation: pSettle 2.4s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes pSettle { from { transform: scale(1.06); } }
@media (max-width: 760px) {
  .p-hero { min-height: 0; display: block; }
  .p-hero > img { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3; z-index: 0; }
  .p-hero::after { inset: 0 0 auto 0; height: auto; aspect-ratio: 4 / 3; background: linear-gradient(180deg, rgb(6 16 25 / .55) 0%, rgb(6 16 25 / 0) 30%); }
  .p-hero-inner { position: relative; z-index: 1; padding-top: 22px; padding-bottom: 32px; }
}

/* ---------- plain intro for quiet pages (FAQ, contact, legal) ---------- */

.p-intro { padding-top: 72px; padding-bottom: 8px; display: grid; gap: 14px; }
.p-intro h1 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); line-height: 1; max-width: 18ch; }
.p-intro .lede { max-width: 52ch; }
.crumbs { font-size: 0.8125rem; color: var(--muted); }
.crumbs a { color: var(--ink-2); }

/* ---------- sections ---------- */
/* these classes often share an element with .wrap, so they only ever set vertical padding */

.p-sec { padding-top: clamp(72px, 9vw, 128px); }
.p-sec h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.3rem); line-height: 1.04; max-width: 20ch; }
.p-sec-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 64ch; }
.p-band { background: var(--sea); color: #f3f1ee; padding-block: clamp(72px, 9vw, 128px); margin-top: clamp(72px, 9vw, 128px); }
.p-band h2 { color: #fff; }
.p-band .lede, .p-band .muted { color: #b9c6d1; }

/* ---------- reading column ---------- */

.read { max-width: 66ch; font-size: 1.0625rem; line-height: 1.72; color: var(--ink-2); }
.read h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.12; color: var(--ink); margin: 56px 0 14px; max-width: none; }
.read h2:first-child { margin-top: 0; }
.read p + p { margin-top: 1em; }
.read ul { padding-left: 1.1em; margin: 1em 0 0; display: grid; gap: 8px; }
.read a { color: var(--sky-ink); text-underline-offset: 3px; }

/* ---------- forms ---------- */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .span-all { grid-column: 1 / -1; }
.form-grid .actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- closing band: one next step ---------- */

.next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; padding-top: 40px; border-top: 1px solid var(--line); }
.next h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); }
.next p { color: var(--ink-2); margin-top: 10px; max-width: 52ch; }
@media (max-width: 760px) { .next { grid-template-columns: minmax(0, 1fr); } }
