/* ==========================================================================
   2R Sales — stylesheet
   Sections: 1 tokens · 2 reset · 3 typography · 4 buttons · 5 header/nav
             6 hero · 7 approach · 8 gallery · 9 steps · 10 about
             11 contact · 12 footer · 13 legal pages · 14 motion · 15 print
   ========================================================================== */

/* 1 · Design tokens ------------------------------------------------------- */
:root {
  /* Warm neutral palette. Text colours are checked against --bone for WCAG AA. */
  --bone:        #faf7f2;
  --bone-deep:   #f3eee6;
  --sand:        #ece4d8;
  --clay:        #ddd2c2;
  --line:        #d9cfc0;

  --ink:         #262320;  /* 15.1:1 on --bone */
  --ink-soft:    #56504a;  /*  7.3:1 on --bone */
  --ink-faint:   #6e675f;  /*  5.1:1 on --bone */

  --olive:       #5d6b52;  /*  4.9:1 on --bone */
  --olive-deep:  #3c4736;
  --terra:       #a8583c;  /* white on this: 5.1:1 */

  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino,
                  "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.7vw, 1.9rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-4:  clamp(2.2rem, 1.6rem + 2.8vw, 4rem);

  --gutter: clamp(1rem, 5vw, 2rem);
  --measure: 66ch;
  --radius: 3px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(38, 35, 32, 0.06), 0 4px 14px rgba(38, 35, 32, 0.05);
  --shadow-md: 0 10px 40px rgba(38, 35, 32, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

/* 2 · Reset and base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem; /* keeps anchored headings clear of the sticky header */
}

body {
  margin: 0;
  background-color: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul, ol { padding-inline-start: 1.15em; }

a { color: var(--olive); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--olive-deep); }

/* Visible, consistent keyboard focus on every interactive element. */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--olive-deep);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 760px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter); top: 0;
  z-index: 200;
  transform: translateY(-120%);
  padding: 0.7rem 1.1rem;
  background: var(--olive-deep);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: #fff; }

.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--tint { background: var(--bone-deep); }
.section--sand { background: var(--sand); }

/* 3 · Typography ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3.25rem); }

.rule {
  width: 48px; height: 2px;
  margin: 0 0 1.6rem;
  border: 0;
  background: var(--terra);
}

/* 4 · Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.9em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--olive-deep); color: #fff; }
.btn--primary:hover { background: var(--ink); color: #fff; }

.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(38, 35, 32, 0.04); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* 5 · Header and navigation ---------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { backdrop-filter: saturate(150%) blur(12px); }
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(38, 35, 32, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-1);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.wordmark:hover { color: var(--olive-deep); }
.wordmark svg { flex: none; width: 26px; height: 26px; }
.wordmark span { white-space: nowrap; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 18px; height: 10px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute; left: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  transition: transform 0.22s var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-4.25px) rotate(-45deg); }

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0 0 1.25rem;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0.6rem 0;
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-nav a:hover { color: var(--olive-deep); }
.site-nav a[aria-current="page"] { color: var(--terra); }

/* Mobile: the list collapses until the toggle opens it. */
@media (max-width: 767px) {
  .site-nav[data-collapsed="true"] { display: none; }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { flex-direction: row; gap: clamp(1.1rem, 2.5vw, 2.1rem); padding: 0; }
  .site-nav a { padding: 0.25rem 0; border-bottom: 1px solid transparent; }
  .site-nav a:hover { border-bottom-color: var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--terra); }
}

/* 6 · Hero --------------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem); }

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-figure { position: relative; margin: 0; }
.hero-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hero-figure figcaption {
  margin-top: 0.9rem;
  color: var(--ink-faint);
  font-size: var(--step--1);
  font-style: italic;
}

.hero h1 { margin-bottom: 0.5em; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero-copy { padding-right: 1rem; }
}

/* 7 · Approach (three pillars) ------------------------------------------ */
.pillars {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.pillar { margin: 0; }
.pillar img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.pillar h3 { margin: 1.25rem 0 0.4rem; }
.pillar .pillar-index {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--terra);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
}
.pillar p { color: var(--ink-soft); margin: 0; }

/* 8 · Room gallery ------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  padding: 0;
  border: 0;
}
.filters legend { padding: 0; margin-bottom: 0.85rem; }

.chip {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  font: inherit;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}
.chip:hover { border-color: var(--ink-faint); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--olive-deep);
  border-color: var(--olive-deep);
  color: #fff;
}

.gallery {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.room { display: flex; flex-direction: column; }
.room[hidden] { display: none; }

.room-media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--clay);
}
.room-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.room:hover .room-media img { transform: scale(1.035); }

.room-tag {
  display: inline-block;
  margin: 1rem 0 0.45rem;
  color: var(--ink-faint);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.room h3 { margin: 0 0 0.45rem; font-size: var(--step-1); }
.room p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.6; }

.gallery-empty {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* 9 · Steps -------------------------------------------------------------- */
.steps {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin: 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.steps li {
  padding-top: 1.35rem;
  border-top: 2px solid var(--clay);
  counter-increment: step;
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.6rem;
  color: var(--terra);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--ink-soft); margin: 0; }

/* 10 · About ------------------------------------------------------------- */
.about-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.85fr 1.15fr; } }

.about-grid img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

.signature {
  margin-top: 1.75rem;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
}

/* 11 · Contact ----------------------------------------------------------- */
.contact-card {
  padding: clamp(1.75rem, 5vw, 3.25rem);
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-email {
  display: inline-block;
  margin: 0.4rem 0 1.5rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--olive-deep);
  overflow-wrap: anywhere;
}

.contact-meta {
  display: grid;
  gap: 1.25rem 2.5rem;
  margin: 2rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) { .contact-meta { grid-template-columns: repeat(2, 1fr); } }

.contact-meta dt {
  margin-bottom: 0.25rem;
  color: var(--ink-faint);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-meta dd { margin: 0; color: var(--ink-soft); }

/* 12 · Footer ------------------------------------------------------------ */
.site-footer {
  padding-block: clamp(3rem, 7vw, 4.5rem) 2rem;
  background: var(--olive-deep);
  color: #e8e5dd;
  font-size: var(--step--1);
}
.site-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.site-footer a:hover { color: #fff; border-bottom-color: #fff; }

.footer-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  padding-bottom: 2.5rem;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-brand .wordmark { color: #fff; }
.footer-brand .wordmark:hover { color: #fff; }
.footer-brand p { margin: 1rem 0 0; color: #cfcbc0; max-width: 34ch; }

.footer-col h2 {
  margin-bottom: 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 0.6rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #c5c1b6;
}
.footer-bottom p { margin: 0; max-width: none; }

.disclaimer {
  margin-top: 1.5rem;
  color: #b8b4a9;
  font-size: 0.78rem;
  line-height: 1.6;
  max-width: 88ch;
}

/* 13 · Legal pages ------------------------------------------------------- */
.page-head {
  padding-block: clamp(2.75rem, 7vw, 5rem) clamp(1.75rem, 4vw, 3rem);
  background: var(--bone-deep);
  border-bottom: 1px solid var(--line);
}
.page-head p { color: var(--ink-soft); }

.updated {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--ink-faint);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
}

.prose { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.prose h2 {
  margin-top: 2.75em;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: var(--step-2);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 2em; font-size: var(--step-1); }
.prose p, .prose li { color: var(--ink-soft); max-width: var(--measure); }
.prose li + li { margin-top: 0.5rem; }
.prose strong { color: var(--ink); }

.toc {
  margin: 0 0 3rem;
  padding: 1.5rem 1.75rem;
  background: var(--bone-deep);
  border-left: 2px solid var(--terra);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.toc h2 {
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.toc ol { margin: 0; padding-inline-start: 1.3em; }
.toc li { color: var(--ink-soft); }
.toc li + li { margin-top: 0.35rem; }

.callout {
  margin: 2rem 0;
  padding: 1.35rem 1.6rem;
  background: var(--sand);
  border-radius: var(--radius-lg);
}
.callout p { color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }

/* 14 · Scroll reveal ----------------------------------------------------- */
/* The hidden state only applies when JS is running, so the page stays
   fully readable if the script fails or is blocked. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .btn:hover, .room:hover .room-media img { transform: none; }
}

/* 15 · Print ------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .filters, .btn-row { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .prose h2 { break-after: avoid; }
}
