/* Homely — site styles */

:root {
  --brand: #009fe3;
  --brand-600: #0086c2;
  --ink: #1d2433;
  --text: #4a5263;
  --muted: #737b8c;
  --line: #e3e8f2;
  --soft: #eef3fc;
  --navy: #14123f;
  --overlay: linear-gradient(180deg, rgba(150, 105, 97, .70) 0%, rgba(2, 0, 76, .86) 100%);
  --radius: 12px;
  --shadow: 0 10px 30px rgba(20, 18, 63, .08);
  --shadow-lg: 0 18px 50px rgba(20, 18, 63, .16);
  --wrap: 1160px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 900; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }

.i {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img { height: 40px; width: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none;
}
.nav a:hover { color: var(--brand); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--brand); }
.nav .nav-cta a { background: var(--brand); color: #fff; margin-left: 8px; }
.nav .nav-cta a:hover { background: var(--brand-600); color: #fff; }

.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-size: 22px; cursor: pointer;
}
.menu-btn .close { display: none; }
.site-header.open .menu-btn .open { display: none; }
.site-header.open .menu-btn .close { display: block; }

@media (max-width: 880px) {
  .menu-btn { display: inline-flex; }
  .js .nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .js .site-header.open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 20px 20px; }
  .nav a { padding: 12px 12px; font-size: 17px; }
  .nav .nav-cta a { margin: 8px 0 0; text-align: center; }
  html:not(.js) .site-header .wrap { height: auto; flex-wrap: wrap; padding: 12px 0; }
  html:not(.js) .menu-btn { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 8px; border: 2px solid var(--brand);
  background: var(--brand); color: #fff;
  font: inherit; font-weight: 900; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--brand-600); border-color: var(--brand-600); transform: translateY(-1px); }
.btn .i { font-size: 18px; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-sm { padding: 11px 20px; font-size: 13px; }

/* ---------- Hero ---------- */

.hero {
  color: #fff;
  background: var(--overlay), url("/images/hackney.jpg") center / cover no-repeat;
  padding: clamp(72px, 12vw, 130px) 0 clamp(64px, 10vw, 120px);
}
.hero .wrap { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: center; }
.hero h1 {
  color: #fff; font-size: clamp(44px, 7vw, 84px);
  letter-spacing: .03em; text-transform: uppercase; line-height: 1.02; margin-bottom: 24px;
}
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: rgba(255, 255, 255, .9); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.contact-card {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 16px; padding: 32px;
}
.contact-card h2 { color: #fff; font-size: 26px; margin-bottom: 12px; }
.contact-line {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .2);
  color: #fff; text-decoration: none; font-size: 18px; font-weight: 700; word-break: break-word;
}
.contact-line:hover span { text-decoration: underline; }
.contact-line .badge {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand);
  display: grid; place-items: center; flex: none; font-size: 19px;
}
.contact-line small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.contact-card .btn { width: 100%; margin-top: 18px; }

.page-hero {
  color: #fff; text-align: center;
  background: var(--overlay), var(--img, url("/images/homerton.jpg")) center / cover no-repeat;
  padding: clamp(72px, 10vw, 120px) 0 clamp(60px, 8vw, 100px);
}
.page-hero h1 { color: #fff; font-size: clamp(40px, 6vw, 64px); text-transform: uppercase; letter-spacing: .04em; }
.page-hero p { font-size: clamp(17px, 2vw, 20px); color: rgba(255, 255, 255, .9); max-width: 44em; margin-inline: auto; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 104px) 0; }
.section.soft { background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); }
.section.tint { background: var(--soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 18px; }
.eyebrow {
  display: inline-block; margin-bottom: 12px;
  color: var(--brand); font-size: 13px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase;
}
.center { text-align: center; }
.mt { margin-top: clamp(36px, 5vw, 56px); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Feature cards */
.feature { border-top: 6px solid var(--brand); padding: 40px 32px 36px; text-align: center; display: flex; flex-direction: column; }
.feature .icon {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 32px;
}
.feature h3 { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.feature p { color: var(--muted); }
.feature .btn { margin: 24px auto 0; }

/* Listing cards */
.listing { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.listing:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.listing-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.listing-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.listing h3 {
  display: flex; align-items: center; gap: 6px; margin: 0;
  color: var(--muted); font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
}
.listing h3 .i { color: var(--brand); font-size: 16px; }
.price { font-size: 34px; font-weight: 900; color: var(--ink); line-height: 1.2; margin: 6px 0 4px; }
.price small { font-size: 15px; color: var(--muted); font-weight: 700; letter-spacing: .06em; }
.beds { font-weight: 700; color: var(--ink); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 24px; }
.chips li { background: var(--soft); color: #3d4a66; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.listing .btn { margin-top: auto; align-self: flex-start; }

/* Story */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split h2 { font-size: clamp(30px, 4vw, 44px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Team */
.avatar {
  width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #8a6670 0%, #1b1660 100%);
  color: #fff; font-size: 36px; font-weight: 900; letter-spacing: .04em;
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--line);
}
.member { text-align: center; padding: 36px 24px 32px; }
.member h3 { font-size: 21px; margin-bottom: 2px; }
.role { color: var(--brand); font-weight: 900; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0; }

.member-full { padding: 36px 32px; display: flex; flex-direction: column; }
.member-full .head { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.member-full .avatar { width: 84px; height: 84px; font-size: 28px; margin: 0; }
.member-full h3 { font-size: 22px; margin: 0 0 2px; }
.member-full .bio { color: var(--text); }
.member-full .links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.member-full .links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.member-full .links a:hover { text-decoration: underline; }

/* Contact page */
.contact-big { padding: 40px 32px; text-align: center; text-decoration: none; color: inherit; display: block; transition: transform .2s, box-shadow .2s; }
.contact-big:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-big .icon {
  width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 32px;
}
.contact-big .label { display: block; color: var(--muted); font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.contact-big .value { display: block; color: var(--ink); font-size: clamp(22px, 3vw, 28px); font-weight: 900; margin-top: 6px; word-break: break-word; }

/* CTA band */
.cta {
  color: #fff; text-align: center;
  background: var(--overlay), var(--img, url("/images/upper-clapton.jpg")) center / cover no-repeat;
  padding: clamp(72px, 10vw, 110px) 0;
}
.cta h2 { color: #fff; font-size: clamp(30px, 4.5vw, 48px); text-transform: uppercase; letter-spacing: .05em; }
.cta p { font-size: 19px; color: rgba(255, 255, 255, .9); max-width: 38em; margin-inline: auto; }
.cta .actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { background: var(--overlay), var(--navy); color: rgba(255, 255, 255, .8); font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.site-footer h2 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .contact-list a { display: inline-flex; align-items: center; gap: 10px; }
.site-footer .contact-list .i { color: var(--brand); font-size: 17px; }
.footer-bottom { background: rgba(0, 0, 0, .3); color: rgba(255, 255, 255, .7); font-size: 14px; padding: 18px 0; }
.footer-bottom .wrap { display: block; padding: 0; }
@media (max-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1fr; gap: 32px; }
}

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