/* ==========================================================
   seo.css — shared stylesheet for /landing/* and /journal/*
   Aligned to the main app: same paper/ink palette, same
   Fraunces + Inter axes, same nav crest, same pill buttons,
   same footer language. Lean (~10kb) — no carousel/JS reqs.
   ========================================================== */

@font-face {
  font-family: 'TheSeasons';
  src: url('/fonts/TheSeasons-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TheSeasons';
  src: url('/fonts/TheSeasons-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TheSeasons';
  src: url('/fonts/TheSeasons-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper:      #fbf5ee;
  --paper-2:    #f5ebdb;
  --paper-3:    #efe2cc;
  --card:       #ffffff;
  --wine:       #1d2b22;
  --ink:        #1a1512;
  --ink-80:     rgba(26, 21, 18, 0.82);
  --ink-60:     rgba(26, 21, 18, 0.56);
  --ink-40:     rgba(26, 21, 18, 0.32);
  --ink-20:     rgba(26, 21, 18, 0.16);
  --hair:       rgba(26, 21, 18, 0.10);
  --hair-soft:  rgba(26, 21, 18, 0.05);
  --rose:       #b2561f;
  --rose-deep:  #7d3a12;
  --rose-soft:  #e0c9a8;
  --rose-mist:  #f2e6d0;
  --champagne:  #e8d3b3;
  --gold:       #b89368;
  --cream:      #fbf5ee;
  --cream-60:   rgba(251, 245, 238, 0.58);
  --wa:         #25d366;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --bar-h: 74px;
  --maxw: 1100px;
  --maxw-prose: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
em, i { font-style: normal; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  padding-bottom: env(safe-area-inset-bottom);
}

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

::selection { background: var(--rose); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-20); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-40); }

/* ----- Headings: Fraunces with the same axes the main app uses ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400;
  margin-bottom: 1.2rem;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin: 2.6rem 0 1rem;
  letter-spacing: -0.02em;
}
h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  margin: 1.8rem 0 0.7rem;
  letter-spacing: -0.015em;
}
h4 { font-size: 1.1rem; margin: 1.2rem 0 0.5rem; font-weight: 600; }

p, ul, ol { margin-bottom: 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 600; color: var(--ink); }
small { color: var(--ink-60); }

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ink-40);
  text-decoration-thickness: 1px;
  transition: color 0.3s var(--ease-out), text-decoration-color 0.3s var(--ease-out);
}
a:hover { color: var(--rose-deep); text-decoration-color: var(--rose); }

blockquote {
  border-left: 2px solid var(--rose);
  padding: 0.4rem 0 0.4rem 1.2rem;
  margin: 1.6rem 0;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink-80);
  letter-spacing: -0.01em;
}

/* ==========================================================
   NAV — matches the main app: floating cream bar, crest + wordmark,
   pill nav-book CTA. Sticky on scroll-down.
   ========================================================== */
.seo-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(251, 245, 238, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hair);
}
@media (min-width: 768px) {
  .seo-nav {
    position: sticky;
    top: 16px;
    margin: 16px 16px 0;
    padding: 8px 12px 8px 22px;
    border: 1px solid var(--hair);
    border-radius: 999px;
    background: rgba(251, 245, 238, 0.78);
    box-shadow: 0 12px 28px -16px rgba(26, 21, 18, 0.18);
  }
}

.seo-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.seo-nav .brand:hover { color: var(--ink); }
.seo-nav .crest {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}
.seo-nav .wordmark {
  font-family: 'TheSeasons', var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.01em;
  line-height: 1;
}
@media (min-width: 480px) { .seo-nav .wordmark { font-size: 22px; } }
@media (min-width: 768px) { .seo-nav .wordmark { font-size: 24px; } }

.seo-nav nav { margin-left: auto; }
.seo-nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 26px;
  padding: 0;
  margin: 0;
}
@media (min-width: 880px) { .seo-nav-links { display: flex; } }
.seo-nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--ink-80);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 0;
}
.seo-nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.seo-nav-links a:hover { color: var(--rose-deep); }
.seo-nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.seo-nav .book-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s var(--ease-out), transform 0.25s var(--ease-out);
}
.seo-nav .book-cta:hover { background: #2d2521; color: var(--paper); transform: translateY(-1px); }

/* ==========================================================
   Breadcrumbs
   ========================================================== */
.crumbs {
  max-width: var(--maxw);
  margin: 24px auto 0;
  padding: 0 1.4rem;
  font-size: 0.85rem;
  color: var(--ink-40);
}
.crumbs a {
  color: var(--ink-60);
  text-decoration: none;
}
.crumbs a:hover { color: var(--rose-deep); }
.crumbs span[aria-current] { color: var(--ink); }

/* ==========================================================
   Landing-page hero — paper, eyebrow, big Fraunces title
   ========================================================== */
.lp-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.6rem 1.4rem 1.4rem;
}
.lp-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--rose-deep);
  margin-bottom: 1rem;
}
.lp-sub {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink-80);
  max-width: 660px;
  margin: 1rem 0 0;
}

/* ==========================================================
   Buttons — match the main app's pill style and shimmer
   ========================================================== */
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.4rem 0 0; }

.lp-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.38s var(--ease-out),
    color 0.38s var(--ease-out),
    border-color 0.38s var(--ease-out),
    transform 0.28s var(--ease-out),
    box-shadow 0.38s var(--ease-out);
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
}
.lp-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  transition: left 0.9s var(--ease-out);
  z-index: 1;
}
.lp-btn:hover::after { left: 140%; }
.lp-btn:hover { transform: translateY(-2px); }

.lp-btn--primary {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 36px -10px rgba(178, 86, 31, 0.55);
}
.lp-btn--primary:hover {
  color: #fff;
  box-shadow: 0 22px 48px -10px rgba(178, 86, 31, 0.7);
  background: linear-gradient(135deg, var(--rose-deep) 0%, #8d3826 100%);
}

.lp-btn--ghost {
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  border-color: rgba(26, 21, 18, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lp-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--ink);
  color: var(--ink);
}

/* ==========================================================
   Article body
   ========================================================== */
.seo-article {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  padding: 1.6rem 1.4rem 3rem;
  font-size: 1.02rem;
  line-height: 1.75;
}
.seo-article p,
.seo-article li {
  color: var(--ink-80);
}

.seo-meta {
  font-size: 11px;
  color: var(--rose-deep);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.seo-lede {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  margin: 1.2rem 0 2.2rem;
  letter-spacing: -0.015em;
}

.seo-hero-img {
  width: 100%;
  border-radius: 24px;
  margin-bottom: 2rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* details/summary — match the main app's FAQ feel */
details {
  border-top: 1px solid var(--hair);
  padding: 1rem 0;
}
details:last-of-type { border-bottom: 1px solid var(--hair); }
details summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-right: 2rem;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.3s var(--ease-out);
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--ink-40);
  transition: transform 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
details[open] summary::after { content: "−"; color: var(--rose-deep); }
details:hover summary { color: var(--rose-deep); }
details[open] summary { color: var(--rose-deep); }

/* ==========================================================
   Tables
   ========================================================== */
.seo-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: 0.96rem;
}
.seo-table th, .seo-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}
.seo-table th {
  background: var(--paper-2);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.seo-table td.num,
.seo-table td:nth-child(2) { font-variant-numeric: tabular-nums; }

/* ==========================================================
   CTA card — wine bg, cream copy
   ========================================================== */
.seo-cta {
  background: var(--wine);
  color: var(--cream);
  border-radius: 28px;
  padding: 2rem 1.8rem;
  margin: 2.6rem 0;
  text-align: center;
  box-shadow: 0 24px 48px -24px rgba(29, 43, 34, 0.5);
}
.seo-cta h3 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--cream);
  margin: 0 0 0.6rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.seo-cta p {
  color: var(--cream-60);
  margin-bottom: 1.4rem;
  font-size: 0.98rem;
}
.seo-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wa);
  color: #062b16;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14.5px;
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out);
  border: none;
}
.seo-cta a:hover {
  transform: translateY(-2px);
  background: #1cb958;
  color: #062b16;
  text-decoration: none;
}

/* ==========================================================
   Card grids (room cards on landing pages, journal/landing index)
   ========================================================== */
.lp-grid {
  max-width: var(--maxw);
  margin: 1.6rem auto;
  padding: 0 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.lp-card {
  background: var(--card);
  border-radius: 22px;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--hair);
  transition: transform 0.28s var(--ease-out), border-color 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}
.lp-card:hover {
  transform: translateY(-3px);
  border-color: var(--rose-soft);
  box-shadow: 0 22px 50px -28px rgba(26, 21, 18, 0.25);
}
.lp-card h3 { margin-top: 0; }
.lp-card .price {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--rose-deep);
  margin: 0.4rem 0 0.6rem;
  letter-spacing: -0.02em;
}
.lp-card ul {
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--ink-60);
  margin-bottom: 0;
}

/* ==========================================================
   Related links
   ========================================================== */
.related {
  max-width: var(--maxw);
  margin: 3rem auto 0;
  padding: 2.2rem 1.4rem;
  border-top: 1px solid var(--hair);
}
.related h2 { margin-top: 0; font-size: 1.4rem; }
.related-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.8rem;
}
.related-list li { margin: 0; }
.related-list a {
  display: block;
  padding: 1rem 1.2rem;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--hair);
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition: transform 0.22s var(--ease-out), border-color 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.related-list a:hover {
  transform: translateY(-2px);
  border-color: var(--rose-soft);
  box-shadow: 0 18px 36px -24px rgba(26, 21, 18, 0.25);
  color: var(--ink);
}
.related-list a strong {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 0.2rem;
}
.related-list a small {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-60);
}

/* ==========================================================
   Footer — matches the main app's column layout
   ========================================================== */
.seo-footer {
  max-width: 1360px;
  margin: 4rem auto 0;
  padding: 3rem 1.6rem 2.2rem;
  border-top: 1px solid var(--hair);
  background: linear-gradient(180deg, transparent 0%, rgba(255, 251, 245, 0.8) 40%);
  font-size: 0.92rem;
  color: var(--ink-60);
}
.seo-footer p { margin-bottom: 0.4rem; }
.seo-footer a {
  color: var(--ink-80);
  text-decoration: none;
}
.seo-footer a:hover { color: var(--rose-deep); }

/* ==========================================================
   Floating WhatsApp pill
   ========================================================== */
.wa-fab {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: var(--wa);
  color: #062b16;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 16px 36px -12px rgba(18, 140, 79, 0.5);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.22s var(--ease-out), background 0.22s var(--ease-out);
}
.wa-fab:hover {
  transform: translateY(-2px);
  background: #1cb958;
  color: #062b16;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
