/* El Tawil 2
   Colours follow nautical chart conventions: white deep water, buff land,
   pale blue shallows. Deep-water blue marks the things that matter (actions). */

@font-face {
  font-family: "Source Serif";
  src: url("../fonts/source-serif-4-opsz-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("../fonts/source-serif-4-opsz-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
/* only the glyphs of the boat's Arabic name: الطويل ٢ */
@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("../fonts/noto-naskh-arabic-600-subset.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0020, U+0627, U+0637, U+0644, U+0648, U+064A, U+0662;
}

:root {
  --paper: #fcfcfa;
  --white: #ffffff;
  --ink: #1b2128;
  --ink-2: #4f5a65;
  --rule: #d3dbe0;
  --shoal: #eaf3f7;
  --shoal-2: #cfe4ee;
  --land: #efe0b6;
  --land-ink: #74663f;
  --coast: #6f6650;
  --sea: #3d7aa3;
  --accent: #17518a;
  --accent-dark: #0f3d6b;
  --error: #b3261e;

  --serif: "Source Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --arabic: "Noto Naskh Arabic", "Geeza Pro", "Times New Roman", serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-space: clamp(4rem, 2.5rem + 6vw, 8rem);
  --topbar-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
abbr[title] { text-decoration: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--white);
  font: 600 1rem/1 var(--sans);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

main h2 {
  font-size: clamp(2.25rem, 1.55rem + 2.6vw, 3.75rem);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -.02em;
  text-wrap: balance;
}
main h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.008em;
}
.intro {
  margin-top: 1rem;
  max-width: 36em;
  font-size: 1.1875rem;
  line-height: 1.55;
  text-wrap: pretty;
}
figcaption {
  margin-top: .6rem;
  font: 400 .875rem/1.4 var(--sans);
  color: var(--ink-2);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: .75rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: 3px;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-quiet { border-color: var(--ink); color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }
.btn-small { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 252, 250, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.topbar.is-stuck { border-bottom-color: var(--rule); }
.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--topbar-h);
}
/* the client's own badge logo */
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: 64px; height: 64px; }
@media (max-width: 599px) {
  .brand img { width: 52px; height: 52px; }
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem clamp(1rem, 2.2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
  font: 500 .9375rem/1 var(--sans);
}
.nav-list a:not(.btn) {
  display: inline-block;
  padding: .55rem 0;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
}
.nav-list a:not(.btn):hover { border-bottom-color: currentColor; }
.nav-toggle { display: none; }

@media (max-width: 959px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 .9rem;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    background: none;
    font: 600 .9375rem/1 var(--sans);
    cursor: pointer;
  }
  .js .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .25rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 30px -24px rgba(27, 33, 40, .35);
  }
  .js .nav-list.is-open { display: flex; }
  .js .nav-list a:not(.btn) {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1.125rem;
  }
  .js .nav-cta { margin-top: 1.25rem; }
  .js .nav-cta .btn { width: 100%; min-height: 48px; font-size: 1rem; }
  /* without JavaScript the links simply wrap under the name */
  html:not(.js) .topbar-inner { flex-direction: column; align-items: flex-start; padding-block: .75rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-space); }
.section + .section { border-top: 1px solid var(--rule); }
.boat,
.seasons { background: var(--shoal); border-top-color: transparent; }
.boat + .section,
.seasons + .section { border-top-color: transparent; }
.section-head { margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }

/* Plain bulleted lists, used for the boat and inclusions */
.lists {
  display: grid;
  gap: 2.25rem 2.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 600px) {
  .lists { grid-template-columns: 1fr 1fr; }
}
.list h3,
.list h4 {
  font: 600 1.1875rem/1.3 var(--serif);
  letter-spacing: 0;
}
.list ul {
  margin-top: .6rem;
  padding-left: 1.2rem;
}
.list li {
  padding: .2rem 0;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.list li::marker,
.terms li::marker { color: var(--sea); }
.list-muted li { color: var(--ink-2); }

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

.hero { padding-block: clamp(1.25rem, 3vw, 2.75rem) clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero + .section { border-top: 1px solid var(--rule); }

.nameplate {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .9rem 1em;
  padding-bottom: clamp(.5rem, 1.2vw, 1rem);
  border-bottom: 2px solid var(--ink);
}
.nameplate-lat {
  font: 500 clamp(4.25rem, 1.4rem + 11.5vw, 10.5rem)/.92 var(--serif);
  letter-spacing: -.04em;
  margin-left: -.04em;
}
/* Each script sits at the end it is read from: English left, Arabic right.
   When the line wraps on small screens the Arabic keeps to the right. */
.nameplate-ar {
  margin-left: auto;
  font: 600 clamp(2.6rem, 1.15rem + 6.6vw, 6.5rem)/1 var(--arabic);
  color: var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-areas: "text" "photo" "specs";
  gap: 2rem;
  margin-top: clamp(1.5rem, 3vw, 2.75rem);
}
.hero-text { grid-area: text; }
.hero-photo { grid-area: photo; }
.particulars { grid-area: specs; }

.lede {
  max-width: 28em;
  font-size: clamp(1.25rem, 1.05rem + .75vw, 1.5625rem);
  line-height: 1.42;
  text-wrap: pretty;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin-top: 1.75rem;
}
.hero-call { font: 400 1rem/1.4 var(--sans); color: var(--ink-2); }
.hero-call a { color: var(--ink); font-weight: 600; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 55%;
}
.particulars { border-top: 1px solid var(--rule); }
.particulars div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--rule);
}
.particulars dt {
  padding-top: .2rem;
  font: 500 .875rem/1.45 var(--sans);
  color: var(--ink-2);
}
.particulars dd { font-size: 1.0625rem; line-height: 1.45; }

@media (max-width: 599px) {
  .hero-photo { margin-inline: calc(var(--gutter) * -1); }
  .actions .btn { width: 100%; }
  .particulars div { grid-template-columns: 6.75rem 1fr; gap: .75rem; }
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "photo text" "photo specs";
    column-gap: clamp(2.5rem, 5vw, 5rem);
    row-gap: 2.5rem;
  }
  .hero-photo img { aspect-ratio: 5 / 4; }
}

/* ---------- Story ---------- */

.story-grid { display: grid; gap: 3rem; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
.story-body { margin-top: 1.25rem; max-width: 36em; font-size: 1.1875rem; line-height: 1.6; }
.story-body p + p { margin-top: 1rem; }

@media (max-width: 599px) {
  .story-photo { max-width: 420px; }
}
@media (min-width: 960px) {
  .story-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
  }
  .story-photo { grid-row: 1; grid-column: 1; }
  .story-text { grid-column: 2; }
}

/* ---------- The boat ---------- */

.boat-grid { display: grid; gap: 3rem; }
.boat-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1rem;
  align-content: start;
}
.boat-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.boat-photo-main { grid-column: 1 / -1; }
.boat-photo-main img { aspect-ratio: 4 / 5; object-position: 50% 45%; }

@media (min-width: 960px) {
  .boat-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
  .boat-text .lists { grid-template-columns: 1fr; }
  .boat-photos { grid-template-columns: 3fr 2fr; }
  .boat-photo-main { grid-column: 1; grid-row: 1 / span 2; }
  .boat-photo-main img { height: 100%; aspect-ratio: auto; min-height: 100%; }
  .boat-photo-main picture { height: calc(100% - 2rem); }
}

/* ---------- Trips ---------- */

.trips-grid { display: grid; gap: 3rem; }
.trip {
  display: grid;
  gap: .35rem;
  padding: 1.25rem 0;
}
.trip:first-child { padding-top: 0; }
.trip + .trip { border-top: 1px solid var(--rule); }
.trip p { max-width: 36em; }
.note { margin-top: 1.5rem; max-width: 34em; font-size: 1.0625rem; color: var(--ink-2); }
.trip-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 70%; }

.included {
  display: grid;
  gap: 0 3rem;
  margin-top: clamp(3.5rem, 7vw, 6rem);
}
main .included-title { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: 500; letter-spacing: -.015em; }
.included .lists { margin-top: 1.5rem; }

@media (min-width: 600px) {
  .trip { grid-template-columns: 10rem 1fr; gap: 1.5rem; }
}
@media (min-width: 960px) {
  .trips-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
  .trip-photo { margin-top: .4rem; }
  .included { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .included .lists { margin-top: .4rem; }
}

/* ---------- Dive sites ---------- */

.sites-head { display: grid; gap: 2rem; align-items: end; }
.sites-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 45%; }
@media (min-width: 960px) {
  .sites-head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(3rem, 6vw, 6rem); }
}

.sites-grid { display: grid; gap: 2.5rem; }
.chart-wrap { margin: 0; }
.chart {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - var(--topbar-h) - 5rem);
  max-height: calc(100svh - var(--topbar-h) - 5rem);
  margin-inline: auto;
}
@media (min-width: 960px) {
  .sites-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }
  .chart-wrap { position: sticky; top: calc(var(--topbar-h) + 1.5rem); }
  .chart-wrap figcaption { text-align: center; }
}

/* chart drawing */
.chart .sea { fill: var(--white); }
.chart .shoal { fill: none; stroke: var(--shoal-2); stroke-width: 16; stroke-linejoin: round; }
.chart .land { fill: var(--land); stroke: var(--coast); stroke-width: 1.4; stroke-linejoin: round; }
.chart .grat { fill: none; stroke: #a9c3d3; stroke-width: 1; }
.chart .band { fill: var(--ink); }
.chart .frame { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.chart text { font-family: var(--sans); font-size: 22px; fill: var(--ink); }
.chart .t-region { font-size: 24px; font-weight: 500; letter-spacing: .34em; fill: var(--land-ink); }
.chart .t-water { font-family: var(--serif); font-style: italic; font-size: 28px; fill: var(--sea); }
.chart .t-water-lg { font-size: 44px; }
.chart .t-island { font-size: 19px; fill: var(--land-ink); }
.chart .t-grat { font-size: 16px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.chart .scale path { fill: none; stroke: var(--ink); stroke-width: 2; }
.chart .scale text { font-size: 16px; fill: var(--ink-2); }
.chart .port circle { fill: var(--ink); stroke: var(--white); stroke-width: 3; }
.chart .port text { font-weight: 600; font-size: 22px; }

.chart .t-site {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 25px;
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--white);
  stroke-width: 6px;
  stroke-linejoin: round;
}
.chart .t-note { font-size: 18px; fill: var(--ink-2); }
.chart .mark { cursor: pointer; }
.chart .hit { fill: transparent; }
.chart .m-ring { fill: var(--white); stroke: var(--ink); stroke-width: 2.2; }
.chart .m-dot { fill: var(--ink); }
.chart .m-wreck { fill: var(--white); stroke: var(--ink); stroke-width: 1.8; stroke-dasharray: 2 3.5; }
.chart .m-line { fill: none; stroke: var(--ink); stroke-width: 2.2; }
.chart .mark .m-ring,
.chart .mark .m-dot,
.chart .mark .m-wreck,
.chart .mark .m-line,
.chart .mark .t-site { transition: fill .15s ease, stroke .15s ease; }
.chart .mark.is-active .m-ring,
.chart .mark.is-active .m-wreck,
.chart .mark.is-active .m-line { stroke: var(--accent); }
.chart .mark.is-active .m-dot,
.chart .mark.is-active .t-site { fill: var(--accent); }
.chart .mark.is-active .m-wreck { stroke-dasharray: none; stroke-width: 2.4; }

.chart .route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-dasharray: 10 8;
  stroke-linecap: round;
  marker-end: url(#route-arrow);
}
.chart .route-head { fill: var(--accent); }
#route-mask-path {
  fill: none;
  stroke: #fff;
  stroke-width: 24;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}
.chart.is-drawing #route-mask-path { animation: draw-route 1.1s cubic-bezier(.35, .1, .25, 1) forwards; }
@keyframes draw-route { to { stroke-dashoffset: 0; } }

@media (max-width: 599px) {
  .chart text { font-size: 32px; }
  .chart .t-site { font-size: 36px; stroke-width: 8px; }
  .chart .t-region { font-size: 30px; }
  .chart .t-water { font-size: 34px; }
  .chart .t-water-lg { font-size: 50px; }
  .chart .t-island,
  .chart .t-grat,
  .chart .scale text { font-size: 26px; }
  .chart .t-note { font-size: 22px; }
  .chart .scale text { font-size: 22px; }
  .chart .port text { font-size: 32px; }
}

/* site entries */
.site { padding: 1.5rem 0 1.6rem; }
.site:first-child { padding-top: 0; }
.site + .site { border-top: 1px solid var(--rule); }
.site h3 {
  display: flex;
  align-items: center;
  gap: .6rem;
  transition: color .15s ease;
}
/* symbol colours come from currentColor inside the <use> */
.site-sym { width: 34px; height: 21px; flex: none; color: var(--ink); }
.site.is-active h3,
.site.is-active .site-sym { color: var(--accent); }

.site p { margin-top: .7rem; max-width: 36em; }
.site .facts { margin-top: .35rem; font: 500 .9375rem/1.5 var(--sans); color: var(--ink-2); }
.site-show {
  margin-top: .9rem;
  padding: .55rem 0;
  border: 0;
  background: none;
  font: 600 .9375rem/1 var(--sans);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
html:not(.js) .site-show { display: none; }
@media (min-width: 960px) {
  .site-show { display: none; }
}

/* ---------- Seasons ---------- */

.seasons-grid { display: grid; gap: 3rem; }
.cal-now {
  margin-top: 1.5rem;
  font: 500 1rem/1.5 var(--sans);
}
.cal-now strong { color: var(--accent); font-weight: 600; }
.cal-scroll { margin-top: 2rem; overflow-x: auto; }
.cal {
  width: 100%;
  min-width: 330px;
  border-collapse: collapse;
  font-family: var(--sans);
}
.cal thead th {
  padding: 0 0 .6rem;
  font: 500 .8125rem/1 var(--sans);
  color: var(--ink-2);
  text-align: center;
  border-bottom: 1px solid var(--ink);
}
.cal thead .cal-head-name { text-align: left; }
.cal tbody tr { border-bottom: 1px solid var(--rule); }
.cal tbody tr:hover { background: rgba(255, 255, 255, .7); }
.cal tbody th {
  width: 44%;
  padding: .7rem 1rem .7rem 0;
  text-align: left;
  font-weight: 400;
  vertical-align: middle;
}
.cal-name { display: block; font: 600 1.0625rem/1.3 var(--serif); color: var(--ink); }
.cal-when,
.cal-where { display: block; font-size: .8125rem; line-height: 1.4; color: var(--ink-2); }
.cal-when { font-weight: 600; color: var(--ink); }
.cal td { position: relative; padding: 0; }
.cal td.on::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 12px;
  margin-top: -6px;
  background: var(--accent);
}
.cal td.on.s::before { left: 3px; border-radius: 4px 0 0 4px; }
.cal td.on.e::before { right: 3px; border-radius: 0 4px 4px 0; }
.cal td.on.s.e::before { border-radius: 4px; }
.cal .is-now { background: rgba(23, 81, 138, .1); }
.cal thead th.is-now { color: var(--accent); font-weight: 700; }
.cal-foot { margin-top: 1rem; font: 400 .875rem/1.4 var(--sans); color: var(--ink-2); }
.seasons-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

@media (max-width: 599px) {
  .cal tbody th { width: 46%; padding-right: .75rem; }
  .cal-where { font-size: .75rem; }
  .seasons-photo { max-width: 360px; }
}
@media (min-width: 960px) {
  .seasons-grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: clamp(3rem, 5vw, 5rem);
    align-items: end;
  }
}

/* ---------- Plan a trip ---------- */

.plan-grid { display: grid; gap: 3.5rem; }
.form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.35rem 1rem;
  margin-top: 2.25rem;
}
.field { grid-column: 1 / -1; }
.field label {
  display: block;
  margin-bottom: .45rem;
  font: 600 .9375rem/1.3 var(--sans);
}
.optional { font-weight: 400; color: var(--ink-2); margin-left: .35em; }
.input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: .7rem .85rem;
  background: var(--white);
  border: 1px solid #7e8b96;
  border-radius: 3px;
  font: 400 1.0625rem/1.3 var(--sans);
  color: var(--ink);
}
.input:hover { border-color: var(--ink); }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
select.input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231b2128' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
}
textarea.input { min-height: 8rem; line-height: 1.5; resize: vertical; }
.input::placeholder { color: #6c7782; }
.hint { margin-top: .45rem; font: 400 .875rem/1.4 var(--sans); color: var(--ink-2); }
.error { margin-top: .45rem; font: 600 .875rem/1.4 var(--sans); color: var(--error); }
.field.has-error .input { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.form-submit { grid-column: 1 / -1; margin-top: .35rem; }
.form-submit .hint { margin-top: .75rem; }

@media (min-width: 600px) {
  .field-name { grid-column: span 4; }
  .field-guests { grid-column: span 2; }
  .field-trip,
  .field-date,
  .field-nights { grid-column: span 2; }
}
@media (max-width: 599px) {
  .field-guests,
  .field-trip { grid-column: span 3; }
  .field-date { grid-column: span 4; }
  .field-nights { grid-column: span 2; }
  .form-submit .btn { width: 100%; }
}

main .terms h3 { font-size: 1.3125rem; }
.terms h3 + ul { margin-top: .6rem; }
.terms ul { padding-left: 1.2rem; }
.terms li { padding: .25rem 0; font-size: 1.0625rem; line-height: 1.5; }
.terms ul + h3 { margin-top: 2.25rem; }
.terms-call { margin-top: .5rem; font-size: 1.0625rem; }
.terms-call a { font-weight: 600; }

@media (min-width: 960px) {
  .plan-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
  }
  .terms { margin-top: .6rem; }
}

/* ---------- FAQ ---------- */

.faq-grid { display: grid; gap: 2rem; }
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.15rem 0;
  font: 600 1.1875rem/1.35 var(--serif);
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: .4rem;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
}
.faq-list details[open] summary::after {
  background: linear-gradient(var(--accent), var(--accent)) center / 14px 2px no-repeat;
}
.faq-list summary:hover { color: var(--accent); }
.faq-list details p { max-width: 38em; padding-bottom: 1.35rem; color: var(--ink-2); }

@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(3rem, 7vw, 7rem); }
}

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

.footer {
  padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
  background: var(--ink);
  color: #dfe4e8;
  font: 400 1rem/1.6 var(--sans);
}
.footer a { color: var(--white); }
.footer-grid { display: grid; gap: 2.5rem; }
/* lockup: Arabic name tucked under the English one, aligned to its right edge */
.footer-mark {
  display: inline-grid;
  margin-bottom: 1rem;
  font: 500 clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem)/1.05 var(--serif);
  letter-spacing: -.02em;
  color: var(--white);
}
.footer-mark span {
  justify-self: end;
  font: 600 .62em/1.4 var(--arabic);
  letter-spacing: 0;
  color: #c9d2da;
}
.footer-about p:last-child { max-width: 26em; }
.footer-h { margin-bottom: .5rem; font: 500 .875rem/1.3 var(--sans); color: #aab5bf; }
.contact-list { padding: 0; list-style: none; }
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
}
.contact-list a:hover { text-decoration: underline; }
.contact-list svg { width: 19px; height: 19px; flex: none; fill: currentColor; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .875rem;
  color: #aab5bf;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
}

/* ---------- Floating WhatsApp button ---------- */

.wa-float { display: none; }
.js .wa-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
  opacity: 0;
  transform: scale(.7);
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.js .wa-float.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
.wa-float:hover { background: #1fb959; }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* Tablet: keep portrait photos from running taller than the screen */
@media (min-width: 600px) and (max-width: 959px) {
  .boat-photo-main img { aspect-ratio: 4 / 3; }
  .story-photo,
  .trip-photo,
  .seasons-photo { max-width: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  #route-mask-path { stroke-dashoffset: 0; }
}

@media print {
  .topbar, .wa-float, .form, .site-show { display: none !important; }
  .section { padding-block: 2rem; }
}
