/* CNR Residency — shared styles
   Brand: navy #12324A · yellow #F2B705 · white
   One file, no framework. Mobile first. */

:root {
  --navy: #12324A;
  --navy-deep: #0D2538;
  --yellow: #F2B705;
  --paper: #F7F7F4;
  --ink: #1B2733;
  --muted: #5B6B78;
  --line: #DDE2E6;
  --white: #fff;
  --pad: clamp(20px, 5vw, 56px);
  --wrap: 980px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px;
  /* space for the fixed action bar */
}

h1,
h2,
h3 {
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.15;
  margin: 0
}

p {
  margin: 0 0 1em
}

a {
  color: var(--navy)
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad)
}

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

/* ---------- header / nav ---------- */
.top {
  background: var(--navy);
  color: var(--white)
}

.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px
}

.mark {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  text-decoration: none;
  color: var(--white)
}

/* badge below 480px (the full lockup is too wide next to the phone number),
   full horizontal lockup from 480px up — CSS-only swap, no JS */
.mark-full {
  display: none
}

@media(min-width:480px) {
  .mark-badge {
    display: none
  }

  .mark-full {
    display: block;
    width: 260px
  }
}

.top .phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: Montserrat;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  color: var(--yellow);
  white-space: nowrap
}

/* desktop: a taller bar with room for the logo, a bigger logo, and a phone
   number sized to hold its own next to it (tablet keeps the 480px sizing) */
@media(min-width:860px) {
  .top .wrap {
    padding-top: 22px;
    padding-bottom: 22px
  }

  .mark-full {
    width: 300px
  }

  .top .phone {
    font-size: 20px
  }
}

nav.main {
  background: var(--navy-deep)
}

nav.main ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  list-style: none;
  margin: 0;
  padding: 8px var(--pad)
}

nav.main a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #C8D4DE;
  text-decoration: none;
  font-size: 16px;
  font-family: Montserrat;
  font-weight: 600
}

nav.main a:hover,
nav.main a[aria-current="page"] {
  color: var(--yellow)
}

/* ---------- hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding-bottom: clamp(36px, 7vw, 72px)
}

.hero .rule {
  height: 4px;
  width: 96px;
  background: var(--yellow);
  border-radius: 2px;
  margin-top: clamp(28px, 5vw, 48px)
}

.hero h1 {
  font-size: clamp(32px, 6.4vw, 56px);
  font-weight: 800;
  letter-spacing: -.01em;
  max-width: 16ch;
  margin-top: 22px
}

.hero .tag {
  color: var(--yellow);
  font-family: Montserrat;
  font-weight: 600;
  font-size: clamp(17px, 2.6vw, 21px);
  margin-top: 14px
}

.hero p {
  max-width: 54ch;
  color: #C8D4DE;
  margin: 18px 0 0
}

.hero.page h1 {
  font-size: clamp(28px, 5vw, 44px);
  max-width: 20ch
}

/* ---------- tariff board ---------- */
.board {
  background: var(--navy-deep);
  color: var(--white);
  border-top: 4px solid var(--yellow)
}

.board .wrap {
  padding: clamp(32px, 6vw, 56px) var(--pad)
}

.board h2 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800
}

.board .note {
  color: #9FB2C0;
  font-size: 16px;
  margin-top: 8px
}

table.tariff {
  width: 100%;
  border-collapse: collapse;
  margin-top: 26px
}

table.tariff th {
  text-align: left;
  font-family: Montserrat;
  font-weight: 600;
  font-size: 16px;
  color: #9FB2C0;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .18)
}

table.tariff th:not(:first-child),
table.tariff td:not(:first-child) {
  text-align: right
}

table.tariff td {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  vertical-align: top
}

table.tariff .room {
  font-family: Montserrat;
  font-weight: 600;
  font-size: 19px
}

table.tariff .sub {
  display: block;
  color: #9FB2C0;
  font-size: 16px;
  font-weight: 400;
  margin-top: 4px
}

table.tariff .rate {
  font-family: Montserrat;
  font-weight: 800;
  font-size: clamp(19px, 3.6vw, 24px);
  color: var(--yellow);
  white-space: nowrap
}

.board .fine {
  color: #9FB2C0;
  font-size: 16px;
  margin-top: 22px;
  margin-bottom: 0
}

.table-scroll {
  width: 100%;
  overflow-x: auto
}

.table-scroll .tariff {
  min-width: 520px
}

/* ---------- sections ---------- */
section {
  padding: clamp(40px, 7vw, 76px) 0
}

section.tight {
  padding-top: 0
}

section h2 {
  font-size: clamp(24px, 4.4vw, 34px);
  font-weight: 800;
  max-width: 20ch
}

section p.lede {
  max-width: 62ch;
  color: var(--muted);
  margin-top: 14px
}

/* cards */
.grid2 {
  display: grid;
  gap: 26px;
  margin-top: 34px
}

@media(min-width:720px) {
  .grid2 {
    grid-template-columns: 1fr 1fr;
    gap: 34px
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line)
}

.card .body {
  padding: 22px
}

.card h3 {
  font-size: 21px;
  font-weight: 800
}

.card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 16px
}

.card li {
  padding: 4px 0 4px 20px;
  position: relative
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%
}

.shot {
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(45deg, #E9EDF0 0 14px, #E3E8EC 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8A99A5;
  font-size: 16px;
  text-align: center;
  padding: 16px
}

/* photos: fill the card/frame width, height follows from each image's own
   width/height attributes so aspect ratio holds and nothing shifts on load */
.card img,
.hero-photo img {
  width: 100%
}

.card .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 4px
}

.card .gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover
}

/* standalone photo rows mixing portrait and landscape shots: crop to a
   common square tile so the row reads as one line, not staggered heights */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 30px
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover
}

/* small framed photo beside hero/review text */
.hero-photo {
  max-width: 340px;
  margin: 0 auto
}

@media(min-width:760px) {
  .hero-photo {
    max-width: none;
    margin: 0
  }
}

/* facility list */
.facilities {
  columns: 2;
  column-gap: 34px;
  margin-top: 28px;
  padding: 0;
  list-style: none
}

@media(min-width:720px) {
  .facilities {
    columns: 3
  }
}

.facilities li {
  break-inside: avoid;
  padding: 7px 0 7px 22px;
  position: relative;
  font-size: 16px
}

.facilities li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700
}

/* callout */
.honest {
  margin-top: 26px;
  padding: 18px 20px;
  background: #FFF8E4;
  border-left: 4px solid var(--yellow);
  font-size: 16px;
  max-width: 62ch
}

.honest p:last-child {
  margin-bottom: 0
}

/* distance list */
.near {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  border-top: 1px solid var(--line)
}

.near li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line)
}

.near span:last-child {
  font-family: Montserrat;
  font-weight: 600;
  text-align: right
}

/* policies */
.policy {
  margin-top: 26px;
  border-top: 1px solid var(--line)
}

.policy div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px
}

.policy span:first-child {
  color: var(--muted)
}

.policy span:last-child {
  font-family: Montserrat;
  font-weight: 600;
  text-align: right
}

/* buttons */
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: Montserrat;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 2px;
  font-size: 16px
}

.btn-primary {
  background: var(--navy);
  color: var(--white)
}

.btn-line {
  border: 2px solid var(--navy);
  color: var(--navy)
}

/* split layout */
.split {
  display: grid;
  gap: 28px;
  margin-top: 26px
}

@media(min-width:760px) {
  .split {
    grid-template-columns: 1.1fr 1fr;
    gap: 44px
  }
}

.panel {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

/* reviews band */
.say {
  background: var(--navy);
  color: var(--white)
}

.say .score {
  font-family: Montserrat;
  font-weight: 800;
  font-size: clamp(44px, 9vw, 74px);
  color: var(--yellow);
  line-height: 1
}

.say .of {
  color: #9FB2C0;
  margin-top: 8px
}

.quotes {
  display: grid;
  gap: 22px;
  margin-top: 30px
}

@media(min-width:720px) {
  .quotes {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px
  }
}

.quotes p {
  margin: 0;
  color: #DCE5EC;
  font-size: 16.5px;
  border-left: 3px solid var(--yellow);
  padding-left: 16px
}

/* faq */
.faq {
  margin-top: 28px
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0
}

.faq summary {
  font-family: Montserrat;
  font-weight: 600;
  font-size: 17.5px;
  cursor: pointer
}

.faq p {
  margin: 12px 0 0;
  color: var(--muted)
}

/* footer */
footer {
  background: var(--navy-deep);
  color: #9FB2C0;
  font-size: 16px
}

footer .wrap {
  padding-top: 36px;
  padding-bottom: 36px
}

footer a {
  color: var(--white);
  text-decoration: none
}

footer .fr {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 14px
}

footer .name {
  font-family: Montserrat;
  font-weight: 800;
  color: #fff;
  letter-spacing: .06em
}

/* fixed call/whatsapp bar */
.actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  z-index: 20;
  border-top: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .12)
}

.actions a {
  flex: 1;
  text-align: center;
  padding: 18px 8px;
  text-decoration: none;
  font-family: Montserrat;
  font-weight: 600;
  font-size: 16px
}

.actions .call {
  background: var(--navy);
  color: var(--white)
}

.actions .wa {
  background: var(--yellow);
  color: var(--navy)
}

@media(min-width:860px) {
  .actions {
    display: none
  }

  body {
    padding-bottom: 0
  }
}

/* ---------- booking form ---------- */
.booking-section {
  padding-top: clamp(36px, 6vw, 64px)
}

.booking-form {
  max-width: 760px
}

.form-note,
.form-footnote {
  color: var(--muted);
  font-size: 16px
}

.field-grid {
  display: grid;
  gap: 20px;
  margin-top: 26px
}

@media(min-width:680px) {
  .field-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 26px
  }
}

.form-field {
  min-width: 0
}

.form-field label,
.choice-field legend {
  display: block;
  font-family: Montserrat;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 8px
}

.optional {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 400;
  color: var(--muted)
}

.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 1px solid #AAB7C0;
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 10px 12px
}

.form-field textarea {
  min-height: 120px;
  resize: vertical
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--navy);
  outline: 3px solid var(--yellow);
  outline-offset: 1px
}

.form-field [aria-invalid="true"],
.choice-field [aria-invalid="true"] {
  border-color: #9B1C1C
}

.field-error {
  color: #9B1C1C;
  font-size: 16px;
  line-height: 1.35;
  margin: 6px 0 0
}

.choice-field {
  border: 0;
  margin: 26px 0 0;
  padding: 0
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px
}

.choice-row label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  font-size: 16px
}

.choice-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--navy)
}

.estimate {
  margin-top: 30px;
  padding: 22px;
  background: var(--navy-deep);
  color: var(--white);
  border-top: 4px solid var(--yellow)
}

.estimate h2 {
  font-size: 24px
}

.estimate output {
  display: block;
  color: var(--yellow);
  font-family: Montserrat;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  margin-top: 10px
}

.estimate p {
  color: #C8D4DE;
  font-size: 16px;
  margin: 10px 0 0
}

.form-actions {
  margin-top: 28px
}

.form-actions .btn-primary {
  border: 0;
  cursor: pointer
}

.form-actions button:disabled {
  cursor: wait;
  opacity: .7
}

.form-status {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white)
}

.form-status h2 {
  font-size: 26px
}

.form-status p:last-child {
  margin-bottom: 0
}

.form-status-error {
  border-left: 4px solid #9B1C1C
}

.form-status-success {
  border-left: 4px solid var(--yellow)
}

.form-status-success strong {
  font-family: Montserrat;
  color: var(--navy)
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden
}

[hidden] {
  display: none !important
}

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

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