/* Orit Haiby · shared site styles (brand tokens from the Orit Haiby design system) */
@font-face { font-family: "Advercase"; src: url("fonts/Advercase-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Advercase"; src: url("fonts/Advercase-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/CourierPrime-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/CourierPrime-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/CourierPrime-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Advercase"; src: url("fonts/Advercase-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #faf2e8; --paper-2: #f3e9db; --white: #ffffff;
  --green: #232d19; --green-2: #2d3a21; --olive: #42522f; --sage: #dfe6d0;
  --cocoa: #3a241d; --cocoa-soft: #4a3a33; --apricot: #f7c9a4;
  --terracotta: #ab6948; --terracotta-ink: #7a3f24; --rose: #c98a8c; --hairline: #e3ddd0;
  --display: "Advercase", Georgia, serif;
  --label: "Courier Prime", "Courier New", monospace;   /* typewriter: labels, nav, buttons, small details */
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--cocoa); font-family: var(--display); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--terracotta-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type */
.kicker { font-family: var(--label); font-size: 13px; line-height: 16px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--olive); margin: 0; }
.on-dark .kicker, .kicker.light { color: var(--apricot); }
.title { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.02; letter-spacing: -0.015em; color: var(--green); margin: 0; text-wrap: balance; }
.on-dark .title { color: var(--paper); }
.voice { font-style: italic; font-size: clamp(19px, 2vw, 22px); line-height: 1.5; color: var(--terracotta-ink); margin: 0; }
.on-dark .voice { color: var(--apricot); }
.lead { font-size: clamp(18px, 1.8vw, 20px); line-height: 1.7; margin: 0; color: var(--cocoa-soft); }
.on-dark .lead { color: var(--sage); }
p { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }

/* small dotted facts row */
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--label); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--olive); }
.trust span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); margin-right: 10px; vertical-align: middle; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0;
  font-family: var(--label); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--terracotta); color: var(--paper); font-weight: 600; }
.btn-primary:hover { background: #9a5d3f; }
.btn-dark { background: var(--green); color: var(--paper); }
.btn-dark:hover { background: var(--green-2); }
.btn-line { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.on-dark .btn-line { color: var(--apricot); box-shadow: inset 0 0 0 1.5px var(--apricot); }
.btn-paper { background: var(--paper); color: var(--green); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow-link { font-family: var(--label); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.on-dark .arrow-link { color: var(--apricot); }

/* header */
.site-header, .site-footer { font-family: var(--display); }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); text-decoration: none; white-space: nowrap; line-height: 1; }
.wordmark small { display: block; font-family: var(--label); font-weight: 400; font-size: 10.5px; letter-spacing: 0.15em; color: var(--olive); margin-top: 6px; }
.nav { display: none; gap: 30px; align-items: center; }
.nav a { white-space: nowrap; }
.nav a { font-family: var(--label); font-size: 13px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--cocoa); text-decoration: none; padding: 8px 0; }
.nav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -1.5px var(--terracotta); }
.header-cta { display: none; min-height: 44px; padding: 0 20px; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; color: var(--green); cursor: pointer; }
@media (min-width: 1180px) { .nav { display: flex; } .header-cta { display: inline-flex; } .menu-btn { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--hairline); padding: 8px 0 18px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 0; font-family: var(--label); font-size: 14px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--cocoa); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.mobile-nav .btn { margin-top: 16px; width: 100%; }
@media (min-width: 1180px) { .mobile-nav, .mobile-nav.open { display: none; } }

/* sections */
.section { padding: 72px 0; }
@media (min-width: 760px) { .section { padding: 104px 0; } }
.bg-green { background: var(--green); color: var(--paper); }
.bg-paper-2 { background: var(--paper-2); }
.bg-cocoa { background: var(--cocoa); color: var(--paper); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 32px; margin-bottom: 40px; }
.section-head .stack-sm { max-width: 640px; }

/* photo frames */
.frame { border-radius: 28px; overflow: hidden; background: var(--green); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* numbered points (01–04) */
.points { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 700px) { .points { grid-template-columns: repeat(2, 1fr); gap: 40px 48px; } }
@media (min-width: 1080px) { .points.four { grid-template-columns: repeat(4, 1fr); } }
.point { border-top: 1px solid var(--hairline); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.on-dark .point { border-top-color: color-mix(in srgb, var(--apricot) 45%, transparent); }
.point .num { font-family: var(--label); font-size: 13px; letter-spacing: 0.15em; color: var(--olive); }
.on-dark .point .num { color: var(--apricot); }
.point h3 { margin: 0; font-weight: 700; font-size: 23px; line-height: 1.15; color: var(--green); }
.on-dark .point h3 { color: var(--paper); }
.point p { font-size: 16px; line-height: 1.7; color: var(--cocoa-soft); }
.on-dark .point p { color: #e9dccb; }

/* listing cards (Moleti-style: photo, place, price USD + MXN, specs) */
.listings { display: grid; grid-template-columns: 1fr; gap: 32px 22px; }
@media (min-width: 640px) { .listings { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .listings { grid-template-columns: repeat(3, 1fr); } }
.lcard { display: flex; flex-direction: column; gap: 12px; color: var(--cocoa); text-decoration: none; }
.lcard .ph { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--green); }
.lcard .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lcard:hover .ph img { transform: scale(1.03); }
.lcard .ph .fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--apricot); font-weight: 700; padding: 20px; text-align: center; }
.lcard .tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--paper); color: var(--green); font-family: var(--label); font-size: 11.5px; letter-spacing: 0.09em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.lcard .place { font-family: var(--label); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive); }
.lcard .lname { font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--green); }
.lcard .lprice { font-size: 17px; line-height: 1.4; }
.lcard .lprice span { color: var(--cocoa-soft); font-size: 14px; display: block; }
.lcard .specs { font-family: var(--label); font-size: 14px; color: var(--cocoa-soft); display: flex; gap: 14px; flex-wrap: wrap; }
.skeleton .ph { background: var(--hairline); }

/* style chips */
.style-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.style-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 8px; border-radius: 999px; background: var(--white); color: var(--green); text-decoration: none; font-weight: 700; font-size: 16px; box-shadow: inset 0 0 0 1px var(--hairline); }
.style-chip:hover { box-shadow: inset 0 0 0 1.5px var(--green); }
.style-chip .sw { display: inline-flex; height: 32px; width: 48px; border-radius: 999px; overflow: hidden; }
.style-chip .sw i { flex: 1; }

/* forms */
.form { display: grid; gap: 12px; }
.form label { font-family: var(--label); font-size: 12px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--olive); }
.form input { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid #cdbfab; border-radius: 14px; background: var(--white); color: var(--cocoa); font-size: 16px; }
.form .hp { position: absolute; left: -9999px; }
.form .fine { font-family: var(--label); font-size: 13px; line-height: 1.5; color: var(--cocoa-soft); }
.form-card { background: var(--paper); color: var(--cocoa); border-radius: 28px; padding: 28px; }
@media (min-width: 760px) { .form-card { padding: 36px; } }

/* footer */
.site-footer { background: var(--green); color: var(--paper); padding: 72px 0 calc(36px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 2fr 1fr 1.2fr; } }
.site-footer .wordmark { color: var(--paper); font-size: 26px; }
.site-footer h3 { margin: 0 0 12px; font-family: var(--label); font-weight: 400; font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--apricot); }
.site-footer a { color: var(--paper); text-decoration: none; display: block; padding: 4px 0; font-size: 16px; }
.site-footer a:hover { color: var(--apricot); }
.site-footer p { color: var(--sage); font-size: 15px; line-height: 1.7; }
.foot-fine { border-top: 1px solid #3d4c2f; margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-family: var(--label); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #b9c4a8; }
.foot-fine p { font-family: var(--display); text-transform: none; letter-spacing: 0; font-size: 13px; color: #b9c4a8; max-width: 70ch; }

/* floating WhatsApp on phones */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--terracotta); color: var(--paper);
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(35, 45, 25, .28); }
@media (min-width: 1180px) { .wa-float { display: none; } }
.hidden { display: none !important; }
@media (max-width: 639px) { .listings[data-featured] .lcard:nth-child(n+5) { display: none; } }

/* Language switch */
.site-header .lang { font-family: var(--label); font-size: 14px; letter-spacing: .04em; color: var(--green); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--green) 35%, transparent); margin-right: -4px; }
.site-header .lang:hover { text-decoration-color: currentColor; }
@media (max-width: 1179px) { .bar > .lang { margin-left: auto; margin-right: 4px; } }

/* Longer labels (Spanish) wrap instead of pushing past the screen */
@media (max-width: 639px) { .btn { white-space: normal; max-width: 100%; text-align: center; height: auto; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; } }
