/* ==========================================================================
   Marina Yacht Service — design system
   Palette: deep Adriatic navy, sea mist, brass. Restrained, technical, marine.
   ========================================================================== */

:root {
  /* Brand */
  /* Sampled from the Marina Yacht Service logo */
  --navy-900: #0a1622;
  --navy-800: #102131;
  --navy-700: #16304a;
  --navy-600: #1e3d5a;
  --navy-500: #2b5478;

  --sea-500: #2e7c87;
  --sea-400: #3f9aad;
  --sea-300: #6bb9c8;

  --rust-600: #8f4239;
  --rust-500: #a9524a;
  --rust-400: #c2685e;

  /* Neutrals */
  --ink-900: #0d1418;
  --ink-700: #2c3a42;
  --ink-500: #5a6b75;
  --ink-300: #94a4ad;
  --mist-200: #dde5e9;
  --mist-100: #eef3f5;
  --paper: #fbfcfd;
  --white: #ffffff;

  /* Semantic */
  --bg: var(--paper);
  --bg-alt: var(--mist-100);
  --bg-deep: var(--navy-900);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --text-invert: #eaf1f4;
  --rule: var(--mist-200);
  --accent: var(--rust-500);
  --link: var(--navy-600);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Fluid scale (min 360px → max 1280px) */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1.00rem, 0.95rem + 0.22vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.11rem + 0.40vw, 1.45rem);
  --step-2:  clamp(1.44rem, 1.29rem + 0.68vw, 1.86rem);
  --step-3:  clamp(1.73rem, 1.48rem + 1.10vw, 2.38rem);
  --step-4:  clamp(2.07rem, 1.69rem + 1.71vw, 3.05rem);
  --step-5:  clamp(2.49rem, 1.90rem + 2.60vw, 3.91rem);

  /* Space */
  --sp-3xs: 0.25rem;
  --sp-2xs: 0.5rem;
  --sp-xs:  0.75rem;
  --sp-s:   1rem;
  --sp-m:   1.5rem;
  --sp-l:   2.25rem;
  --sp-xl:  3.5rem;
  --sp-2xl: 5rem;
  --sp-3xl: 7.5rem;

  /* Layout */
  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wrap: 74rem;
  --wrap-wide: 88rem;

  --radius: 3px;
  --radius-lg: 6px;

  --shadow-sm: 0 1px 2px rgba(16, 33, 49, 0.06),
               0 2px 6px rgba(16, 33, 49, 0.05);
  --shadow-md: 0 2px 4px rgba(16, 33, 49, 0.06),
               0 8px 24px rgba(16, 33, 49, 0.09);
  --shadow-lg: 0 4px 8px rgba(16, 33, 49, 0.07),
               0 20px 48px rgba(16, 33, 49, 0.14);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select { font: inherit; color: inherit; }

button { cursor: pointer; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--navy-900);
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p, li { text-wrap: pretty; }

p { max-width: var(--measure); }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.18s var(--ease);
}

a:hover { color: var(--sea-500); }

:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea-500);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-700);
}

.muted { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - (var(--gutter) * 2), var(--wrap-wide));
  margin-inline: auto;
}

.section { padding-block: var(--sp-2xl); }
.section-lg { padding-block: var(--sp-3xl); }
.section-alt { background: var(--bg-alt); }

.section-deep {
  background: var(--bg-deep);
  color: var(--text-invert);
}

.section-deep h1,
.section-deep h2,
.section-deep h3,
.section-deep h4 { color: var(--white); }

.section-deep .muted { color: var(--ink-300); }
.section-deep a { color: var(--rust-400); }

.stack > * + * { margin-block-start: var(--flow, var(--sp-s)); }

.grid {
  display: grid;
  gap: var(--sp-m);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-s);
  align-items: center;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: var(--sp-2xs) var(--sp-s);
  background: var(--navy-900);
  color: var(--white);
}

.skip-link:focus {
  left: var(--sp-s);
  top: var(--sp-s);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2xs);
  padding: 0.72em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-600);
  border-color: var(--navy-600);
  color: var(--white);
}

.btn-accent {
  background: var(--rust-600);
  border-color: var(--rust-600);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--rust-500);
  border-color: var(--rust-500);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  padding: var(--sp-m);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}

.card-link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3 { font-size: var(--step-1); }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 252, 253, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-block-end: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-m);
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2xs);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
}

.nav a {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--navy-800); }

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

/* Language switcher */
.lang {
  position: relative;
}

.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3xs);
  padding: 0.4em 0.7em;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lang__menu {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 0.4rem);
  min-width: 11rem;
  padding: var(--sp-3xs);
  margin: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.lang__menu[hidden] { display: none; }

.lang__menu a {
  display: block;
  padding: 0.45em 0.7em;
  border-radius: var(--radius);
  font-size: var(--step--1);
  text-decoration: none;
  color: var(--ink-700);
}

.lang__menu a:hover { background: var(--mist-100); color: var(--navy-800); }

.nav-toggle { display: none; }

@media (max-width: 60rem) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
  }

  .nav {
    position: fixed;
    inset: 4.5rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-s) var(--gutter) var(--sp-l);
    background: var(--white);
    border-block-end: 1px solid var(--rule);
    box-shadow: var(--shadow-lg);
  }

  .nav[hidden] { display: none; }

  .nav a {
    padding-block: var(--sp-xs);
    font-size: var(--step-0);
    border-block-end: 1px solid var(--rule);
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(78vh, 44rem);
  padding-block: var(--sp-2xl);
  background: var(--navy-900);
  color: var(--text-invert);
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(7, 23, 38, 0.92) 0%,
    rgba(7, 23, 38, 0.74) 45%,
    rgba(7, 23, 38, 0.38) 100%
  );
}

.hero h1 { color: var(--white); max-width: 18ch; }

.hero .lede {
  max-width: 46ch;
  color: rgba(234, 241, 244, 0.88);
}

.hero .eyebrow { color: var(--rust-400); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: var(--sp-xl) var(--sp-l);
  background: var(--navy-900);
  color: var(--text-invert);
}

.site-footer h2,
.site-footer h3 { color: var(--white); font-size: var(--step-0); }

.site-footer a { color: rgba(234, 241, 244, 0.82); text-decoration: none; }
.site-footer a:hover { color: var(--rust-400); }

.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-block-start: var(--sp-3xs); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-s);
  margin-block-start: var(--sp-xl);
  padding-block-start: var(--sp-m);
  border-block-start: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--step--1);
  color: var(--ink-300);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field { display: grid; gap: var(--sp-3xs); }

.field label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-700);
}

.field input,
.field select,
.field textarea {
  padding: 0.65em 0.85em;
  background: var(--white);
  border: 1px solid var(--mist-200);
  border-radius: var(--radius);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sea-500);
  box-shadow: 0 0 0 3px rgba(47, 125, 143, 0.16);
}

.field textarea { min-height: 8rem; resize: vertical; }

.field__hint { font-size: var(--step--1); color: var(--text-muted); }

/* Spam trap. Named `bot-field` deliberately: a field called `company` maps to
   the browser `organization` autofill token, so real visitors with a saved
   contact profile get it filled for them and their enquiry is binned as spam.
   Kept off-screen rather than display:none so naive bots still see it. */
.honeypot {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.center-measure { max-width: var(--measure); margin-inline: auto; }

hr {
  height: 1px;
  border: 0;
  background: var(--rule);
  margin-block: var(--sp-l);
}

/* Print */
@media print {
  .site-header,
  .nav,
  .lang,
  .btn { display: none !important; }
  body { color: #000; background: #fff; }
}

/* --------------------------------------------------------------------------
   Icons
   -------------------------------------------------------------------------- */

.icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--sea-500);
  flex: none;
}

.icon-sm { width: 1.1rem; height: 1.1rem; }
.icon-lg { width: 2rem; height: 2rem; }
.icon-xl { width: 2.75rem; height: 2.75rem; color: var(--rust-600); }

.brand__mark {
  width: 2.2rem;
  height: 2.2rem;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-800);
}

.brand__sub {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sea-500);
}

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */

.page-hero {
  padding-block: var(--sp-2xl) var(--sp-xl);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(47, 125, 143, 0.10) 0%, transparent 62%),
    var(--bg);
  border-block-end: 1px solid var(--rule);
}

.page-hero .stack { --flow: var(--sp-s); }
.page-hero h1 { max-width: 20ch; }

/* --------------------------------------------------------------------------
   Stat band
   -------------------------------------------------------------------------- */

.stat-band {
  background: var(--navy-800);
  color: var(--text-invert);
}

.stat-band__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: var(--sp-s);
  padding-block: var(--sp-m);
}

.stat { text-align: center; }

.stat__value {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.1;
  color: var(--rust-400);
}

.stat__label {
  font-size: var(--step--1);
  color: rgba(234, 241, 244, 0.72);
  margin-block-start: var(--sp-3xs);
}

.stat p { max-width: none; }

/* --------------------------------------------------------------------------
   Two-column intro
   -------------------------------------------------------------------------- */

.intro-grid {
  display: grid;
  gap: var(--sp-l);
  align-items: start;
}

@media (min-width: 52rem) {
  .intro-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: var(--sp-xl); }
}

/* --------------------------------------------------------------------------
   Why grid
   -------------------------------------------------------------------------- */

.why__item { --flow: var(--sp-2xs); }
.why__item h3 { font-size: var(--step-1); }

/* --------------------------------------------------------------------------
   Spec displays
   -------------------------------------------------------------------------- */

.spec-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: var(--sp-s);
  padding: var(--sp-m);
  margin: 0;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}

.spec-row div { text-align: center; }

.spec-row dt,
.spec-grid dt {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.spec-row dd {
  margin: var(--sp-3xs) 0 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--navy-800);
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}

@media (min-width: 38rem) {
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 62rem) {
  /* Six specs -> two clean rows of three, no empty cells. */
  .spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.spec {
  padding: var(--sp-m);
  border-block-end: 1px solid var(--rule);
  border-inline-end: 1px solid var(--rule);
}

.spec dd { overflow-wrap: anywhere; }

.spec dd {
  margin: var(--sp-3xs) 0 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--navy-800);
}

/* --------------------------------------------------------------------------
   Service blocks
   -------------------------------------------------------------------------- */

.service-block { padding-block: var(--sp-xl); }
.service-block + .service-block { border-block-start: 1px solid var(--rule); }
.service-block:nth-of-type(even) { background: var(--bg-alt); }

.service-block__inner {
  display: grid;
  gap: var(--sp-l);
  align-items: start;
}

@media (min-width: 52rem) {
  .service-block__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sp-xl);
  }
}

.check-list {
  display: grid;
  gap: var(--sp-2xs);
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-inline-start: 1.9rem;
  padding-block: 0.35rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.72em;
  width: 0.85rem;
  height: 0.5rem;
  border-inline-start: 2px solid var(--rust-500);
  border-block-end: 2px solid var(--rust-500);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Figure
   -------------------------------------------------------------------------- */

.figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.figure img { width: 100%; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: var(--sp-l);
  align-items: start;
}

@media (min-width: 58rem) {
  .contact-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-xl); }
}

.contact-list {
  display: grid;
  gap: var(--sp-s);
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: var(--sp-xs);
  align-items: flex-start;
  padding-block-end: var(--sp-s);
  border-block-end: 1px solid var(--rule);
}

.contact-list strong {
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field--check label {
  display: flex;
  gap: var(--sp-2xs);
  align-items: flex-start;
  font-weight: 400;
  font-size: var(--step--1);
  color: var(--ink-700);
  cursor: pointer;
}

.field--check input {
  margin-block-start: 0.25em;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--sea-500);
  flex: none;
}

.card form p { max-width: none; }

/* --------------------------------------------------------------------------
   Card links — the whole card is clickable, so suppress inherited underlines
   and let the heading carry the affordance on hover.
   -------------------------------------------------------------------------- */

a.card,
a.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.card h3,
a.card-link h3 {
  color: var(--navy-800);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

a.card:hover h3,
a.card-link:hover h3 { color: var(--sea-500); }

a.card p,
a.card-link p { color: var(--text-muted); text-decoration: none; }

/* --------------------------------------------------------------------------
   Service card row — 3 + 2 reads better than 5 across or 4 + 1
   -------------------------------------------------------------------------- */

.grid-cards { grid-template-columns: 1fr; }

@media (min-width: 40rem) {
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.grid-cards .card { display: flex; flex-direction: column; }
.grid-cards .card h3 { font-size: var(--step-1); }

/* Dark bands set a link colour; buttons must keep their own. */
.section-deep .btn-accent,
.section-deep .btn-accent:hover,
.site-footer .btn-accent { color: var(--white); }

.section-deep .btn-ghost,
.section-deep .btn-ghost:hover { color: var(--text-invert); }

/* --------------------------------------------------------------------------
   Photography
   -------------------------------------------------------------------------- */

.photo-band {
  position: relative;
  overflow: hidden;
  max-height: min(52vh, 30rem);
  background: var(--navy-900);
}

.photo-band__img {
  width: 100%;
  height: min(52vh, 30rem);
  object-fit: cover;
  object-position: center 58%;
}

.figure img { border-radius: inherit; }

.intro-grid .figure,
.marina-grid .figure { align-self: start; }

.marina-grid {
  display: grid;
  gap: var(--sp-l);
  align-items: center;
}

@media (min-width: 58rem) {
  .marina-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-xl); }
}

.gallery {
  display: grid;
  gap: var(--sp-s);
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
  .gallery { grid-template-columns: 3fr 2fr 2fr 3fr; }
  .gallery .figure img { height: 17rem; object-fit: cover; }
}

/* --------------------------------------------------------------------------
   Form success notice
   -------------------------------------------------------------------------- */

.notice {
  padding: var(--sp-m);
  background: #eef6f3;
  border: 1px solid #b9d9cd;
  border-left: 4px solid #2f7f63;
  border-radius: var(--radius);
}

.notice[hidden] { display: none; }

.notice__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: #1d5b47;
  margin-block-end: var(--sp-3xs);
}

.notice:focus-visible { outline: 2px solid var(--sea-500); outline-offset: 3px; }

#quote-form-wrap[hidden] { display: none; }

.notice--error {
  background: #fdf1ef;
  border-color: #e8c4bd;
  border-left-color: #a9524a;
}

.notice--error .notice__title { color: #8f4239; }

.btn[disabled] { opacity: .65; cursor: progress; }

/* Field labels are <span aria-labelledby> rather than <label>: Netlify stores
   one set of label strings per form, and with <label> elements the last locale
   scanned decided the language of every notification email. Field NAMES are
   stable, so the emails are now consistently Italian. */
.field .field__label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
}

.field--check {
  display: flex;
  gap: var(--sp-2xs);
  align-items: flex-start;
}

.field__label--inline {
  font-weight: 400;
  font-size: var(--step--1);
  color: var(--ink-700);
}

.field--check input {
  margin-block-start: 0.25em;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--sea-500);
  flex: none;
}
