/* Aliado Land & Home — shared styles. Layout and colour live inline in the pages (generated by build.py). */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: #2D5843; }
a:hover { color: #23261F; }
::selection { background: #2D5843; color: #FAF7F0; }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #B08D57;
  outline-offset: 3px;
}

.skip { position: absolute; left: -9999px; top: 0; padding: 12px 18px; background: #FAF7F0; color: #2D5843; font: 600 15px Inter, system-ui, sans-serif; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- Depth: sticky glass header ---------- */
.site-header {
  position: relative; z-index: 50;
  background: rgba(250, 247, 240, .82) !important;
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow .3s ease;
}
@media (min-width: 860px) { .site-header { position: sticky; top: 0; } }
.site-header.scrolled { box-shadow: 0 1px 0 rgba(35, 38, 31, .06), 0 14px 30px -18px rgba(35, 38, 31, .35); }
main { overflow-x: clip; }

/* ---------- Depth: buttons with a raised edge that presses down ---------- */
.btn {
  position: relative;
  transition: transform .18s cubic-bezier(.2, .7, .2, 1), box-shadow .18s ease, background-color .18s ease;
  will-change: transform;
}
.btn-green {
  background-image: linear-gradient(180deg, #386B52 0%, #2D5843 55%, #284F3C 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 3px 0 #1B3729, 0 14px 22px -10px rgba(27, 55, 41, .6);
}
.btn-cream {
  background-image: linear-gradient(180deg, #FFFFFF 0%, #FAF7F0 60%, #F1EADC 100%) !important;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 3px 0 #C9BDA6, 0 16px 26px -10px rgba(0, 0, 0, .5);
}
.btn-ghost { box-shadow: 0 2px 0 rgba(45, 88, 67, .25), 0 10px 18px -12px rgba(35, 38, 31, .3); background-color: rgba(250, 247, 240, .6) !important; }
.btn-ghostlight { box-shadow: 0 2px 0 rgba(0, 0, 0, .22), 0 12px 20px -12px rgba(0, 0, 0, .45); background-color: rgba(250, 247, 240, .06) !important; }
.btn:hover { transform: translateY(-3px); }
.btn-green:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 0 #1B3729, 0 24px 30px -12px rgba(27, 55, 41, .6); color: #FAF7F0; }
.btn-cream:hover { box-shadow: inset 0 1px 0 #FFFFFF, 0 6px 0 #C9BDA6, 0 26px 34px -12px rgba(0, 0, 0, .55); }
.btn-ghost:hover { box-shadow: 0 5px 0 rgba(45, 88, 67, .25), 0 20px 26px -14px rgba(35, 38, 31, .35); }
.btn-ghostlight:hover { box-shadow: 0 5px 0 rgba(0, 0, 0, .22), 0 22px 28px -14px rgba(0, 0, 0, .5); color: #FAF7F0; }
.btn:active { transform: translateY(2px); transition-duration: .06s; }
.btn-green:active { box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25), 0 1px 0 #1B3729; }
.btn-cream:active { box-shadow: inset 0 2px 4px rgba(35, 38, 31, .15), 0 1px 0 #C9BDA6; }

/* ---------- Depth: green sections with a slow-drifting contour backdrop ---------- */
.green { position: relative; background-image: radial-gradient(1100px 620px at 80% 18%, #3B6E55 0%, #2D5843 52%, #244836 100%); }
.green > :not(.backdrop) { position: relative; z-index: 1; }
.backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.backdrop svg { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; opacity: .2; will-change: transform; }
section[style*="background: #E8DFCF"] { box-shadow: inset 0 26px 40px -34px rgba(35, 38, 31, .35), inset 0 -26px 40px -34px rgba(35, 38, 31, .25); }

/* ---------- Depth: raised cards ---------- */
.card {
  box-shadow: 0 1px 2px rgba(35, 38, 31, .06), 0 10px 20px -12px rgba(35, 38, 31, .22), 0 34px 60px -34px rgba(35, 38, 31, .38);
  transition: box-shadow .35s ease, transform .25s cubic-bezier(.2, .7, .2, 1);
  transform-style: preserve-3d;
}
.card.tilt:hover { box-shadow: 0 2px 4px rgba(35, 38, 31, .08), 0 22px 34px -14px rgba(35, 38, 31, .3), 0 60px 80px -40px rgba(35, 38, 31, .5); }
.green .card, .card.facts { box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 24px 40px -18px rgba(0, 0, 0, .45), 0 60px 90px -40px rgba(0, 0, 0, .55); }
/* an offset brass outline sits behind framed panels, like a second sheet underneath */
.framed { --under: #FAF7F0; box-shadow: 14px 14px 0 -1px var(--under), 14px 14px 0 0 #B08D57, 0 34px 60px -30px rgba(35, 38, 31, .5); }
.framed.on-green { --under: #2A5340; box-shadow: 14px 14px 0 -1px var(--under), 14px 14px 0 0 #B08D57, 0 40px 70px -30px rgba(0, 0, 0, .6); }
.framed.on-sand { --under: #E8DFCF; }
.card.facts { position: relative; z-index: 2; }
.hero + section > div { padding-top: 184px !important; }
@media (min-width: 900px) { .tier-hi { top: -14px; position: relative; } }

/* ---------- Depth: the hero site map is three sheets stacked in 3D ---------- */
.plate { perspective: 1100px; padding: 4% 6% 8%; }
.plate-inner {
  --rx: 9deg; --ry: -13deg;
  position: relative; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  background: linear-gradient(145deg, rgba(250, 247, 240, .09), rgba(250, 247, 240, .02));
  border: 1px solid rgba(232, 223, 207, .28);
  box-shadow: -30px 50px 70px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.plate-inner.live { transition-duration: .12s; }
.layer { display: block; width: 100%; height: auto; overflow: visible; }
.l2, .l3, .l4 { position: absolute; inset: 0; }
.l1 { transform: translateZ(0); }
.l2 { transform: translateZ(38px); filter: drop-shadow(-6px 10px 6px rgba(0, 0, 0, .35)); }
.l3 { transform: translateZ(84px); filter: drop-shadow(-10px 18px 10px rgba(0, 0, 0, .4)); }
.l4 { transform: translateZ(128px); filter: drop-shadow(-14px 24px 12px rgba(0, 0, 0, .35)); }
.flow { stroke-dasharray: 12 9; animation: flow 1.5s linear infinite; }
.sun { opacity: 0; }
.l1 path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s cubic-bezier(.4, 0, .2, 1) forwards; animation-delay: calc(var(--i) * 90ms + 200ms); }
.route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s ease forwards 1.5s; }
.route:first-child { stroke-dasharray: .012 .03; stroke-dashoffset: 0; opacity: 0; animation: fade .9s ease forwards 1.7s; }
.pop { opacity: 0; animation: fade .7s ease forwards 2.4s; }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.8s ease-out infinite 3s; opacity: 0; }
@keyframes flow { to { stroke-dashoffset: -21; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Motion: reveal on scroll (only when JS is running) ---------- */
.js .rv { opacity: 0; translate: 0 30px; transition: opacity .9s cubic-bezier(.2, .7, .2, 1), translate .9s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, transform .25s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; translate: 0 0; }
.band img { scale: 1.16; will-change: transform; }
details[open] > div { animation: unfold .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes unfold { from { opacity: 0; transform: translateY(-10px); } }

.navlink:hover { border-bottom-color: #B08D57 !important; }
.flink:hover { color: #E8DFCF !important; text-decoration: underline !important; }

/* Service rows (native <details>) */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.row { transition: background .15s ease; }
.row:hover { background: #F3EDE1; }
/* the "See what's included" pill: a clear invitation to open the row, with a chevron that flips */
.more {
  flex: none; display: inline-flex; align-items: center; gap: 12px; box-sizing: border-box;
  min-height: 44px; padding: 0 18px 0 20px; border: 1px solid #B08D57; border-radius: 999px;
  font: 600 13.5px/1 Inter, system-ui, sans-serif; letter-spacing: .02em; color: #2D5843;
  background: rgba(250, 247, 240, .7);
  box-shadow: 0 2px 0 rgba(176, 141, 87, .35), 0 10px 16px -12px rgba(35, 38, 31, .35);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.more-open, details[open] > summary .more-closed { display: none; }
details[open] > summary .more-open { display: inline; }
.sign::before {
  content: ""; display: block; width: 7px; height: 7px; margin-top: -4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .3s cubic-bezier(.2, .7, .2, 1), margin .3s ease;
}
details[open] > summary .sign::before { transform: rotate(-135deg); margin-top: 4px; }
.row:hover .more { background: #2D5843; border-color: #2D5843; color: #FAF7F0; transform: translateY(-2px); box-shadow: 0 4px 0 #1B3729, 0 16px 22px -12px rgba(27, 55, 41, .55); }
details[open] > summary .more { background: #2D5843; border-color: #2D5843; color: #FAF7F0; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25); }

/* "Where are you starting from?" picker */
.sit {
  display: flex; align-items: center; gap: 16px; width: 100%; box-sizing: border-box;
  min-height: 64px; padding: 14px 18px; border: 0; border-bottom: 1px solid #557A66;
  background: transparent; color: #FAF7F0; text-align: left; cursor: pointer;
  font: 500 16.5px/1.35 Inter, system-ui, sans-serif;
  transition: background .15s ease, color .15s ease;
}
.sit:hover { background: rgba(250, 247, 240, .08); }
.sit .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #7FA08C; }
.sit[aria-pressed="true"] { background: #FAF7F0; color: #2D5843; }
.sit[aria-pressed="true"] .dot { border-color: #B08D57; background: #B08D57; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .row, .sit, .card, .plate-inner, .more, .sign::before { transition: none; }
  .js .rv { opacity: 1; translate: 0 0; transition: none; }
  .l1 path, .route, .route:first-child, .pop { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .pulse, .flow, details[open] > div { animation: none; }
  .band img { scale: 1; }
}
