/* Villa Aya — site styles */

@font-face { font-family: 'Marcellus'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/marcellus-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Marcellus'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/marcellus-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('/fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('/fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #F3EEE6;
  --band: #EAE3D6;
  --ink: #1C2320;
  --ink-2: #3A3F3B;
  --muted: #5B574F;
  --rule: #D6CDBD;
  --field-border: #B9AE9C;
  --field-bg: #F7F3EC;
  --green: #1E4038;
  --accent: #8B4A1F;
  --display: 'Marcellus', Georgia, serif;
  --body: 'Jost', system-ui, -apple-system, sans-serif;
  /* 80px gutter at 1440, 20px on phones */
  --gutter: clamp(20px, 5.5vw, 80px);
  --gap: clamp(20px, 2.3vw, 32px);
  --section: clamp(64px, 9vw, 128px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, p, dl, dd { margin: 0; }
a { color: var(--ink); text-underline-offset: 5px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: 88px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 28px; }
.stack-sm { display: flex; flex-direction: column; gap: 20px; }
.stack-lg { display: flex; flex-direction: column; gap: clamp(28px, 3.5vw, 56px); }

/* type */
.eyebrow { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.accent-c { color: var(--accent); }
.accent { color: var(--accent); }
.accent-s { font-style: normal; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; }
.h-xl { font-size: clamp(44px, 5.6vw, 80px); line-height: 1; }
.h-lg { font-size: clamp(40px, 5vw, 72px); line-height: 0.98; }
.h-md { font-size: clamp(36px, 4.45vw, 64px); line-height: 1; }
.body { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.lede { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 380px; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; }
.link-strong { font-size: 15px; font-weight: 600; }
.nocase { text-transform: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px;
  background: var(--ink); color: var(--bg); font: inherit; font-size: 15px; font-weight: 500; text-decoration: none;
  border: 0; border-radius: 0; cursor: pointer; }
.btn:hover { background: var(--green); color: var(--bg); }
.btn-lg { height: 52px; font-size: 16px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); height: 96px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 var(--gutter); border-bottom: 1px solid var(--rule);
  max-width: none; }
.brand { font-family: var(--display); font-size: 30px; text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 40px; align-items: center; font-size: 15px; }
.nav-links a:not(.btn) { text-decoration: none; }
.nav-toggle { display: none; }

/* title */
.title { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  padding-top: clamp(40px, 4vw, 56px); padding-bottom: 44px; }
.title-main { display: flex; flex-direction: column; gap: 20px; }
.title h1 { font-size: clamp(88px, 16.4vw, 236px); line-height: 0.82; letter-spacing: -0.03em; }
.title-side { width: 360px; flex: none; display: flex; flex-direction: column; gap: 20px; padding-bottom: 10px; }
.title-side p { font-size: 17px; line-height: 1.55; color: var(--ink-2); }

.hero { width: 100%; height: clamp(360px, 55.5vw, 800px); object-fit: cover; object-position: 50% 55%; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); align-items: center;
  min-height: 176px; padding-top: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.facts > div { display: flex; flex-direction: column; gap: 6px; }
.fact-n { font-family: var(--display); font-size: clamp(36px, 3.6vw, 52px); line-height: 1; }
.fact-l { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* house */
.house { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding-top: var(--section); padding-bottom: var(--section); }
.house-text { grid-column: span 5; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.house-fig { grid-column: 7 / span 6; }
.img-md { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.house-text .img-md { height: 300px; aspect-ratio: auto; }
.img-tall { width: 100%; height: 100%; min-height: 480px; max-height: 780px; object-fit: cover; object-position: 55% 50%; }
.house-fig { display: flex; flex-direction: column; }
.house-fig .img-tall { flex: 1; }

/* bands */
.band { background: var(--band); }
.band-dark { background: var(--green); color: var(--bg); }
.inside { padding-top: clamp(64px, 6.7vw, 96px); padding-bottom: 80px; }
.inside .stack-lg { gap: 24px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.inside .sec-head { align-items: flex-start; }
.inside .sec-head .lede { margin-top: 44px; }
.sec-head .lede { flex: none; width: 380px; }
.img-wide { width: 100%; height: clamp(260px, 41.7vw, 600px); object-fit: cover; object-position: 50% 60%; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.grid-2 .img-md { height: clamp(220px, 26.4vw, 380px); aspect-ratio: auto; }

/* rooms */
.rooms { padding-top: var(--section); padding-bottom: var(--section); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.img-room { width: 100%; height: clamp(300px, 34.7vw, 500px); object-fit: cover; }
.room:nth-child(1) .img-room { object-position: 45% 50%; }
.room:nth-child(2) .img-room { object-position: 60% 50%; }
.room:nth-child(3) .img-room { object-position: 40% 50%; }
.room figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.room-name { font-family: var(--display); font-size: 28px; color: var(--ink); }
.room-desc { font-size: 14px; color: var(--muted); }

/* bathrooms */
.baths { padding-top: clamp(64px, 8.3vw, 120px); padding-bottom: clamp(64px, 8.3vw, 120px); }
.baths-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.baths-text { grid-column: span 4; padding-top: 8px; }
.baths .eyebrow { color: #C9D6CF; }
.baths .body { color: #DCE5E0; }
.img-bath { grid-column: 5 / span 4; width: 100%; height: clamp(360px, 45.8vw, 660px); object-fit: cover; }
.img-bath-2 { grid-column: 9 / span 4; margin-top: 80px; object-position: 35% 50%; }

/* location */
.location { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding-top: clamp(64px, 6.7vw, 96px); padding-bottom: clamp(64px, 6.7vw, 96px); }
.location > .stack { grid-column: span 6; gap: 32px; }
.location-fig { grid-column: 8 / span 5; }
.location-fig .img-md { height: 360px; aspect-ratio: auto; }
.distances { font-size: 16px; }
.distances > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.distances > div:last-child { border-bottom: 1px solid var(--rule); }
.distances dd { color: var(--muted); text-align: right; }

/* booking */
.book { padding-top: clamp(64px, 7.2vw, 104px); padding-bottom: clamp(64px, 7.2vw, 104px); }
.book .stack-lg { gap: 44px; }
.contact-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.contact-cta .btn { min-width: 220px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.contact-links { display: flex; flex-wrap: wrap; gap: 16px 40px; font-size: 15px; color: var(--ink-2); }

/* footer */
.footer { background: var(--ink); color: var(--bg); }
.footer-inner { min-height: 180px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 40px; padding-bottom: 40px; }
.footer-brand { font-family: var(--display); font-size: 40px; line-height: 1; }
.footer-sub, .footer-meta { font-size: 14px; color: #BFB6A6; }
.footer-sub { margin-top: 6px; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 28px; }
}

@media (max-width: 900px) {
  .nav { height: 72px; }
  [id] { scroll-margin-top: 72px; }
  .brand { font-size: 26px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    margin-right: -10px; background: none; border: 0; cursor: pointer; color: var(--ink); }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; } .bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px; font-size: 18px; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav-links .btn { margin-top: 16px; height: 52px; }

  .title { flex-direction: column; align-items: flex-start; gap: 28px; }
  .title-side { width: auto; max-width: 480px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }

  .house, .location, .baths-grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .house-text, .house-fig, .location > .stack, .location-fig, .baths-text, .img-bath, .img-bath-2 { grid-column: auto; }
  .img-tall { min-height: 0; height: clamp(320px, 80vw, 620px); }
  .house-text .img-md, .location-fig .img-md { height: auto; aspect-ratio: 3 / 2; }

  .baths-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .baths-text { grid-column: 1 / -1; }
  .img-bath { height: clamp(300px, 60vw, 520px); }
  .img-bath-2 { margin-top: 48px; }

  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room:nth-child(3) { grid-column: 1 / -1; }
  .room:nth-child(3) .img-room { height: clamp(300px, 50vw, 460px); }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .sec-head .lede, .inside .sec-head .lede { width: auto; margin-top: 0; }
}

/* ---------- Phone ---------- */
@media (max-width: 600px) {
  .facts { min-height: 0; }
  .grid-2, .grid-3, .baths-grid { grid-template-columns: minmax(0, 1fr); }
  .img-bath-2 { margin-top: 0; }
  .img-room, .room:nth-child(3) .img-room { height: auto; aspect-ratio: 4 / 3; }
  .grid-2 .img-md { height: auto; aspect-ratio: 3 / 2; }
  .body { font-size: 16px; }
  .contact-cta .btn { width: 100%; }
  .distances > div { flex-direction: column; gap: 2px; }
  .distances dd { text-align: left; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* 404 */
.notfound { min-height: calc(100vh - 96px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px; padding-top: 64px; padding-bottom: 64px; }
