/* ===========================================================
   Jamie Trickett Stays — Design System
   Warm boutique-hotel hospitality brand
   =========================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Warm whites & neutrals */
  --bg:          #faf7f2;   /* page background, warm white */
  --surface:     #ffffff;   /* cards */
  --surface-alt: #f3efe7;   /* alt sections */
  --line:        #e7e0d4;   /* hairline borders */

  /* Earthy / brand */
  --forest:      #2f4a3f;   /* deep sage-green, primary */
  --sage:        #5c7c6a;   /* soft green accent */
  --sage-soft:   #e4ece6;   /* tinted green wash */
  --terracotta:  #c2714f;   /* earthy warm accent */
  --sand:        #cdb89a;   /* warm tan */

  /* Text */
  --ink:         #25231e;   /* near-black, warm */
  --body:        #514c43;   /* body copy */
  --muted:       #857d70;   /* secondary text */

  /* UI */
  --radius:      18px;
  --radius-sm:   12px;
  --radius-pill: 999px;
  --shadow:      0 1px 2px rgba(37,35,30,.04), 0 12px 32px -12px rgba(37,35,30,.18);
  --shadow-lg:   0 24px 60px -20px rgba(37,35,30,.30);
  --maxw:        1180px;
  --gap:         clamp(1.25rem, 3vw, 2.25rem);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tint { background: var(--surface-alt); }
.section--green { background: var(--sage-soft); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: .9rem;
}

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
.section-head p { margin-top: .9rem; color: var(--muted); font-size: 1.075rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: .92rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--forest); color: #fff; }
.btn--primary:hover { background: #263d34; box-shadow: var(--shadow); transform: translateY(-2px); }

.btn--accent { background: var(--terracotta); color: #fff; }
.btn--accent:hover { background: #ad6042; box-shadow: var(--shadow); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: #fff; transform: translateY(-2px); }

.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--light:hover { border-color: var(--sage); color: var(--forest); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--block { width: 100%; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.02rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,247,242,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--ink); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(140deg, var(--forest), var(--sage));
  color: #fff; display: grid; place-items: center;
  font-size: .95rem; letter-spacing: .02em; box-shadow: var(--shadow);
}
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--body); transition: color .15s ease; }
.nav-links a:hover { color: var(--forest); }
.nav-cta { display: flex; align-items: center; gap: .75rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(28,38,33,.30) 0%, rgba(28,38,33,.55) 55%, rgba(24,33,29,.82) 100%);
}
.hero__inner { padding-block: clamp(5rem, 16vw, 9.5rem); max-width: 760px; }
.hero .pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(4px);
  padding: .42rem 1rem; border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 500; letter-spacing: .02em; margin-bottom: 1.5rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero p.lede { margin-top: 1.4rem; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255,255,255,.92); max-width: 560px; }
.hero__cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__stats { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem); }
.hero__stats .stat strong { font-family: var(--font-display); font-size: 1.7rem; color: #fff; display: block; }
.hero__stats .stat span { font-size: .85rem; color: rgba(255,255,255,.8); letter-spacing: .02em; }

/* ---------- Property cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__tag {
  position: absolute; top: .9rem; left: .9rem;
  background: rgba(255,255,255,.92); color: var(--forest);
  font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .38rem .8rem; border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}
.card__body { padding: 1.5rem 1.5rem 1.65rem; display: flex; flex-direction: column; flex: 1; }
.card__loc { display: flex; align-items: center; gap: .4rem; color: var(--sage); font-size: .85rem; font-weight: 600; letter-spacing: .02em; }
.card h3 { font-size: 1.4rem; margin-top: .35rem; }
.card__meta { color: var(--muted); font-size: .92rem; margin-top: .35rem; }
.card__amen { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  background: var(--surface-alt); color: var(--body);
  font-size: .82rem; font-weight: 500;
  padding: .4rem .8rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line);
}
.card .btn { margin-top: 1.5rem; }

/* ---------- Trust / why ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ico {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--sage-soft); color: var(--forest);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.18rem; }
.feature p { margin-top: .5rem; font-size: .96rem; color: var(--muted); }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow);
}
.review .stars { color: var(--terracotta); letter-spacing: .14em; font-size: .95rem; margin-bottom: .9rem; }
.review blockquote { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.5; color: var(--ink); letter-spacing: -0.01em; }
.review figcaption { margin-top: 1.2rem; display: flex; align-items: center; gap: .8rem; font-size: .92rem; }
.review .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(140deg, var(--sand), var(--terracotta));
  color: #fff; display: grid; place-items: center; font-weight: 600; font-family: var(--font-display);
}
.review figcaption b { color: var(--ink); font-weight: 600; }
.review figcaption span { display: block; color: var(--muted); font-size: .84rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; color: #fff; overflow: hidden; border-radius: clamp(20px, 3vw, 32px); }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(38,61,52,.92), rgba(47,74,63,.72)); }
.cta-band__inner { padding: clamp(2.75rem, 7vw, 5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.88); margin-top: .8rem; max-width: 46ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc8ba; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap); }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #9a9286; }
.footer-about { color: #a8a093; margin-top: 1rem; max-width: 34ch; font-size: .95rem; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a { display: block; color: #b8b0a3; padding: .28rem 0; font-size: .96rem; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between;
  font-size: .85rem; color: #8d8578;
}

/* ===========================================================
   Property page
   =========================================================== */
.breadcrumb { font-size: .9rem; color: var(--muted); padding-top: 1.6rem; }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb span { margin-inline: .4rem; }

.prop-head { padding-top: 1.4rem; }
.prop-head .loc { display: flex; align-items: center; gap: .45rem; color: var(--sage); font-weight: 600; font-size: .95rem; }
.prop-head h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin-top: .5rem; max-width: 18ch; }
.prop-head .sub { margin-top: .9rem; color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: .65rem;
  margin-top: 1.8rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 8.5;
}
.gallery figure { position: relative; overflow: hidden; }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .more {
  position: absolute; inset: 0; background: rgba(37,35,30,.45);
  display: grid; place-items: center; color: #fff; font-weight: 600; letter-spacing: .02em;
}

/* Two-col layout */
.prop-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.prop-main > * + * { margin-top: clamp(2.25rem, 5vw, 3.25rem); }
.prop-block h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.prop-block p { color: var(--body); }
.prop-block p + p { margin-top: 1rem; }

/* Facts row */
.facts { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; padding: 1.4rem 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fact { display: flex; align-items: center; gap: .7rem; }
.fact .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--sage-soft); color: var(--forest); display: grid; place-items: center; }
.fact .ico svg { width: 20px; height: 20px; }
.fact b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; }
.fact span { font-size: .82rem; color: var(--muted); }

/* Amenities */
.amenities { columns: 2; column-gap: 2.5rem; }
.amenities li { break-inside: avoid; display: flex; align-items: center; gap: .65rem; padding: .5rem 0; color: var(--body); }
.amenities li svg { width: 18px; height: 18px; color: var(--sage); flex-shrink: 0; }

/* Attractions */
.attractions { display: grid; gap: .5rem; }
.attraction {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.attraction .name { display: flex; align-items: center; gap: .8rem; }
.attraction .name .ico { width: 36px; height: 36px; border-radius: 9px; background: var(--surface-alt); display: grid; place-items: center; font-size: 1.05rem; }
.attraction .name b { color: var(--ink); display: block; font-weight: 600; }
.attraction .name span { font-size: .85rem; color: var(--muted); }
.attraction .drive { color: var(--sage); font-weight: 600; font-size: .9rem; white-space: nowrap; }

/* Booking sidebar */
.booking {
  position: sticky; top: 96px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.booking .price { display: flex; align-items: baseline; gap: .45rem; }
.booking .price b { font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); }
.booking .price span { color: var(--muted); font-size: .92rem; }
.booking .note { font-size: .9rem; color: var(--muted); margin-top: .35rem; }
.booking .rate-table { margin-top: 1.1rem; display: grid; gap: .1rem; }
.booking .rate-table li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.booking .rate-table li:last-child { border-bottom: 0; }
.booking .rate-table span { color: var(--muted); }
.booking .rate-table b { color: var(--ink); font-family: var(--font-display); }
.booking hr { border: 0; border-top: 1px solid var(--line); margin: 1.35rem 0; }
.booking .btn + .btn { margin-top: .7rem; }
.booking .assurance { margin-top: 1.35rem; display: grid; gap: .65rem; }
.booking .assurance li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--body); }
.booking .assurance svg { width: 17px; height: 17px; color: var(--sage); flex-shrink: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .prop-layout { grid-template-columns: 1fr; }
  .booking { position: static; }
  .reviews { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta .btn--ghost { display: none; }
  .cards { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .amenities { columns: 1; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 1fr); aspect-ratio: 4 / 3.4; }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
  .gallery figure:nth-child(n+5) { display: none; }
  .hero__stats { gap: 1.5rem 2rem; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .gallery figure:nth-child(n+4) { display: none; }
}
