/* ==========================================================================
   Casa Osor — site styles
   Edit the tokens below to adjust the whole site's palette and rhythm.
   ========================================================================== */

:root {
  /* Colour */
  --paper:      #faf7f1;  /* warm off-white, main background */
  --paper-warm: #f3ede2;  /* alternating section background */
  --stone:      #e3dbcd;  /* borders, rules, placeholder fills */
  --stone-deep: #c6bba7;
  --ink:        #23302a;  /* dark green-charcoal, body text */
  --ink-soft:   #55625a;  /* secondary text */
  --green:      #47604f;  /* natural green, links and accents */
  --green-deep: #33463a;
  --clay:       #b0674a;  /* muted terracotta, used sparingly */

  /* Type */
  --serif: "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);
  --radius: 2px;
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  line-height: 1.65;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Typography ----------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 0.6em;
  color: var(--green-deep);
}

h1 { font-size: clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 1.5rem + 1.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
h4 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.01em; }

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

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--clay); }

strong { font-weight: 600; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 46ch;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clay);
  margin: 0 0 1.25rem;
}

.note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 58ch;
}

/* --- Layout --------------------------------------------------------------- */

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

.wrap--narrow { max-width: 780px; }

.section { padding-block: var(--section-y); }
.section--warm { background: var(--paper-warm); }
.section--rule { border-top: 1px solid var(--stone); }

.section__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { color: var(--ink-soft); }

.cols {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 860px) {
  .cols--2      { grid-template-columns: 1fr 1fr; }
  .cols--text   { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .cols--aside  { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

.stack > * + * { margin-top: 1.5rem; }

/* --- Header / nav --------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--stone);
  background: var(--paper);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.15rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--green-deep);
  text-decoration: none;
}
.brand:hover { color: var(--green-deep); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.15rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--green-deep); border-bottom-color: var(--stone-deep); }
.nav a[aria-current="page"] { color: var(--green-deep); border-bottom-color: var(--clay); }

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn--solid { background: var(--green); color: var(--paper); }
.btn--solid:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--paper); }
.btn--ghost { color: var(--green); background: transparent; }
.btn--ghost:hover { background: var(--green); color: var(--paper); }

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

/* --- Photograph placeholders ---------------------------------------------
   Deliberately obvious. To use a real photograph, replace the whole
   <div class="ph …"> element with:
   <img class="photo" src="images/your-photo.jpg" alt="Describe the photo">
   -------------------------------------------------------------------------- */

.ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  padding: 1.5rem;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(198,187,167,0.18) 12px 24px),
    var(--stone);
  border: 1px dashed var(--stone-deep);
  border-radius: var(--radius);
  color: var(--ink-soft);
  aspect-ratio: 4 / 3;
}
.ph--wide  { aspect-ratio: 16 / 9; }
.ph--tall  { aspect-ratio: 3 / 4; }
.ph--band  { aspect-ratio: 21 / 9; }
@media (max-width: 600px) {
  .ph--band { aspect-ratio: 4 / 3; }
}

.ph__tag {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clay);
}
.ph__what {
  font-family: var(--serif);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.25rem);
  color: var(--green-deep);
  max-width: 28ch;
}

.photo { width: 100%; border-radius: var(--radius); }

/* Crop helpers — keep a photo to a shape without distorting it. */
.photo--wide { aspect-ratio: 16 / 9;  object-fit: cover; }
.photo--tall { aspect-ratio: 3 / 4;   object-fit: cover; }
.photo--band { aspect-ratio: 21 / 9;  object-fit: cover; }
.photo--sq   { aspect-ratio: 1 / 1;   object-fit: cover; }
@media (max-width: 600px) {
  .photo--band { aspect-ratio: 4 / 3; }
}

figure { margin: 0; }

.photo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

figcaption, .caption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* --- Hero ----------------------------------------------------------------- */

.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero h1 { margin-bottom: 0.35em; }
.hero__sub {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.7rem);
  color: var(--ink-soft);
  margin: 0 0 1.6em;
  max-width: 24ch;
}
.hero__text { align-self: center; }

/* --- Status pills --------------------------------------------------------
   Change a single class to move an item between states.
   -------------------------------------------------------------------------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  border: 1px solid;
}
.status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status--now  { color: var(--green);  border-color: rgba(71,96,79,0.35);  background: rgba(71,96,79,0.07); }
.status--soon { color: var(--clay);   border-color: rgba(176,103,74,0.35); background: rgba(176,103,74,0.07); }
.status--tbc  { color: var(--ink-soft); border-color: var(--stone-deep);  background: rgba(198,187,167,0.18); }

.key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.key span { display: inline-flex; align-items: center; gap: 0.5rem; }

/* --- Facility list -------------------------------------------------------- */

.facilities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
}
.facilities li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--stone);
}
.facilities .name { font-size: 0.98rem; }
.facilities .name small { display: block; color: var(--ink-soft); font-size: 0.82rem; }

/* --- Cards ---------------------------------------------------------------- */

.cards {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.card h3 { margin-bottom: 0.45em; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }
.card .status { margin-bottom: 1rem; }

/* --- Rooms ---------------------------------------------------------------- */

.room {
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--stone);
}
.room__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
.room__head h3 { margin: 0; }

/* --- Steps (Coming Soon) -------------------------------------------------- */

.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(1.5rem, 3vw, 2.25rem) clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--stone);
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--clay);
}
.steps h3 { margin-bottom: 0.4em; }
.steps p { color: var(--ink-soft); }

/* --- Pricing bands -------------------------------------------------------- */

.bands { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 0.98rem; }
.bands th, .bands td { text-align: left; padding: 0.8rem 0.5rem 0.8rem 0; border-bottom: 1px solid var(--stone); }
.bands th {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}
.bands td:last-child { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* --- Callout -------------------------------------------------------------- */

.callout {
  border-left: 2px solid var(--clay);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin-block: 2rem;
}
.callout p { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; }

.panel {
  background: var(--paper-warm);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.section--warm .panel { background: var(--paper); }

/* --- Form ----------------------------------------------------------------- */

.form { margin-top: 2.5rem; }

.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}
.field .hint { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.85rem; margin-top: 0.2rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--stone-deep);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.field-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.check { display: flex; align-items: flex-start; gap: 0.65rem; }
.check input { width: auto; margin-top: 0.35rem; }
.check label { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 400; color: var(--ink); margin: 0; }

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1rem;
  max-width: 52ch;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--stone);
  background: var(--paper-warm);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.site-footer .brand { font-size: 1.25rem; display: block; margin-bottom: 0.4rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--green-deep); }

/* --- Utilities ------------------------------------------------------------ */

.tbc { color: var(--ink-soft); font-style: italic; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
