:root {
  --navy: #0f2f5c;
  --sun: #ffc629;
  --pool: #0d8ea3;
  --sky: #eef6f9;
  --ink: #1a2433;
  --muted: #4c5a6c;
  --white: #ffffff;
  --gutter: clamp(16px, 4vw, 56px);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
}

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

h1, h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  color: var(--navy);
}

h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }

ul, ol { margin: 0; padding: 0; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--pool);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 30;
  padding: 8px 14px;
  background: var(--white);
}
.skip:focus { left: 8px; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 12px var(--gutter);
  background: var(--navy);
  color: var(--white);
}
.top a { color: inherit; text-decoration: none; }
.wordmark {
  font: 700 1.625rem/1 var(--display);
  white-space: nowrap;
}
.wordmark span { font-weight: 600; color: var(--sun); }
.top nav { display: flex; gap: 24px; margin-left: auto; font-weight: 500; }
.top nav a:hover { text-decoration: underline; }
.top .top-call {
  padding: 8px 16px;
  background: var(--sun);
  color: var(--navy);
  font: 700 1.375rem/1.1 var(--display);
  white-space: nowrap;
}
.top .top-call:hover { background: var(--white); }

/* Hero: the motel sign holds the phone number */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  min-height: min(84vh, 820px);
}
.hero-photo {
  order: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.sign {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3.5vw, 44px) var(--gutter);
  background: var(--sun);
}
.sign h1 { font: 600 1.1875rem/1.3 var(--body); margin-bottom: 12px; }
.offer {
  margin: 0;
  color: var(--navy);
  font: 700 clamp(2.5rem, 4.6vw, 4.25rem)/1.02 var(--display);
  text-wrap: balance;
}
.phone {
  display: block;
  margin-top: 12px;
  color: var(--navy);
  font: 700 clamp(3.5rem, 7vw, 7rem)/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.09em;
  white-space: nowrap;
}
.phone:hover { color: var(--pool); }
.sign-note { margin: 16px 0 0; font-size: 1.1875rem; font-weight: 600; color: var(--navy); }
.sign-where { margin: 4px 0 0; color: var(--navy); }

/* Steps */
.how { padding: clamp(48px, 7vw, 88px) var(--gutter); background: var(--navy); color: var(--white); }
.how h2 { color: var(--sun); }
.how ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: 32px;
  list-style: none;
  counter-reset: step;
}
.how li { counter-increment: step; font-size: 1.125rem; }
.how li::before {
  content: counter(step);
  display: block;
  color: var(--sun);
  font: 700 4rem/1 var(--display);
}
.how li strong { display: block; font: 700 1.75rem/1.15 var(--display); margin: 4px 0 6px; }
.how li a { color: var(--sun); font-weight: 600; white-space: nowrap; }
.terms { max-width: 70ch; margin: 36px 0 0; font-size: 0.9375rem; color: #c9d6e6; }

/* Rooms */
.rooms { padding: clamp(56px, 8vw, 104px) var(--gutter); }
.lede { max-width: 58ch; margin: 12px 0 0; font-size: 1.1875rem; color: var(--muted); }
.room-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px 20px;
  margin-top: 36px;
}
.room { grid-column: span 2; margin: 0; }
.room-wide { grid-column: span 3; }
.room img { width: 100%; height: clamp(220px, 28vw, 400px); object-fit: cover; }
.room figcaption { margin-top: 10px; color: var(--muted); }
.room figcaption strong { display: block; font: 700 1.625rem/1.2 var(--display); color: var(--navy); }
.inline-call {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 22px;
  background: var(--navy);
  color: var(--white);
  font: 700 1.5rem/1.15 var(--display);
  text-decoration: none;
}
.inline-call:hover { background: var(--pool); }

/* Amenities */
.amenities { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--sky); }
.amenities-photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.amenities-copy { padding: clamp(40px, 6vw, 80px) var(--gutter); }
.amenities ul { margin-top: 24px; list-style: none; }
.amenities li { padding: 9px 0; border-bottom: 1px solid #c8dde5; }
.times { margin: 20px 0 0; font-weight: 600; color: var(--navy); }

/* Gallery */
.gallery { padding: clamp(56px, 8vw, 104px) var(--gutter) 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 28px;
}
.gallery-grid button { padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.lightbox { max-width: min(94vw, 1200px); padding: 0; border: 0; background: var(--navy); }
.lightbox::backdrop { background: rgba(8, 22, 44, 0.85); }
.lightbox img { max-height: 84vh; width: auto; }
.lightbox form { display: flex; justify-content: flex-end; }
.lightbox-close {
  padding: 10px 18px;
  border: 0;
  background: var(--sun);
  color: var(--navy);
  font: 700 1.25rem/1 var(--display);
  cursor: pointer;
}

/* Outlets */
.outlets { padding: clamp(56px, 8vw, 104px) var(--gutter) 0; }
.outlets h2 { max-width: 22ch; }
.outlets p { max-width: 65ch; margin: 16px 0 0; font-size: 1.1875rem; }
.outlets a { color: var(--navy); font-weight: 600; white-space: nowrap; }

/* Location */
.location {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(56px, 8vw, 104px) var(--gutter);
}
address { margin-top: 20px; font-style: normal; font-size: 1.1875rem; font-weight: 600; }
.location ul { margin-top: 18px; padding-left: 20px; }
.location li { margin-bottom: 6px; }
.directions { display: inline-block; margin-top: 16px; color: var(--navy); font-weight: 600; }
.map { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* Reviews and feedback */
.reviews {
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.6 7.2.9-5.3 5 1.4 7.1L12 18l-6.4 3.4L7 14.3l-5.3-5 7.2-.9z'/%3E%3C/svg%3E");
  --star-on: #e09a00;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  background: var(--sky);
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px clamp(24px, 4vw, 48px);
  margin-top: 32px;
}
.review { margin: 0; }
.rating-stars {
  display: block;
  width: 120px;
  height: 24px;
  background: var(--star-on);
  -webkit-mask: var(--star) left / 24px 24px repeat-x;
  mask: var(--star) left / 24px 24px repeat-x;
}
.review blockquote { margin: 12px 0 0; font-size: 1.125rem; line-height: 1.5; }
.review figcaption { margin-top: 10px; font-weight: 600; color: var(--navy); }
.reviews-note { margin: 32px 0 0; color: var(--muted); }
.feedback, .feedback-thanks {
  max-width: 640px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 2px solid var(--navy);
}
.reviews a { color: var(--navy); font-weight: 600; }
.trap { position: absolute; left: -9999px; }
.feedback h3, .feedback-thanks h3 {
  margin: 0 0 16px;
  font: 700 2rem/1.1 var(--display);
  color: var(--navy);
}
.feedback-thanks p { margin: 0; }
.stars { display: flex; gap: 2px; margin: 0 0 16px; padding: 0; border: 0; }
.stars legend { padding: 0; margin-bottom: 6px; font-weight: 600; }
.stars label { position: relative; padding: 3px; cursor: pointer; }
.stars input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.star {
  display: block;
  width: 40px;
  height: 40px;
  background: #b4c4cf;
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
}
.stars label:has(input:checked) .star,
.stars label:has(~ label input:checked) .star,
.stars label:hover .star,
.stars label:has(~ label:hover) .star { background: var(--star-on); }
.stars label:has(input:focus-visible) { outline: 3px solid var(--pool); outline-offset: 1px; }
.field { display: block; margin-bottom: 14px; font-weight: 600; }
.field input, .field textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid #8fa6b5;
  background: var(--white);
  font: 400 1rem/1.4 var(--body);
}
.field input:focus-visible, .field textarea:focus-visible,
.consent input:focus-visible {
  outline: 3px solid var(--pool);
  outline-offset: 2px;
}
.cf-turnstile { margin-bottom: 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; }
.consent input { margin-top: 6px; }
.feedback button {
  padding: 12px 22px;
  border: 0;
  background: var(--navy);
  color: var(--white);
  font: 700 1.375rem/1.1 var(--display);
  cursor: pointer;
}
.feedback button:hover { background: var(--pool); }
.feedback button:disabled { opacity: 0.6; cursor: default; }
.feedback-error { margin: 14px 0 0; color: #a3201d; font-weight: 600; }

/* Closing call */
.closer { padding: clamp(48px, 7vw, 88px) var(--gutter); background: var(--sun); }
.closer h2 { max-width: 20ch; }
.closer .phone { margin-top: 16px; }

footer {
  padding: 28px var(--gutter);
  background: var(--navy);
  color: #c9d6e6;
  font-size: 0.9375rem;
}
footer p { margin: 0 0 4px; }

/* Always-visible call button on phones */
.call-bar { display: none; }

@media (max-width: 860px) {
  body { padding-bottom: 64px; }
  .top nav, .top .top-call { display: none; }
  .top { padding-block: 10px; }
  .wordmark { font-size: 1.375rem; }

  .hero { display: block; min-height: 0; padding: 0; }
  .hero-photo { position: static; height: 34vh; min-height: 200px; }
  .sign { width: 100%; padding: 22px 16px 24px; }
  .phone { font-size: clamp(3rem, 15.5vw, 5.5rem); }

  .how ol { grid-template-columns: 1fr; }
  .how li::before { font-size: 3rem; }
  .room-grid { grid-template-columns: 1fr; }
  .room, .room-wide { grid-column: auto; }
  .room img { height: auto; aspect-ratio: 3 / 2; }
  .amenities, .location, .review-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .inline-call { font-size: 1.3125rem; }

  .call-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 25;
    display: block;
    padding: 18px 12px;
    background: var(--navy);
    border-top: 3px solid var(--sun);
    color: var(--sun);
    font: 700 1.5rem/1 var(--display);
    text-align: center;
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
