/* services.css · the /boat-services/ page only. Loaded after site.css, home.css and detail.css, which carry the dark tokens
   (.dt-sec), the centred mark and phone number (.lx-top), the mint button and the closing type. Everything here is prefixed sv-.
   The page: mark and number, the heading, one photograph, four cards (stacked on phones, two by two on tablets, four across on
   wide screens), then one closing action. */

/* ---------- Top: the mark, the number, the heading, the photograph ---------- */
.sv-top{padding:calc(16px + env(safe-area-inset-top)) 0 0;background:#050A1E;text-align:center}
.sv-top .lx-top{animation:dt-up 380ms var(--ease) 80ms backwards}
.sv-top h1{max-width:none;margin:36px 0 28px;font-size:clamp(44px,13vw,60px);line-height:1;color:#fff;animation:dt-up 380ms var(--ease) 160ms backwards}
.sv-photo{position:relative;margin:0;overflow:hidden;aspect-ratio:3 / 2;border-radius:var(--rad);background:#0F1A3D;animation:dt-up 380ms var(--ease) 240ms backwards}
.sv-photo picture,.sv-photo img{display:block;width:100%;height:100%}
.sv-photo img{object-fit:cover;object-position:50% 38%}
.sv-photo::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px var(--img-edge);pointer-events:none}
@media (prefers-reduced-motion:reduce){.sv-top .lx-top,.sv-top h1,.sv-photo{animation:none}}

/* ---------- The four services ---------- */
.sv-cards{padding:var(--dt-gap) 0 var(--dt-shift);background:#050A1E}
.sv-grid{list-style:none;display:grid;gap:16px;margin:0;padding:0}
.sv-card{display:flex;flex-direction:column;padding:28px 24px 24px;border:1px solid rgba(255,255,255,.14);border-radius:var(--rad);background:#0B1431}
/* (two classes, so the size holds against the page's general rule for second-level headings) */
.sv-card .sv-name{max-width:none;margin:0;font:500 30px/1.06 var(--serif);letter-spacing:-.012em;color:#fff;text-wrap:balance}
.sv-name span{display:block;margin-top:10px;font:500 11.5px/1 var(--font);letter-spacing:.2em;text-transform:uppercase;color:#A3ABC0}
.sv-lead{margin:18px 0 0;font:500 14px/1.4 var(--font);color:#A3ABC0}
.sv-list{list-style:none;margin:18px 0 24px;padding:0}
.sv-lead + .sv-list{margin-top:10px}
.sv-list li{padding:11px 0;border-top:1px solid var(--line);font:450 16px/1.35 var(--font);color:#F5F4F1}
.sv-list li:last-child{border-bottom:1px solid var(--line)}
.sv-btn{width:100%;margin-top:auto}

/* ---------- Closing: one action ---------- */
.sv-end{padding:var(--dt-shift) 0 var(--dt-pad);text-align:center}
.sv-end h2 em{display:inline-block}
.sv-end .dt-quote-sub{margin:16px auto 28px}
.sv-end-btn{width:100%;max-width:342px;min-height:56px}
.sv-end .dt-quote-text{margin-top:32px}

@media (min-width:700px){
  .sv-top h1{margin:44px 0 36px;font-size:clamp(60px,9vw,84px)}
  .sv-photo{aspect-ratio:2 / 1}
  .sv-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
  .sv-card{padding:32px 28px 28px}
  .sv-end-btn{width:auto;max-width:none;min-width:260px}
  /* Cards in one row share their lines: names, the "plus" line, the lists and the buttons each start level across the row.
     (Each card spans four rows of the grid and takes them as its own; a card without a "plus" line leaves that row empty.) */
  @supports (grid-template-rows:subgrid){
    .sv-card{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0}
    .sv-card .sv-name{grid-row:1}
    .sv-lead{grid-row:2}
    .sv-list{grid-row:3;align-self:start;margin-top:10px}
    .sv-btn{grid-row:4;align-self:end}
  }
}
@media (min-width:960px){
  .sv-top h1{margin:clamp(32px,5svh,48px) 0 clamp(28px,4.4svh,44px);font-size:clamp(64px,6.2vw,92px)}
  .sv-photo{max-width:920px;margin-inline:auto;aspect-ratio:2.3 / 1}
  .sv-photo img{object-position:50% 36%}
}
/* from 1200px the header carries the menu links across the top centre, so the mark starts below the bar */
@media (min-width:1200px){
  .sv-top{padding-top:calc(var(--header-h) + 28px)}
}
@media (min-width:1180px){
  .sv-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .sv-card{padding:28px 22px 24px}
  .sv-card .sv-name{font-size:27px}
}
