/* "harbor" theme: a one-page site — video hero, text panel beside a photo, map, contact form.
   Design width is 1920px: there every block sits where the original site had it. Narrower screens
   keep the arrangement and shrink; below 1000px the columns stack. */

@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/figtree-latin.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/roboto-700-latin.woff2') format('woff2'); }

:root {
  --navy: #13253d;
  --sand: #c6b695;
  --mist: #f7f7f7;
  --soft: #dbdbdb;
  --text: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --display: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  /* Side margin of the header and footer strip: a 980px strip that grows until 110px remains. */
  --strip: clamp(22px, calc((100% - 980px) / 2), 110px);
  --gutter: clamp(20px, 5vw, 110px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--sand); color: var(--navy); font: 300 18px/1.4 var(--text); }
img { max-width: 100%; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; height: 638px; overflow: hidden; background: var(--navy); color: #fff; }
.hero__media { position: absolute; inset: 0; background: center / cover no-repeat; }
.hero__video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The logo is centred in the first column of the strip (17.15% of it), as in the original. */
.hero__bar { position: absolute; top: 68px; left: calc(var(--strip) + 1px); width: max(233px, calc((100% - 2 * var(--strip)) * .1715)); display: flex; justify-content: center; }
.hero__bar img { display: block; width: 233px; height: auto; }
.hero__text { position: absolute; top: 259px; left: 168px; width: 815px; }
.hero h1 { margin: 0; font: 700 110px/133px var(--display); }
.hero p { margin: 9px 0 0 1px; font: 600 35px/49px var(--text); }

/* ------------------------------------------------- text panel beside photo */
.split { padding: 89px 0 57px; }
.split__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-left: max(var(--gutter), calc(50% - 822px)); margin-right: max(var(--gutter), calc(50% - 729px)); }
.panel { flex: 0 1 804px; min-width: 0; display: grid; grid-template-columns: minmax(0, 336fr) minmax(0, 361fr); align-content: start; padding: 53px 44px 61px 63px; background: var(--navy); color: #fff; }
.panel > .block { grid-column: 1 / -1; min-width: 0; }
.panel > .block--half { grid-column: auto; margin-top: 12px; }
.panel h2 { margin: 0; font: 600 22px/27px var(--text); }
.panel * + h2 { margin-top: 53px; }
.panel h3 { margin: 10px 0 23px; font: 700 45px/54px var(--display); color: var(--soft); }
.panel p { margin: 0 0 1.4em; line-height: 1.4; }
.panel p.loose { margin-bottom: 1.9em; line-height: 1.9; }
.panel p:has(+ ul) { margin-bottom: 0; }
.panel ul { margin: 0 0 1.4em 9px; padding: 0 0 0 23.4px; }
.panel li { line-height: 1.4; }
.panel .block > :last-child { margin-bottom: 0; }
.panel .block--half p { margin: 0; line-height: 22px; }
.panel strong, .panel b { font-weight: 600; }
.panel a { color: inherit; text-decoration: none; white-space: nowrap; }
.panel a:hover { text-decoration: underline; }
.split__media { flex: 0 1 568px; min-width: 0; }
.split__media img { display: block; width: 100%; height: auto; aspect-ratio: 568 / 827; object-fit: cover; }

/* ------------------------------------------------------------------- map */
.map { height: clamp(260px, 48vw, 686px); background: #e9e9e9; }
.map .block { height: 100%; }
.map__frame { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1); }

/* --------------------------------------------------------------- contact */
.contact { position: relative; padding: 99px var(--gutter) 95px; background: var(--mist); }
.contact__main { max-width: 792px; margin: 0 auto; }
.contact__aside img { display: block; width: 213px; height: auto; }
.contact__aside .links { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.contact__aside .links a { display: block; color: #000; }
.contact__aside .links svg { display: block; }
@media (min-width: 1320px) {
  .contact__aside .block--image { position: absolute; top: 110px; left: max(24px, calc(50% - 857px)); }
  .contact__aside .block--link_list { position: absolute; top: 422px; left: max(24px, calc(50% - 922px)); }
}

.form { padding: 15px 16px 0 0; }
.form .form__trap { display: none; }
.form__intro { margin-bottom: 21px; }
.form__fields { display: flex; flex-wrap: wrap; gap: 21px 27px; }
.form__field { flex: 1 1 100%; min-width: 0; }
.form label { display: block; margin-bottom: 9px; padding: 0 20px 0 2px; font-size: 14px; line-height: 14px; }
.form input, .form textarea { display: block; width: 100%; height: 37px; margin: 0; padding: 3px 3px 3px 10px; border: 1px solid var(--navy); border-radius: 0; background: var(--mist); color: var(--navy); font: 300 14px/19.6px var(--text); }
.form textarea { height: 78px; padding: 10.5px 10px 3px; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible, .form__button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.form__button { display: block; width: 100%; height: 46px; margin: 28px 0 0; padding: 0; border: 1px solid var(--sand); border-radius: 0; background: var(--sand); color: var(--mist); font: 300 14px/19.6px var(--text); cursor: pointer; }
.form__button:hover { filter: brightness(.94); }
.form__button:disabled { opacity: .6; cursor: default; }
.form__status { min-height: 20px; margin: 1px 0 0 20px; font: 600 14px/19.6px var(--text); }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 5px solid var(--navy); background: var(--sand); }
.footer__inner { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 var(--strip); padding: 75px 8px 0 7px; }
.footer__copy { margin: 0; font-size: 14px; line-height: 19.6px; letter-spacing: .42px; }
.footer__top { color: inherit; font-size: 16px; line-height: 19px; text-decoration: underline; }

/* --------------------------------------------------- plain (e.g. not found) */
.plain { padding: 96px var(--gutter); }
.plain__inner { max-width: 792px; margin: 0 auto; }
.plain a { color: inherit; }

/* ------------------------------------------------------- narrower screens */
@media (max-width: 1319px) {
  .contact { padding-top: 56px; }
  .contact__aside { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 10px; }
  .contact__aside img { width: 150px; }
}

@media (max-width: 1279px) {
  .panel { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 999px) {
  /* The hero keeps its proportions: every measure is its 1000px value in vw. */
  .hero { height: 63.8vw; }
  .hero__bar { top: 6.8vw; left: 22px; width: auto; }
  .hero__bar img { width: 23.3vw; }
  .hero__text { top: 25.9vw; left: 16.8vw; width: 81.5vw; }
  .hero h1 { font-size: 11vw; line-height: 13.3vw; }
  .hero p { margin-top: .9vw; font-size: 3.5vw; line-height: 4.9vw; }

  .split { padding: 48px 0; }
  .split__inner { flex-direction: column; align-items: stretch; gap: 10px; margin-left: var(--gutter); margin-right: var(--gutter); }
  .panel { flex: none; padding: 36px 28px 40px; }
  .split__media { flex: none; width: 100%; max-width: 568px; align-self: center; }

  .footer__inner { padding: 28px 0; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  /* Phones: no logo in the hero (it returns above the form), the still instead of the video. */
  .hero { height: 62.5vw; min-height: 200px; }
  .hero__bar { display: none; }
  .hero__text { top: 6.25vw; left: 6.25vw; width: 87.5vw; }
  .hero h1 { font-size: 11.25vw; line-height: 13.75vw; }
  .hero p { margin-top: 3vw; font-size: 6.25vw; line-height: 9.7vw; }

  .split { padding: 20px 0 32px; }
  .panel { padding: 24px 20px 28px; }
  .panel h2 { font-size: 19px; line-height: 24px; }
  .panel h3 { margin: 6px 0 14px; font-size: 30px; line-height: 36px; }
  .panel * + h2 { margin-top: 36px; }

  .contact { padding: 32px var(--gutter) 40px; }
  .form { padding-right: 0; }
}
