/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "M PLUS Rounded 1c"; font-weight: 800; font-style: normal; font-display: swap; src: url(../fonts/m-plus-rounded-1c-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/public-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/public-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/public-sans-latin-600-normal.woff2) format("woff2"); }

/* 2getha site styles. Colours are taken from the 2getha logo. */
:root {
  --berry: #B11A6E;
  --berry-dark: #8E1257;
  --berry-deep: #4E0B31;
  --berry-tint: #F8E7F0;
  --lime: #C8D400;
  --lime-wash: #F4F7DA;
  --ink: #000;
  --text: #2A2A2A;
  --muted: #5F5F5F;
  --paper: #FFF;
  --line: #DEDED6;
  --display: "M PLUS Rounded 1c", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-pill: 999px;
  --radius-media: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--berry); text-underline-offset: 3px; }
a:hover { color: var(--berry-dark); }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); margin: 0; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.plain { list-style: none; margin: 0; padding: 0; }
.icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Type ---------- */
.display {
  font: 800 clamp(2.75rem, 7.2vw, 5.6rem)/0.98 var(--display);
  letter-spacing: -0.035em;
  text-transform: lowercase;
}
.display--page { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.h2 { font: 800 clamp(1.6rem, 3vw, 2.25rem)/1.15 var(--display); letter-spacing: -0.02em; }
.h3 { font: 800 1.25rem/1.3 var(--display); margin: 1.6em 0 .6em; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--text); max-width: 34em; }
.prose { max-width: 40em; }
.prose > :last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions--stack { flex-direction: column; margin-top: 24px; }
.actions--stack .btn { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .82em 1.45em; border-radius: var(--radius-pill);
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--berry { background: var(--berry); color: #fff; }
.btn--berry:hover { background: var(--berry-dark); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #dbe62a; color: var(--ink); }
.btn--line { border-color: #fff; color: #fff; }
.btn--line:hover { background: #fff; color: var(--berry-deep); }
.btn--wa { background: var(--ink); color: #fff; padding: .6em 1.1em; font-size: .95rem; }
.btn--wa:hover { background: var(--berry); color: #fff; }
.btn--wa-solid { background: #128C4A; color: #fff; }
.btn--wa-solid:hover { background: #0d6d39; color: #fff; }
.textlink { font-weight: 600; color: var(--ink); text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.textlink:hover { color: var(--berry); text-decoration-color: var(--berry); }

/* ---------- Header ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-head__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand img { width: 150px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 3px solid transparent; }
.site-nav ul a:hover { border-color: var(--lime); }
.site-nav ul a[aria-current="page"] { border-color: var(--berry); }
.nav-toggle { display: none; align-items: center; gap: 10px; background: none; border: 2px solid var(--ink); border-radius: var(--radius-pill); padding: 8px 16px; font: 600 .95rem var(--body); color: var(--ink); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; transition: transform .2s; }
.nav-toggle__bars::before { position: absolute; left: 0; top: -6px; }
.nav-toggle__bars::after { position: absolute; left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 24px; gap: 16px; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .site-nav ul a[aria-current="page"] { color: var(--berry); border-color: var(--line); }
  .site-nav .btn--wa { justify-content: center; padding: .85em 1.2em; }
  .brand img { width: 128px; }
  .site-head__inner { min-height: 68px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero .display { max-width: 9.5em; }
.hero .lede { margin-top: 28px; }
.hero__photo { position: relative; margin: 0; }
.hero__photo > img:first-child { width: 100%; aspect-ratio: 55 / 64; object-fit: cover; border-radius: 28px 28px 28px 120px; background: var(--berry-deep); }
.hero__photo figcaption { position: absolute; right: 16px; bottom: 16px; background: rgba(0,0,0,.6); color: #fff; font-size: .82rem; padding: 5px 12px; border-radius: var(--radius-pill); }
.hero__mark { position: absolute; left: -28px; top: 28px; width: 96px; height: auto; padding: 14px; background: var(--paper); border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }

@media (max-width: 760px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo { order: -1; }
  .hero__photo > img:first-child { aspect-ratio: 4 / 3; border-radius: 22px 22px 22px 72px; }
  .hero__mark { left: auto; right: 14px; top: 14px; width: 64px; padding: 10px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--lime-wash); }
.section--flush-top { padding-top: 8px; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); }
.page-head .lede { margin-top: 20px; }

/* What we do: one row per service */
.svc-rows { margin-top: 32px; border-top: 2px solid var(--ink); }
.svc-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px 48px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text);
}
.svc-row h3 { font: 800 clamp(1.6rem, 3.4vw, 2.6rem)/1.05 var(--display); letter-spacing: -0.03em; transition: color .15s; }
.svc-row p { margin: 0; max-width: 32em; }
.svc-row:hover h3 { color: var(--berry); }
@media (max-width: 720px) { .svc-row { grid-template-columns: 1fr; padding: 24px 0; } }

/* Service detail */
.svc-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px 64px; }
.svc-detail__h { font: 800 clamp(2rem, 4.4vw, 3.4rem)/1 var(--display); letter-spacing: -0.035em; color: var(--berry); }
.svc-detail__lead { font-size: 1.25rem; line-height: 1.5; color: var(--ink); }
@media (max-width: 760px) { .svc-detail__grid { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 1em 0 0; }
.ticks li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 3px var(--ink); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 60px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--berry); color: #fff; font: 800 1.1rem/40px var(--display); text-align: center;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 2px; width: 2px; background: var(--berry); opacity: .3; }
.steps strong { display: block; color: var(--ink); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.about__text .prose { margin-top: 28px; }
.about__text .lede { margin-bottom: 1em; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; border-radius: 28px 28px 28px 96px; background: var(--berry-deep); }
.about__photo figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__photo { order: -1; }
  .about__photo img { aspect-ratio: 4 / 3; border-radius: 22px 22px 22px 72px; }
}
.values { margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 40px; }
.values div { padding: 22px 0; border-top: 2px solid var(--ink); }
.values dt { font: 800 1.4rem/1.2 var(--display); color: var(--ink); text-transform: lowercase; margin-bottom: 6px; }
.values dd { margin: 0; }

/* ---------- Property cards ---------- */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 32px 28px; }
.prop__link { display: block; text-decoration: none; color: inherit; height: 100%; }
.prop__media { position: relative; aspect-ratio: 10 / 7; border-radius: var(--radius-media); overflow: hidden; background: var(--berry-tint); }
.prop__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.prop__link:hover .prop__media img:not(.prop__placeholder) { transform: scale(1.03); }
.prop__media--empty { display: grid; place-items: center; align-content: center; gap: 10px; background: var(--paper); border: 2px dashed var(--line); }
.prop__media--empty img { width: 64px; height: auto; opacity: .9; }
.prop__nophoto { font-size: .9rem; color: var(--muted); }
.prop__media .chip { position: absolute; left: 14px; top: 14px; }
.prop__body { padding: 18px 2px 0; }
.prop__title { font: 800 1.3rem/1.25 var(--display); letter-spacing: -0.01em; }
.prop__link:hover .prop__title { color: var(--berry); }
.prop__loc { color: var(--muted); margin: 4px 0 10px; font-size: .97rem; }
.prop__sum { font-size: .98rem; margin-bottom: 10px; }
.prop__price { font-weight: 600; color: var(--ink); margin: 0; }

.chip { display: inline-block; padding: 5px 12px; border-radius: var(--radius-pill); font: 600 .82rem/1.2 var(--body); background: #fff; color: var(--ink); }
.chip.is-open { background: var(--lime); }
.chip.is-live { background: var(--berry); color: #fff; }
.chip.is-hold { background: #fff; box-shadow: inset 0 0 0 2px var(--berry); color: var(--berry-dark); }
.chip.is-plan { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.chip.is-done { background: #E9E9E4; }

/* Project list on home */
.project-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.project-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.project-list__text { display: grid; gap: 2px; min-width: 0; text-align: left; }
.project-list__title { font: 800 1.2rem/1.3 var(--display); color: var(--ink); }
.project-list__loc { color: var(--muted); }
.project-list a:hover .project-list__title { color: var(--berry); }
@media (max-width: 640px) { .project-list a { grid-template-columns: 1fr; } .project-list .chip { justify-self: start; } }

.empty { padding: 40px; border: 2px dashed var(--line); border-radius: var(--radius-media); max-width: 640px; }

/* ---------- Property detail ---------- */
.detail { padding: 28px 0 clamp(56px, 8vw, 96px); }
.crumb { font-size: .95rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.detail__head { margin: 20px 0 28px; }
.detail__title { font: 800 clamp(2rem, 5vw, 3.4rem)/1.05 var(--display); letter-spacing: -0.03em; max-width: 18em; }
.detail__loc { font-size: 1.15rem; color: var(--muted); margin: 10px 0 14px; }
.gallery { margin-bottom: 40px; }
.gallery__main { margin: 0; border-radius: var(--radius-media); overflow: hidden; background: var(--berry-tint); aspect-ratio: 3 / 2; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { list-style: none; display: flex; gap: 10px; padding: 12px 0 0; margin: 0; overflow-x: auto; }
.gallery__thumbs button { padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; width: 104px; aspect-ratio: 3 / 2; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--berry); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 48px; align-items: start; }
.detail__side { position: sticky; top: 100px; background: var(--lime-wash); border-radius: var(--radius-media); padding: 28px; }
.facts { margin: 0; }
.facts div { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.1); }
.facts dt { font-size: .9rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
@media (max-width: 860px) { .detail__grid { grid-template-columns: 1fr; } .detail__side { position: static; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact__ways { display: grid; gap: 12px; }
.way { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 16px; border: 2px solid var(--line); text-decoration: none; color: var(--text); }
.way .icon { width: 28px; height: 28px; color: var(--berry); }
.way strong { display: block; color: var(--ink); }
a.way:hover { border-color: var(--ink); color: var(--text); }
.way--wa { background: var(--lime); border-color: var(--lime); }
.way--wa .icon { color: var(--ink); }
a.way--wa:hover { border-color: var(--ink); }
.map { margin-top: 8px; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--lime-wash); }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact__form { order: -1; } }

.contact__form .h2 { margin-bottom: 20px; }
.form-about { background: var(--berry-tint); padding: 12px 16px; border-radius: 10px; }
.field { margin-bottom: 18px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 16px; }
@media (max-width: 520px) { .field-row { flex-direction: column; gap: 0; } }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid #BDBDB5; border-radius: 12px; padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 3px var(--berry-tint); }
[aria-invalid="true"] { border-color: #B3261E; }
.field__error { color: #B3261E; font-size: .93rem; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; border-radius: 12px; margin-bottom: 20px; }
.notice--ok { background: var(--lime-wash); border-left: 6px solid var(--lime); }
.notice--ok .h3 { margin-top: 0; }
.notice--err { background: #FCEBEA; border-left: 6px solid #B3261E; color: #5C130F; }

/* ---------- CTA band ---------- */
.cta { background: var(--berry); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.cta__h { font: 800 clamp(1.9rem, 4vw, 3rem)/1.05 var(--display); letter-spacing: -0.03em; color: #fff; max-width: 13em; margin-bottom: 14px; }
.cta p { max-width: 30em; margin: 0; }
.cta .actions { margin-top: 0; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #D7D7D2; padding: 64px 0 24px; font-size: .97rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { color: var(--lime); text-decoration: underline; }
.site-foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-foot__brand img { width: 170px; margin-bottom: 16px; }
.site-foot__brand p { max-width: 22em; }
.site-foot__h { font: 600 1rem var(--body); color: var(--lime); margin-bottom: 12px; }
.site-foot .plain li { margin-bottom: 6px; }
.site-foot__base { border-top: 1px solid #333; margin-top: 48px; padding-top: 20px; font-size: .88rem; color: #9D9D97; }
.site-foot__base p { margin: 0; }
@media (max-width: 860px) { .site-foot__grid { grid-template-columns: 1fr 1fr; } .site-foot__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-foot__grid { grid-template-columns: 1fr; } }

/* Back, previous and next on property pages */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 2px solid var(--ink); }
.pager--top { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 0; border: 0; font-size: .95rem; }
.pager__back { font-weight: 600; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.pager__back::before { content: ""; width: 9px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.pager__back:hover { color: var(--berry); }
.pager__count { color: var(--muted); }
.pager__link { display: grid; gap: 4px; padding: 18px 22px; border: 2px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.pager__link:hover { border-color: var(--berry); color: var(--ink); }
.pager__link--next { grid-column: 2; text-align: right; }
.pager__dir { font-size: .9rem; color: var(--berry); font-weight: 600; }
.pager__name { font: 800 1.1rem/1.3 var(--display); }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager__link--next { grid-column: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
