/* Centabrook Motor Inn — Muswellbrook */

:root {
  /* Palette drawn from the motel itself: the dusk-blue sky and warm window
     light of the hero photo, and the red of the street sign. */
  --ink:     #101b2e;
  --ink-2:   #1b2942;
  --ink-3:   #2c3d5a;
  --slate:   #5d6b80;
  --slate-2: #8895a8;
  --sand:    #faf8f4;
  --sand-2:  #f2ede5;
  --line:    #e4ddd2;
  --brand:   #b8232a;
  --brand-2: #93171d;
  --gold:    #c08a2e;
  --gold-2:  #e9c877;
  --white:   #ffffff;

  --wrap:    1140px;
  --wrap-nr: 960px;   /* narrow measure for text-led pages */

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow-1: 0 1px 2px rgba(16, 27, 46, .06), 0 4px 12px rgba(16, 27, 46, .06);
  --shadow-2: 0 2px 4px rgba(16, 27, 46, .06), 0 12px 32px rgba(16, 27, 46, .10);

  --r:   10px;
  --r-s: 6px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: #33404f;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-2); text-underline-offset: .18em; }
a:hover { color: var(--ink); }

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.wrap--narrow { max-width: var(--wrap-nr); }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--gold-2); color: var(--ink);
  padding: .8rem 1.4rem; font-weight: 700; z-index: 200;
}
.skip-link:focus { left: 0; top: 0; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-3); line-height: 1.65; }

.eyebrow {
  display: block;
  margin-bottom: .9rem;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

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

/* ------------------------------------------------------------------ header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.logo__mark {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--brand);
  border-radius: 8px;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 2px;
}
.logo__name {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.1;
  color: var(--ink);
}
.logo__sub {
  display: block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate-2);
  line-height: 1.4;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .5rem .8rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open  { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav__list { display: flex; align-items: center; gap: 1.9rem; margin: 0; padding: 0; list-style: none; }
.nav__list a {
  position: relative;
  display: block;
  padding: .35rem 0;
  color: var(--ink-2);
  font-size: .93rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.nav__list a:hover::after,
.nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__list a[aria-current="page"] { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.5rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
  }
  /* Collapsed by default, but only once we know scripting is available to
     reopen it — with JavaScript off the menu simply stays down the page.
     Doing it this way, rather than toggling the `hidden` attribute from
     script, means neither state can flash before main.js has run. */
  .nav { display: none; }
  .nav[data-open="true"] { display: flex; }
  html.no-js .nav { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { padding: .85rem 0; border-bottom: 1px solid var(--sand-2); font-size: 1rem; }
  .nav__list a::after { display: none; }
  .nav__list a[aria-current="page"] { color: var(--brand-2); }
  .nav .btn { margin-top: 1.1rem; text-align: center; }
}

/* ------------------------------------------------------------------ button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .78rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-s);
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { background: var(--brand-2); color: #fff; transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--sm { padding: .55rem 1.05rem; font-size: .88rem; }
.btn--lg { padding: .95rem 1.9rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn--ghost { background: transparent; color: var(--ink); border-color: #cfd6df; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--sand-2); color: var(--ink); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(430px, 68vh, 640px);
  background: var(--ink);
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 15, 28, .90) 0%, rgba(8, 15, 28, .55) 42%, rgba(8, 15, 28, .18) 78%, rgba(8, 15, 28, .32) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 4rem 0 3.2rem;
}
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .35em; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero .eyebrow { color: var(--gold-2); }
.hero__text {
  max-width: 46ch;
  margin: 0 0 2rem;
  color: #dce3ec;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  line-height: 1.65;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; }

/* narrow banner used on interior pages */
.banner {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.banner__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .42;
}
.banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(16, 27, 46, .92), rgba(16, 27, 46, .55));
}
.banner__inner { position: relative; z-index: 1; padding: clamp(3rem, 7vw, 4.6rem) 0; }
.banner h1 { color: #fff; margin-bottom: .3em; }
.banner .eyebrow { color: var(--gold-2); }
.banner p { max-width: 52ch; margin: 0; color: #c8d2df; font-size: 1.08rem; }

/* --------------------------------------------------------------- key facts */

.facts {
  background: var(--ink-2);
  color: #c8d2df;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.facts__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  margin: 0; padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, .09);
}
.facts__list li {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.15rem 1.5rem;
  background: var(--ink-2);
  font-size: .92rem;
}
.facts__list svg { width: 20px; height: 20px; flex: none; color: var(--gold-2); }
.facts__list strong { display: block; color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.facts__list span { display: block; color: #8fa0b8; font-size: .8rem; line-height: 1.4; }

/* ----------------------------------------------------------------- section */

.section { padding: clamp(3.4rem, 7vw, 5.6rem) 0; }
.section--sand { background: var(--sand); }
.section--tight { padding-top: clamp(2.2rem, 4vw, 3rem); }

.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head p { color: var(--slate); font-size: 1.08rem; margin-bottom: 0; }

/* ------------------------------------------------------------------- split */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.15fr 1fr; }
  .split--flip > :first-child { order: 2; }
}
.split__media img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow-2); }

/* ------------------------------------------------------------------- cards */

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

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.card__img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--sand-2); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.card__body h3 { margin-bottom: .5rem; }
.card__body p { color: var(--slate); font-size: .96rem; }
.card__link {
  margin-top: auto;
  padding-top: 1rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--brand-2);
  text-decoration: none;
}
.card__link:hover { color: var(--ink); }
.card__link::after { content: " \2192"; }

/* feature cards — icon, no photo */
.feature {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 1.1rem;
  background: var(--sand-2);
  border-radius: 9px;
  color: var(--brand);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.feature p { color: var(--slate); font-size: .95rem; margin-bottom: 0; }

/* --------------------------------------------------------------- amenities */

.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .35rem 2rem;
  margin: 0; padding: 0;
  list-style: none;
}
.amenities li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .96rem;
}
.amenities svg { width: 18px; height: 18px; margin-top: .28rem; flex: none; color: var(--gold); }

/* ----------------------------------------------------------------- gallery */

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
  background: var(--sand-2);
}
.gallery figcaption {
  padding-top: .6rem;
  font-size: .86rem;
  color: var(--slate);
}
.gallery--tall img { aspect-ratio: 3 / 4; }

/* ------------------------------------------------------------------ rooms */

.room {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 2.6rem) 0;
  border-top: 1px solid var(--line);
}
.room:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 800px) {
  .room { grid-template-columns: 1fr 1fr; }
  .room:nth-of-type(even) .room__media { order: 2; }
}
.room__media img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow-1); }
.room__tag {
  display: inline-block;
  margin-bottom: .9rem;
  padding: .28rem .7rem;
  background: var(--sand-2);
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ------------------------------------------------------------------ band */

.band {
  padding: clamp(3rem, 6vw, 4.4rem) 0;
  background: var(--ink);
  color: #c2cddc;
  text-align: center;
}
.band h2 { color: #fff; }
.band p { max-width: 54ch; margin: 0 auto 2rem; font-size: 1.08rem; }
.band__cta { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }
.band .eyebrow { color: var(--gold-2); }

/* --------------------------------------------------------------- contact */

.contact-grid { display: grid; gap: clamp(2.2rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) 340px; } }

.info {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.75rem;
}
.info h2 { font-size: 1.25rem; margin-bottom: 1.2rem; }
.info dl { margin: 0; }
.info dt {
  margin-top: 1.3rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.info dt:first-of-type { margin-top: 0; }
.info dd { margin: .2rem 0 0; color: var(--ink-2); }
.info dd a { color: var(--brand-2); font-weight: 500; }
.info dd a:hover { color: var(--ink); }
.info__note {
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--slate);
}

/* ------------------------------------------------------------------ form */

.form { max-width: 640px; }
.form fieldset { border: 0; margin: 0 0 1.9rem; padding: 0; }
.form legend {
  width: 100%;
  padding: 0 0 .65rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

.field { margin-bottom: 1.2rem; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  margin-bottom: .4rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .75rem .9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cdd4dd;
  border-radius: var(--r-s);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235d6b80' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 18px;
  padding-right: 2.6rem;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(192, 138, 46, .18);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #c0392b; }
.field .hint { display: block; margin-top: .35rem; font-size: .82rem; color: var(--slate); font-weight: 400; }
.req { color: #c0392b; }

.row { display: grid; gap: 1.2rem; margin-bottom: 1.2rem; }
@media (min-width: 560px) {
  .row--2 { grid-template-columns: 1fr 1fr; }
  .row--3 { grid-template-columns: repeat(3, 1fr); }
}
.row .field { margin-bottom: 0; }

.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .94rem; }
.check + .check { margin-top: .8rem; }
.check input { width: 18px; height: 18px; margin: .3rem 0 0; flex: none; accent-color: var(--brand); }
.check label { font-weight: 400; }

/* Honeypot: off-screen rather than display:none, which bots increasingly skip. */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  max-width: 640px;
  padding: 1.35rem 1.6rem;
  margin-bottom: 2rem;
  border-radius: var(--r);
}
.notice h2 { font-size: 1.3rem; margin-bottom: .45rem; }
.notice ul { margin: .6rem 0 0; padding-left: 1.25rem; }
.notice li { margin-bottom: .3rem; }
.notice--ok { background: #f0f7f2; border: 1px solid #bfdcc7; }
.notice--error { background: #fdf3f1; border: 1px solid #eec6bd; color: #8a2e1c; }
.notice--error strong { color: #8a2e1c; }

/* --------------------------------------------------------------- policies */

.policy { max-width: 46rem; }
.policy__intro {
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.6rem;
  background: var(--sand);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  font-size: .96rem;
  color: var(--slate);
}
.policy h2 {
  padding-bottom: .7rem;
  margin: 3.2rem 0 1.6rem;
  border-bottom: 2px solid var(--ink);
  font-size: 1.4rem;
}
.policy h2:first-child { margin-top: 0; }
.policy ol { margin: 0; padding-left: 0; list-style: none; counter-reset: rule; }
.policy ol > li {
  position: relative;
  padding: 0 0 1.15rem 3.1rem;
  counter-increment: rule;
}
.policy ol > li::before {
  content: counter(rule) ".";
  position: absolute;
  left: 0; top: 0;
  min-width: 2.2rem;
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.policy ol > li:last-child { padding-bottom: 0; }
.policy strong { color: var(--ink); }

/* ------------------------------------------------------------------ footer */

.footer {
  padding: clamp(2.8rem, 5vw, 3.8rem) 0 0;
  background: var(--ink);
  color: #93a2b8;
  font-size: .92rem;
}
.footer__cols {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding-bottom: 2.6rem;
}
.footer h2 {
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #6f8098;
}
.footer .logo__name { color: #fff; }
.footer .logo__sub { color: #6f8098; }
.footer .logo { margin-bottom: 1rem; }
.footer p { margin-bottom: .5rem; line-height: 1.65; }
.footer a { color: #ccd6e2; text-decoration: none; }
.footer a:hover { color: var(--gold-2); }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: .5rem; }
.footer address { font-style: normal; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .84rem;
  color: #6f8098;
}
.footer__bottom p { margin: 0; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__bottom li { margin: 0; }

/* ------------------------------------------------------------------- print */

@media print {
  .header, .footer, .band, .hero__cta, .skip-link, .nav-toggle { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .hero, .banner { min-height: 0; background: none; }
  .hero__img, .banner__img, .hero::after, .banner::after { display: none; }
  .hero h1, .banner h1, .hero__text, .banner p { color: #000; text-shadow: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
}
