/* TMW Stays — warm, natural, handcrafted feel. No third-party requests. */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Righteous";
  src: url("../fonts/righteous-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2d2a26;
  --ink-soft: #5c554b;
  --cream: #faf6f0;
  --cream-deep: #f1e8db;
  --wood: #b07d48;
  --wood-deep: #8a5a33;
  --sage: #7d8b5f;
  --white: #ffffff;
  --line: #e5dccb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(45, 42, 38, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--wood-deep); }
a:hover { color: var(--ink); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 600; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 20px; max-width: 1080px; margin: 0 auto;
}
.brand {
  font-family: "Righteous", "Poppins", sans-serif;
  font-size: 1.35rem; color: var(--ink);
  text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--wood), var(--wood-deep));
  color: var(--white); display: grid; place-items: center;
  font-family: "Righteous", sans-serif; font-size: 1rem;
}
.brand small { display: block; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-family: "Poppins", sans-serif; font-weight: 600; }
.nav-links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-cta { color: var(--white); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--wood-deep); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-outline { border-color: var(--wood-deep); color: var(--wood-deep); background: transparent; }
.btn-outline:hover { background: var(--cream-deep); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(176, 125, 72, 0.18), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(125, 139, 95, 0.16), transparent 55%),
    var(--cream);
  padding: 72px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.hero-art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 26px; }
.badge {
  font-size: 0.8rem; font-weight: 600; padding: 5px 12px;
  background: var(--cream-deep); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-soft);
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.section-head { max-width: 44em; margin-bottom: 30px; }
.section-head p { color: var(--ink-soft); }
.kicker {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--wood-deep); margin-bottom: 10px;
}

/* ---------- stay cards ---------- */
.stay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 4px 14px rgba(45, 42, 38, 0.06);
}
.card .art { aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line); }
.card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.card:hover .art img { transform: scale(1.03); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { margin: 0; }
.card .tagline { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.specs { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.specs span::before { content: "· "; color: var(--wood); }
.price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line);
}
.price { font-weight: 800; font-size: 1.2rem; }
.price small { font-weight: 600; color: var(--ink-soft); font-size: 0.8rem; }
.minn { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- amenities ---------- */
.amenities { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 8px; list-style: none; }
.amenities li {
  background: var(--cream-deep); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
}

/* ---------- features band ---------- */
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.feat .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--cream-deep); border: 1px solid var(--line);
  color: var(--wood-deep); font-size: 1.2rem; margin-bottom: 12px;
}
.feat p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

/* ---------- booking form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 0.88rem; }
input, select, textarea {
  font-family: inherit; font-size: 0.98rem; padding: 11px 12px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2.5px solid var(--wood); outline-offset: 1px; border-color: var(--wood);
}
.hint { font-size: 0.8rem; color: var(--ink-soft); }
.formmsg { font-weight: 600; }
.formmsg.ok { color: var(--sage); }
.formmsg.err { color: #a33d2d; }

.booking-box {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.95rem; }
.summary-row.total { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 1.1rem; }
.summary-row span:last-child { font-weight: 600; }

/* ---------- thanks page ---------- */
.thanks-card {
  max-width: 560px; margin: 60px auto; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 36px; box-shadow: var(--shadow);
}
.thanks-card h1 { font-size: 1.7rem; margin-bottom: 0.4em; }
.spinner {
  width: 34px; height: 34px; margin: 0 auto 16px;
  border-radius: 50%; border: 4px solid var(--cream-deep); border-top-color: var(--wood-deep);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.status-paid { color: var(--sage); font-weight: 800; font-size: 1.2rem; }
.status-pending { color: var(--wood-deep); font-weight: 800; font-size: 1.2rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink); color: #d9d2c7; margin-top: 40px;
  padding: 40px 0 28px; font-size: 0.92rem;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer a { color: #d9d2c7; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer h4 { color: var(--white); margin: 0 0 10px; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 30px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.82rem;
  color: #a89e8f;
}
.foot-brand { font-family: "Righteous", sans-serif; color: var(--white); font-size: 1.2rem; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; }
.legal h2 { margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink-soft); }

/* ---------- layout utilities (CSP keeps inline styles out) ---------- */
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-20 { margin-top: 20px; }
.mt-22 { margin-top: 22px; }
.mb-26 { margin-bottom: 26px; }
.w-full { width: 100%; }
.muted { color: var(--ink-soft); font-size: 0.95rem; }
.title-lg { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.foot-plain { border: 0; margin: 0; }
.fas-links { color: var(--ink-soft); font-size: 0.95rem; margin-top: 12px; }

/* ---------- shop ---------- */
.shop-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product .art { aspect-ratio: 4 / 3; }
.product .price-row { gap: 10px; align-items: center; }
.unit { font-size: 0.78rem; color: var(--ink-soft); }
.qty { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; font-size: 1.05rem; font-weight: 700; color: var(--wood-deep); cursor: pointer; font-family: inherit; }
.qty button:hover { background: var(--cream-deep); }
.qty .n { min-width: 30px; text-align: center; font-weight: 700; font-size: 0.95rem; }
.add-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; }

.basket { position: sticky; top: 84px; }
.basket-lines { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.b-line { display: flex; justify-content: space-between; gap: 10px; font-size: 0.92rem; align-items: center; }
.b-line .b-name { flex: 1; }
.b-line .b-name small { display: block; color: var(--ink-soft); font-size: 0.78rem; }
.b-empty { color: var(--ink-soft); font-size: 0.92rem; margin: 14px 0; }
.delivery-opts { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.delivery-opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: var(--white); }
.delivery-opt:has(input:checked) { border-color: var(--wood); background: var(--cream); }
.delivery-opt input { margin-top: 4px; accent-color: var(--wood-deep); }
.delivery-opt .d-price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.delivery-opt .d-label { font-weight: 600; font-size: 0.92rem; }
.delivery-opt .d-note { display: block; color: var(--ink-soft); font-size: 0.78rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .shop-layout { grid-template-columns: 1fr; }
  .basket { position: static; }
}
