/* =====================================================================
   TriWa Stays — Blog styles (listing + article pages)
   All classes are prefixed "twb-" and scoped under .twb-page.
   Change brand colours / fonts ONLY in the variables below.
   ===================================================================== */
.twb-page {
  --twb-pine: #23402f;
  --twb-pine-deep: #172b20;
  --twb-gold: #c6970d;
  --twb-gold-soft: #e9d9b6;
  --twb-bark: #4a3b2c;
  --twb-stone: #f5f4ee;
  --twb-white: #ffffff;
  --twb-text: #3d3d38;
  --twb-muted: #7b7a70;
  --twb-line: #e3e0d3;
  --twb-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --twb-sans: "Jost", "Segoe UI", Roboto, Arial, sans-serif;
  font-family: var(--twb-sans);
  color: var(--twb-text);
  background: var(--twb-stone);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.twb-page *, .twb-page *::before, .twb-page *::after { box-sizing: border-box; }
.twb-page img { max-width: 100%; display: block; }
.twb-page a { text-decoration: none; }
.twb-page a:focus-visible { outline: 3px solid var(--twb-gold); outline-offset: 2px; }

/* ---------- Hero ---------- */
.twb-hero {
  position: relative; display: flex; align-items: center;
  min-height: 400px; text-align: center; color: var(--twb-white);
  background: var(--twb-pine-deep) center / cover no-repeat;
  isolation: isolate;
}
.twb-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(23,43,32,.55) 0%, rgba(23,43,32,.8) 100%);
}
.twb-hero__inner { padding: 90px 0 96px; }
.twb-hero__tag { display: inline-block; font-size: .88rem; letter-spacing: .12em; color: var(--twb-gold-soft); margin-bottom: 14px; }
.twb-hero__title {
  font-family: var(--twb-serif); font-weight: 600; color: var(--twb-white);
  font-size: clamp(2.2rem, 5.6vw, 4rem); line-height: 1.1; margin: 0 auto 16px; max-width: 900px;
}
.twb-hero__text { max-width: 560px; margin: 0 auto; font-size: 1.05rem; color: rgba(255,255,255,.88); }
.twb-crumbs {
  margin: 26px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  font-size: .9rem; color: rgba(255,255,255,.75);
}
.twb-crumbs a { color: var(--twb-gold-soft); }
.twb-crumbs a:hover { color: #fff; }
.twb-crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .6; }

/* ---------- Listing ---------- */

.twb-head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.twb-head__title {
  font-family: var(--twb-serif); font-weight: 600; color: var(--twb-pine);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.15; margin: 0 0 10px;
}
.twb-head__text { margin: 0; color: var(--twb-muted); }
.twb-head__rule { display: block; width: 56px; height: 2px; background: var(--twb-gold); margin: 18px auto 0; }

.twb-col { margin-bottom: 34px; }
.twb-card {
  height: 100%; display: flex; flex-direction: column;
  background: var(--twb-white); border-radius: 4px; overflow: hidden;
  box-shadow: 0 1px 0 var(--twb-line), 0 18px 40px -26px rgba(35,64,47,.45);
  transition: transform .3s ease, box-shadow .3s ease;
}
.twb-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--twb-line), 0 26px 46px -24px rgba(35,64,47,.55); }
.twb-card__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--twb-line); }
.twb-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.twb-card:hover .twb-card__media img { transform: scale(1.05); }
.twb-card__body { padding: 28px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.twb-card__title {
   margin: 0 0 12px;
}
.twb-card__title a { color: inherit; }
.twb-card__title a:hover { color: var(--twb-gold); }
.twb-card__excerpt {
  margin: 0 0 24px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Buttons ---------- */
.twb-btn {
  display: inline-block; padding: 13px 30px; border-radius: 2px;
  font: 500 .96rem/1 var(--twb-sans); letter-spacing: .03em;
  border: 1px solid var(--twb-gold);
  transition: background .2s, color .2s, border-color .2s;
}
.twb-btn--gold { background: var(--twb-gold); color: #fff; }
.twb-btn--gold:hover { background: var(--twb-pine); border-color: var(--twb-pine); color: #fff; }
.twb-btn--line { background: transparent; color: #fff; }
.twb-btn--line:hover { background: var(--twb-gold); color: #fff; }
.twb-card__body .twb-btn { margin-top: auto; align-self: flex-start; }

/* ---------- Article page ---------- */
.twb-article-sec { padding: 64px 0 40px; }
.twb-article {
  max-width: 820px; margin: 0 auto;
  background: var(--twb-white); border-radius: 4px;
  padding: 52px 56px 56px;
  box-shadow: 0 1px 0 var(--twb-line), 0 18px 40px -26px rgba(35,64,47,.4);
}
.twb-article__h {
  font-family: var(--twb-serif); font-weight: 700; color: var(--twb-pine);
  font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.2;
  margin: 42px 0 14px; padding-left: 16px; border-left: 3px solid var(--twb-gold);
}
.twb-article__h:first-child { margin-top: 0; }
.twb-article p { font-size: 1.06rem; margin: 0 0 18px; }
.twb-article__note { background: var(--twb-stone); border-left: 3px solid var(--twb-gold); padding: 14px 18px; border-radius: 2px; }
.twb-article__list { margin: 0 0 20px; padding: 0; list-style: none; }
.twb-article__list li { position: relative; padding-left: 26px; margin-bottom: 14px; font-size: 1.06rem; }
.twb-article__list li::before {
  content: ""; position: absolute; left: 4px; top: .7em;
  width: 8px; height: 8px; background: var(--twb-gold); transform: rotate(45deg);
}
.twb-article__list strong { color: var(--twb-pine); }
.twb-article__figure { margin: 30px 0; }
.twb-article__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.twb-article__pair { display: flex; gap: 14px; margin: 30px 0; }
.twb-article__pair img { flex: 1 1 0; min-width: 0; width: 50%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }

/* ---------- Article footer nav ---------- */
.twb-nav { max-width: 820px; margin: 28px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.twb-nav a {
  color: var(--twb-pine); font-weight: 500; padding: 12px 22px;
  border: 1px solid var(--twb-line); background: var(--twb-white); border-radius: 2px;
  transition: border-color .2s, color .2s;
}
.twb-nav a:hover { border-color: var(--twb-gold); color: var(--twb-gold); }

/* ---------- CTA ---------- */
.twb-cta {
  position: relative; isolation: isolate; text-align: center; color: #fff; padding: 76px 0; margin-top: 56px;
  background: var(--twb-pine) url("https://www.triwastays.com/img/gallery/19.jpg") center / cover no-repeat;
}
.twb-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(23,43,32,.82); }
.twb-cta__title { font-family: var(--twb-serif); font-weight: 600; color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0 0 12px; }
.twb-cta__text { max-width: 560px; margin: 0 auto 26px; color: rgba(255,255,255,.88); }
.twb-cta .twb-btn { margin: 5px 6px; }
.twb-listing-end { height: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  .twb-hero { min-height: 330px; }
  .twb-hero__inner { padding: 70px 0 74px; }

  .twb-card__body { padding: 24px 22px 28px; }
  .twb-article-sec { padding: 36px 0 24px; }
  .twb-article { padding: 30px 22px 36px; }
  .twb-article__pair { flex-direction: column; }
  .twb-article__pair img { width: 100%; }
  .twb-cta { padding: 56px 0; margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .twb-page *, .twb-page *::before { transition: none !important; }
}
