/* Compass Professional Property Practitioners — single site stylesheet. */

:root {
  --navy-950: #0e054e;
  --navy-900: #12065f;
  --navy-800: #21177b;
  --navy-100: #eeedf8;
  --red-700: #a80000;
  --red-600: #c51717;
  --green-700: #147653;
  --green-100: #e8f6ef;
  --ink: #182033;
  --muted: #6f788b;
  --line: #e2e5ed;
  --surface-soft: #f5f6fa;
  --shadow-sm: 0 8px 24px rgba(18, 6, 95, 0.07);
  --radius-sm: 10px;
  --radius-md: 16px;
  --container: 1180px;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
section[id], footer[id] { scroll-margin-top: 110px; }

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--red-700);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  background: #fff;
  color: var(--navy-900);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-1px); border-color: #c9cddd; box-shadow: var(--shadow-sm); }
.button:disabled { opacity: 0.6; cursor: wait; transform: none; }
.button-primary { border-color: var(--red-700); background: var(--red-700); color: #fff; }
.button-primary:hover { border-color: var(--red-700); }
.button-secondary { border-color: var(--navy-900); background: transparent; }
.button-quiet { background: #fff; }
.button-large { min-height: 56px; padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.button-light { border-color: #fff; background: #fff; color: var(--navy-900); }
.button-outline-light { border-color: rgba(255, 255, 255, 0.55); background: transparent; color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(33, 23, 123, 0.24);
  outline-offset: 2px;
}

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

.top-strip { background: var(--navy-950); color: rgba(255, 255, 255, 0.82); font-size: 10px; }
.top-strip .container { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top-strip a { text-decoration: none; }

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}
.site-nav { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }

.brand-link { display: block; padding: 8px 0; flex-shrink: 0; }
.brand-link img { width: 96px; height: 96px; border-radius: 14px; }

.desktop-nav { display: flex; justify-content: flex-end; }
.desktop-nav a { color: var(--navy-900); font-size: 14px; text-decoration: none; }
.desktop-nav a:hover { color: var(--red-700); }
.desktop-nav a + a::before { content: '|'; color: var(--red-700); margin: 0 6px; }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.mobile-menu-button, .mobile-nav { display: none; }

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

.hero {
  padding: 75px 0 85px;
  background:
    linear-gradient(105deg, rgba(11, 4, 70, 0.93), rgba(18, 6, 95, 0.8) 50%, rgba(33, 23, 123, 0.68)),
    linear-gradient(0deg, rgba(168, 0, 0, 0.2), transparent 34%),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=85") center / cover;
  color: #fff;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr); align-items: center; gap: 50px; }
.hero .eyebrow { color: #fff; }
.hero-kicker { margin: 0 0 10px; color: rgba(255, 255, 255, 0.88); font-size: 12px; font-weight: 900; letter-spacing: 0.22em; }
.hero h1 {
  max-width: 650px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero-lead { max-width: 600px; margin: 24px 0; color: #eeeefe; font-size: 16px; line-height: 1.7; }
.hero .button-secondary { border-color: #fff; background: #fff; color: var(--navy-900); }

.partner-support { padding: 22px; border: 1px solid #ffffff40; border-radius: 22px; background: #ffffff0a; }
.partner-support-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.partner-support-heading h2 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.partner-support-heading > span { font-size: 10px; border: 1px solid #e7a8b9; border-radius: 30px; padding: 6px 10px; text-transform: uppercase; letter-spacing: .05em; }
.partner-support > p { font-size: 14px; color: #e5e3f4; margin: 12px 0 18px; }
.partner-support-grid { display: grid; gap: 12px; }
.partner-support-card { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid #ffffff35; border-radius: 16px; text-decoration: none; background: #ffffff08; }
.partner-support-card:hover, .partner-support-card:focus-visible { background: #ffffff18; border-color: #e7a8b9; }
.partner-support-card img { width: 68px; height: 68px; flex: 0 0 68px; border-radius: 10px; object-fit: contain; background: #fff; }
.partner-support-card h3 { margin: 0; font: 700 19px/1.25 Georgia, serif; }
.partner-support-card p { margin: 6px 0 0; font-size: 10px; text-transform: uppercase; color: #e5e3f4; letter-spacing: .04em; }
.partner-support-card > span { margin-left: auto; color: #e7a8b9; font-size: 24px; }

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

.section { padding: 68px 0; background: #fff; }
.section-soft { background: var(--surface-soft); }
.section-heading { margin-bottom: 30px; }
.section-heading h2, .footer-cta h2 {
  margin: 0;
  color: var(--navy-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3.5vw, 42px);
  line-height: 1.08;
}
.section-heading p:not(.eyebrow) { max-width: 680px; margin: 12px 0 0; color: var(--muted); }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  background: #fff;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.service-card > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy-100);
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 900;
}
.service-card strong { margin-top: 24px; color: var(--navy-900); font-size: 17px; }
.service-card p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.service-card b { margin-top: auto; padding-top: 16px; color: var(--red-700); font-size: 11px; }

/* Calculator */
.calculator-card {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.calculator-frame { display: block; width: 100%; min-width: 340px; height: 720px; border: 0; background: #fff; }
.calculator-fallback { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.calculator-fallback a { color: var(--red-700); font-weight: 700; }

/* Agents */
/* Flex so an incomplete last row is centred. */
.agent-grid { --agent-columns: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.agent-card {
  flex: 0 0 calc((100% - (var(--agent-columns) - 1) * 16px) / var(--agent-columns));
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 14px 14px;
  background: #fff;
  text-align: center;
}
.agent-photo {
  width: 112px;
  height: 112px;
  margin-bottom: 12px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy-100);
}
.agent-card h3 { margin: 0; color: var(--navy-900); font-size: 15px; }
.agent-title { margin: 4px 0 0; color: var(--red-700); font-size: 11px; font-weight: 700; }
.agent-areas { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.agent-contact { display: grid; gap: 2px; margin: 12px 0 14px; font-size: 12px; }
.agent-contact a { color: #586783; text-decoration: none; overflow-wrap: anywhere; }
.agent-contact a:hover { color: var(--navy-900); text-decoration: underline; }
.agent-whatsapp {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border-radius: 9px;
  background: #1f9d55;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.agent-whatsapp:hover { background: #198347; }

/* Contact form */
.enquiry-form {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.form-note { margin: 0; color: var(--muted); font-size: 13px; }
.form-note:empty { display: none; }
.form-note-success, .form-note-error { border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 700; }
.form-note-success { background: var(--green-100); color: var(--green-700); }
.form-note-error { background: #fdeaea; color: var(--red-700); }

/* Why Compass / About */
.company-section { background: #fff; }
.company-section.section-soft { background: var(--surface-soft); }
.company-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; font-size: 16px; line-height: 1.7; color: #202036; }
.company-panel { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.company-panel h3 { margin: 0 0 18px; color: var(--navy-900); font-size: 23px; line-height: 1.3; }
.company-panel p { margin: 0 0 18px; }
.company-panel p:last-child { margin-bottom: 0; }
.company-intro { background: linear-gradient(135deg, var(--navy-900), #35306b); color: #eeedf8; border: 0; }
.company-intro h3 { color: #fff; font-family: Georgia, serif; font-size: 32px; }
.company-signature { padding-top: 22px; border-top: 1px solid #ffffff30; font-weight: 700; color: #fff; }
.company-benefits ul, .company-needs ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.company-benefits li, .company-needs li { position: relative; padding-left: 30px; }
.company-benefits li::before, .company-needs li::before { content: '✓'; position: absolute; left: 0; color: var(--red-700); font-weight: 700; }
.company-support { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.company-support address { margin: 0; padding-left: 28px; border-left: 3px solid var(--red-700); font-size: 14px; font-style: normal; align-self: center; }
.company-story { border-top: 4px solid var(--red-700); }
.company-needs { background: #eeedf7; }
.company-needs ul + p { margin-top: 18px; }
.company-closing { grid-column: 1 / -1; border: 0; background: transparent; padding: 8px 0 0; max-width: 920px; }
.company-closing .button { margin-top: 8px; }
.company-values { background: var(--red-700); color: #fff; text-align: center; padding: 12px 20px; font-weight: 700; margin: 0; }

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

.site-footer { position: relative; padding: 58px 0 24px; background: linear-gradient(180deg, #09052f, #070329); color: #fff; }
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-900), var(--red-600) 52%, var(--navy-900));
}
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 38px; }
.footer-cta .eyebrow, .footer-cta h2 { color: #fff; }
.footer-office { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 32px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-office h2 { font-size: 28px; font-weight: 400; margin: 0 0 12px; }
.footer-office address { font-size: 15px; font-style: normal; }
.footer-office a { text-decoration: none; }
.footer-office img { width: 200px; height: 200px; border-radius: 24px; }
.footer-disclaimer { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 28px; }
.footer-disclaimer h3 { margin: 0 0 4px; color: rgba(255, 255, 255, 0.92); font-size: 15px; }
.footer-disclaimer p { margin: 0 0 8px; color: rgba(255, 255, 255, 0.62); font-size: 13px; line-height: 1.6; }

/* ---------- Resource pages ---------- */

.resource-page { background: #f5f5fa; color: #191440; }
.resource-back { display: block; padding: 16px 5%; color: var(--navy-900); }
.resource-heading { background: var(--navy-900); border-bottom: 20px solid var(--red-700); color: #fff; padding: 42px 0; }
.resource-heading .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.resource-heading h1 { font-family: Georgia, serif; font-size: clamp(32px, 4.5vw, 60px); margin: 0; }
.resource-heading img { width: 130px; height: 130px; border-radius: 20px; }
.resource-copy { max-width: 1100px; padding-block: 36px 50px; font-size: 18px; line-height: 1.65; }
.resource-copy section { margin: 28px 0; }
.resource-copy h2 { font-size: 22px; margin: 0 0 10px; }
.resource-copy p { margin: 12px 0; }
.resource-copy ul { padding-left: 1.6em; }
.resource-areas h2 { text-align: center; }
.resource-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.resource-footer { background: var(--navy-900); color: #fff; padding: 20px; text-align: center; font-weight: 700; }

/* ---------- Responsive ---------- */

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-grid { --agent-columns: 3; }
}

@media (max-width: 820px) {
  .top-strip .container > span:first-child, .desktop-nav, .nav-actions > .button { display: none; }
  .top-strip .container { justify-content: center; }
  .site-nav { grid-template-columns: 1fr auto; }
  .mobile-menu-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 9px 12px;
    background: #fff;
    color: var(--navy-900);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
  }
  .mobile-nav { display: grid; gap: 5px; border-top: 1px solid var(--line); padding: 14px 20px 18px; background: #fff; }
  .mobile-nav a { border-radius: 8px; padding: 10px; color: var(--navy-900); font-size: 14px; font-weight: 800; text-decoration: none; }
  .agent-grid { --agent-columns: 2; }
  .calculator-frame { height: 900px; }
  .footer-cta { align-items: flex-start; flex-direction: column; }
  .footer-office { align-items: flex-start; flex-direction: column; gap: 24px; }
  .footer-office img { width: 160px; height: 160px; }
  .footer-disclaimer { grid-template-columns: 1fr; gap: 30px; }
  .company-grid, .company-support { grid-template-columns: 1fr; gap: 18px; }
  .company-panel { padding: 24px; }
  .company-intro h3 { font-size: 28px; }
  .company-support address { padding-left: 18px; }
  .resource-heading .container { flex-direction: column; text-align: center; }
  .resource-heading { padding: 26px 0; }
  .resource-heading img { width: 100px; height: 100px; }
  .resource-copy { font-size: 16px; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .brand-link img { width: 72px; height: 72px; border-radius: 10px; }
  .hero { padding: 50px 0 60px; }
  .hero h1 { font-size: 42px; }
  .hero-lead { font-size: 14px; }
  .partner-support { padding: 16px; }
  .partner-support-card { gap: 12px; padding: 12px; }
  .partner-support-card img { width: 54px; height: 54px; flex-basis: 54px; }
  .partner-support-card h3 { font-size: 17px; }
  .section { padding: 56px 0; }
  .service-grid, .form-grid { grid-template-columns: 1fr; }
  .enquiry-form { padding: 18px; }
}

@media (max-width: 440px) {
  .agent-grid { --agent-columns: 1; }
}
