/* Casa Azul — styles */
:root {
  --salt: #F4F8F9;
  --white: #FFFFFF;
  --channel: #0E2A3B;     /* deep water ink */
  --channel-soft: #4A6373;
  --azul: #1F5FA8;        /* the house */
  --azul-deep: #17477E;
  --seaglass: #A8D8CC;
  --buoy: #F4C04E;        /* buoy yellow, CTAs only */
  --line: #D5E2E6;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--salt);
  color: var(--channel);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--azul); }
:focus-visible { outline: 3px solid var(--buoy); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 100; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-lede { font-size: 1.1rem; color: var(--channel-soft); max-width: 60ch; margin-top: 16px; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font: 600 1rem var(--sans);
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
}
.btn-buoy { background: var(--buoy); color: var(--channel); }
.btn-buoy:hover { background: #F7CF6E; }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: var(--white); }
.text-link { font-weight: 600; text-underline-offset: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px; background: var(--azul-deep); color: var(--white);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font: 1.25rem var(--serif); }
.brand svg { width: 28px; height: 28px; }
.brand svg path { fill: var(--white); }
.brand svg rect { fill: var(--buoy); }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.site-header nav a { color: var(--white); text-decoration: none; font-weight: 500; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.site-header nav a.nav-cta { background: var(--buoy); color: var(--channel); padding: 8px 16px; border-radius: 999px; }
.site-header nav a.nav-cta:hover { text-decoration: none; background: #F7CF6E; }

/* Hero: painted clapboard siding */
.hero {
  background-color: var(--azul);
  background-image: repeating-linear-gradient(180deg,
    rgba(255,255,255,0) 0 46px,
    rgba(10,40,80,.22) 46px 48px,
    rgba(255,255,255,.07) 48px 50px);
  color: var(--white);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 104px);
}
.hero-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(4rem, 13vw, 9.5rem); line-height: .9; letter-spacing: -.02em;
  text-shadow: 0 3px 0 var(--azul-deep);
}
.hero-lede { font-size: 1.2rem; max-width: 34ch; margin: 28px 0 32px; color: #E6F0FA; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 8px; color: #D6E6F5; }
.hero-facts strong { color: var(--white); font-weight: 600; }

/* Photo frames with labeled placeholder until real photos land */
.photo {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--seaglass), #7FB6C9);
  min-height: 220px;
}
.photo::before {
  content: attr(data-label); position: absolute; inset: auto 16px 14px 16px;
  font-size: .9rem; color: var(--channel); opacity: .75;
}
.photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.hero-photo { aspect-ratio: 4 / 3; border: 6px solid var(--white); box-shadow: 0 18px 0 -8px var(--azul-deep); transform: rotate(1.5deg); }

/* Stays */
.stays { background: var(--white); }
.stay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.stay { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.stay-photo { aspect-ratio: 3 / 2; border-radius: 0; }
.stay-body { padding: 24px 26px 28px; }
.stay-body h3 { font-size: 1.6rem; }
.stay-specs { font-weight: 600; color: var(--azul); margin: 6px 0 14px; }
.stay-rating { font-size: .95rem; color: var(--channel-soft); }
.stay-rating strong { color: var(--channel); }

/* Full House spans both units, joined by a bracket */
.stay-full {
  grid-column: 1 / -1; position: relative; overflow: visible;
  flex-direction: row; background: var(--salt); border-color: var(--azul); border-width: 2px;
}
.stay-full .stay-photo { flex: 0 0 44%; aspect-ratio: auto; border-radius: 12px 0 0 12px; }
.stay-full .stay-body { align-self: center; padding: 32px 36px; }
.bracket { position: absolute; left: 25%; right: 25%; top: -28px; height: 20px;
  border: 2px solid var(--azul); border-bottom: 0; border-radius: 10px 10px 0 0; }
.bracket span { position: absolute; left: 50%; top: 100%; width: 2px; height: 8px; background: var(--azul); }

/* Amenities */
.amen-wrap { display: grid; grid-template-columns: 1fr 2.4fr; gap: 48px; }
.amen-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.amen-list h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; color: var(--azul); }
.amen-list p { margin: 0; color: var(--channel-soft); }

/* Book direct */
.direct { background: var(--channel); color: var(--white); }
.direct .section-lede { color: #B9CCD6; }
.direct-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 28px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--buoy); color: var(--channel); font: 1.25rem var(--serif);
}
.steps h3 { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.steps p { margin: 0; color: #C9D8E0; }

/* Area */
.area { background: var(--white); }
.area-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.area-copy > p { color: var(--channel-soft); margin-top: 16px; max-width: 54ch; }
.near { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.near li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.near li span:first-child { font-weight: 600; }
.near li span:last-child { color: var(--channel-soft); text-align: right; }
.area-map { aspect-ratio: 1 / 1; }

/* FAQ */
.faq h2 { margin-bottom: 28px; }
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-weight: 600; font-size: 1.08rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 1.6rem var(--serif); color: var(--azul); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--channel-soft); padding-bottom: 8px; max-width: 64ch; }

/* Inquiry */
.inquire { background: var(--azul); color: var(--white); }
.inquire-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.inquire-intro p { color: #E0ECF8; margin-top: 16px; max-width: 40ch; }
.form-status:empty, .form-error:empty { display: none; }
.form-status { background: var(--buoy); color: var(--channel); padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.inquiry-form {
  background: var(--white); color: var(--channel); border-radius: var(--radius-lg);
  padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--channel-soft); }
input, select, textarea {
  font: 1rem var(--sans); color: var(--channel); background: var(--salt);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--azul); outline: none; box-shadow: 0 0 0 3px rgba(31,95,168,.2); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #B3261E; }
.form-error { grid-column: 1 / -1; color: #B3261E; font-weight: 600; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry-form .btn { width: 100%; font-size: 1.05rem; padding: 16px; }

/* Footer */
.site-footer { background: var(--channel); color: #B9CCD6; padding: 40px 0; font-size: .95rem; }
.footer-wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { font: 1.4rem var(--serif); color: var(--white); margin-bottom: 4px; }
.site-footer p { margin: 0 0 4px; }
.footer-meta { text-align: right; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .direct-wrap, .area-wrap, .inquire-wrap, .amen-wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { transform: none; aspect-ratio: 4 / 3; }
  .site-header nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap, .hero-inner { padding: 0 16px; }
  .site-header { padding: 10px 16px; }
  .stay-grid { grid-template-columns: 1fr; }
  .stay-full { flex-direction: column; }
  .stay-full .stay-photo { flex: none; aspect-ratio: 3 / 2; border-radius: 12px 12px 0 0; }
  .stay-full .stay-body { padding: 24px; }
  .bracket { display: none; }
  .amen-list { grid-template-columns: 1fr; }
  .inquiry-form { grid-template-columns: 1fr; padding: 22px; }
  .near li { flex-direction: column; gap: 2px; }
  .near li span:last-child { text-align: left; }
  .footer-meta { text-align: left; }
}

/* Gallery */
.gallery h2 { margin-bottom: 32px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 10px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); background: var(--seaglass); }
.gallery-grid .wide { grid-column: span 2; }
.gallery-grid .tall { grid-row: span 2; }

/* Hosts */
.hosts { background: var(--white); }
.hosts-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; max-width: 900px; }
.hosts-wrap img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--seaglass); }
.hosts-wrap p { color: var(--channel-soft); margin-top: 16px; font-size: 1.1rem; max-width: 50ch; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .hosts-wrap { grid-template-columns: 1fr; gap: 28px; }
  .hosts-wrap img { max-width: 240px; }
}
.footer-link { color: #FFFFFF; }

/* Policies */
.policies { background: var(--white); }
.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.policy { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; background: var(--salt); }
.policy h3 { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; color: var(--azul); margin-bottom: 10px; }
.policy ul { margin: 0; padding-left: 1.1em; color: var(--channel-soft); }
.policy li { margin-bottom: 8px; }
@media (max-width: 680px) { .policy-grid { grid-template-columns: 1fr; } }

/* Reviews */
.reviews { background: var(--salt); }
.reviews-sub { color: var(--channel-soft); margin: 12px 0 36px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.review blockquote { margin: 0; color: var(--channel); line-height: 1.6; }
.review figcaption { display: flex; align-items: center; gap: 12px; color: var(--channel-soft); font-size: .95rem; }
.review figcaption strong { color: var(--channel); }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; color: var(--white); background: var(--azul); }
.review:nth-child(3n+2) .avatar { background: var(--azul-deep); }
.review:nth-child(3n) .avatar { background: var(--seaglass); color: var(--channel); }
.reviews-note { color: var(--channel-soft); font-size: .85rem; margin-top: 20px; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .reviews-grid { grid-template-columns: 1fr; } }

.footer-social { display: inline-flex; align-items: center; gap: 6px; }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* Casa Luna */
.luna { background: var(--channel); color: #D7E3EA; }
.luna h2 { color: var(--white); }
.luna-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.luna-wrap img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); }
.luna-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--seaglass); margin: 0 0 8px; }
.luna-wrap p { max-width: 52ch; }
.luna-facts { color: var(--white); font-weight: 600; margin-top: 12px; }
.luna-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 24px; }
.luna-link { color: var(--white); }
@media (max-width: 900px) { .luna-wrap { grid-template-columns: 1fr; gap: 28px; } }
.luna h2 { margin-bottom: 16px; }

.luna-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; grid-auto-flow: dense; gap: 10px; margin-top: 40px; }
.luna-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.luna-gallery .wide { grid-column: span 2; }
.luna-gallery .tall { grid-row: span 2; }
@media (max-width: 700px) { .luna-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; } }
