/* Welfare Vacation Homes · demo by Cox Technologies
   Palette: white ground · midnight navy #12233F · ink #1A2233 · gold #D9A441 · tint #F2F4F8
   Type: Prata (display) + Jost (body) */

:root {
  --navy: #12233F;
  --navy-deep: #0C1930;
  --ink: #1A2233;
  --gold: #D9A441;
  --gold-deep: #C6912E;
  --tint: #F2F4F8;
  --muted: #55617A;
  --navy-muted: #B9C6DC;
  --line: #DCE2EE;
  --line-navy: #2A3D5F;
  --display: "Prata", Georgia, serif;
  --body: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 1rem;
}

h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; max-width: 65ch; }

a { color: inherit; }

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

.shell {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section-lede { color: var(--muted); margin-bottom: 2rem; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: .75rem 1.25rem;
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-ghost {
  border-color: rgba(255, 255, 255, .75);
  color: #fff;
  background: rgba(18, 35, 63, .35);
}
.btn-ghost:hover { background: rgba(18, 35, 63, .6); border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-navy-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-navy-outline:hover { background: var(--navy); color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  padding-block: .85rem;
}
.brand {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.brand-logo { height: 2.4rem; width: auto; display: block; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: 500 .95rem var(--body);
  padding: .45rem .9rem;
  border-radius: 6px;
  cursor: pointer;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.35rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: .95rem;
}
.site-nav a:hover { color: var(--navy); }

/* Without JS the nav simply stays visible; with JS it collapses on small screens */
@media (max-width: 999px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; flex-basis: 100%; }
  .js .site-nav.open { display: block; padding-bottom: .75rem; }
  .js .site-nav ul { flex-direction: column; gap: .35rem; }
  .js .site-nav a { display: block; padding: .4rem 0; font-size: 1.05rem; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 35, 63, .45), rgba(18, 35, 63, .72));
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 6rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  max-width: 15ch;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: #E4EAF4;
  margin-bottom: 2.25rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Trust prose */
.trust { padding-block: 4.5rem 4rem; }
.trust-line {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  color: var(--navy);
  max-width: 34ch;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}
.trust-line a {
  color: var(--navy);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Featured homes */
.homes { background: var(--tint); padding-block: 4.5rem; }
.homes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.home-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.home-media { position: relative; }
.home-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.home-price {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  background: rgba(18, 35, 63, .9);
  color: #fff;
  font-weight: 500;
  font-size: 1.05rem;
  padding: .45rem .9rem;
  border-radius: 0 8px 0 0;
  max-width: none;
}
.home-price small { font-size: .8rem; color: var(--navy-muted); font-weight: 400; }
.home-body { padding: 1.1rem 1.25rem 1.25rem; }
.home-body h3 { margin-bottom: .35rem; text-wrap: balance; }
.home-loc { color: var(--muted); font-size: .95rem; margin-bottom: .25rem; }
.home-cap { color: var(--muted); font-size: .9rem; margin: 0; }
.homes-note { color: var(--muted); font-size: .85rem; margin: 1.5rem 0 1.75rem; }
.homes-more { margin: 0; }

/* Book & pay */
.book { background: var(--navy); color: #fff; padding-block: 4.5rem 5rem; }
.book h2 { color: #fff; }
.book-lede { color: var(--navy-muted); }
.currency-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin-bottom: 2rem;
}
.currency-toggle {
  display: inline-flex;
  border: 1px solid var(--line-navy);
  border-radius: 999px;
  padding: 3px;
  background: var(--navy-deep);
}
.currency-toggle button {
  border: 0;
  background: transparent;
  color: var(--navy-muted);
  font: 500 .95rem var(--body);
  padding: .5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.currency-toggle button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--ink);
}
.fx-note { color: var(--navy-muted); font-size: .85rem; margin: 0; }

.book-panel {
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
}
.bk-grid, .pay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.bk-field label {
  display: block;
  font-weight: 500;
  font-size: .95rem;
  margin-bottom: .3rem;
}
.bk-field select,
.bk-field input {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid #C4CDDD;
  border-radius: 8px;
  font: 400 1rem var(--body);
  color: var(--ink);
  background: #fff;
}
.bk-field select:focus-visible,
.bk-field input:focus-visible { outline-offset: 1px; }
.bk-field input:disabled {
  background: #F7F9FC;
  color: var(--muted);
  cursor: not-allowed;
}
.field-err {
  color: #A32014;
  font-size: .88rem;
  margin: .35rem 0 0;
  min-height: 0;
}
.bk-summary {
  background: var(--tint);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-block: 1.35rem;
}
.bk-hint { color: var(--muted); margin: 0; font-size: .95rem; }
.bk-lines { margin: 0; }
.bk-lines div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .3rem;
}
.bk-lines dt { color: var(--muted); }
.bk-lines dd { margin: 0; font-weight: 500; }
.bk-total {
  border-top: 1px solid var(--line);
  margin-top: .5rem;
  padding-top: .65rem !important;
}
.bk-total dt { color: var(--ink); font-weight: 500; }
.bk-total dd { font-family: var(--display); font-size: 1.2rem; }

.pay-tabs {
  display: flex;
  gap: .5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.pay-tab {
  border: 0;
  background: transparent;
  font: 500 1rem var(--body);
  color: var(--muted);
  padding: .55rem 1rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.pay-tab[aria-pressed="true"] {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
.pay-panel { margin-bottom: 1.5rem; }
.pay-note { color: var(--muted); font-size: .85rem; margin: 1rem 0 0; }
.pix-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  background: var(--tint);
  border-radius: 10px;
  padding: 1.25rem;
}
.pix-qr {
  width: 132px;
  height: 132px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  flex: none;
}
.pix-label { margin: 0; font-size: .95rem; color: var(--ink); }
.bk-submit { font-size: 1.05rem; padding: .9rem 2.2rem; }

.bk-success h3 { color: var(--navy); }
.bk-success p:last-child { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.bk-success a { color: var(--navy); text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

/* Guest words */
.guests { background: var(--tint); padding-block: 4.5rem; }
.guests-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.guests-photo { margin: 0; }
.guests-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  border-radius: 12px;
}
.guests h2 { color: var(--navy); }
.guests-quote { margin: 0; }
.guests-quote p {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
  color: var(--navy);
  max-width: 40ch;
}
.guests-quote footer { color: var(--muted); font-weight: 500; }

/* Property management */
.owners { padding-block: 4.5rem; }
.owners h2 { color: var(--navy); }
.owners-copy { margin-bottom: 1.75rem; }

/* Dusk banner */
.dusk img {
  width: 100%;
  height: clamp(220px, 34vw, 380px);
  object-fit: cover;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding-block: 4rem 110px; /* bottom clearance for the demo badge */
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}
.footer-brand {
  font-family: var(--display);
  font-size: 1.35rem;
  margin-bottom: .25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.footer-mark { width: 2rem; height: auto; filter: brightness(0) invert(1); }
.footer-tag { color: var(--navy-muted); }
.footer-cta { margin-top: .25rem; }
.footer-col h2 {
  font-family: var(--body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--navy-muted);
  margin-bottom: .75rem;
}
.footer-col p { margin-bottom: .4rem; }
.footer-col a {
  color: #fff;
  text-decoration-color: var(--line-navy);
  text-underline-offset: 3px;
}
.footer-col a:hover { text-decoration-color: var(--gold); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-navy);
}
.footer-bottom p { color: var(--navy-muted); font-size: .9rem; margin: 0; }

/* ≥640px */
@media (min-width: 640px) {
  .homes-grid { grid-template-columns: repeat(2, 1fr); }
  .bk-grid { grid-template-columns: repeat(2, 1fr); }
  .bk-wide { grid-column: 1 / -1; }
  .pay-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-wide { grid-column: 1 / -1; }
  .pix-wrap { flex-direction: row; align-items: center; }
  .book-panel { padding: 2rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ≥1000px */
@media (min-width: 1000px) {
  .homes-grid { grid-template-columns: repeat(3, 1fr); }
  .bk-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .bk-wide { grid-column: auto; }
  .guests-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .book-panel { padding: 2.5rem; }
}

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