/* Stories.space — SEO/AEO page skin
   Brand: warm, quiet, earthy. Off-white / beige / grey / black / anchoring red.
   Content-first: readable copy, real HTML tables, FAQ, sources. */

:root {
  --cream: #f6f1e8;
  --page: #fbf8f2;
  --sand: #efe8db;
  --beige: #e8ddd0;
  --line: #ddd4c6;
  --ink: #1f1c18;
  --ink-soft: #2a2722;
  --muted: #6a635a;
  --grey: #8a837a;
  --red: #b33a2b;
  --red-hover: #922f23;
  --red-soft: #f4e4e0;
  --gold: #8f6328;
  --white: #fffcf7;
  --shadow: 0 18px 40px rgba(31, 28, 24, 0.08);
  --radius: 14px;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --header-h: 78px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.7;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-hover); text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .navbar {
  padding: 0.85rem 0;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink) !important;
  text-decoration: none !important;
  line-height: 1;
}

.brand-mark span {
  color: var(--red);
}

.nav-link {
  color: var(--ink-soft) !important;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red) !important;
}

.navbar-toggler {
  border: 1px solid var(--line);
  padding: 0.4rem 0.55rem;
}

.navbar-toggler:focus { box-shadow: none; }

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231f1c18' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.45rem;
  box-shadow: var(--shadow);
}

.dropdown-item {
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 0.45rem 0.8rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--sand);
  color: var(--red);
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.35rem;
  letter-spacing: 0.01em;
}

.btn-stories {
  background: var(--red);
  color: #fff !important;
  border: 1px solid var(--red);
  text-decoration: none !important;
}

.btn-stories:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: #fff !important;
}

.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--ink);
  text-decoration: none !important;
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--page) !important;
}

.btn-light-cream {
  background: var(--white);
  color: var(--ink) !important;
  border: 1px solid var(--line);
  text-decoration: none !important;
}

.btn-light-cream:hover {
  background: var(--sand);
}

/* ---------- Hero ---------- */
.page-hero {
  padding: 2.4rem 0 1.2rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.crumbs .sep { opacity: 0.5; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.55rem);
  line-height: 1.12;
  margin: 0 0 1rem;
}

.lead-answer {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 42rem;
  margin-bottom: 1.35rem;
}

.hero-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 320px;
  background: var(--sand);
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.photo-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(251, 248, 242, 0.9);
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.img-needed {
  background:
    linear-gradient(180deg, rgba(31, 28, 24, 0.05), rgba(31, 28, 24, 0.28)),
    var(--sand);
  border: 1px dashed #cbbda6;
  min-height: 220px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  padding: 1.5rem;
  font-size: 0.88rem;
}

.img-needed i { font-size: 1.7rem; color: var(--gold); margin-bottom: 0.4rem; }

/* ---------- Chips / facts ---------- */
.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.1rem 0 0.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--sand);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none !important;
}

.chip i { color: var(--red); }

/* ---------- Layout / content ---------- */
.seo-wrap {
  max-width: 820px;
}

.section {
  padding: 2.6rem 0;
}

.section-alt {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.section h3 {
  font-size: 1.28rem;
  margin: 1.6rem 0 0.7rem;
}

.section p { margin-bottom: 1rem; color: var(--ink-soft); }
.section li { color: var(--ink-soft); }

.tldr {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 12px;
  padding: 1.15rem 1.3rem 1.05rem;
  margin: 1.4rem 0 0.4rem;
}

.tldr .label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.45rem;
}

.tldr ul { margin: 0; padding-left: 1.15rem; }
.tldr li { margin: 0.28rem 0; font-size: 0.98rem; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  margin: 0.9rem 0 1.15rem;
}

.table-stories {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-stories th {
  background: #3a332c;
  color: var(--page);
  font-weight: 600;
  text-align: left;
  padding: 0.8rem 1rem;
  border: 0;
  white-space: nowrap;
}

.table-stories td {
  padding: 0.78rem 1rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink);
}

.table-stories tbody tr:nth-child(even) td {
  background: #faf6ee;
}

.table-stories td.price,
.table-stories .price {
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

.table-stories td.key {
  background: #f6efe3;
  font-weight: 600;
  white-space: nowrap;
  width: 28%;
}

.table-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: -0.35rem;
}

/* ---------- Cards ---------- */
.loc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.loc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.loc-card img,
.loc-card .img-needed {
  height: 180px;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
  min-height: 180px;
}

.loc-card .body {
  padding: 1.05rem 1.15rem 1.2rem;
}

.loc-card h3 {
  font-size: 1.28rem;
  margin: 0 0 0.35rem;
}

.loc-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.loc-card h3 a:hover { color: var(--red); }

.loc-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.include-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.2rem;
  margin: 1rem 0;
}

.include-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.include-item i { color: var(--red); font-size: 1.15rem; }

.quote-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.25rem 1.15rem;
  height: 100%;
}

.quote-card .stars { color: var(--gold); letter-spacing: 0.08em; margin-bottom: 0.55rem; }
.quote-card p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.quote-card .who {
  font-size: 0.86rem;
  color: var(--muted);
  font-style: normal;
  font-family: var(--sans);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.check-list i {
  color: var(--red);
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1rem;
  text-align: center;
}

.stat .n {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--red);
  display: block;
  margin-bottom: 0.35rem;
}

.stat .l {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq .accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.faq .accordion-button {
  background: transparent;
  box-shadow: none !important;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  padding: 1.05rem 0;
}

.faq .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--red);
}

.faq .accordion-button::after { filter: none; }
.faq .accordion-body {
  padding: 0 0 1.05rem;
  color: var(--muted);
}

/* ---------- Sources / meta ---------- */
.sources {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
}

.page-meta {
  font-size: 0.82rem;
  color: var(--grey);
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 0.9rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: #2a241f;
  color: var(--page);
  padding: 3.4rem 0;
}

.cta-band h2 {
  color: var(--page);
  margin-bottom: 0.7rem;
}

.cta-band p { color: #d8d0c4; max-width: 36rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1c1916;
  color: #cfc6ba;
  padding: 3.2rem 0 1.6rem;
  font-size: 0.95rem;
}

.site-footer h3,
.site-footer .brand-mark { color: #f6f1e8; }

.site-footer a { color: #e8ddd0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer .tiny {
  border-top: 1px solid #3a342e;
  margin-top: 2rem;
  padding-top: 1.1rem;
  font-size: 0.82rem;
  color: #9a9186;
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1050;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  text-decoration: none !important;
}

.wa-float:hover { color: #fff !important; transform: scale(1.05); }

/* ---------- Preview hub ---------- */
.hub-hero {
  padding: 4.5rem 0 2.5rem;
}

.hub-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hub-card .type {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.hub-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.map-embed {
  border: 0;
  border-radius: 14px;
  width: 100%;
  height: 280px;
  filter: grayscale(0.15) contrast(0.95);
}

@media (max-width: 991.98px) {
  .hero-photo img { height: 280px; }
  .stats { grid-template-columns: 1fr; }
  .include-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  h1 { font-size: 2rem; }
  .cta-actions .btn { width: 100%; }
}
