/* Palm Beach Training Center — concept site
   Lake paper, deep water, brass. Mobile first. */

:root {
  --ink: #142428;
  --ink-soft: #3d5156;
  --deep: #0c2429;
  --deep-2: #12383f;
  --lake: #0f5c64;
  --lake-bright: #1a7c86;
  --paper: #f7f4ee;
  --paper-2: #efeae1;
  --foam: #fffcf7;
  --sand: #e4d3b8;
  --brass: #a8743c;
  --brass-bright: #e0b15a;
  --line: rgba(20, 36, 40, 0.12);
  --line-strong: rgba(20, 36, 40, 0.22);
  --danger: #8a332c;
  --ok: #1d5c45;
  --shadow: 0 18px 50px rgba(12, 36, 41, 0.12);
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --header: 4.4rem;
  --wrap: 1120px;
  --content: 72ch;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

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

a { color: var(--lake); text-underline-offset: 0.18em; }
a:hover { color: var(--deep); }

:focus-visible {
  outline: 3px solid var(--brass-bright);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--foam);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  z-index: 50;
  border-radius: 4px;
}
.skip:focus { top: 0.6rem; }

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.wrap-narrow { width: min(760px, calc(100% - 2rem)); margin-inline: auto; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.6rem;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; }

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.eyebrow,
.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.7rem;
}

.kicker.sample { color: var(--danger); }

/* Header ------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header);
  background: rgba(247, 244, 238, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header);
  width: min(var(--wrap), calc(100% - 1.4rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand:hover { color: var(--ink); }

.brand-mark { flex: none; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 560;
  white-space: nowrap;
}
.brand-short { display: none; }
.brand-place {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.nav-toggle-bars {
  width: 1rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.site-nav {
  display: none;
}
.site-nav.is-open { display: block; }

@media (max-width: 520px) {
  .brand-place { display: none; }
  .brand-long { display: none; }
  .brand-short { display: inline; }
  .brand-name { font-size: 1.15rem; }
}

@media (max-width: 1099px) {
  .site-nav {
    position: fixed;
    z-index: 40;
    inset: var(--header) 0 0 0;
    background: var(--paper);
    padding: 0.5rem 1.25rem 2rem;
    overflow: auto;
  }
  .site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    font-size: 1.25rem;
    font-family: var(--serif);
  }
  .site-nav a[aria-current="page"] { color: var(--lake); }
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line-strong);
  background: var(--foam);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
}
.cart-btn span {
  background: var(--deep);
  color: var(--paper);
  border-radius: 999px;
  min-width: 1.3rem;
  height: 1.3rem;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
}

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    margin-left: auto;
  }
  .site-nav ul {
    display: flex;
    gap: 0.1rem 0.62rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
  .site-nav a {
    text-decoration: none;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 500;
    white-space: nowrap;
  }
  .site-nav a[aria-current="page"] {
    color: var(--lake);
    box-shadow: inset 0 -2px 0 var(--brass);
  }
  .cart-btn { margin-left: 0.4rem; }
  .brand-name { font-size: 1.12rem; white-space: normal; }
}

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

.hero {
  display: grid;
  background: var(--deep);
  color: var(--paper);
}

.hero-media {
  min-height: 46vw;
  max-height: 380px;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  min-height: 220px;
}

.hero-copy {
  padding: 1.6rem 1.15rem 2.2rem;
}
.hero-copy .eyebrow { color: var(--brass-bright); }
.hero-copy h1 { color: var(--foam); margin-bottom: 0.8rem; }
.hero-copy .lede { color: rgba(247, 244, 238, 0.86); }

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 560;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
}
.btn-primary { background: var(--brass-bright); color: var(--deep); }
.btn-primary:hover { background: #f0c97a; color: var(--deep); }
.btn-ghost {
  background: transparent;
  color: var(--foam);
  border-color: rgba(255, 252, 247, 0.4);
}
.btn-ghost:hover { background: rgba(255, 252, 247, 0.08); color: var(--foam); }
.btn-lake { background: var(--deep); color: var(--paper); }
.btn-lake:hover { background: var(--deep-2); color: var(--paper); }
.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn[disabled], .btn:disabled { opacity: 0.55; cursor: not-allowed; }

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(280px, 0.9fr) 1.15fr;
    min-height: calc(100vh - var(--header));
    min-height: calc(100dvh - var(--header));
  }
  .hero-media { max-height: none; min-height: 100%; order: 2; }
  .hero-media img { min-height: 100%; height: 100%; }
  .hero-copy {
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3.5rem 3rem 3.5rem 4vw;
  }
}

/* Facts + sections ------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--foam);
}
.facts div {
  padding: 0.95rem 1rem;
  border-top: 1px solid var(--line);
}
.facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}
.facts dd { margin: 0.2rem 0 0; font-family: var(--serif); font-size: 1.05rem; }

@media (min-width: 800px) {
  .facts { grid-template-columns: repeat(6, 1fr); }
  .facts div { border-top: 0; border-right: 1px solid var(--line); }
  .facts div:last-child { border-right: 0; }
}

.section { padding: 3.5rem 0; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
}
.section-head p { margin: 0; color: var(--ink-soft); max-width: 62ch; }

.split {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}
.split img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}
.frame {
  background: var(--foam);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

@media (min-width: 800px) {
  .split { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
  .split.reverse { grid-template-columns: 0.95fr 1.05fr; }
  .split.reverse .split-copy { order: 2; }
}

.cards {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem 1.2rem 1.3rem;
  text-decoration: none;
  color: inherit;
  display: block;
}
a.card:hover {
  border-color: var(--lake);
  color: inherit;
  transform: translateY(-2px);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card .meta { color: var(--ink-soft); font-size: 0.95rem; }

@media (min-width: 720px) {
  .cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.band {
  background: var(--deep);
  color: var(--paper);
}
.band .eyebrow { color: var(--brass-bright); }
.band a { color: var(--brass-bright); }
.pull {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.25;
  margin: 0 0 1rem;
}
.cite { color: rgba(247, 244, 238, 0.7); font-size: 0.95rem; }

.photo-row {
  display: grid;
  gap: 0.8rem;
}
.photo-row figure { margin: 0; }
.photo-row img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
}
.photo-row figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}
@media (min-width: 800px) {
  .photo-row { grid-template-columns: 1.3fr 1fr; }
  .photo-row img { height: 360px; }
}

.note, .callout {
  background: var(--paper-2);
  border-left: 3px solid var(--brass);
  padding: 0.9rem 1rem;
  border-radius: 0 6px 6px 0;
  margin: 1.2rem 0;
}
.callout strong { font-weight: 600; }
.callout.warn { border-left-color: var(--danger); }

.list {
  padding-left: 1.1rem;
  margin: 0 0 1rem;
}
.list li { margin: 0.35rem 0; }

.page-hero {
  padding: 2.4rem 0 0.4rem;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }
.prose { max-width: var(--content); }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  background: var(--foam);
}
th, td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }

.map-frame {
  border: 1px solid var(--line);
  width: 100%;
  height: 420px;
  border-radius: 8px;
  background: var(--paper-2);
}
.calendar-embed {
  min-height: 640px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--foam);
}
.calendar-embed iframe { width: 100%; min-height: 640px; border: 0; }
.address-list { list-style: none; padding: 0; margin: 0; }
.address-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.address-list strong { display: block; font-family: var(--serif); font-size: 1.15rem; }

/* Blog -------------------------------------------------- */

.article-list { display: grid; gap: 1rem; }
.article-card {
  display: grid;
  gap: 0.3rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.article-card:hover h2 { color: var(--lake); }
.article-card h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); margin: 0; }
.article-card p { margin: 0.3rem 0 0; color: var(--ink-soft); }

.sample-banner {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: #f8ebe6;
  color: #5e241e;
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
}
.sample-banner strong { font-weight: 650; }

.post-meta { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.2rem; }

/* Videos ------------------------------------------------ */

.video-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .video-grid { grid-template-columns: 1fr 1fr; } }

.video-card {
  position: relative;
  border: 0;
  padding: 0;
  background: var(--deep);
  color: var(--foam);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  min-height: 240px;
  display: block;
  width: 100%;
}
.video-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  opacity: 0.72;
}
.video-card figcaption, .video-card .video-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1rem 1.05rem;
  background: linear-gradient(transparent, rgba(8, 20, 24, 0.92));
}
.video-card h2, .video-card h3 { color: var(--foam); font-size: 1.4rem; margin: 0.2rem 0; }
.play {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--brass-bright);
  color: var(--deep);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}
.badge {
  display: inline-block;
  background: var(--danger);
  color: white;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

/* Shop -------------------------------------------------- */

.product-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .product-grid { grid-template-columns: 1fr 1fr 1fr; } }

.product {
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-swatch {
  min-height: 150px;
  display: grid;
  place-items: center;
  background: var(--swatch, var(--lake));
  color: var(--swatch-ink, #f7f4ee);
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}
.product-body { padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.product-body h2 { font-size: 1.45rem; }
.product-body p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.price { color: var(--ink) !important; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; font-weight: 560; }
select, input, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  width: 100%;
}
textarea { min-height: 8rem; resize: vertical; }
.product-body .btn { margin-top: 0.3rem; }
.fine { font-size: 0.82rem !important; }
.status { min-height: 1.2em; font-size: 0.9rem; color: var(--ok); }

/* Forms, dialog, footer -------------------------------- */

form.stack { display: grid; gap: 0.8rem; max-width: 36rem; }
.form-row { display: grid; gap: 0.8rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

dialog {
  border: 0;
  border-radius: 10px;
  padding: 0;
  width: min(440px, calc(100% - 2rem));
  background: var(--foam);
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(12, 36, 41, 0.55); }
.dialog-body { padding: 1.2rem 1.2rem 1.3rem; }
.dialog-body h2 { font-size: 1.6rem; }
.cart-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.cart-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-list button {
  font: inherit;
  font-size: 0.85rem;
  background: transparent;
  border: 0;
  color: var(--danger);
  cursor: pointer;
  text-decoration: underline;
}
.dialog-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.site-footer {
  background: var(--deep);
  color: rgba(247, 244, 238, 0.86);
  padding: 2.5rem 0 1.4rem;
  margin-top: 1rem;
}
.site-footer a { color: var(--brass-bright); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  gap: 1.4rem;
}
.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-bright);
  font-weight: 600;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.demo-note {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(247, 244, 238, 0.16);
  font-size: 0.92rem;
}
.demo-note strong { color: var(--foam); }
.legal {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: rgba(247, 244, 238, 0.6);
}

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  margin: 0 0 1rem;
}
.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--deep);
  color: var(--paper);
  font-size: 1rem;
}

blockquote {
  margin: 1.2rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--brass);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.35;
}
blockquote footer { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.5rem; }

hr.quiet { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.card:hover { transform: none; }
}
