/* --- Self-hosted fonts (SIL OFL) -------------------------------------------
   Fraunces & Inter Tight served locally from /assets/fonts — no external
   font requests, no third-party data transfer. Variable fonts; declared under
   the same family names used throughout this stylesheet.
   Latin + Latin-Extended subsets (Latin-Ext carries Croatian diacritics). */

/* Fraunces — normal */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/fraunces-latin-opsz-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/fraunces-latin-ext-opsz-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* Fraunces — italic */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/fraunces-latin-opsz-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/fraunces-latin-ext-opsz-italic.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* Inter Tight — normal */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-tight-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-tight-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* Inter Tight — italic */
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-tight-latin-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-tight-latin-ext-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ==========================================================================
   KAPETAN KING — Site stylesheet
   Aesthetic: editorial nautical. Deep Adriatic navy, warm cream, brass.
   ========================================================================== */

/* --- Tokens ---------------------------------------------------------------- */
:root {
  --navy:        #0E2A3D;
  --navy-deep:   #081927;
  --cream:       #F4EFE6;
  --cream-soft:  #FAF7F1;
  --brass:       #B8893A;
  --brass-deep:  #8C6622;
  --slate:       #4A5A66;
  --slate-soft:  #7C8A93;
  --line:        #D9D0BF;
  --white:       #FFFFFF;

  --serif:       'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans:        'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --mono:        'JetBrains Mono', 'Courier New', monospace;

  --container:   1200px;
  --measure:     62ch;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--navy); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--brass-deep); }

button { font: inherit; cursor: pointer; }

/* --- Typography ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5vw + 1rem, 5.5rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 3.5vw + 0.5rem, 3.5rem); font-weight: 300; }
h3 { font-size: clamp(1.4rem, 2vw + 0.4rem, 2rem); }
h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.02em; }

p { margin: 0 0 1.2em; max-width: var(--measure); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--brass-deep);
  margin: 0 0 1.2em;
  display: inline-block;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--brass);
  margin-right: 12px;
  vertical-align: middle;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.5rem);
  line-height: 1.5;
  font-weight: 300;
  font-style: italic;
  color: var(--slate);
  max-width: 56ch;
}

.italic-serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* --- Layout ---------------------------------------------------------------- */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: clamp(64px, 9vw, 140px) 0;
}

.section--dark {
  background: var(--navy);
  color: var(--cream);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark .eyebrow { color: var(--brass); }
.section--dark .lead { color: rgba(244, 239, 230, 0.75); }

.section--cream-soft { background: var(--cream-soft); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

@media (max-width: 880px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 48px; }
}

/* --- Header / Nav ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.brand__mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand__name { line-height: 1; }
.brand__name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-top: 4px;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-left: 36px; /* Fallback for browsers without flex gap */
}
.nav a:first-child { margin-left: 0; }
@supports (gap: 36px) {
  .nav a { margin-left: 0; }
  .nav a:first-child { margin-left: 0; }
}
.nav a.active { color: var(--brass-deep); }
.nav a:not(.btn)::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width .3s ease;
}
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--navy);
  padding: 9px 14px;
  border-radius: 2px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .nav { display: none; flex-direction: column; gap: 20px; padding: 24px 32px 32px; background: var(--cream); border-bottom: 1px solid var(--line); width: 100%; position: absolute; left: 0; top: 100%; align-items: flex-start; }
  .nav.is-open { display: flex; }
  .nav-toggle { display: inline-block; }
  .site-header__inner { position: relative; }
}

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all .3s ease;
  border-radius: 0;
}
.btn:hover { background: var(--brass-deep); border-color: var(--brass-deep); color: var(--cream); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--cream); }

.btn--cream {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}
.btn--cream:hover { background: var(--brass); border-color: var(--brass); color: var(--navy-deep); }

.btn--small { padding: 10px 18px; font-size: 0.75rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* --- Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(184,137,58,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(14,42,61,0.6) 0%, transparent 60%),
    linear-gradient(180deg, #0a1f30 0%, #0E2A3D 50%, #081927 100%);
  z-index: 0;
}

.hero__horizon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(180deg, transparent 0%, rgba(8,25,39,0.4) 60%, rgba(8,25,39,0.85) 100%);
  z-index: 1;
}

.hero__illus {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  background-image: url('../img/hero-sail.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Subtle wave/noise overlay */
.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.6'/></svg>");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px 32px 80px;
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(2.8rem, 6vw + 1rem, 6.5rem);
  font-weight: 300;
  line-height: 0.98;
  margin-bottom: 0.4em;
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--brass);
  font-weight: 300;
}

.hero__sub {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.4vw + 0.5rem, 1.4rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(244, 239, 230, 0.9);
  max-width: 50ch;
  margin-bottom: 2.4em;
  line-height: 1.5;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 44px;
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid rgba(244, 239, 230, 0.18);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.65);
}
.hero__meta span strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brass);
  font-weight: 400;
  margin-top: 6px;
}

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

/* Hero scroll cue */
.hero__cue {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero__cue::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--brass) 0%, transparent 100%);
  animation: cueDrop 2s ease-in-out infinite;
}

@keyframes cueDrop {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 0.6; }
  50%      { transform: scaleY(0.4); transform-origin: top; opacity: 1; }
}

@media (max-width: 600px) {
  .hero__cue { display: none; }
}

/* --- Service cards --------------------------------------------------------- */
.service-card {
  background: var(--white);
  padding: 44px 38px 38px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .35s ease, box-shadow .35s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--brass);
  transition: width .4s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(14, 42, 61, 0.18);
}
.service-card:hover::before { width: 100%; }

.service-card__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--brass-deep);
  letter-spacing: 0.05em;
}

.service-card h3 { margin-bottom: 4px; }

.service-card__price {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--navy);
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.service-card__price small {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-soft);
  font-style: normal;
  margin-top: 4px;
}

/* --- Credentials list ------------------------------------------------------ */
.credentials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}
.credentials li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 24px;
  align-items: baseline;
}
.credentials li:last-child { border-bottom: none; }
.credentials li .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass-deep);
  font-size: 0.9rem;
}
.credentials li strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}
.credentials li span {
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.5;
}

/* --- Itinerary list -------------------------------------------------------- */
.itinerary {
  list-style: none;
  padding: 0;
  margin: 0;
}
.itinerary li {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: baseline;
}
.itinerary li:last-child { border-bottom: none; }
.itinerary .place {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 400;
}
.itinerary .desc { color: var(--slate); font-size: 0.95rem; }

@media (max-width: 600px) {
  .itinerary li { grid-template-columns: 1fr; gap: 8px; }
}

/* --- Quote / Pull ---------------------------------------------------------- */
.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.4rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
  color: var(--cream);
  max-width: 22ch;
  position: relative;
}
.pullquote::before {
  content: '“';
  font-family: var(--serif);
  font-size: 6rem;
  color: var(--brass);
  position: absolute;
  top: -50px;
  left: -20px;
  line-height: 1;
  opacity: 0.5;
}
.pullquote-attr {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 28px;
  font-weight: 500;
}

/* --- Stat strip ------------------------------------------------------------ */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-strip > div {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat-strip > div:last-child { border-right: none; }
.stat-strip strong {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--brass-deep);
  display: block;
  line-height: 1;
}
.stat-strip span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 12px;
  display: block;
}

@media (max-width: 720px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip > div { border-bottom: 1px solid var(--line); }
  .stat-strip > div:nth-child(2) { border-right: none; }
}

/* --- Contact-block --------------------------------------------------------- */
.contact-card {
  background: var(--cream);
  padding: 56px 48px;
  border: 1px solid var(--line);
  position: relative;
}
.contact-card::after {
  content: '';
  position: absolute;
  top: -1px; right: -1px;
  width: 60px;
  height: 60px;
  border-top: 2px solid var(--brass);
  border-right: 2px solid var(--brass);
}
.contact-card::before {
  content: '';
  position: absolute;
  bottom: -1px; left: -1px;
  width: 60px;
  height: 60px;
  border-bottom: 2px solid var(--brass);
  border-left: 2px solid var(--brass);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 20px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate-soft);
  font-weight: 600;
}
.contact-list .value {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
}
.contact-list .value a:hover { color: var(--brass-deep); }

@media (max-width: 600px) {
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .contact-card { padding: 36px 28px; }
}

/* --- Footer ---------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(244, 239, 230, 0.7);
  padding: 72px 0 36px;
  font-size: 0.88rem;
}
.site-footer a { color: rgba(244, 239, 230, 0.85); }
.site-footer a:hover { color: var(--brass); }

.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
}

.site-footer h4 {
  color: var(--brass);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 600;
  margin: 0 0 18px;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }

.site-footer__brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 12px;
  font-weight: 400;
}
.site-footer__tag {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(244, 239, 230, 0.55);
  max-width: 36ch;
  margin: 0;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 0.78rem;
  color: rgba(244, 239, 230, 0.5);
}

@media (max-width: 880px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 540px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

/* --- Page header (interior pages) ----------------------------------------- */
.page-head {
  background: var(--navy);
  color: var(--cream);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-head__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(184,137,58,0.18) 0%, transparent 55%),
    linear-gradient(180deg, #0E2A3D 0%, #081927 100%);
  z-index: 0;
}
.page-head__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.page-head h1 { color: var(--cream); max-width: 18ch; margin-bottom: 0.3em; }
.page-head .eyebrow { color: var(--brass); }
.page-head .lead { color: rgba(244, 239, 230, 0.78); font-style: italic; }

/* --- Misc ------------------------------------------------------------------ */
.divider {
  width: 60px;
  height: 1px;
  background: var(--brass);
  margin: 32px 0;
  border: none;
}
.divider--center { margin-left: auto; margin-right: auto; }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass-deep);
  background: rgba(184, 137, 58, 0.1);
  padding: 6px 12px;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* --- Reveal animation ----------------------------------------------------- */
/* Progressive enhancement: only hide elements when JS is active.
   The .js class is added by site.js immediately on load, so users
   without JS (or screenshot tools) still see all content. */
/* Reveal animations: only when JS sets .js on <html>.
   Without JS, content is fully visible — no fade needed. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: revealIn .9s ease forwards;
}
.js .reveal:nth-of-type(2) { animation-delay: .08s; }
.js .reveal:nth-of-type(3) { animation-delay: .16s; }
.js .reveal:nth-of-type(4) { animation-delay: .24s; }
.js .reveal:nth-of-type(5) { animation-delay: .32s; }

@keyframes revealIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { animation: none; opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- Responsive print (for resumes / pdfs) -------------------------------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero__cue { display: none; }
  body { color: #000; background: #fff; }
}

/* ==========================================================================
   KAPETAN KING — Additional styles for Yacht Services & ASA Training pages
   Append these to the end of assets/css/style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   PRICING TABLE — used on yacht-services.html
   Editorial, refined, navy/cream/brass palette
   -------------------------------------------------------------------------- */
.pricing-table {
  background: var(--cream);
  border: 1px solid rgba(14, 42, 61, 0.12);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(14, 42, 61, 0.06);
}

.pricing-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pricing-table thead {
  background: var(--navy);
  color: var(--cream);
}

.pricing-table thead th {
  padding: 18px 24px;
  text-align: left;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pricing-table thead th:nth-child(2) {
  text-align: right;
  width: 180px;
}

.pricing-table tbody tr {
  border-top: 1px solid rgba(14, 42, 61, 0.08);
  transition: background 0.18s ease;
}

.pricing-table tbody tr:hover {
  background: rgba(184, 137, 58, 0.04);
}

.pricing-table tbody td {
  padding: 20px 24px;
  vertical-align: top;
  color: var(--navy);
}

.pricing-table tbody td:nth-child(2) {
  text-align: right;
  white-space: nowrap;
}

.pricing-table .price {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--brass);
  line-height: 1.2;
}

.pricing-table .price small {
  display: block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(14, 42, 61, 0.55);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.pricing-table .tag {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  background: rgba(184, 137, 58, 0.12);
  color: var(--brass);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .pricing-table {
    font-size: 0.88rem;
  }
  .pricing-table thead th,
  .pricing-table tbody td {
    padding: 14px 16px;
  }
  .pricing-table .tag {
    display: block;
    margin: 6px 0 0;
    width: fit-content;
  }
  .pricing-table thead th:nth-child(2) {
    width: auto;
  }
}

/* --------------------------------------------------------------------------
   CALLOUT CARD — used on training.html for the "Quick Facts" sidebar
   -------------------------------------------------------------------------- */
.callout-card {
  background: var(--navy);
  color: var(--cream);
  padding: 40px 36px;
  border-radius: 4px;
  border-left: 3px solid var(--brass);
}

.callout-card .eyebrow {
  margin-bottom: 20px;
  display: block;
}

.callout-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.callout-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(244, 239, 230, 0.85);
}

.callout-list li:last-child {
  border-bottom: none;
}

.callout-list li strong {
  color: var(--cream);
  font-weight: 600;
  display: inline-block;
  margin-right: 4px;
}

/* --------------------------------------------------------------------------
   COURSE META — fact strip below each ASA course description
   -------------------------------------------------------------------------- */
.course-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--cream);
  border: 1px solid rgba(14, 42, 61, 0.12);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(14, 42, 61, 0.04);
}

.course-meta__item {
  padding: 24px 28px;
  border-right: 1px solid rgba(14, 42, 61, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.course-meta__item:last-child {
  border-right: none;
}

.course-meta__label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(14, 42, 61, 0.55);
}

.course-meta__value {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.3;
}

@media (max-width: 720px) {
  .course-meta {
    grid-template-columns: repeat(2, 1fr);
  }
  .course-meta__item:nth-child(2) {
    border-right: none;
  }
  .course-meta__item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(14, 42, 61, 0.08);
  }
}

/* --------------------------------------------------------------------------
   FAQ — used on training.html
   -------------------------------------------------------------------------- */
.faq {
  max-width: 820px;
}

.faq__item {
  padding: 32px 0;
  border-bottom: 1px solid rgba(14, 42, 61, 0.12);
}

.faq__item:first-child {
  padding-top: 0;
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__item h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.faq__item p {
  margin: 0;
  color: rgba(14, 42, 61, 0.78);
  line-height: 1.7;
}

/* --- Cookie consent banner + footer legal --------------------------------- */
.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--navy-deep);
  color: rgba(244, 239, 230, 0.82);
  border-top: 1px solid rgba(184, 137, 58, 0.45);
  box-shadow: 0 -8px 40px rgba(8, 25, 39, 0.35);
}
.cc-banner[hidden] { display: none; }

.cc-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.cc-banner__text { flex: 1 1 460px; min-width: 280px; }

.cc-banner__title {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 6px;
  font-weight: 400;
}

.cc-banner__text p {
  margin: 0;
  max-width: 70ch;
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(244, 239, 230, 0.7);
}
.cc-banner__text a { color: var(--brass); text-decoration: underline; text-underline-offset: 2px; }
.cc-banner__text a:hover { color: var(--cream); }

.cc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 0 0 auto;
}

.cc-btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 0;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.cc-btn--accept {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--navy-deep);
}
.cc-btn--accept:hover { background: var(--cream); border-color: var(--cream); }
.cc-btn--ghost {
  background: transparent;
  border-color: rgba(244, 239, 230, 0.45);
  color: var(--cream);
}
.cc-btn--ghost:hover { background: rgba(244, 239, 230, 0.1); border-color: var(--cream); }

@media (max-width: 640px) {
  .cc-banner__inner { padding: 18px 20px; }
  .cc-banner__actions { width: 100%; }
  .cc-btn { flex: 1 1 auto; text-align: center; }
}

/* Footer legal links row */
.site-footer__legal {
  flex-basis: 100%;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 239, 230, 0.1);
  color: rgba(244, 239, 230, 0.5);
}
.site-footer__legal a { color: rgba(244, 239, 230, 0.7); }
.site-footer__legal a:hover { color: var(--brass); }

/* --- Legal / policy page prose -------------------------------------------- */
.legal {
  max-width: 800px;
  margin: 0 auto;
}
.legal h2 {
  font-size: 1.5rem;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--brass-deep);
  margin: 28px 0 10px;
}
.legal p { color: rgba(14, 42, 61, 0.82); line-height: 1.75; }
.legal ul { margin: 0 0 1.2em; padding-left: 1.25em; color: rgba(14, 42, 61, 0.82); line-height: 1.75; }
.legal ul li { margin-bottom: 8px; }
.legal a { color: var(--brass-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--navy); }
.legal__meta {
  font-size: 0.85rem;
  color: var(--slate-soft);
  font-style: italic;
  font-family: var(--serif);
  margin-bottom: 40px;
}
.legal__card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  padding: 28px 32px;
  margin: 24px 0;
}
.legal__card p:last-child { margin-bottom: 0; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 0.9rem;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: rgba(14, 42, 61, 0.82);
}
.legal-table th {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 600;
}
