/* Jenifer Clark's Gulfstream mockup. Brand: navy #052843, Rufina headings, Libre Baskerville body. */
:root {
  --navy: #052843;
  --ink: #282828;
  --muted: #5a6670;
  --line: #dde3e8;
  --mist: #f3f6f8;
  --white: #fff;
  --head: "Rufina", Georgia, serif;
  --body: "Libre Baskerville", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; color: var(--navy); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid #4d8fc4; outline-offset: 3px; }

.wrap { max-width: 1140px; margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; }
.section { padding-block: 84px; }
.section--mist { background: var(--mist); }
.lead { font-size: 1.1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 2px solid var(--navy);
  border-radius: 4px;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #0a3d63; border-color: #0a3d63; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--mist); border-color: var(--mist); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.logo img { width: 72px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button {
  display: block;
  padding: 10px 13px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
}
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { color: var(--navy); background: var(--mist); }
.nav__group { position: relative; }
.nav__group > button::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.nav__menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 230px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(5, 40, 67, 0.12);
}
.nav__group:hover .nav__menu, .nav__group:focus-within .nav__menu { display: block; }
.nav .btn { background: var(--navy); color: var(--white); padding: 11px 18px; margin-left: 10px; }
.nav .btn:hover { color: var(--white); background: #0a3d63; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--navy); }

/* Mobile drawer */
.backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(5, 40, 67, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(340px, 88vw);
  padding: 20px 24px 32px;
  background: var(--white);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s;
}
.is-open .backdrop { opacity: 1; visibility: visible; }
.is-open .drawer { transform: none; visibility: visible; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer__close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); font-size: 1.5rem; line-height: 1; color: var(--navy); cursor: pointer; }
.drawer a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.drawer a.sub { padding-left: 18px; font-size: 0.92rem; color: var(--muted); }
.drawer p { margin: 18px 0 2px; font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.drawer .btn { margin-top: 22px; text-align: center; color: var(--white); border-bottom: 2px solid var(--navy); padding: 14px; }

/* Hero */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 72px; }
.hero__img img, .row__img img { width: 100%; border-radius: 6px; }
.hero__img img { aspect-ratio: 5 / 4; object-fit: cover; }

/* Alternating image and text rows */
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.row + .row { margin-top: 84px; }
.row--flip .row__img { order: 2; }
.row__img--chart img { border: 1px solid var(--line); }
.row__img--portrait img { max-width: 420px; margin-inline: auto; }

/* Page title */
.page-head { padding-block: 64px 8px; }
.page-head p { max-width: 720px; }

/* Plain lists of things with a rule between them */
.list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.list > li { border-bottom: 1px solid var(--line); }
.list__link { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 20px 4px; text-decoration: none; color: var(--ink); }
.list__link:hover { background: var(--mist); }
.list__link strong { font-family: var(--head); font-size: 1.3rem; color: var(--navy); white-space: nowrap; }
.list__link span { color: var(--muted); font-size: 0.92rem; text-align: right; }
.price { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 18px 4px; }
.price b { font-family: var(--head); font-size: 1.3rem; color: var(--navy); white-space: nowrap; }

.checks { margin: 0 0 1.2em; padding: 0; list-style: none; }
.checks li { position: relative; padding: 5px 0 5px 28px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }

/* Quotes */
.quote { margin: 0; }
.quote p { font-family: var(--head); font-size: clamp(1.25rem, 2.3vw, 1.6rem); line-height: 1.5; color: var(--navy); }
.quote footer { color: var(--muted); font-size: 0.92rem; }
.reviews { columns: 2; column-gap: 32px; }
.review { break-inside: avoid; margin: 0 0 32px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.review h3 { margin-bottom: 0.6em; }
.review p { font-size: 0.95rem; }
.review footer { color: var(--muted); font-size: 0.88rem; }

/* Race cards */
.race { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.race + .race { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.race__date { color: var(--muted); margin-top: -0.4em; }
.race img { border: 1px solid var(--line); border-radius: 6px; }
.note { padding: 22px 24px; background: var(--mist); border-radius: 6px; font-size: 0.95rem; }
.note p:last-child { margin-bottom: 0; }

/* Chart samples */
.charts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.charts a { display: block; text-decoration: none; color: var(--muted); font-size: 0.88rem; }
.charts img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; }

/* Forms */
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: 0.88rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #c3ccd3;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23052843' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid #4d8fc4; outline-offset: 1px; border-color: var(--navy); }
.form__done { display: none; padding: 16px 18px; background: var(--mist); border-radius: 4px; }
.form.is-sent .form__done { display: block; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }

/* Useful links */
.links { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.links__side { position: sticky; top: 116px; }
.links__search {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #c3ccd3;
  border-radius: 4px;
  font: inherit;
  font-size: 0.95rem;
}
.links__cats { margin: 18px 0 0; padding: 0; list-style: none; }
.links__cats a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 4px; color: var(--ink); font-size: 0.9rem; text-decoration: none; }
.links__cats a:hover { background: var(--mist); color: var(--navy); }
.links__cats span { color: var(--muted); }
.links__updated { margin: 18px 10px 0; color: var(--muted); font-size: 0.82rem; }
.cat + .cat { margin-top: 56px; }
.cat h2 { font-size: 1.6rem; padding-bottom: 14px; margin-bottom: 0; border-bottom: 2px solid var(--navy); }
.link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 24px;
  align-items: center;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.link:hover { background: var(--mist); }
.link__name { font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--navy); line-height: 1.3; }
.link__host { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.link__host::after {
  content: "";
  display: inline-block;
  width: 11px; height: 11px;
  margin-left: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1H1v10h10V8M7 1h4v4M11 1L5.5 6.5' fill='none' stroke='%235a6670' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.link__desc { grid-column: 1 / -1; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.links__empty { display: none; padding: 32px; background: var(--mist); border-radius: 6px; text-align: center; }
[hidden] { display: none !important; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }

/* Contact band and footer */
.band { background: var(--navy); color: var(--white); padding-block: 64px; }
.band h2 { color: var(--white); }
.band__in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.band p { margin: 0; color: #d5e0e8; }
.footer { background: var(--mist); padding-block: 56px 32px; font-size: 0.88rem; }
.footer__grid { display: grid; grid-template-columns: 120px repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer img { width: 96px; }
.footer h3 { font-size: 1.05rem; margin-bottom: 0.7em; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: 4px; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--navy); text-decoration: underline; }
.footer details { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.footer summary { cursor: pointer; color: var(--ink); }
.footer details p { margin: 14px 0 0; font-size: 0.82rem; line-height: 1.7; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; color: var(--muted); }

@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: block; }
  .links { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .links__side { position: static; }
  .links__cats { display: flex; flex-wrap: wrap; gap: 8px; }
  .links__cats a { border: 1px solid var(--line); padding: 6px 12px; }
  .links__updated { margin-inline: 0; }
  .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .section { padding-block: 56px; }
  .hero__grid, .row, .race, .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero__grid { padding-block: 40px 56px; }
  .row + .row { margin-top: 56px; }
  .row--flip .row__img { order: 0; }
  .reviews { columns: 1; }
  .form, .cols { grid-template-columns: minmax(0, 1fr); }
  .cols { gap: 24px; }
  .list__link { flex-direction: column; gap: 2px; }
  .list__link span { text-align: left; }
  .link { grid-template-columns: minmax(0, 1fr); }
  .header__in { min-height: 76px; }
  .logo img { width: 58px; }
  .page-head { padding-block: 40px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer, .backdrop { transition: none; }
}
