/* ==================================================================
   M&C Properties — site stylesheet
   No framework, no build step. Edit directly.
   ================================================================== */

/* ------------------------------------------------------------------
   Brand palette — sampled directly from the M&C Properties logo.

     Logo gold  #E09925
     Logo grey  #787C7B

   Neither is usable as-is for text: gold on white is 2.4:1 and grey on
   white is 4.2:1, both below the 4.5:1 minimum for body text. So the
   raw gold is kept for fills (buttons, chips, rules) where it sits
   behind near-black text at 7.5:1, and a darkened gold of the same hue
   is used wherever gold has to BE the text. Every pairing below has
   been contrast-checked.
   ------------------------------------------------------------------ */
:root {
  /* brand, exact */
  --gold:       #E09925;   /* logo gold — fills only, never text on white */
  --gold-dk:    #C07E14;   /* hover state for gold fills */
  --gold-sf:    #FCF3E3;   /* tinted background wash */
  --grey:       #787C7B;   /* logo grey */

  /* derived, accessible */
  --accent:     #96620F;   /* links & gold text on white — 5.2:1 */
  --accent-dk:  #7E520C;   /* hover — 6.8:1 */
  --accent-sf:  #F7F0E2;   /* focus ring / soft accent background */

  --ink:        #1F2221;   /* body text — 16:1 on white */
  --ink-soft:   #4A4F4D;   /* secondary text — 8.2:1 */
  --muted:      #6C716F;   /* meta text — 5.2:1 */
  --dark:       #2C2F2E;   /* dark surfaces — white on it is 13.5:1 */
  --dark-dp:    #232524;   /* deeper dark, footer */

  --line:       #E2E4E3;
  --line-soft:  #EFF1F0;
  --bg:         #ffffff;
  --bg-alt:     #F7F7F6;

  --ok:         #1c7a4a;
  --ok-bg:      #e7f4ed;
  --err:        #b3261e;
  --err-bg:     #fdeceb;

  --radius:     10px;
  --shadow:     0 1px 2px rgba(31,34,33,.05), 0 8px 24px rgba(31,34,33,.07);
  --wrap:       1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .75rem; font-weight: 700; color: var(--accent);
  margin-bottom: .6rem;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); }

.sr-only, .skip {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus {
  position: fixed; top: 10px; left: 10px; width: auto; height: auto;
  clip: auto; background: #fff; padding: 10px 16px; z-index: 100;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* honeypot — hidden from people, present for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-weight: 800; font-size: 1.12rem; letter-spacing: .02em;
  color: var(--ink); text-transform: uppercase;
  font-family: Georgia, "Times New Roman", serif;
}
.brand-tag {
  font-size: .68rem; letter-spacing: .09em; color: var(--accent);
  font-style: italic; font-weight: 600;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink-soft); font-weight: 500; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.nav-cta {
  background: var(--gold); color: #1F2221 !important;
  padding: 9px 18px; border-radius: 999px;
}
.nav-cta:hover { background: var(--gold-dk); }

.nav-toggle { display: none; }
.nav-button { display: none; cursor: pointer; padding: 8px; }
.nav-button span {
  display: block; width: 24px; height: 2px; background: var(--ink);
  margin: 5px 0; border-radius: 2px;
}

/* ------------------------------------------------------------------
   Buttons, alerts, forms
   ------------------------------------------------------------------ */
.btn {
  display: inline-block; border: 1px solid transparent; cursor: pointer;
  padding: 12px 22px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; font-family: inherit;
  text-align: center; transition: background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
/* Gold fill with near-black text: 7.5:1, and unmistakably the brand. */
.btn-primary { background: var(--gold); color: #1F2221; }
.btn-primary:hover { background: var(--gold-dk); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: #fff; border-color: #e3b7b4; color: var(--err); }
.btn-danger:hover { background: var(--err-bg); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }

.alert {
  border-radius: var(--radius); padding: 14px 18px; margin: 20px 0;
  border: 1px solid; font-size: .95rem;
}
.alert-success { background: var(--ok-bg);  border-color: #bfe0cd; color: var(--ok); }
.alert-error   { background: var(--err-bg); border-color: #f2c4c1; color: var(--err); }

.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--ink-soft); margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: .95rem;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-sf);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stack .field:last-of-type { margin-bottom: 20px; }
.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.check { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.check input { width: auto; }
.check label { margin: 0; font-weight: 500; color: var(--ink); }

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
.hero {
  position: relative; isolation: isolate;
  background: linear-gradient(155deg, #232524 0%, #2C2F2E 45%, #3B403E 100%);
  color: #fff; padding: 76px 0 90px;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .35em;
  text-shadow: 0 2px 20px rgba(0,0,0,.45); }
.hero .lede { color: #E4E6E5; max-width: 620px; margin-bottom: 32px;
  text-shadow: 0 1px 12px rgba(0,0,0,.5); }

/* ------------------------------------------------------------------
   Hero slideshow
   ------------------------------------------------------------------
   Pure CSS — no JavaScript. Each slide is a layer that fades in for
   its share of a 24s loop. Done with animation rather than script so
   it needs no library and does not violate the site's strict
   Content-Security-Policy (which forbids inline scripts).

   The dark gradient over the top is not decoration: the headline and
   search panel must stay readable no matter which photo is showing.
   ------------------------------------------------------------------ */
.hero-slides {
  position: absolute; inset: 0; z-index: 0;
}
.hero-slides span {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  animation: heroFade 24s infinite;
  will-change: opacity;
}
/* Image URLs live here rather than in a style="" attribute on the
   markup, because the site's Content-Security-Policy sets
   style-src 'self' — inline styles are refused, and that restriction
   is worth keeping. To swap a photo, change the file here. */
.hero-slides .slide-1 { background-image: url("/assets/img/hero/hero-building.jpg"); animation-delay:  0s; }
.hero-slides .slide-2 { background-image: url("/assets/img/hero/hero-interior.jpg"); animation-delay:  6s; }
.hero-slides .slide-3 { background-image: url("/assets/img/hero/hero-forsale.jpg");  animation-delay: 12s; }
.hero-slides .slide-4 { background-image: url("/assets/img/hero/hero-design.jpg");   animation-delay: 18s; }

/* Each slide: fade up, hold, fade out — 4 slides x 6s = 24s. */
@keyframes heroFade {
   0%   { opacity: 0; }
   3%   { opacity: 1; }
  25%   { opacity: 1; }
  28%   { opacity: 0; }
 100%   { opacity: 0; }
}

/* Readability veil, above the photos, below the text. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg, rgba(24,26,25,.92) 0%, rgba(24,26,25,.74) 45%, rgba(24,26,25,.42) 100%),
    linear-gradient(to top, rgba(24,26,25,.55), rgba(24,26,25,0) 45%);
}

/* Someone who has asked their system to reduce motion gets a still
   image instead of a rotation. */
@media (prefers-reduced-motion: reduce) {
  .hero-slides span { animation: none; }
  .hero-slides .slide-1 { opacity: 1; }
}

.hero-search {
  background: #fff; border-radius: var(--radius); padding: 18px;
  display: grid; gap: 14px; box-shadow: var(--shadow);
  grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end;
}
.hero-search .field { margin: 0; }
.hero-search .btn { padding: 11px 26px; }

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.page-head { background: var(--bg-alt); padding: 48px 0; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .2em; }

/* ------------------------------------------------------------------
   Inner-page banners
   ------------------------------------------------------------------
   Driven entirely off the body class the layout already prints, so no
   page template needed changing to give each section its own image.
   Add a new page by adding a rule here.
   ------------------------------------------------------------------ */
body.page-properties .page-head,
body.page-services   .page-head,
body.page-about      .page-head,
body.page-contact    .page-head {
  position: relative;
  padding: 74px 0;
  border-bottom: none;
  color: #fff;
  background-color: var(--dark);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
body.page-properties .page-head::after,
body.page-services   .page-head::after,
body.page-about      .page-head::after,
body.page-contact    .page-head::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(24,26,25,.90) 0%, rgba(24,26,25,.68) 55%, rgba(24,26,25,.40) 100%);
}
body.page-properties .page-head .wrap,
body.page-services   .page-head .wrap,
body.page-about      .page-head .wrap,
body.page-contact    .page-head .wrap { position: relative; z-index: 1; }

body.page-properties .page-head h1,
body.page-services   .page-head h1,
body.page-about      .page-head h1,
body.page-contact    .page-head h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.45); }

body.page-properties .page-head .muted,
body.page-services   .page-head .muted,
body.page-about      .page-head .muted,
body.page-contact    .page-head .muted { color: #DDDFDE; }

body.page-properties .page-head { background-image: url("/assets/img/hero/hero-forsale.jpg"); }
body.page-services   .page-head { background-image: url("/assets/img/hero/hero-design.jpg"); }
body.page-about      .page-head { background-image: url("/assets/img/hero/hero-interior.jpg"); }
body.page-contact    .page-head { background-image: url("/assets/img/hero/hero-building.jpg"); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; margin-bottom: 28px;
}
.section-head h2 { margin: 0; }
.link-more { font-weight: 600; font-size: .95rem; white-space: nowrap; }

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

/* ------------------------------------------------------------------
   Property cards
   ------------------------------------------------------------------ */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .18s, transform .18s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { display: block; position: relative; background: var(--bg-alt); }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Chips are inline by default (used in the detail header) and only
   pinned to the corners when they sit inside a card image. */
.chip {
  display: inline-block;
  background: rgba(16,32,44,.86); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
}
.chip-sale   { background: rgba(31,34,33,.88); }
.chip-rent   { background: rgba(120,124,123,.95); }
.chip-status { background: var(--gold); color: #1F2221; }

.card-media .chip { position: absolute; top: 12px; left: 12px; }
.card-media .chip-status { left: auto; right: 12px; }

.card-body { padding: 18px 20px 20px; }
.card-price { font-size: 1.2rem; font-weight: 700; margin: 0 0 4px; color: var(--ink); }
.card-price .per { font-size: .8rem; font-weight: 500; color: var(--muted); }
.card-title { font-size: 1.02rem; margin: 0 0 4px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); text-decoration: none; }
.card-location { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }

.card-facts {
  list-style: none; margin: 0; padding: 14px 0 0; display: flex;
  gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-soft);
  font-size: .85rem; color: var(--ink-soft);
}
.card-facts strong { color: var(--ink); }
.card-type { margin-left: auto; color: var(--muted); }

/* ------------------------------------------------------------------
   Listings page
   ------------------------------------------------------------------ */
.layout-sidebar { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.layout-sidebar-right { grid-template-columns: 1fr 360px; }

.filters {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; position: sticky; top: 92px;
}
.filters-title { font-size: 1rem; margin-bottom: 16px; }
.link-reset { display: block; text-align: center; margin-top: 12px; font-size: .88rem; }

.results-bar { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.sort-form select {
  padding: 9px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit; font-size: .9rem; background: #fff;
}

.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; margin-top: 40px; font-size: .95rem;
}

.empty {
  text-align: center; padding: 48px 24px; color: var(--ink-soft);
  background: var(--bg-alt); border-radius: var(--radius);
}
.empty-page { background: none; padding: 80px 24px; }
.empty .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------
   Property detail
   ------------------------------------------------------------------ */
.detail-head { padding: 32px 0 24px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.crumbs span { margin: 0 6px; }
.detail-title { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.detail-title h1 { font-size: 1.8rem; margin-bottom: .25em; }
.detail-price { text-align: right; }
.detail-price .price { font-size: 1.7rem; font-weight: 700; margin: 0 0 8px; }
.detail-price .per { font-size: .85rem; font-weight: 500; color: var(--muted); }

.gallery { padding: 24px 0 0; }
.gallery-main img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); background: var(--bg-alt);
}
.gallery-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 200px;
  gap: 12px; overflow-x: auto; padding: 12px 0 4px;
}
.gallery-strip img {
  width: 200px; height: 134px; object-fit: cover; border-radius: 8px;
}

.facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px;
  padding: 0; margin: 0 0 32px;
}
.facts li {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 14px 20px; min-width: 108px;
  font-size: .82rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: .06em; font-weight: 600;
}
.facts-n {
  display: block; font-size: 1.3rem; color: var(--ink);
  text-transform: none; letter-spacing: normal; margin-bottom: 2px;
}

.prose { color: var(--ink-soft); }
.prose-wide { max-width: 760px; }
.prose-wide ul { color: var(--ink-soft); padding-left: 20px; }
.prose-wide li { margin-bottom: 6px; }

.amenities {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px;
}
.amenities li {
  padding-left: 24px; position: relative; color: var(--ink-soft); font-size: .95rem;
}
.amenities li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}

.enquiry-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); position: sticky; top: 92px;
}
.enquiry-box h2 { font-size: 1.15rem; }
.enquiry-call {
  border-top: 1px solid var(--line-soft); margin-top: 22px; padding-top: 18px;
}
.enquiry-call p { margin: 0 0 4px; }

.service-block {
  border-top: 1px solid var(--line); padding-top: 32px; margin-bottom: 40px;
}
.service-block:first-child { border-top: none; padding-top: 0; }

.services .service {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.services .service h3 { color: var(--accent); }
.services .service p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.cta { background: var(--gold-sf); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.cta-inner h2 { margin-bottom: .2em; }
.cta-inner p { margin: 0; }

.contact-details h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 24px; }
.contact-details h2:first-child { margin-top: 0; }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-footer { background: var(--dark-dp); color: #B9BCBB; margin-top: 0; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: .4em;
  font-family: Georgia, "Times New Roman", serif; letter-spacing: .02em; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-logo img { width: 46px; height: 46px; }
.footer-tag { color: var(--gold); font-style: italic; font-size: .88rem; margin-bottom: 10px; }
.site-footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer p { margin: 0 0 8px; font-size: .93rem; }
.site-footer a { color: #B9BCBB; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #8A8E8D; }
.footer-bottom { border-top: 1px solid #3A3D3C; margin-top: 40px; padding-top: 20px; }
.footer-bottom p { margin: 0; font-size: .87rem; }

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hero-search .btn { grid-column: 1 / -1; }
  .layout-sidebar, .layout-sidebar-right { grid-template-columns: 1fr; }
  .filters, .enquiry-box { position: static; }
}

@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .amenities { grid-template-columns: 1fr; }
  .detail-price { text-align: left; }
  .section { padding: 44px 0; }
  .hero { padding: 52px 0 62px; }

  .nav-button { display: block; }
  .site-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-cta { text-align: center; margin-top: 12px; border-bottom: none; }
}

@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .hero-search { grid-template-columns: 1fr; }
  h1 { font-size: 1.7rem; }
}
