/* Saltwood Links — shared styles */
:root {
  --cream: #f1ece1;
  --cream-2: #e8e1d2;
  --paper: #faf6ed;
  --ink: #1a1a17;
  --forest: #1f2a1c;
  --forest-2: #2d3b28;
  --moss: #4a5a3e;
  --clay: #a86f4d;
  --stone: #6b6a5f;
  --line: #c9c2b1;

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--cream); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--forest);
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 500;
}

p { text-wrap: pretty; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 40px;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-light { color: var(--cream); }
.site-header.is-dark  { color: var(--ink); background: var(--cream); border-bottom-color: var(--line); }

.site-header .nav-left, .site-header .nav-right {
  display: flex; gap: 32px; align-items: center;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
}
.site-header .nav-right { justify-content: flex-end; }
.site-header a.nav-link { position: relative; padding: 6px 0; opacity: .92; }
.site-header a.nav-link:hover { opacity: 1; }
.site-header a.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-align: center;
  font-weight: 500;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 9px; letter-spacing: 0.36em; text-transform: uppercase;
  margin-top: 2px; opacity: .75; font-weight: 500;
}

.btn-book {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid currentColor; padding: 10px 18px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background .25s, color .25s;
  font-weight: 500;
}
.btn-book:hover { background: currentColor; }
.btn-book:hover span { color: var(--forest); mix-blend-mode: difference; }
.site-header.is-light .btn-book:hover { color: var(--forest); background: var(--cream); }
.site-header.is-dark  .btn-book:hover { color: var(--cream);  background: var(--forest); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  color: var(--cream);
  overflow: hidden;
}
.hero .hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.55) 100%);
}
.hero .hero-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 56px 80px;
  z-index: 2;
}
.hero h1 {
  color: var(--cream);
  font-size: clamp(56px, 8.4vw, 132px);
  line-height: 0.96;
  font-weight: 300;
  font-style: italic;
  max-width: 14ch;
  letter-spacing: -0.015em;
}
.hero .hero-meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 40px;
  gap: 40px;
}
.hero .hero-meta p {
  max-width: 42ch; font-size: 15px; opacity: .92;
}
.hero .hero-coords {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-align: right; opacity: .8;
}

/* ---------- General sections ---------- */
section { padding: 120px 56px; }
.wrap { max-width: 1280px; margin: 0 auto; }
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.col-text h2 {
  font-size: clamp(40px, 4.6vw, 72px);
  font-style: italic; font-weight: 300;
  margin: 24px 0 28px;
}
.col-text p { font-size: 16px; color: var(--ink); margin-bottom: 18px; opacity: .85; }

.image-fill {
  width: 100%;
  aspect-ratio: 4/5;
  background-size: cover; background-position: center;
}
.image-fill.tall { aspect-ratio: 3/4; }
.image-fill.wide { aspect-ratio: 16/10; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  color: var(--forest);
  border-bottom: 1px solid var(--forest);
  padding-bottom: 6px;
  margin-top: 12px;
}
.link-arrow:hover { gap: 18px; }
.link-arrow .arr { transition: transform .25s; }
.link-arrow:hover .arr { transform: translateX(4px); }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--forest); color: var(--cream);
  padding: 28px 0; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.marquee-track {
  display: flex; gap: 80px;
  font-family: var(--serif); font-style: italic; font-size: 28px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.marquee-track span { opacity: .85; }
.marquee-track .dot { font-size: 10px; align-self: center; opacity: .55; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Cards / course list ---------- */
.course-card {
  position: relative;
  display: block;
  cursor: pointer;
}
.course-card .image-fill { transition: transform .8s ease; }
.course-card:hover .image-fill { transform: scale(1.03); }
.course-card .card-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--stone); margin-bottom: 12px;
}
.course-card h3 {
  font-size: 32px; font-style: italic; font-weight: 400; margin-top: 18px;
}
.course-card .card-meta {
  margin-top: 6px; font-size: 13px; color: var(--stone);
  display: flex; gap: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest);
  color: var(--cream);
  padding: 96px 56px 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 56px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 56px;
  max-width: 1400px; margin: 0 auto;
}
.footer-grid h4 {
  color: var(--cream);
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; opacity: .65;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-grid ul a:hover { color: var(--clay); }
.footer-brand .brand-mark {
  font-family: var(--serif); font-size: 38px; font-style: italic; line-height: 1;
}
.footer-brand p { margin-top: 18px; max-width: 36ch; opacity: .75; font-size: 14px; }
.footer-newsletter form {
  display: flex; border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 8px; margin-top: 14px;
}
.footer-newsletter input {
  flex: 1; background: transparent; border: 0; color: var(--cream);
  font-family: var(--sans); font-size: 14px; outline: none;
}
.footer-newsletter input::placeholder { color: rgba(241,236,225,0.5); }
.footer-newsletter button {
  background: transparent; border: 0; color: var(--cream);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer;
}
.footer-base {
  max-width: 1400px; margin: 64px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; opacity: .6;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---------- Utility ---------- */
.spacer-lg { height: 120px; }
.divider { height: 1px; background: var(--line); margin: 0 56px; }

/* ---------- Page transitions on load ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.rise-2 { animation-delay: .15s; }
.rise-3 { animation-delay: .3s; }

/* Responsive */
@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto 1fr; padding: 16px 20px; }
  .site-header .nav-left, .site-header .nav-right { display: none; }
  .hero .hero-inner { padding: 0 24px 56px; }
  .hero .hero-meta { flex-direction: column; align-items: flex-start; }
  section { padding: 72px 24px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer { padding: 64px 24px 32px; }
}

/* =========================================
   Rate Calculator (quote list)
   ========================================= */

/* Plus button inside rate drawer tables */
.rate-add {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  margin-left: 10px; vertical-align: middle;
  background: transparent; border: 1px solid var(--forest);
  color: var(--forest); cursor: pointer; border-radius: 999px;
  font: 500 14px/1 var(--sans);
  transition: background .2s, color .2s, transform .15s;
}
.rate-add:hover { background: var(--forest); color: var(--cream); }
.rate-add:active { transform: scale(.92); }

/* Floating action button — left side */
.calc-fab {
  position: fixed; left: 24px; bottom: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--forest); color: var(--cream);
  border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.45);
  z-index: 80;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.calc-fab:hover { background: var(--forest-2); transform: translateY(-2px); }
.calc-fab svg { width: 22px; height: 22px; }
.calc-fab.pulse { animation: calc-pulse .45s ease; }
@keyframes calc-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.calc-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--clay); color: var(--cream);
  font: 500 11px/20px var(--mono); letter-spacing: .04em;
  border-radius: 999px;
  display: none; align-items: center; justify-content: center;
}

/* Overlay */
.calc-overlay {
  position: fixed; inset: 0;
  background: rgba(26,26,23,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  z-index: 95;
}
.calc-overlay.open { opacity: 1; pointer-events: auto; }

/* Drawer — left side */
.calc-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--paper);
  box-shadow: 30px 0 80px -40px rgba(0,0,0,.4);
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  z-index: 100;
  display: flex; flex-direction: column;
}
.calc-drawer.open { transform: translateX(0); }

.calc-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.calc-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--stone);
}
.calc-close {
  background: transparent; border: 0; cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--forest);
}
.calc-close:hover { color: var(--clay); }
.calc-close svg { width: 20px; height: 20px; }

.calc-body {
  flex: 1; overflow-y: auto;
  padding: 24px;
}

.calc-empty {
  text-align: center; padding: 80px 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--stone); line-height: 1.8;
}

.calc-group + .calc-group { margin-top: 28px; }
.calc-group-title {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--clay);
  font-weight: 500;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.calc-group-count {
  font-family: var(--mono); font-size: 10px;
  color: var(--stone);
  background: var(--cream-2);
  padding: 2px 7px; border-radius: 999px;
  letter-spacing: .04em;
}

.calc-row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: start; gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.calc-group .calc-row:last-child { border-bottom: 0; }
.calc-row-name {
  font-family: var(--serif); font-size: 19px; font-style: italic; font-weight: 400;
  color: var(--forest); line-height: 1.15;
}
.calc-row-ctx {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--stone);
  margin-top: 6px;
}
.calc-row-price {
  font-family: var(--mono); font-size: 13px;
  color: var(--ink); margin-top: 8px;
}
.calc-row-mult {
  color: var(--clay); margin-left: 6px;
  font-size: 12px; letter-spacing: .06em;
}
.calc-qty {
  display: inline-flex; align-items: center; gap: 0;
  margin-top: 10px;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 999px;
  overflow: hidden;
}
.calc-qty-btn {
  width: 28px; height: 26px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--forest);
  font: 500 14px/1 var(--sans);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.calc-qty-btn:hover { background: var(--forest); color: var(--cream); }
.calc-qty-val {
  min-width: 28px;
  text-align: center;
  font-family: var(--mono); font-size: 12px;
  color: var(--ink);
  padding: 0 4px;
}
.calc-remove {
  background: transparent; border: 0; cursor: pointer;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: var(--stone); border-radius: 4px;
}
.calc-remove:hover { color: var(--clay); background: rgba(168,111,77,.08); }
.calc-remove svg { width: 16px; height: 16px; }

.calc-footer {
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 20px 24px 24px;
}
.calc-sum-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 6px 0;
}
.calc-sum-row span {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--stone);
}
.calc-sum-row strong {
  font-family: var(--serif); font-size: 26px; font-style: italic; font-weight: 400;
  color: var(--forest);
}
.calc-clear {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--stone); cursor: pointer;
  font: 500 10px/1 var(--sans);
  letter-spacing: .22em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.calc-clear:hover { color: var(--clay); border-color: var(--clay); }

body.calc-open { overflow: hidden; }

@media (max-width: 600px) {
  .calc-fab { left: 16px; bottom: 16px; width: 50px; height: 50px; }
}

