/* =========================================================================
   The Travel Concierge — stylesheet
   Sections: 1 Reset & tokens · 2 Type · 3 Layout primitives · 4 Header/Footer
   5 Buttons & forms · 6 Hero · 7 Editorial sections · 8 Partner strip
   9 Offer block · 10 FAQ · 11 Legal pages · 12 Admin · 13 Responsive
   14 Member dashboard (P2) · 15 Search tabs & results (P2) · 16 Concierge chat (P2)
   17 The List / retention (P3)
   ========================================================================= */

/* ---------- 1. Reset & tokens ---------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }

:root {
  --ink: #14171C;
  --navy: #1B2A4A;
  --charcoal: #36454F;
  --parchment: #F5F0E8;
  --ivory: #F4EADE;
  --brass: #C9A66B;
  --teal: #0D4C3C;
  --teal-ink: #F4EADE;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap-max: 1180px;
  --wrap-narrow-max: 700px;
}

html { background: var(--parchment); }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--parchment);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 2. Type ----------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 0.5em 0;
  letter-spacing: -0.01em;
}

.kicker {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.kicker--brass { color: #9c7d49; }

.tabular { font-variant-numeric: tabular-nums; }

/* ---------- 3. Layout primitives ---------------------------------------- */

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.wrap--narrow {
  max-width: var(--wrap-narrow-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 5rem 0; }
.section--offset { padding-top: 6rem; }
.section__title {
  font-size: 2.4rem;
  line-height: 1.2;
  max-width: 20ch;
  margin-bottom: 2.5rem;
}

/* ---------- 4. Header / Footer ------------------------------------------- */

.site-header {
  border-bottom: 1px solid rgba(201, 166, 107, 0.4);
  background: var(--parchment);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
}

.wordmark {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
}

.site-footer {
  border-top: 1px solid rgba(201, 166, 107, 0.4);
  background: var(--ivory);
  padding: 3.5rem 0 3rem 0;
  margin-top: 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 2.5rem;
}

.site-footer__line {
  font-size: 0.85rem;
  color: var(--charcoal);
  margin: 0.3rem 0;
  max-width: 42ch;
}

.site-footer__disclosure { color: #6b5a3a; }

.wordmark--footer { margin: 0 0 0.6rem 0; }

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--charcoal);
  width: fit-content;
}

/* ---------- 5. Buttons & forms -------------------------------------------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.95rem 1.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.btn--primary {
  background: var(--teal);
  color: var(--teal-ink);
}
.btn--primary:hover { background: #0a3b2e; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: rgba(20, 23, 28, 0.05); }

.btn--wide { width: 100%; text-align: center; }

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }

.form-intro { font-size: 1.05rem; max-width: 55ch; margin-bottom: 2.5rem; color: var(--charcoal); }

.join-form { display: flex; flex-direction: column; gap: 1.4rem; }

.form-row { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.form-row--split { grid-template-columns: 1fr 1fr; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--charcoal);
}

.field input, .field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(54, 69, 79, 0.35);
  background: var(--ivory);
  color: var(--ink);
}

.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--teal);
}

.field-help { font-size: 0.8rem; color: #6b7480; margin: 0; }
.field-help--inline { display: block; font-style: italic; margin-top: 0.2rem; }

.consent-block {
  border: none;
  border-top: 1px solid rgba(201, 166, 107, 0.5);
  padding-top: 1.4rem;
  margin: 0.4rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.consent-block legend { padding: 0; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--charcoal);
  cursor: pointer;
}

.checkbox-row input { margin-top: 0.25rem; }

.form-error {
  background: rgba(178, 58, 46, 0.08);
  border: 1px solid rgba(178, 58, 46, 0.3);
  color: #8c2f22;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ---------- 6. Hero ------------------------------------------------------ */

.hero { position: relative; overflow: hidden; }

.hero__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  filter: saturate(0.85) sepia(0.12);
}

.hero__image::after { content: ""; }

.hero__row {
  position: relative;
  padding: 8rem 2rem 6rem 2rem;
}

.hero__text {
  max-width: 620px;
  background: rgba(245, 240, 232, 0.88);
  padding: 2.6rem 2.8rem;
}

.hero__headline {
  font-size: 3.4rem;
  line-height: 1.08;
  margin-bottom: 1.4rem;
}
.hero__headline em { font-style: italic; font-weight: 400; color: var(--teal); }

.hero__sub {
  font-size: 1.1rem;
  color: var(--charcoal);
  max-width: 46ch;
  margin: 0;
}

.hero__image--short { position: relative; height: 340px; filter: saturate(0.85) sepia(0.12); }
.section--image { padding: 0; }

/* ---------- 7. Editorial sections (spec list) ---------------------------- */

.spec-list {
  display: flex;
  flex-direction: column;
}

.spec-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  padding: 2.2rem 0;
  border-top: 1px solid rgba(201, 166, 107, 0.5);
}
.spec-item:last-child { border-bottom: 1px solid rgba(201, 166, 107, 0.5); }

.spec-item__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brass);
  font-weight: 300;
}

.spec-item__body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.spec-item__body p { max-width: 60ch; margin: 0; }

/* ---------- 8. Partner strip ---------------------------------------------- */

.partner-strip { padding: 3.2rem 0; text-align: center; }

.partner-strip__line {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  margin: 0 0 0.6rem 0;
}

.partner-strip__note { font-size: 0.8rem; color: #6b7480; margin: 0; }

/* ---------- 9. Offer block -------------------------------------------------- */

.section--offer {
  background: var(--navy);
  color: var(--ivory);
}

.offer__row { max-width: 720px; }

.offer__title, .section--offer .kicker { color: var(--ivory); }
.offer__title { font-size: 2.4rem; line-height: 1.18; margin-bottom: 1.2rem; }
.section--offer .kicker--brass { color: var(--brass); }

.offer__sub {
  color: rgba(244, 234, 222, 0.82);
  max-width: 55ch;
  margin-bottom: 2.2rem;
  font-size: 1.02rem;
}

/* ---------- 10. FAQ -------------------------------------------------------- */

.faq-item {
  border-top: 1px solid rgba(201, 166, 107, 0.5);
  padding: 1.3rem 0;
}
.faq-item:last-child { border-bottom: 1px solid rgba(201, 166, 107, 0.5); }

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--brass);
  font-family: var(--font-body);
}
.faq-item[open] summary::before { content: "–"; }

.faq-item p {
  margin: 0.9rem 0 0 1.2em;
  max-width: 60ch;
  color: var(--charcoal);
}

/* ---------- 11. Legal pages -------------------------------------------------- */

.section--legal { padding-top: 4rem; }
.legal-updated { font-size: 0.85rem; color: #6b7480; margin-top: -1.6rem; margin-bottom: 2.5rem; }
.legal-body h2 {
  font-size: 1.2rem;
  margin-top: 2.4rem;
}
.legal-body p, .legal-body ul { max-width: 68ch; }
.legal-body ul { padding-left: 1.3rem; }

/* ---------- 12. Admin -------------------------------------------------------- */

.section--admin { padding-top: 4rem; }

.admin-counts {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.admin-counts__n {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--ink);
}
.admin-counts__label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7480;
}

.admin-subtitle { font-size: 1.1rem; margin-top: 2.5rem; }

.admin-table-wrap { overflow-x: auto; border-top: 1px solid rgba(201, 166, 107, 0.5); }

.admin-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(54, 69, 79, 0.12);
  white-space: nowrap;
}
.admin-table th {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7480;
  font-weight: 600;
}

.admin-table input[type="text"] {
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(54, 69, 79, 0.3);
  background: var(--ivory);
  color: var(--ink);
  width: 100%;
  min-width: 9ch;
}
.admin-table input[type="checkbox"] { width: auto; }

.admin-table__actions { display: flex; gap: 0.4rem; }

.btn-mini {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.btn-mini:hover { background: rgba(20, 23, 28, 0.06); }
.btn-mini--danger { border-color: #8c2f22; color: #8c2f22; }
.btn-mini--danger:hover { background: rgba(140, 47, 34, 0.06); }

.admin-add-form { margin-top: 1.5rem; max-width: 640px; }

/* ---------- 14. Member dashboard (P2) ---------------------------------------- */

.section--dash { padding-top: 3.5rem; }

.dash-status {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--brass);
}
.status-pill--active { background: var(--teal); color: var(--teal-ink); border-color: var(--teal); }
.status-pill--none { background: transparent; color: var(--charcoal); }

.dash-status__note { font-size: 0.85rem; color: #6b7480; }
.dash-status__cta { font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; }

.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.dash-block { margin-bottom: 3rem; }
.dash-block--panel {
  background: var(--ivory);
  border: 1px solid rgba(201, 166, 107, 0.4);
  padding: 1.8rem;
}
.dash-side__text { font-size: 0.9rem; color: var(--charcoal); margin: 0 0 1.2rem 0; }

.prefs-form { display: flex; flex-direction: column; gap: 1rem; }

.deal-list { display: flex; flex-direction: column; }
.deal-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(201, 166, 107, 0.5);
}
.deal-item:last-child { border-bottom: 1px solid rgba(201, 166, 107, 0.5); }
.deal-item__body h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.deal-item__price { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.deal-item__closes { font-size: 0.78rem; color: #9c7d49; margin: 0.2rem 0 0 0; }

.savings-tile {
  border: 1px solid rgba(201, 166, 107, 0.5);
  background: var(--ivory);
  padding: 1.6rem 1.8rem;
  margin-bottom: 3rem;
  max-width: 420px;
}
.savings-tile__amount { font-family: var(--font-display); font-size: 2.1rem; color: var(--ink); margin: 0.2rem 0 0.5rem 0; }

/* ---------- 15. Search tabs & results (P2) ------------------------------------ */

.tabs__radio { position: absolute; opacity: 0; pointer-events: none; }

.tabs__nav {
  display: flex;
  gap: 0.3rem;
  border-bottom: 1px solid rgba(201, 166, 107, 0.5);
  margin-bottom: 1.6rem;
}
.tabs__nav label {
  cursor: pointer;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.7rem 1rem;
  color: #6b7480;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tabs__panel { display: none; }

#tab-flights:checked ~ .tabs__nav label[for="tab-flights"],
#tab-hotels:checked ~ .tabs__nav label[for="tab-hotels"],
#tab-cars:checked ~ .tabs__nav label[for="tab-cars"] {
  color: var(--ink);
  border-bottom-color: var(--teal);
}

#tab-flights:checked ~ #panel-flights,
#tab-hotels:checked ~ #panel-hotels,
#tab-cars:checked ~ #panel-cars {
  display: block;
}

.search-form { display: flex; flex-direction: column; gap: 1.1rem; max-width: 480px; margin-bottom: 1.6rem; }

.result-list { display: flex; flex-direction: column; margin-top: 1rem; }

.result-card {
  border-top: 1px solid rgba(201, 166, 107, 0.5);
  padding: 1.2rem 0;
}
.result-card:last-child { border-bottom: 1px solid rgba(201, 166, 107, 0.5); }
.result-card__sample {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9c7d49;
  font-weight: 600;
  margin: 0 0 0.4rem 0;
}
.result-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.result-card__meta { font-size: 0.85rem; color: #6b7480; margin: 0 0 0.4rem 0; }
.result-card__price { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); margin: 0 0 0.5rem 0; }
.result-card__link { font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 16. Concierge chat (P2) -------------------------------------------- */

.chat-thread { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2rem; }

.chat-msg { max-width: 85%; padding: 0.9rem 1.1rem; border: 1px solid rgba(201, 166, 107, 0.4); }
.chat-msg--user { align-self: flex-end; background: var(--ivory); }
.chat-msg--assistant { align-self: flex-start; background: transparent; }
.chat-msg__role {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9c7d49;
  font-weight: 600;
  margin: 0 0 0.3rem 0;
}
.chat-msg__text { margin: 0; font-size: 0.95rem; line-height: 1.6; white-space: pre-wrap; }

.chat-form { display: flex; flex-direction: column; gap: 1rem; }
.chat-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(54, 69, 79, 0.35);
  background: var(--ivory);
  color: var(--ink);
  resize: vertical;
}
.chat-form textarea:focus { outline: none; border-color: var(--teal); }
.chat-form .btn { align-self: flex-start; }

/* ---------- 17. The List / retention (P3) -------------------------------------- */

.section--the-list { padding-top: 0; }

.deal-list--the-list .deal-item--the-list { align-items: flex-start; }
.deal-item--the-list h3 a { text-decoration: none; border-bottom: 1px solid var(--brass); }

/* ---------- 13. Responsive -------------------------------------------------- */

@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .form-row--split { grid-template-columns: 1fr; }
  .hero__headline { font-size: 2.5rem; }
  .hero__text { padding: 1.8rem 1.6rem; }
  .hero__row { padding: 5rem 1.2rem 4rem 1.2rem; }
  .section__title { font-size: 1.9rem; }
  .spec-item { grid-template-columns: 60px 1fr; gap: 1.2rem; }
  .offer__title { font-size: 1.9rem; }
  .dash-grid { grid-template-columns: 1fr; }
  .chat-msg { max-width: 100%; }
}
