/* Horizon Studios — sample page stylesheet
   Structure modeled on the La Quinta v4 site's app.css (single stylesheet,
   page-shell classes), rebranded to Horizon's warm terracotta scheme. */

:root {
  --terra: #c05b2e;
  --terra-dark: #9a4520;
  --terra-deep: #4a2712;
  --terra-wash: #fbf1e9;
  --wa: #25d366;
  --wa-dark: #1da851;
  --ink: #2b2320;
  --muted: #6e6259;
  --paper: #ffffff;
  --wash: #faf6f1;
  --line: #e7dcd2;
  --shadow: 0 10px 30px rgba(74, 39, 18, 0.14);
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--terra-dark); }
h1, h2, h3 { font-family: "Source Serif 4", Georgia, serif; line-height: 1.15; margin: 0; color: var(--ink); }
p { margin: 0; }
button, [role="button"], select, input, textarea { font: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--terra); color: #fff; font-size: 0.9rem; text-align: center; }
.announce .wrap { padding-top: 8px; padding-bottom: 8px; }
.announce a { color: #fff; font-weight: 700; text-decoration: none; }
.announce a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.pagehead {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.pagehead.scrolled { box-shadow: 0 4px 18px rgba(74,39,18,0.10); }
.header-in { display: flex; align-items: center; gap: 22px; padding-top: 10px; padding-bottom: 10px; }
.logo img { height: 64px; width: auto; }
nav.main { margin-left: auto; display: flex; gap: 4px; }
nav.main a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 10px 12px; border-radius: 6px; display: inline-flex; align-items: center; min-height: 2.75rem;
  white-space: nowrap;
}
nav.main a:hover { background: var(--terra-wash); color: var(--terra-dark); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: 8px; }
.header-phone { display: flex; flex-direction: column; line-height: 1.2; text-decoration: none; }
.header-phone small { color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.header-phone strong { color: var(--ink); font-size: 1rem; white-space: nowrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--terra); color: #fff; text-decoration: none; font-weight: 700;
  padding: 10px 22px; border-radius: 6px; border: 0; cursor: pointer; min-height: 2.75rem;
  transition: background 0.15s ease; white-space: nowrap;
}
.btn:hover { background: var(--terra-dark); }
.btn.ghost { background: #fff; color: var(--terra-dark); border: 1.5px solid var(--terra); }
.btn.ghost:hover { background: var(--terra-wash); }
.btn.whatsapp { background: var(--wa); color: #fff; }
.btn.whatsapp:hover { background: var(--wa-dark); }

/* ---------- Hero ---------- */
.pagehero { position: relative; min-height: 340px; display: flex; align-items: flex-end; overflow: hidden; }
.pagehero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pagehero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,24,10,0.16) 0%, rgba(43,24,10,0.80) 88%); }
.pagehero-in { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 30px; width: 100%; }
.pagehero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 600; max-width: 26ch; }
.pagehero-in > p:last-child { color: #f7e9dd; margin-top: 10px; max-width: 62ch; font-size: 1.05rem; }

/* ---------- Page body ---------- */
.pagebody { padding-top: 38px; padding-bottom: 54px; }
.crumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { text-decoration: none; }
.crumbs span { color: var(--ink); font-weight: 600; }
.pagegrid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 34px; align-items: start; }
.pagegrid > * { min-width: 0; }
iframe, video { max-width: 100%; }
.prose h2 { font-size: 1.35rem; font-weight: 600; margin: 26px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #453a33; margin-bottom: 12px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; color: #453a33; display: grid; gap: 6px; }
.prose figure { margin: 18px 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }

/* ---------- Facts box ---------- */
.ev-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 22px; margin: 0 0 8px; }
.ev-facts .row { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.ev-facts dt { color: var(--muted); font-size: 0.88rem; }
.ev-facts dd { margin: 0; font-weight: 600; text-align: right; font-size: 0.92rem; }

/* ---------- "By need" link list ---------- */
.needlist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.needlist a { text-decoration: none; font-weight: 600; }
.needlist a:hover { text-decoration: underline; }

/* ---------- CTA card ---------- */
.ctacard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
  position: sticky; top: 92px;
}
.ctacard h3 { font-size: 1.05rem; }
.ctacard .big { font-family: "Source Serif 4", Georgia, serif; font-size: 1.9rem; line-height: 1.1; color: var(--terra); }
.ctacard .big small { font-family: "Public Sans", sans-serif; font-size: 0.9rem; color: var(--muted); }
.ctacard > p { color: var(--muted); font-size: 0.92rem; }
.ctacard .fine { font-size: 0.82rem; border-top: 1px solid var(--line); padding-top: 10px; }
.backlink { margin-top: 34px; font-weight: 600; font-size: 0.95rem; }
.backlink a { text-decoration: none; }
.backlink a:hover { text-decoration: underline; }

/* ---------- Contact bar (Call / WhatsApp / Inquire / Schedule a Tour) ---------- */
.contactbar { background: var(--wash); border-top: 1px solid var(--line); padding: 30px 0 34px; text-align: center; }
.contactbar .barlogo { height: 74px; width: auto; margin: 0 auto 18px; }
.contactbar .bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.contactbar .bar .btn { min-width: 180px; }

/* ---------- Footer ---------- */
.pagefoot { background: var(--terra-deep); color: #ecd9c8; padding: 34px 0 22px; }
.pagefoot a { color: #fff; text-decoration: none; }
.pagefoot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot-grid h3 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.foot-grid p, .foot-grid li { font-size: 0.92rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.18); margin-top: 28px; padding-top: 16px; font-size: 0.8rem; color: #cdb09a; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Mobile action bar ---------- */
.mobilebar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(74,39,18,0.12);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
}
.mobilebar a { flex: 1; }

@media (max-width: 1100px) {
  nav.main a { padding: 10px 8px; font-size: 0.9rem; }
  .header-phone { display: none; }
}
@media (max-width: 980px) {
  .pagegrid { grid-template-columns: 1fr; }
  .ctacard { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  nav.main { display: none; }
  .logo img { height: 52px; }
  .mobilebar { display: flex; }
  .mobilebar .btn { padding: 10px 4px; font-size: 0.85rem; white-space: nowrap; }
  body { padding-bottom: 82px; }
  .ev-facts { grid-template-columns: 1fr; }
  .ev-facts .row { flex-wrap: wrap; }
  .ev-facts dd { text-align: left; overflow-wrap: anywhere; }
  .needlist { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .contactbar .bar .btn { min-width: 0; flex: 1 1 40%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Full-build additions (migration build) ---------- */
.pagehero.noimg { background: linear-gradient(160deg, var(--terra) 0%, var(--terra-deep) 90%); min-height: 230px; }
.pagehero.noimg::after { display: none; }
.prose.wide { max-width: none; }
.prose h1 { font-size: 1.55rem; font-weight: 600; margin: 26px 0 10px; }
.prose h3 { font-size: 1.12rem; font-weight: 600; margin: 20px 0 6px; }
.prose h4 { font-size: 1rem; font-weight: 600; margin: 16px 0 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.prose ol { margin: 0 0 14px; padding-left: 22px; color: #453a33; display: grid; gap: 6px; }
.prose blockquote { margin: 16px 0; padding: 10px 18px; border-left: 3px solid var(--terra); background: var(--wash); color: #453a33; }
.prose table { border-collapse: collapse; margin: 14px 0; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose img { border-radius: var(--radius); }
.block-btn { margin: 16px 0; }
.anchor { display: block; position: relative; top: -96px; height: 0; visibility: hidden; }
.embed-block { position: relative; width: 100%; max-width: 100%; overflow: hidden; border-radius: var(--radius); }
.embed-block iframe { display: block; width: 1px; min-width: 100%; max-width: 100%; height: 640px; border: 0; border-radius: var(--radius); background: #fff; }
.video-fig video { width: 100%; max-height: 660px; background: #000; border-radius: var(--radius); }
.inquiry-form { display: grid; gap: 12px; margin: 20px 0; max-width: 560px; }
.inquiry-form label { font-weight: 600; font-size: 0.92rem; display: grid; gap: 6px; color: var(--ink); }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff; color: var(--ink); width: 100%;
}
.inquiry-form .req { color: var(--terra); }
.inquiry-form .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.inquiry-form .check input { width: auto; margin-top: 4px; }
.inquiry-form .form-note { font-size: 0.82rem; color: var(--muted); font-weight: 400; }

/* Icon images (512px source glyphs) render at icon size, never full width */
img.icon { width: 44px !important; height: 44px !important; object-fit: contain; margin-inline: auto; }
figure:has(img.icon) { text-align: center; }

/* Wide WhatsApp button graphic: never stretch full column width */
img[src*="whatsapp-button"] { width: min(340px, 100%) !important; height: auto !important; margin-inline: auto; }
figure:has(img[src*="whatsapp-button"]) { text-align: center; }

/* ---------- Location strip ---------- */
.locstrip { background: var(--terra-wash); border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.locstrip-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 18px; padding-top: 7px; padding-bottom: 7px; }
.locaddr { font-weight: 600; }
.locdir { color: var(--terra-dark); font-weight: 700; text-decoration: none; white-space: nowrap; }
.locdir:hover { text-decoration: underline; }

/* ---------- Contact trio (homepage GET IN TOUCH) ---------- */
.contact-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 6px; }
.ctrio-item { background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px 16px; text-align: center; min-width: 0; }
.ctrio-item p { margin: 8px 0 0; }
.ctrio-label { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; color: var(--muted); }
.ctrio-item .btn { max-width: 100%; }
.ctrio-refer { text-align: center; margin-top: 14px; }
@media (max-width: 760px) {
  .contact-trio { grid-template-columns: 1fr; }
}
