/* ============================================================
   Central Park Guide Tours — redesign
   Token system
   ============================================================ */
:root {
  --green: #1e3a29;       /* Park Hunter Green — primary dark */
  --green-deep: #142a1d;  /* darker shade for depth/gradients */
  --brass: #b08d46;       /* Aged Brass — borders, icons */
  --brass-text: #d8b463;  /* lightened brass for text-on-dark contrast */
  --brownstone: #8b5e3c;  /* Brownstone accent */
  --iron: #23211e;        /* Cast Iron — near-black */
  --parchment: #ede7d8;   /* Stone Parchment background */
  --parchment-dim: #e2dac6;
  --verdigris: #7fa396;   /* weathered bronze patina accent */
  --paper-line: rgba(35,33,30,0.14);

  --display: "Fraunces", Georgia, serif;
  --body: "Libre Franklin", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", monospace;

  --measure: 62ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--iron);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; color: var(--iron); }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-text);
}
section .eyebrow { color: var(--brownstone); }

.rule {
  width: 46px;
  height: 2px;
  background: var(--brass);
  border: none;
  margin: 18px 0;
}

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(30, 58, 41, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(184,141,70,0.35);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--parchment);
}
.brand-mark { width: 30px; height: 34px; flex-shrink: 0; }
.brand-name {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--parchment);
  line-height: 1.1;
}
.brand-sub {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--parchment);
  font-size: 14.5px;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { border-color: var(--brass); color: var(--brass-text); }
.nav-cta {
  background: var(--brass);
  color: var(--iron) !important;
  padding: 9px 18px;
  border-radius: 2px;
  font-weight: 600;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--brass-text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--brass);
  color: var(--parchment);
  width: 40px;
  height: 36px;
  border-radius: 2px;
  cursor: pointer;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: var(--green-deep);
  color: var(--parchment);
  overflow: hidden;
  padding: 88px 0 96px;
}
.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.85) contrast(1.02);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,42,29,0.86) 0%, rgba(20,42,29,0.93) 55%, rgba(20,42,29,0.97) 100%);
}
.hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  z-index: 1;
}
.hero-map path {
  fill: none;
  stroke: rgba(237,231,216,0.28);
  stroke-width: 2;
}
.hero-map .lake { fill: rgba(127,163,150,0.15); stroke: rgba(127,163,150,0.4); }
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.gate-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-text);
  border: 1px solid rgba(184,141,70,0.5);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 28px;
}
.gate-eyebrow svg { width: 14px; height: 14px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.06;
  color: var(--parchment);
  max-width: 15ch;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--brass-text);
}
.hero-sub {
  margin-top: 24px;
  max-width: 46ch;
  font-size: 18px;
  color: rgba(237,231,216,0.82);
}
.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brass);
  color: var(--iron);
  position: relative;
}
.btn-primary::before,
.btn-primary::after {
  content: "";
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(35,33,30,0.35);
  top: 6px;
}
.btn-primary::before { left: 6px; }
.btn-primary::after { right: 6px; }
.btn-primary:hover { background: var(--brass-text); box-shadow: 0 4px 14px rgba(184,141,70,0.35); }
.btn-ghost {
  border-color: rgba(237,231,216,0.5);
  color: var(--parchment);
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-text); }

/* ---------------- Plaque / mission strip ---------------- */
.plaque {
  background: var(--iron);
  color: var(--parchment);
  padding: 64px 0;
  text-align: center;
}
.plaque .rule { margin: 0 auto 24px; }
.plaque blockquote {
  margin: 0 auto;
  max-width: 58ch;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.5;
  color: var(--parchment);
}
.plaque cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-text);
}

/* ---------------- Section shell ---------------- */
.section { padding: 96px 0; }
.section-head { max-width: 62ch; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 40px);
  margin-top: 14px;
  color: var(--green);
}
.section-head p { margin-top: 16px; color: #4a4740; font-size: 16.5px; }

/* ---------------- Tour cards ---------------- */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tour-card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-top: 3px solid var(--brownstone);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.tour-card.in-view { opacity: 1; transform: translateY(0); }
.tour-card:nth-child(2) { border-top-color: var(--green); }
.tour-card:nth-child(3) { border-top-color: var(--verdigris); }

.card-photo { position: relative; height: 190px; }
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9);
}
.card-badge {
  position: absolute;
  left: 22px;
  bottom: -20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--iron);
  border: 2px solid var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-badge svg { width: 20px; height: 20px; color: var(--brass-text); }

.card-body { padding: 36px 28px 30px; }
.tour-card h3 { font-size: 21px; margin-bottom: 10px; }
.tour-card p { color: #4a4740; font-size: 15px; }
.tour-card .see-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
}
.tour-card .see-more:hover { color: var(--brownstone); }
.tour-card .see-more.disabled {
  color: #948f82;
  border-bottom-color: var(--paper-line);
  cursor: not-allowed;
}
.tour-card .see-more.disabled:hover { color: #948f82; }

.tour-card.unavailable .card-photo img { filter: grayscale(0.7) brightness(0.7); }
.tour-card.unavailable h3 { color: #6b675e; }
.tour-card.unavailable .card-badge { opacity: 0.5; }
.card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20,42,29,0.35);
}
.tour-card:not(.unavailable) .card-photo::after { display: none; }
.unavailable-badge {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: #f2d9d6;
  background: rgba(35,33,30,0.85);
  border: 1px solid #a5453b;
  padding: 8px 14px;
  border-radius: 2px;
  white-space: nowrap;
}

/* ---------------- Itinerary / signature lamppost tags ---------------- */
.itinerary-section { background: var(--parchment-dim); }
.itin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.itin-card {
  background: #fff;
  border: 1px solid var(--paper-line);
  padding: 36px 32px 40px;
}
.itin-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.itin-head h3 { font-size: 25px; color: var(--green); }
.itin-capacity {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--brownstone);
}
.itin-note { color: #4a4740; font-size: 14.5px; margin-top: 4px; margin-bottom: 30px; }

.route {
  position: relative;
  padding-left: 6px;
}
.route::before {
  content: "";
  position: absolute;
  left: 38px;
  top: 14px;
  bottom: 14px;
  width: 0;
  border-left: 2px dotted var(--brass);
}
.stop {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 13px 0;
}
.stop-photo {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}
.stop-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--paper-line);
  display: block;
}
.stop-body { padding-top: 4px; }
.stop-name { font-size: 15.5px; font-weight: 600; color: var(--iron); }
.stop-desc { font-size: 13.5px; color: #6b675e; margin-top: 2px; }
.stop.photo .stop-name::after {
  content: "camera stop";
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--verdigris);
  margin-left: 10px;
  border: 1px solid var(--verdigris);
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 400;
}

.itin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--paper-line);
  flex-wrap: wrap;
  gap: 16px;
}
.itin-footer .price-note { font-size: 13.5px; color: #6b675e; }
.itin-cta {
  background: var(--green);
  color: var(--parchment) !important;
}
.itin-cta:hover { background: var(--green-deep); box-shadow: 0 4px 14px rgba(30,58,41,0.35); }

/* ---------------- Trust strip ---------------- */
.trust {
  background: #fff;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  padding: 56px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.trust-item { border-left: 2px solid var(--brass); padding-left: 18px; }
.trust-item h4 { font-family: var(--display); font-size: 18px; color: var(--green); margin-bottom: 6px; }
.trust-item p { font-size: 14.5px; color: #4a4740; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--iron);
  color: var(--parchment);
  padding: 72px 0 32px;
}
.gate-divider { width: 100%; height: 22px; margin-bottom: 56px; opacity: 0.5; }
.gate-divider path { fill: none; stroke: var(--brass); stroke-width: 1.4; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14.5px; }
.footer-grid a { text-decoration: none; color: rgba(237,231,216,0.82); }
.footer-grid a:hover { color: var(--brass-text); }
.footer-brand p { font-size: 14px; color: rgba(237,231,216,0.65); max-width: 32ch; margin-top: 14px; }
.payment-badges { display: flex; gap: 10px; margin-top: 18px; }
.payment-badges span {
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid rgba(184,141,70,0.5);
  color: var(--brass-text);
  padding: 5px 9px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(184,141,70,0.25);
  font-size: 13px;
  color: rgba(237,231,216,0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Order modal ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20,42,29,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative;
  background: var(--parchment);
  border: 1px solid var(--brass);
  border-radius: 2px;
  max-width: 480px;
  width: 100%;
  margin: auto;
  padding: 40px 36px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--paper-line);
  background: #fff;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: var(--iron);
  cursor: pointer;
}
.modal-close:hover { border-color: var(--brass); color: var(--brownstone); }

.modal h3 {
  font-size: 26px;
  color: var(--green);
  margin-top: 10px;
}
.modal-sub { margin-top: 10px; font-size: 14.5px; color: #4a4740; }
.modal-note { margin-top: 16px; font-size: 12.5px; color: #6b675e; line-height: 1.6; }
.modal-note a { color: var(--green); text-decoration: underline; }

#orderForm { margin-top: 24px; }
.field-row { margin-bottom: 16px; }
.field-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 0; }
.field-row.two + .field-row.two { margin-top: 16px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field:last-of-type { margin-bottom: 0; }
.field span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brownstone);
}
.field span em { font-style: italic; text-transform: none; letter-spacing: 0; color: #948f82; }
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--paper-line);
  border-radius: 2px;
  background: #fff;
  color: var(--iron);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
  border-color: var(--brass);
}
.field textarea { resize: vertical; font-family: var(--body); }
.field-hint { font-size: 12.5px; color: #948f82; margin: 10px 0 18px; font-style: italic; }
.field-hint.warn { color: #a5453b; font-style: normal; }

.modal-submit { width: 100%; justify-content: center; margin-top: 6px; }
.modal .btn-ghost {
  color: var(--iron);
  border-color: var(--paper-line);
  margin-top: 24px;
}
.modal .btn-ghost:hover { border-color: var(--brass); color: var(--brownstone); }

.square-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  margin-top: 22px;
  background: #006aff;
  color: #ffffff;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1) inset;
  transition: background 0.15s ease;
}
.square-pay-btn:hover { background: #0055cc; }
.square-pay-btn svg { color: #ffffff; flex-shrink: 0; }

@media (max-width: 560px) {
  .field-row.two { grid-template-columns: 1fr; gap: 16px; }
  .modal { padding: 32px 22px 26px; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--green-deep);
    border-bottom: 1px solid rgba(184,141,70,0.35);
    padding: 8px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid rgba(184,141,70,0.2); }
  .nav-links a { display: block; padding: 14px 0; border-bottom: none; }
  .nav-links .nav-cta { display: inline-flex; margin: 14px 0 4px; }
  .site-header { position: sticky; }
  .nav { position: relative; }
  .nav-toggle { display: block; }
  .tour-grid { grid-template-columns: 1fr; }
  .itin-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 0 72px; }
  .section { padding: 64px 0; }
  .wrap, .nav, .hero-inner { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .itin-head { flex-direction: column; align-items: flex-start; }
}
