/* 60 North Guest Guide - Feather & Fin Stays
   Brand: navy #123D48 / teal #1D675F / sand #CDBA9E / cream #F4EFE7
   Radius rule: buttons = pill, cards = 16px, inputs = 10px. */

:root {
  --navy: #123d48;
  --teal: #1d675f;
  --teal-soft: #2a7d73;
  --sand: #cdba9e;
  --cream: #f4efe7;
  --pale: #e7ddd0;

  --bg: var(--cream);
  --surface: #fffdf9;
  --surface-2: #f9f5ee;
  --line: #e3d8c8;
  --text: #16333b;
  --text-soft: #52666c;
  --accent: var(--teal);
  --accent-ink: #ffffff;
  --hero-bg: var(--navy);
  --hero-text: #f4efe7;
  --shadow: 0 8px 28px rgba(18, 61, 72, 0.09);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d2a33;
    --surface: #123d48;
    --surface-2: #16454f;
    --line: #24525c;
    --text: #eee8dc;
    --text-soft: #a8bcc0;
    --accent: #57b3a6;
    --accent-ink: #0d2a33;
    --hero-bg: #0a222a;
    --hero-text: #f4efe7;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  padding-bottom: 84px; /* room for the sticky action bar */
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header / nav ── */
.top {
  background: var(--hero-bg);
  color: var(--hero-text);
}
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 0;
}
.wordmark {
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 15px;
  color: var(--hero-text);
  text-decoration: none;
}
.top-nav .phone-link {
  color: var(--sand);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.hero {
  padding: 28px 0 34px;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero p {
  margin: 0;
  color: #cfdbd6;
  font-size: 1rem;
  max-width: 46ch;
}
.hero .crumbs {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--sand);
}
.hero .crumbs a { color: var(--sand); }

/* ── Sections ── */
main { padding: 26px 0 40px; }

section { margin: 0 0 34px; }

h2 {
  font-size: 1.25rem;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.02rem;
  margin: 0 0 6px;
}
p { color: var(--text); }
.muted { color: var(--text-soft); }
.small { font-size: 0.88rem; }

a { color: var(--accent); }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 14px; }

.card h3 { display: flex; align-items: center; gap: 8px; }
.card h3 i { color: var(--accent); font-size: 1.2rem; }

.card p:last-child, .card ul:last-child { margin-bottom: 0; }

/* Tile grid on the hub */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
}
.tile:active { transform: scale(0.98); }
.tile i { font-size: 1.5rem; color: var(--accent); }
.tile strong { font-size: 0.98rem; }
.tile span { font-size: 0.82rem; color: var(--text-soft); line-height: 1.4; }
.tile.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.tile.wide div { display: flex; flex-direction: column; gap: 2px; }

@media (min-width: 640px) {
  .tiles { grid-template-columns: 1fr 1fr 1fr; }
  .tile.wide { grid-column: 1 / -1; }
}

/* Key-value info rows */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.info-grid .card { margin: 0; }
.info-grid .big {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}
@media (max-width: 420px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ── Checklists ── */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
}
.checklist li + li { border-top: 1px solid var(--line); }
.checklist i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }

/* ── Steps ── */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 18px 44px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 32px;
  bottom: 2px;
  width: 2px;
  background: var(--line);
}

/* ── Callouts ── */
.callout {
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.92rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.callout i { margin-top: 2px; flex-shrink: 0; }
.callout.note { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.callout.warn {
  background: #fdf3ec;
  border: 1px solid #ecd3bd;
  color: #7a4a1f;
}
@media (prefers-color-scheme: dark) {
  .callout.warn { background: #3c2d1d; border-color: #5c452c; color: #f0cfa8; }
}

/* ── FAQ accordions ── */
.faq-search {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 18px;
}
.faq-search:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
details.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
}
details.faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}
details.faq[open] summary::after { content: "\2212"; }
details.faq .a {
  padding: 0 16px 14px;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.faq-group h2 { margin-top: 30px; }
.faq-empty { display: none; }

/* ── Fee cards ── */
.fee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fee-grid .card { margin: 0; padding: 14px 16px; }
.fee-grid .amount { font-size: 1.25rem; font-weight: 700; color: var(--accent); }
.fee-grid .label { font-size: 0.85rem; font-weight: 600; margin-top: 2px; }
.fee-grid .why { font-size: 0.8rem; color: var(--text-soft); margin-top: 4px; }
@media (max-width: 420px) { .fee-grid { grid-template-columns: 1fr; } }

/* ── Sticky action bar ── */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--hero-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px max(16px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-bottom));
}
.action-bar .inner {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.action-bar a, .action-bar button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  padding: 11px 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.action-bar .chat { background: var(--sand); color: var(--navy); }
.action-bar .text { background: rgba(255, 255, 255, 0.12); color: var(--hero-text); }
.action-bar .call { background: rgba(255, 255, 255, 0.12); color: var(--hero-text); }

/* ── Footer ── */
footer {
  padding: 30px 0 20px;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.82rem;
}
footer a { color: var(--text-soft); }

/* ── Lead gate ── */
body.gate-open { overflow: hidden; }
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 34, 42, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.gate-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
}
.gate-brand {
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
}
.gate-card h2 { margin: 0 0 6px; font-size: 1.35rem; }
.gate-sub { margin: 0 0 18px; color: var(--text-soft); font-size: 0.92rem; }
.gate-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 12px 0 6px;
}
.gate-card input, .inline-capture input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.gate-card input:focus, .inline-capture input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.gate-card input::placeholder, .inline-capture input::placeholder { color: var(--text-soft); }
.gate-error, .capture-error {
  color: #b3452c;
  font-size: 0.85rem;
  margin: 10px 0 0;
}
@media (prefers-color-scheme: dark) {
  .gate-error, .capture-error { color: #f0a08c; }
}
.gate-btn { width: 100%; margin-top: 16px; }
.gate-fine {
  margin: 14px 0 0;
  font-size: 0.75rem;
  color: var(--text-soft);
  text-align: center;
}

/* Inline capture forms (WiFi unlock, rebook list) */
.inline-capture { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.inline-capture .btn { align-self: flex-start; }
@media (min-width: 480px) {
  .inline-capture { flex-direction: row; }
  .inline-capture input { flex: 1; }
  .inline-capture .btn { align-self: auto; flex-shrink: 0; }
}
.rebook-done { color: var(--accent); font-weight: 600; margin: 12px 0 0; }

/* ── Motion (respecting reduced motion) ── */
@media (prefers-reduced-motion: no-preference) {
  .card, .tile, .hero h1, .hero p {
    animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .tile:nth-child(2) { animation-delay: 0.05s; }
  .tile:nth-child(3) { animation-delay: 0.1s; }
  .tile:nth-child(4) { animation-delay: 0.15s; }
  .tile:nth-child(5) { animation-delay: 0.2s; }
  .tile:nth-child(6) { animation-delay: 0.25s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
