/* Public site. Mobile first; wider layouts at 640px, 900px and 1100px. Colors come from the logo. */

:root {
  --sun: #e8782a;        /* logo orange */
  --sun-dark: #b5531a;   /* orange dark enough for text and buttons on white */
  --gold: #f7b733;
  --ink: #1f1a16;
  --text: #2e2620;
  --muted: #6b6058;
  --sand: #faf4ec;
  --sand-2: #f2e7d8;
  --line: #e6dccd;
  --white: #ffffff;
  --ok: #2f6b3a;
  --error: #b3261e;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(31 26 22 / 6%), 0 8px 24px rgb(31 26 22 / 8%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sun-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.page-narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .7rem 1.25rem;
  border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.2;
}
.btn-primary { background: var(--sun-dark); color: #fff; }
.btn-primary:hover { background: #9a4413; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--sun); }
.btn-lg { min-height: 54px; padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.center .btn-row { justify-content: center; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo img { height: 46px; width: auto; }
.menu-btn { width: 48px; height: 48px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }
.nav-open .menu-icon { background: transparent; }
.nav-open .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; box-shadow: var(--shadow); }
.nav-open .site-nav { display: block; }
.site-nav a { display: block; padding: .8rem .25rem; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--sun-dark); }
.site-nav .nav-call { display: none; }

/* ---- Social icons (top bar and footer) ---- */
.topbar { background: var(--ink); color: #f3ece4; font-size: .9rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar-phone { color: #fff; text-decoration: none; font-weight: 600; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: inherit; transition: background .15s, color .15s; }
.social-top a { width: 36px; height: 36px; color: #f3ece4; }
.social-top a:hover { background: rgb(255 255 255 / 12%); color: var(--gold); }
.social-footer { margin-top: .75rem; }
.social-footer a { background: rgb(255 255 255 / 8%); color: #fff; }
.social-footer a:hover { background: var(--sun-dark); }

/* ---- Hero ---- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 16 12 / 15%) 0%, rgb(20 16 12 / 60%) 55%, rgb(20 16 12 / 80%) 100%); }
.hero-text { position: relative; z-index: 1; padding-top: 7rem; padding-bottom: 2.5rem; }
.hero h1 { color: #fff; max-width: 17ch; text-shadow: 0 2px 12px rgb(0 0 0 / 35%); }
.hero-sub { font-size: 1.1rem; max-width: 46ch; text-shadow: 0 1px 8px rgb(0 0 0 / 40%); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .85rem; color: var(--gold); margin-bottom: .5rem; }

/* ---- Sections ---- */
.section { padding: 3rem 0; }
.section-tight { padding: 2rem 0 3rem; }
.section-sand { background: var(--sand); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; }
.page-head { background: var(--sand); padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.page-head p { max-width: 60ch; margin: 0; color: var(--muted); }
.crumbs { padding-top: 1rem; padding-bottom: .5rem; font-size: .95rem; }
.crumbs a { text-decoration: none; font-weight: 600; }
.empty-state { text-align: center; padding: 2.5rem 1rem; background: var(--sand); border-radius: var(--radius); }

/* ---- Listing cards ---- */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(31 26 22 / 8%), 0 14px 32px rgb(31 26 22 / 12%); }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-img { position: relative; aspect-ratio: 16 / 10; background: var(--sand-2); }
/* Contain, not cover: Gary's main images are often graphics with text that must not be cropped. */
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.card-img .badge { position: absolute; top: .75rem; left: .75rem; }
.card-body { padding: 1rem 1.1rem 1.2rem; }
.card-body h3 { margin-bottom: .25rem; }
.card-place { color: var(--muted); font-size: .95rem; margin-bottom: .5rem; }
.card-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
.card-price strong { font-size: 1.25rem; color: var(--ink); }
.card-price span { color: var(--sun-dark); font-weight: 700; font-size: .95rem; }
.card-sold .card-img img { filter: grayscale(.6); }

.badge { display: inline-block; vertical-align: middle; font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; border-radius: 999px; padding: .2rem .65rem; }
.badge-pending { background: var(--gold); color: var(--ink); }
.badge-sold { background: var(--ink); color: #fff; }

/* ---- Home extras ---- */
.intro-grid, .dream-grid { display: grid; gap: 2rem; align-items: center; }
.intro-img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.feature-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.feature { background: var(--sand); border-radius: var(--radius); padding: 1.4rem; border-top: 4px solid var(--sun); }
.feature p { margin: 0; }
.dream-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.dream-imgs img { border-radius: var(--radius); background: #fff; }
.quote-grid { display: grid; gap: 1.25rem; margin: 1.5rem auto; }
.quote-grid.count-1 { max-width: 720px; }
.quote-card { margin: 0; background: var(--sand); border-radius: var(--radius); padding: 1.5rem 1.4rem 1.25rem; border-top: 4px solid var(--sun); display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.quote-card blockquote { margin: 0; font-size: 1.1rem; color: var(--ink); }
.quote-card blockquote p { margin: 0; }
.quote-card blockquote p::before { content: "\201C"; }
.quote-card blockquote p::after { content: "\201D"; }
.quote-card figcaption { display: flex; flex-direction: column; font-size: .95rem; }
.quote-card figcaption span { color: var(--muted); }
.count-1 .quote-card { text-align: center; background: none; border: 0; }
.count-1 .quote-card blockquote { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 600; }
.center-row-public { justify-content: center; margin-top: 2rem; }
.quote { margin: 0 auto; max-width: 720px; text-align: center; }
.quote blockquote { margin: 0; font-size: clamp(1.2rem, 3vw, 1.5rem); color: var(--ink); font-weight: 600; }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption { color: var(--muted); }
.newsletter-band { background: var(--ink); color: #f3ece4; }
.newsletter-band h2 { color: #fff; }
.newsletter-inner { display: grid; gap: 1.5rem; align-items: center; }
.newsletter-band .field label { color: #fff; }
.newsletter-band .field-note { color: #c9bfb4; }
.newsletter-form .field-note { margin: .75rem 0 0; font-size: .85rem; }
.newsletter-band .form-status.is-ok { color: #9fe0a9; }
.newsletter-band .form-status.is-error { color: #ffb4a9; }

/* ---- Prose (editor content) ---- */
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose img { border-radius: var(--radius); margin: 1.25em 0; }
.prose figure { margin: 1.5em 0; }
.prose figure img { margin: 0; width: 100%; }
.prose figcaption { color: var(--muted); font-size: .92rem; margin-top: .5rem; }
.prose blockquote { margin: 1.25em 0; padding-left: 1rem; border-left: 4px solid var(--sun); color: var(--muted); }

/* ---- Listing page ---- */
.preview-banner { background: var(--gold); color: var(--ink); text-align: center; padding: .6rem 16px; margin: 0; font-weight: 700; }
.listing-head h1 { margin-bottom: .25rem; }
.listing-head h1 .badge { font-size: .9rem; }
.listing-sub { color: var(--muted); margin-bottom: 1.25rem; }
.listing-layout { display: grid; gap: 2rem; }
.listing-main, .listing-side { min-width: 0; }

.gallery { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.gallery-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 16 / 10; } /* same shape as listing cards: banners made at 1600x1000 fill both */
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; overflow: hidden; }
.gallery-open { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.gallery-open img { width: 100%; height: 100%; object-fit: contain; }
.gallery-nav, .lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgb(255 255 255 / 92%); color: var(--ink); font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; padding-bottom: 4px;
}
.gallery-prev, .lightbox-prev { left: .6rem; }
.gallery-next, .lightbox-next { right: .6rem; }
.gallery-count { position: absolute; right: .6rem; bottom: .6rem; margin: 0; background: rgb(20 16 12 / 70%); color: #fff; font-size: .85rem; padding: .15rem .6rem; border-radius: 999px; }
.thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .6rem 0; scrollbar-width: thin; }
.thumb { flex: 0 0 auto; width: 84px; padding: 0; border: 3px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--sand-2); opacity: .75; }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--sun); opacity: 1; }

.listing-desc { margin-top: 1.5rem; }
.detail-block { margin-top: 2rem; }
.spec-list { margin: 0; display: grid; }
.spec-list > div { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--muted); font-weight: 600; }
.spec-list dd { margin: 0; color: var(--ink); }
.spec-box { margin-top: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .25rem 1.1rem; }
.spec-box > div:last-child { border-bottom: 0; }

.price-box { background: var(--sand); border-radius: var(--radius); padding: 1.4rem; border-top: 5px solid var(--sun); }
.price-box .btn + .btn { margin-top: .6rem; }
.price-big { font-size: 2.4rem; font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: .35rem; }
.price-big span { font-size: 1.1rem; font-weight: 700; color: var(--muted); }
.price-monthly { font-size: 1.2rem; font-weight: 700; color: var(--sun-dark); margin-bottom: .75rem; }
.price-cash { margin-bottom: .25rem; }
.price-sold { font-size: 1.4rem; font-weight: 800; color: var(--ink); margin-bottom: .5rem; }
.terms { font-size: .95rem; padding-top: .75rem; border-top: 1px solid var(--line); margin-top: .75rem; }

.doc-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.doc-links a { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; }
.doc-links a:hover { border-color: var(--sun); }
.doc-links .muted { margin-left: auto; font-weight: 400; }
.doc-type { font-size: .75rem; font-weight: 800; background: var(--sun-dark); color: #fff; border-radius: 4px; padding: .15rem .45rem; }

.ask { margin: 3rem 0 1rem; background: var(--sand); border-radius: var(--radius); padding: 1.5rem 1.1rem; scroll-margin-top: 80px; }
.ask-inner { max-width: 640px; margin: 0 auto; }

/* Lightbox */
.lightbox { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgb(12 10 8 / 96%); color: #fff; }
.lightbox::backdrop { background: rgb(12 10 8 / 96%); }
.lightbox-track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; padding: 56px 8px; }
.lightbox-track img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; top: .5rem; right: .5rem; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 15%); color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
.lightbox-count { position: absolute; top: 1rem; left: 1rem; margin: 0; font-size: .95rem; }

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 1rem; min-width: 0; border: 0; padding: 0; }
.field label, .field legend { font-weight: 700; color: var(--ink); padding: 0; }
input:not([type="radio"]):not([type="checkbox"]), textarea, select {
  width: 100%; min-height: 50px; padding: .7rem .85rem; font: inherit; color: var(--text); background: #fff;
  border: 1px solid #cdbfae; border-radius: 10px;
}
textarea { min-height: 0; resize: vertical; }
input:focus, textarea:focus { border-color: var(--sun); outline: 3px solid rgb(232 120 42 / 25%); outline-offset: 0; }
.field-math input { max-width: 120px; }
.field-note { font-size: .9rem; color: var(--muted); margin: -.5rem 0 1rem; }
.field-pair { display: grid; gap: 0 1rem; }
.choice-row { display: grid; gap: .5rem; }
.choice { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border: 1px solid #cdbfae; border-radius: 10px; background: #fff; font-weight: 600 !important; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--sun-dark); }
.form-status { margin: 0 0 .75rem; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--error); }
.form-done .field, .form-done .field-pair, .form-done .field-note, .form-done button, .form-done fieldset { display: none; }
.form-card { background: var(--sand); border-radius: var(--radius); padding: 1.5rem 1.1rem; }
.newsletter-row { display: grid; gap: 0 1rem; }

/* ---- Contact, blog, messages ---- */
.contact-grid { display: grid; gap: 2rem; }
.contact-list { margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.contact-list dt { font-weight: 700; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.contact-list dd { margin: 0; font-size: 1.15rem; }
.post-list { display: grid; gap: 2rem; }
.post-item { display: grid; gap: 1rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.post-item img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.post-item h2 a { color: var(--ink); text-decoration: none; }
.post-item h2 a:hover { color: var(--sun-dark); }
.post-cover { border-radius: var(--radius); margin-bottom: 1.5rem; }
.post { padding-bottom: 3rem; }
.pager { display: flex; justify-content: space-between; margin-top: 2rem; }
.message-page { padding-top: 4rem; padding-bottom: 4rem; }

/* ---- Footer and call bar ---- */
.site-footer { background: var(--ink); color: #d8cfc5; padding: 2.5rem 0 1rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid { display: grid; gap: 1.75rem; }
.footer-logo { background: #fff; border-radius: 8px; padding: 6px 10px; width: 170px; margin-bottom: .75rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-address { font-size: .95rem; }
.footer-base { border-top: 1px solid rgb(255 255 255 / 12%); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; color: #a99d91; }

.callbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem 12px calc(.6rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgb(31 26 22 / 10%); }
.has-callbar .site-footer { padding-bottom: 5.5rem; }

/* ---- Wider screens ---- */
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid.count-2 { grid-template-columns: repeat(2, 1fr); }
  .quote-grid.count-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .field-pair, .newsletter-row { grid-template-columns: 1fr 1fr; }
  .choice-row { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .post-item { grid-template-columns: 240px 1fr; }
  .ask, .form-card { padding: 2rem; }
  .hero-text { padding-top: 10rem; padding-bottom: 4rem; }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  .menu-btn { display: none; }
  .site-nav { display: flex; align-items: center; gap: 1.5rem; position: static; padding: 0; background: none; border: 0; box-shadow: none; }
  .site-nav a { border: 0; padding: .5rem 0; }
  .site-nav a:hover { color: var(--sun-dark); }
  .site-nav .nav-call { display: inline-flex; padding: .5rem 1.1rem; min-height: 44px; color: #fff; }
  .logo img { height: 56px; }
  .header-inner { min-height: 76px; }
  .callbar { display: none; }
  .has-callbar .site-footer { padding-bottom: 1rem; }
  .section { padding: 4.5rem 0; }
  .page-head { padding: 3rem 0 2.25rem; }
  .intro-grid, .dream-grid { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; }
  .newsletter-inner { grid-template-columns: 1fr 1.1fr; gap: 3rem; }
  .hero-text { padding-top: 13rem; padding-bottom: 5rem; }
  .listing-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .listing-side { position: sticky; top: 96px; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 3rem; }
  .gallery-nav { width: 52px; height: 52px; }
  .lightbox-nav { width: 56px; height: 56px; }
  .thumb { width: 104px; }
}

@media (min-width: 1100px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .quote-grid.count-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card:hover { transition: none; transform: none; }
}
