/* ==========================================================================
   Brenrose Property — stylesheet
   Brand: navy #0C345B, green #49B549
   ========================================================================== */

:root {
  --navy: #0C345B;
  --navy-dark: #082742;
  --navy-light: #16487a;
  --green: #49B549;          /* bright brand green — decorative / large display only */
  --green-dark: #2e7d32;     /* accessible green — text, links, buttons (passes WCAG AA on white/with white) */
  --green-darker: #245d27;   /* button hover */
  --green-light: #e9f6e9;
  --bg: #F7F8F9;
  --white: #FFFFFF;
  --grey: #5B6770;
  --grey-light: #e3e6e9;
  --text: #1f2a33;
  --shadow: 0 4px 18px rgba(12, 52, 91, 0.08);
  --shadow-lg: 0 12px 40px rgba(12, 52, 91, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

.section { padding: 76px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--white); }
.section--navy { background: var(--navy); color: #dce6f0; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.section--navy .eyebrow { color: var(--green); }

.lead { font-size: 1.15rem; color: var(--grey); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--green-dark); color: var(--white); box-shadow: 0 6px 18px rgba(46,125,50,0.30); }
.btn--primary:hover { background: var(--green-darker); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-light); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--grey-light); }
.btn--outline:hover { border-color: var(--green); color: var(--green-dark); }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--grey-light);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 0; }
.logo img { height: 58px; width: auto; }
.logo:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a.navlink {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
}
.nav a.navlink:hover { color: var(--green-dark); text-decoration: none; }

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2.5px; background: var(--navy);
  margin: 5px auto; border-radius: 2px; transition: .3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("../images/hero.png");
  background-size: cover; background-position: center;
  opacity: 0.22;
}
.hero .container { position: relative; z-index: 2; padding-top: 84px; padding-bottom: 92px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .sub { font-size: 1.25rem; color: #cdddec; max-width: 50ch; margin: 18px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-badge {
  font-size: 0.86rem; font-weight: 600;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 15px; border-radius: 999px;
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--white);
  border-bottom: 1px solid var(--grey-light);
}
.trust .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  padding-top: 26px; padding-bottom: 26px;
}
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.96rem; color: var(--navy); }
.trust-item svg { width: 26px; height: 26px; color: var(--green-dark); flex-shrink: 0; }

/* ---------- Property cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 3 / 2; background: var(--navy); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--green-dark); color: #fff;
  font-size: 0.8rem; font-weight: 700;
  padding: 6px 13px; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}
.card-badge--new { right: 14px; left: auto; background: var(--navy); }
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 4px; }
.card-loc { font-size: 0.88rem; color: var(--grey); font-weight: 600; margin-bottom: 10px; }
.card-body p { color: var(--grey); font-size: 0.98rem; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.rooms-tag { font-weight: 700; color: var(--green-dark); font-size: 0.95rem; }

/* ---------- Generic blocks ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; margin-top: 40px; }
.step { text-align: center; padding: 12px; }
.step-num {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--green-light); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem; margin: 0 auto 16px;
}

/* ---------- Feature list ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 28px; margin-top: 26px; list-style: none; }
.features li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.features li::before {
  content: ""; flex-shrink: 0; margin-top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 26px; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--navy); aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 25, 42, 0.92);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90%; max-height: 85vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 22px; right: 28px; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; background: none; border: none; }

/* ---------- Property header ---------- */
.prop-hero { position: relative; background: var(--navy); color: #fff; }
.prop-hero-media { position: absolute; inset: 0; }
.prop-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.prop-hero .container { position: relative; z-index: 2; padding: 70px 22px; }
.prop-hero h1 { color: #fff; }
.prop-hero .loc { font-size: 1.1rem; color: #cdddec; font-weight: 600; margin-top: 8px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pill { background: var(--green-dark); color: #fff; font-weight: 700; font-size: 0.85rem; padding: 7px 15px; border-radius: 999px; }
.pill--ghost { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; margin-top: 30px; }
.fact { background: var(--white); border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--shadow); }
.fact .k { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey); font-weight: 700; }
.fact .v { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-top: 3px; }

.map-embed { margin-top: 26px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map-embed iframe { width: 100%; height: 320px; border: 0; }

/* ---------- Forms ---------- */
.form-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem;
  padding: 12px 14px; border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--text);
  transition: border .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(73,181,73,0.15); background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-consent { font-size: 0.82rem; color: var(--grey); margin-top: 14px; }
.form-status { margin-top: 14px; font-weight: 600; display: none; }
.form-status.ok { display: block; color: var(--green-dark); }
.form-status.err { display: block; color: #c0392b; }

/* Consent tick box */
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; margin-top: 14px; }
.field--check input[type="checkbox"] {
  width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto;
  accent-color: var(--green); cursor: pointer;
}
.field--check label { font-weight: 500; font-size: 0.88rem; color: var(--text); cursor: pointer; }

/* Success pop-up (modal) */
.success-modal {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(12, 52, 91, 0.75);
}
.success-modal.open { display: flex; }
.success-modal-box {
  background: #fff; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  max-width: 440px; width: 100%; padding: 36px 30px 30px; text-align: center; position: relative;
  border-top: 6px solid var(--green);
}
.success-modal-box .tick {
  width: 58px; height: 58px; border-radius: 50%; background: var(--green);
  color: #fff; font-size: 2rem; line-height: 58px; margin: 0 auto 16px;
}
.success-modal-box h3 { color: var(--navy); font-size: 1.35rem; margin: 0 0 10px; }
.success-modal-box p { color: var(--grey); margin: 0 0 22px; font-size: 0.97rem; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 38px; }
.quote { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border-top: 4px solid var(--green); }
.quote p { font-style: italic; color: var(--text); }
.quote .who { font-weight: 700; color: var(--navy); font-style: normal; margin-bottom: 0; }
.placeholder-note { font-size: 0.8rem; color: var(--grey); font-style: italic; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 38px auto 0; }
.faq details {
  background: var(--white); border-radius: var(--radius-sm);
  margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--green-dark); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 22px 20px; color: var(--grey); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-dark); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 540px; margin: 10px auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn--navy { background: var(--navy); }
.cta-band .btn--ghost { border-color: rgba(255,255,255,0.8); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #aebfce; padding: 56px 0 26px; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #cdddec; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.footer-wordmark { display: inline-block; margin-bottom: 16px; line-height: 1; }
.footer-wordmark .fw-name { display: block; color: #fff; font-weight: 800; font-size: 2rem; letter-spacing: 0.05em; }
.footer-wordmark .fw-sub { display: block; color: var(--green); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.4em; margin-top: 7px; }
.footer-seo { color: #7d93a8; font-size: 0.84rem; }
.footer-reg { color: #7d93a8; font-size: 0.8rem; margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #7d93a8; font-size: 0.85rem; }

/* ---------- Accessibility: visible keyboard focus ---------- */
a:focus-visible, .btn:focus-visible, button:focus-visible,
summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--navy-light);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Misc ---------- */
.breadcrumb { font-size: 0.86rem; color: var(--grey); padding: 16px 0; }
.breadcrumb a { color: var(--grey); }
.section-head { max-width: 680px; }
.mt-0 { margin-top: 0; }
.error-page { text-align: center; padding: 100px 0; }
.error-page h1 { font-size: 5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; top: 76px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 0; border-bottom: 1px solid var(--grey-light);
    box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a.navlink { padding: 14px 22px; border-bottom: 1px solid var(--grey-light); }
  .nav .btn { margin: 12px 22px; }
  .menu-toggle { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* ---------- Respect reduced-motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card:hover, .btn:hover, .gallery figure:hover img { transform: none; }
}
