/* Windmill Lettings: simple design. Navy + cream from the logo. */
:root {
  --navy: #183048;
  --navy-deep: #102032;
  --cream: #f6f4f0;
  --page-bg: #f5f5f5;               /* very light grey page background */
  --stone: #ece8e1;
  --white: #ffffff;
  --text: #183048;
  --muted: #5b6b7a;
  --line: #d9dee3;
  --heading: 'Marcellus', Georgia, serif;
  --body: 'Public Sans', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--body); font-size: 1.05rem; line-height: 1.65; color: var(--text); background: var(--page-bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.3rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
p { max-width: 62ch; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--white); }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.intro { margin-bottom: 2.5rem; }

/* Buttons */
.btn { display: inline-block; background: var(--navy); color: var(--cream); border: 2px solid var(--navy); padding: 0.8rem 1.5rem; border-radius: 4px; font: 600 0.95rem var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-light { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.btn-light:hover { background: var(--white); border-color: var(--white); }
.buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.center .buttons { justify-content: center; }

/* Header */
.header { background: #60cef2; color: var(--navy); }
.header .container { display: flex; align-items: center; gap: 1.5rem; height: 80px; }
.logo img { height: 62px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 1.75rem; list-style: none; }
.nav a { text-decoration: none; opacity: 0.8; font-weight: 600; }
.nav a:hover, .nav a.active { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.menu-btn { display: none; margin-left: auto; background: none; color: var(--navy); border: 1px solid rgba(24,48,72,0.5); padding: 0.5rem 0.9rem; border-radius: 4px; font: 600 0.9rem var(--body); cursor: pointer; }

/* Photo banner (home hero and page titles) */
.banner { position: relative; color: var(--cream); text-align: center; background: var(--navy); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.banner .container { position: relative; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.banner p { margin: 0.75rem auto 0; opacity: 0.9; }
.banner-home .container { padding-top: 7rem; padding-bottom: 7rem; }

/* Search */
.search { display: flex; gap: 0.5rem; max-width: 620px; margin: 2rem auto 0; background: var(--white); padding: 0.5rem; border-radius: 6px; }
.search input { flex: 1; border: 0; }
.search select { width: auto; border: 0; }

/* Forms */
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
input, select, textarea { width: 100%; font: 1rem var(--body); color: var(--text); background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 0.75rem; }
textarea { min-height: 140px; }
.field { margin-bottom: 1.1rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Grids and cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1.75rem; }
.card p { color: var(--muted); }
.card .price { font-family: var(--heading); font-size: 1.5rem; margin: 0.25rem 0 1rem; }
.card .btn { margin-top: 1.25rem; }

/* Property cards */
.property-card { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.property-card:hover { border-color: var(--navy); }
.property-card .photo { aspect-ratio: 4 / 3; background: var(--stone); }
.property-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.property-card .body { padding: 1.25rem; }
.property-card .price { font-family: var(--heading); font-size: 1.4rem; }
.property-card .price small, .per { font-family: var(--body); font-size: 0.85rem; color: var(--muted); }
.property-card h3 { font-family: var(--body); font-weight: 600; font-size: 1rem; margin: 0.2rem 0 0; }
.property-card .where, .property-card .facts { color: var(--muted); font-size: 0.92rem; }
.empty { grid-column: 1 / -1; color: var(--muted); }
.notice { background: var(--stone); padding: 0.8rem 1rem; border-radius: 4px; font-size: 0.92rem; margin-bottom: 1.5rem; max-width: none; }

/* Lists */
.list { list-style: none; }
.list li { padding: 0.55rem 0 0.55rem 1.6rem; position: relative; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li::before { content: "✓"; position: absolute; left: 0; color: var(--navy); font-weight: 600; }
.steps { padding-left: 1.25rem; }
.steps li { padding: 0.5rem 0 0.5rem 0.5rem; }
.faq h3 { font-size: 1.2rem; margin-top: 1.75rem; }
.faq p { color: var(--muted); }

/* Filters */
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 0.75rem; align-items: end; margin-bottom: 2rem; }
.filters .field { margin: 0; }

/* Property detail */
.detail-photo { border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--stone); margin: 1.5rem 0 2rem; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0 2rem; }
.details div { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 0.8rem 1rem; }
.details span { display: block; font-size: 0.85rem; color: var(--muted); }

/* Navy call to action */
.cta { background: var(--navy); color: var(--cream); text-align: center; }
.cta p { margin: 0 auto; opacity: 0.85; }

/* Contact details */
.info div { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.info strong { display: block; font-size: 0.9rem; }
.info .info-item { display: flex; align-items: flex-start; gap: 0.9rem; }
.info-item img { width: 36px; height: 36px; flex: none; margin-top: 0.1rem; }
.info-item > span { min-width: 0; overflow-wrap: anywhere; }
.info-item small { display: block; color: var(--muted); font-size: 0.85rem; }

/* Footer */
.footer { background: var(--navy-deep); color: rgba(246,244,240,0.75); padding: 3rem 0 2rem; font-size: 0.92rem; }
.footer-main { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer img { height: 80px; width: auto; margin-bottom: 1rem; }
.footer-main img { height: 120px; margin-bottom: 1.25rem; }   /* footer logo: max ~125px, the logo file is 250px */
.footer-contact li { display: flex; align-items: flex-start; gap: 0.65rem; }
.footer-main .footer-contact img { height: 18px; width: 18px; flex: none; margin: 0.22rem 0 0; }   /* icons in a column beside the contact details */
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.4rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; color: var(--cream); }
.footer-legal { border-top: 1px solid rgba(246,244,240,0.15); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.8rem; }
.footer-legal p { max-width: none; margin-bottom: 0.3rem; }
.footer-legal a { text-decoration: underline; }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--navy); color: var(--cream); padding: 0.9rem 1.4rem; border-radius: 4px; z-index: 100; max-width: calc(100vw - 2rem); }

/* Phones and tablets */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .nav.open { display: block; position: absolute; top: 80px; left: 0; right: 0; background: var(--navy); padding: 0.5rem 1.5rem 1rem; z-index: 50; }
  .nav.open ul { flex-direction: column; gap: 0; }
  .nav.open a { display: block; color: var(--cream); padding: 0.7rem 0; }
  .header { position: relative; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .row, .details { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-2, .row { grid-template-columns: 1fr; }
  .search { flex-direction: column; }
  .search select { width: 100%; }
  .banner-home .container { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .section { padding: 3.25rem 0; }
}
.buttons.center { justify-content: center; }

/* Large logo overlapping the header and the photo banner (all pages) */
.header { position: relative; z-index: 30; }
.header .container { position: relative; }
.logo { position: absolute; top: 14px; left: 1.5rem; z-index: 40; }
.logo img { height: 150px; width: auto; box-shadow: 0 8px 24px rgba(16, 32, 50, 0.45); }
main > .section:first-child { padding-top: 7.5rem; }
@media (max-width: 900px) {
  .logo img { height: 110px; }
}
@media (max-width: 640px) {
  .logo { top: 10px; }
  .logo img { height: 92px; }
  .banner .container { padding-top: 4rem; }
  main > .section:first-child { padding-top: 5rem; }
}

/* ---------- Enquiry form ---------- */
[hidden] { display: none !important; }
.visually-hidden, .trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 2rem; }
.form-panel fieldset { border: 0; min-width: 0; }
.form-panel > fieldset + fieldset { border-top: 1px solid var(--line); margin-top: 1.75rem; padding-top: 1.75rem; }
.form-panel legend { font-family: var(--heading); font-size: 1.35rem; margin-bottom: 1rem; padding: 0; }
.group-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.45rem; }
.opt { font-weight: 400; color: var(--muted); }
.hint { font-size: 0.88rem; color: var(--muted); margin: -0.2rem 0 0.5rem; }
.small { font-size: 0.85rem; margin-top: 0.9rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; font-weight: 400; font-size: 0.95rem; background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 0.55rem 0.85rem; cursor: pointer; }
.choice:hover { border-color: var(--navy); }
.choice input { width: auto; margin: 0; accent-color: var(--navy); }
.choice:has(input:checked) { border-color: var(--navy); background: #eef1f4; box-shadow: inset 0 0 0 1px var(--navy); }
.choice:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.choice.role { padding: 1rem 1.1rem; align-items: flex-start; }
.choice.role input { margin-top: 0.3rem; }
.consent .choice { align-items: flex-start; font-size: 0.9rem; }
.consent .choice input { margin-top: 0.25rem; }
.choice.role strong { display: block; font-size: 1.05rem; }
.choice.role small { display: block; color: var(--muted); font-size: 0.88rem; }
.error-msg { color: #b4453a; font-size: 0.87rem; margin-top: 0.35rem; }
.invalid input:not([type="radio"]):not([type="checkbox"]), .invalid select, .invalid textarea { border-color: #b4453a; }
.invalid .choice { border-color: #d8a39d; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--cream); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.sent h2 { margin-bottom: 0.5rem; }
.map-panel { margin-top: 2.5rem; }
.map-panel iframe { display: block; width: 100%; height: 340px; margin-top: 1rem; border: 1px solid var(--line); border-radius: 6px; background: var(--stone); }
.map-links { margin-top: 0.6rem; font-size: 0.92rem; }
.map-links a { color: var(--navy); font-weight: 600; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .role-cards { grid-template-columns: 1fr; } .form-panel { padding: 1.25rem; } }
.form-panel legend { float: left; width: 100%; }
.form-panel legend + * { clear: both; }

/* ---------- Footer membership logos ---------- */
/* Every logo sits in a white tile of the same size so the row looks even.
   Phones: 2 per row, centred. Wider screens: one row on the right. */
.footer-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; margin: 1.5rem 0 1.25rem; }
.footer-badges a, .footer-badges span { display: flex; align-items: center; justify-content: center; background: #ffffff; border-radius: 4px; padding: 0.4rem 0.6rem; width: 140px; height: 56px; }
.footer-badges img { height: auto; width: auto; max-height: 40px; max-width: 100%; margin: 0; object-fit: contain; }
@media (min-width: 700px) {
  .footer-badges { justify-content: flex-end; }
  .footer-badges a, .footer-badges span { width: 128px; }
}
.footer-badges a:hover { outline: 2px solid var(--cream); outline-offset: 2px; }

/* ---------- Property portal logos ---------- */
.portal-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 3rem; margin-top: 2rem; }
.portal-logos a, .portal-logos span { display: flex; align-items: center; }
.portal-logos img { max-height: 44px; max-width: 180px; width: auto; object-fit: contain; }
.portal-logos a:hover img { opacity: 0.8; }




