/* House Agave. Palette and type taken from the house itself:
   limewash walls, Adriatic ink, agave leaves, striped linen, Vis stone. */

@font-face {
  font-family: "Prata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/prata-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/albert-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/albert-sans-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 {
  --ink: #13242f;
  --ink-soft: #3d4c55;
  --lime: #f4f4f0;
  --paper: #ffffff;
  --agave: #5f7f78;
  --agave-deep: #43625c;
  --linen: #2e4c7a;
  --stone: #d8d1c2;
  --rule: #dcdcd4;

  --display: "Prata", Georgia, "Times New Roman", serif;
  --body: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--lime);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--agave); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .hero :focus-visible, .site-header :focus-visible { outline-color: #fff; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.005em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.eyebrow {
  display: block;
  font: 600 0.78rem/1.3 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--agave-deep);
  margin-bottom: 1.1rem;
}
.lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: #fff; padding: 8px 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  font: 600 0.95rem/1 var(--body);
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--stone); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--linen); }

/* Header */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  color: #fff;
  background: linear-gradient(rgba(10,22,30,.55), rgba(10,22,30,0));
}
.site-header.solid { position: relative; background: var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 400 1.3rem/1 var(--display); }
.brand-mark {
  width: 30px; height: 30px; background: currentColor;
  -webkit-mask: url(/assets/img/agave-mark.png) center / contain no-repeat;
          mask: url(/assets/img/agave-mark.png) center / contain no-repeat;
}
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-size: 0.95rem; }
.nav a { text-decoration: none; opacity: .9; }
.nav a:hover { opacity: 1; text-decoration: underline; }
.nav .btn { opacity: 1; padding: 0.75em 1.25em; }
.nav .btn:hover { text-decoration: none; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* Hero: headline on ink, the house among the palms on the right */
.hero { background: var(--ink); color: #fff; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px);
  min-height: min(100svh, 1000px);
  padding-block: 100px clamp(40px, 5vw, 64px);
}
.hero-copy { align-self: center; padding-top: 8vh; }
.hero-eyebrow { display: block; font: 700 .8rem/1.3 var(--body); letter-spacing: .24em; text-transform: uppercase; margin-bottom: 1.8rem; }
.hero-title { font-size: clamp(3rem, 5.5vw, 5.6rem); line-height: 1.04; }
@media (min-width: 861px) { .hero-title .line { white-space: nowrap; } }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.hero-title .line > span { display: block; }
.hero-media { position: relative; margin: 0; min-height: 440px; border-radius: 10px; overflow: hidden; background: #24343e; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
  scale: 1.1; translate: 0 var(--py, 0px);
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 120px 20px; gap: 36px; }
  .hero-copy { padding-top: 0; }
  .hero-media { min-height: 0; aspect-ratio: 4 / 5; max-height: 74svh; }
  .hero-media img { scale: 1; }
}

/* The entrance: headline rises line by line, the photo unveils from below and settles,
   a glint of sunlight passes over it, then the linen seam weaves across. */
@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow { animation: eyebrow-in 1.4s cubic-bezier(.2,.7,.2,1) .15s both; }
  .hero-title .line > span { animation: line-up 1.2s cubic-bezier(.19,1,.22,1) both; }
  .hero-title .line:nth-child(1) > span { animation-delay: .3s; }
  .hero-title .line:nth-child(2) > span { animation-delay: .44s; }
  .hero-title .line:nth-child(3) > span { animation-delay: .58s; }
  .hero-media { animation: unveil 1.6s cubic-bezier(.77,0,.18,1) .05s both; }
  .hero-media img { animation: settle 2.6s cubic-bezier(.2,.7,.2,1) .05s both; }
  .hero-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255,250,235,.32) 50%, transparent 65%);
    translate: -100% 0;
    animation: glint 1.8s cubic-bezier(.4,0,.2,1) 1.5s both;
  }
  .hero + .linen { transform-origin: left; animation: weave 1.4s cubic-bezier(.77,0,.18,1) .9s both; }

  @keyframes eyebrow-in { from { opacity: 0; letter-spacing: .6em; } }
  @keyframes line-up { from { transform: translateY(108%); } }
  @keyframes unveil { from { clip-path: inset(100% 0 0 0 round 10px); } to { clip-path: inset(0 0 0 0 round 10px); } }
  @keyframes settle { from { scale: 1.4; } }
  @keyframes glint { to { translate: 100% 0; } }
  @keyframes weave { from { transform: scaleX(0); } }
}

/* Signature: the striped linen seam */
.linen {
  height: 22px;
  background: repeating-linear-gradient(90deg, var(--linen) 0 13px, #fbfbf8 13px 26px);
}

/* Key facts */
.facts { background: var(--paper); border-bottom: 1px solid var(--rule); }
.facts ul {
  list-style: none; margin: 0; padding: clamp(28px, 4vw, 44px) 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.facts li { padding: 6px clamp(10px, 1.6vw, 22px); border-left: 1px solid var(--rule); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 var(--display); }
.facts span { display: block; font-size: 0.9rem; color: var(--ink-soft); margin-top: 6px; line-height: 1.35; }
@media (max-width: 900px) {
  .facts ul { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .facts li:nth-child(3n+1) { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) {
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li { border-left: 0; padding-left: 0; }
  .facts li:nth-child(even) { border-left: 1px solid var(--rule); padding-left: 16px; }
}

/* Sections */
.section { padding-block: var(--section); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 + p { margin-top: 1.2rem; }

/* Intro */
.intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.intro h2 { margin-bottom: 1.4rem; }
.intro figure { margin: 0; }
.intro img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.check { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 10px; }
.check li { padding-left: 28px; position: relative; }
.check li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px;
  border-left: 2px solid var(--agave); border-bottom: 2px solid var(--agave); transform: rotate(-45deg);
}
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } .intro figure { order: -1; } }

/* Two feature cards */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); }
.card { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; min-height: 460px; display: flex; align-items: flex-end; background: var(--ink); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,22,30,.85), rgba(10,22,30,.1) 60%); }
.card-body { position: relative; z-index: 1; padding: clamp(24px, 3vw, 40px); max-width: 520px; }
.card h3 { margin-bottom: .6rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.card p { color: rgba(255,255,255,.88); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .card:hover img { transform: scale(1.03); } }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } .card { min-height: 400px; } }

/* Gallery */
.house-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; margin-bottom: clamp(40px, 5vw, 64px); }
@media (max-width: 860px) { .house-grid { grid-template-columns: 1fr; } }
.rooms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rooms li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.rooms li span:last-child { color: var(--ink-soft); text-align: right; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(8px, 1.2vw, 14px); margin: 0; padding: 0; list-style: none; }
.gallery li { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .wide { grid-row: span 2; }
.gallery .tall { aspect-ratio: 8 / 9; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .wide { grid-row: auto; grid-column: span 2; aspect-ratio: 3 / 2; }
}

/* Garden */
.garden { background: var(--paper); }
.garden-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.garden-photos { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; align-items: end; }
.garden-photos img { border-radius: var(--radius); width: 100%; aspect-ratio: 8 / 9; object-fit: cover; }
.garden-photos img:last-child { margin-bottom: 15%; }
@media (max-width: 860px) { .garden-grid { grid-template-columns: 1fr; } }

/* Location */
.location-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.distances { margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.distances div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.distances dt { font-weight: 600; }
.distances dd { margin: 0; color: var(--ink-soft); text-align: right; }
@media (max-width: 860px) { .location-grid { grid-template-columns: 1fr; } }

/* Reviews */
.on-dark { background: var(--ink); color: #fff; }
.on-dark .eyebrow { color: #a9c3bd; }
#reviews .section-head { margin-inline: auto; text-align: center; }
.carousel { max-width: 900px; margin-inline: auto; }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain; border-radius: var(--radius);
}
.slides::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; margin: 0; scroll-snap-align: center;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 0 clamp(4px, 3vw, 40px);
}
.slide blockquote { margin: 0 0 1.6rem; font: 400 clamp(1.35rem, 2.6vw, 2rem)/1.45 var(--display); }
.slide blockquote::before { content: "\201C"; display: block; font: 400 5rem/1 var(--display); color: #a9c3bd; height: 3.4rem; }
.slide figcaption { font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: clamp(32px, 4vw, 48px); }
.carousel-btn {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: none; color: #fff; border: 1px solid rgba(255,255,255,.45); font-size: 1.15rem;
  transition: background-color .2s, border-color .2s;
}
.carousel-btn:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.dots { display: flex; gap: 4px; }
.dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: rgba(255,255,255,.35); transition: background-color .2s, transform .2s; }
.dots button[aria-current="true"]::after { background: #fff; transform: scale(1.25); }

/* Hosts */
.hosts { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 860px; margin-inline: auto; }
.hosts img { width: clamp(120px, 18vw, 200px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.hosts h2 { margin-bottom: 1rem; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
@media (max-width: 600px) { .hosts { grid-template-columns: 1fr; text-align: center; } .hosts img { margin-inline: auto; } }

/* FAQ */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 44px 22px 0;
  font: 400 clamp(1.1rem, 1.6vw, 1.3rem)/1.35 var(--display);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
  transition: transform .25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { padding: 0 0 24px; color: var(--ink-soft); max-width: 62ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* Guide page */
.page-title { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px); }
.page-title h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); max-width: 18ch; }
.page-title p { margin-top: 1.4rem; max-width: 60ch; }
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.6rem; }
.crumbs a { color: var(--ink-soft); }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 3.2rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 .6rem; font-size: 1.35rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose figure { margin: 2.4rem 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .6rem; }
.note { background: var(--paper); border-left: 3px solid var(--agave); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; }

/* Contact footer */
.contact { padding-block: var(--section) 40px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.contact h2 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 14ch; }
.contact .lead { color: rgba(255,255,255,.8); margin-top: 1.4rem; max-width: 46ch; }
.contact-lines { display: grid; gap: 22px; }
.contact-lines .label { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #a9c3bd; margin-bottom: 6px; }
.contact-lines .big { font: 400 clamp(1.5rem, 2.8vw, 2.1rem)/1.2 var(--display); text-decoration: none; overflow-wrap: anywhere; }
.contact-lines .big:hover { text-decoration: underline; }
.reveal { background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; padding: .8em 1.3em; border-radius: 999px; font: 600 .95rem/1 var(--body); cursor: pointer; }
.reveal:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
  margin-top: clamp(64px, 9vw, 112px); padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: .9rem; color: rgba(255,255,255,.7);
}
.footer-bottom a { color: rgba(255,255,255,.85); }
.footer-bottom a:hover { color: #fff; }
.legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; align-items: start; } }
