/*
Theme Name: Two Lands Retreats
Theme URI: https://example.com/two-lands-retreats
Author: Two Lands Retreats
Description: A lightweight, editorial WordPress block theme for Two Lands Retreats.
Version: 0.3.6
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: two-lands-retreats
*/

:root {
  --tlr-forest: #304F3F;
  --tlr-sage: #879887;
  --tlr-stone: #D8D0BF;
  --tlr-chalk: #F8F3E7;
  --tlr-terracotta: #80462F;
  --tlr-burnt-terracotta: #B87552;
  --tlr-ochre: #D3AA68;
  --tlr-slate: #344B59;
  --tlr-charcoal: #33352F;
}

html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; }
a { text-underline-offset: .2em; }
.wp-site-blocks { overflow: clip; }
.wp-block-site-title a { text-decoration: none; }
.wp-block-navigation a { text-decoration: none; }
.wp-block-button__link { transition: transform .2s ease, background-color .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.tlr-eyebrow { letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; font-weight: 650; }
.tlr-display { letter-spacing: -.035em; line-height: .98; }
.tlr-soft-panel { border-radius: 4px; }
.tlr-image-placeholder { min-height: 340px; display: grid; place-items: center; padding: 2rem; text-align: center; background: linear-gradient(135deg, #879887, #294438); color: #F6F3EB; }
@media (max-width: 781px) {
  .tlr-display { letter-spacing: -.025em; }
  .tlr-image-placeholder { min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Brand lock-up and editable photo placeholders */
.tlr-brand-lockup { display: flex; align-items: center; gap: .8rem; }
.tlr-brand-mark { display: block; flex: 0 0 54px; width: 54px; height: 54px; background: url("assets/two-lands-emblem.svg") center / contain no-repeat; }
.tlr-brand-name { letter-spacing: .1em; text-transform: uppercase; font-size: .88rem; font-weight: 650; line-height: 1.2; }
.tlr-brand-name a { text-decoration: none; }
.tlr-image-placeholder { position: relative; overflow: hidden; isolation: isolate; border: 1px solid rgba(48,79,63,.22); background-color: #879887; background-image: linear-gradient(135deg, rgba(248,243,231,.2), transparent 42%), linear-gradient(45deg, rgba(48,79,63,.15) 25%, transparent 25%, transparent 50%, rgba(48,79,63,.15) 50%, rgba(48,79,63,.15) 75%, transparent 75%, transparent); background-size: auto, 34px 34px; color: #fff; }
.tlr-image-placeholder::after { content: "PHOTO PLACEHOLDER"; position: absolute; z-index: 2; left: 1rem; bottom: 1rem; padding: .45rem .65rem; border: 1px solid rgba(248,243,231,.55); background: rgba(48,79,63,.78); color: #fff; font-size: .62rem; letter-spacing: .14em; line-height: 1.2; }
.tlr-image-placeholder .wp-block-cover__inner-container { position: relative; z-index: 3; }
.tlr-image-placeholder p { max-width: 28rem; margin-inline: auto; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.tlr-photo-card .tlr-image-placeholder { min-height: 250px; }
.tlr-photo-card h3 { margin-top: 1rem; }
@media (max-width: 781px) { .tlr-brand-mark { flex-basis: 46px; width: 46px; height: 46px; } .tlr-photo-card .tlr-image-placeholder { min-height: 210px; } }

/* Retreat archive and single-property layouts */
.tlr-retreat-intro { padding-bottom: 2.2rem; }
.tlr-retreat-facts { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 1.8rem 0 0; padding: 0; }
.tlr-retreat-facts li { background: #EAE3D6; border: 1px solid rgba(48,79,63,.14); color: #304F3F; padding: .65rem .9rem; font-size: .9rem; }
.tlr-retreat-image-frame { position: relative; min-height: 260px; background: #879887; border: 1px solid rgba(48,79,63,.2); }
.tlr-retreat-image-frame:not(:has(img))::before { content: "MAIN PROPERTY PHOTOGRAPH PLACEHOLDER · ADD A FEATURED IMAGE IN THE RETREAT EDITOR"; position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center; color: #fff; letter-spacing: .1em; font-size: .72rem; background: linear-gradient(135deg, #879887, #304F3F); }
.tlr-retreat-image-frame .wp-block-post-featured-image { margin: 0; }
.tlr-retreat-image-frame img { width: 100%; height: auto; display: block; object-fit: cover; }
.tlr-retreat-card { height: 100%; }
.tlr-card-image-placeholder { position: relative; min-height: 250px; margin-bottom: 1.4rem; background: linear-gradient(135deg, #879887, #304F3F); }
.tlr-card-image-placeholder:not(:has(img))::before { content: "PROPERTY PHOTO PLACEHOLDER"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .7rem; letter-spacing: .12em; }
.tlr-card-image-placeholder .wp-block-post-featured-image { margin: 0; }
.tlr-card-image-placeholder img { display: block; width: 100%; height: auto; object-fit: cover; }
.tlr-retreat-card .wp-block-post-title a { text-decoration: none; }
.tlr-retreat-card .wp-block-post-excerpt { max-width: 50rem; }

/* Enquiry form */
.tlr-enquiry-form { display: grid; gap: 1rem; max-width: 760px; }
.tlr-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.tlr-form-field { margin: 0; }
.tlr-form-field label { display: block; margin-bottom: .45rem; color: var(--tlr-forest); }
.tlr-form-field input, .tlr-form-field select, .tlr-form-field textarea { display: block; width: 100%; box-sizing: border-box; border: 1px solid #A9AD9F; border-radius: 2px; background: #fff; color: #33352F; padding: .85rem .9rem; font: inherit; }
.tlr-form-field input:focus, .tlr-form-field select:focus, .tlr-form-field textarea:focus { outline: 3px solid rgba(184,117,82,.35); outline-offset: 1px; border-color: var(--tlr-forest); }
.tlr-form-privacy { font-size: .88rem; max-width: 54rem; }
.tlr-form-submit { margin: 0; }
.tlr-form-submit button { border: 0; border-radius: 2px; background: var(--tlr-forest); color: var(--tlr-chalk); cursor: pointer; padding: .9rem 1.4rem; font: inherit; font-weight: 650; }
.tlr-form-submit button:hover { background: #243E32; }
.tlr-form-notice { max-width: 760px; margin: 0 0 1.5rem; padding: 1rem 1.2rem; border-left: 4px solid var(--tlr-forest); background: #EAE3D6; }
.tlr-form-error { border-left-color: #A34737; }
.tlr-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.tlr-service-card { height: 100%; border: 1px solid rgba(48,79,63,.12); }
:focus-visible { outline: 3px solid #B87552; outline-offset: 3px; }
@media (max-width: 781px) { .tlr-form-grid { grid-template-columns: 1fr; gap: 1rem; } .tlr-retreat-facts { gap: .45rem; } .tlr-retreat-facts li { font-size: .82rem; } .tlr-retreat-image-frame { min-height: 220px; } .tlr-card-image-placeholder { min-height: 210px; } }


/* External booking platform choices */
.tlr-booking-options { margin: 1.5rem auto 0; max-width: 760px; text-align: center; }
.tlr-booking-options__intro { margin: 0 0 1rem; }
.tlr-booking-options__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.tlr-booking-options__link { display: inline-flex; align-items: center; justify-content: center; min-width: 150px; padding: .9rem 1.25rem; border: 1px solid rgba(248,243,231,.65); border-radius: 2px; background: var(--tlr-ochre); color: var(--tlr-charcoal); font-weight: 650; text-decoration: none; transition: transform .2s ease, background-color .2s ease; }
.tlr-booking-options__link:hover { transform: translateY(-2px); background: #e0b875; color: var(--tlr-charcoal); }
.tlr-booking-options__note { margin: 1rem 0 0; font-size: .88rem; opacity: .9; }
.tlr-booking-enquiry { margin-top: 1.25rem; text-align: center; }
.tlr-booking-enquiry a { color: inherit; text-underline-offset: .2em; }
@media (max-width: 600px) { .tlr-booking-options__links { display: grid; grid-template-columns: 1fr; } .tlr-booking-options__link { width: 100%; box-sizing: border-box; } }


/* Editorial article feeds on the homepage */
.tlr-editorial-feed { padding: 64px 5vw; }
.tlr-editorial-feed--explore { background: var(--tlr-chalk); }
.tlr-editorial-feed--lodge { background: #EAE3D6; }
.tlr-editorial-feed__inner { max-width: 1200px; margin-inline: auto; }
.tlr-editorial-feed__header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.tlr-editorial-feed__header h2 { margin: .35rem 0 0; }
.tlr-article-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.tlr-article-card { min-width: 0; display: flex; flex-direction: column; }
.tlr-article-card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 1rem; background: linear-gradient(135deg, var(--tlr-sage), var(--tlr-forest)); }
.tlr-article-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tlr-article-card__image:hover img { transform: scale(1.025); }
.tlr-article-card__image-fallback { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--tlr-sage), var(--tlr-forest)); }
.tlr-article-card__date { margin: 0 0 .5rem; color: #62665D; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.tlr-article-card h3 { margin: 0 0 .65rem; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.15; }
.tlr-article-card h3 a { color: var(--tlr-forest); text-decoration: none; }
.tlr-article-card h3 a:hover { text-decoration: underline; text-underline-offset: .18em; }
.tlr-article-card__excerpt { margin: 0; color: #4B5048; font-size: .93rem; }
.tlr-article-card--all { box-sizing: border-box; min-height: 100%; padding: 1.5rem; justify-content: space-between; gap: 1rem; text-decoration: none; color: var(--tlr-chalk); background: var(--tlr-forest); transition: background .2s ease, transform .2s ease; }
.tlr-article-card--all:hover { background: #20372D; transform: translateY(-3px); }
.tlr-article-card--all__eyebrow { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.tlr-article-card--all__title { display: block; max-width: 11ch; font-family: Georgia, serif; font-size: clamp(1.55rem, 2.2vw, 2rem); line-height: 1.08; }
.tlr-article-card--all__arrow { align-self: flex-end; font-size: 2rem; line-height: 1; }
.tlr-editorial-feed--lodge .tlr-article-card--all { color: var(--tlr-charcoal); background: var(--tlr-ochre); }
.tlr-editorial-feed--lodge .tlr-article-card--all:hover { background: #c59a5d; }
@media (max-width: 900px) {
 .tlr-editorial-feed { padding: 48px 5vw; }
 .tlr-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
}
@media (max-width: 520px) { .tlr-article-grid { grid-template-columns: 1fr; } .tlr-article-card__image { aspect-ratio: 16 / 10; } .tlr-article-card--all { min-height: 190px; } }
