/* Match Deals — broking-first static site */
:root {
  --navy: #0B1F3A;
  --navy-light: #132d52;
  --blue: #1565C0;
  --blue-hover: #0d47a1;
  --blue-soft: #e3f2fd;
  --whatsapp: #25D366;
  --whatsapp-hover: #1ebe57;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --gray-100: #eef1f5;
  --gray-200: #dde3eb;
  --gray-500: #6b7a8d;
  --gray-700: #3d4a5c;
  --gray-900: #1a2332;
  --accent-green: #2e7d32;
  --accent-amber: #f9a825;
  --accent-red: #c62828;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 8px 28px rgba(11, 31, 58, 0.12);
  --max: 1100px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--off-white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

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

/* —— Header —— */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; color: var(--white); }
.logo span { color: #64b5f6; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.nav-toggle:focus-visible {
  outline: 2px solid #64b5f6;
  outline-offset: 2px;
}

.main-nav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.main-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  text-decoration: none;
}

.main-nav a.active {
  background: var(--blue);
  color: var(--white);
}

/* —— App banner —— */
.app-banner {
  background: #fff8e1;
  border-bottom: 1px solid #ffe082;
  color: #5d4037;
  font-size: 0.9rem;
  padding: 0.7rem 0;
  text-align: center;
}
.app-banner strong { font-weight: 600; }

/* —— Buttons —— */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  text-align: center;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.35);
}
.btn-primary:hover { background: var(--blue-hover); color: var(--white); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #053b1a;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:hover { background: var(--whatsapp-hover); color: #053b1a; }
.btn-whatsapp:focus-visible { outline-color: var(--whatsapp); }

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
}
.btn-secondary:hover { background: var(--gray-100); color: var(--navy); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* —— Hero —— */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 55%, #1565C0 100%);
  color: var(--white);
  padding: 3.5rem 0 3.75rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero .lead {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 38rem;
  margin-bottom: 1.75rem;
}
.hero .btn-group { margin-top: 0.25rem; }
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.hero-chip {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* —— Sections —— */
.section { padding: 3rem 0; }
.section-alt { background: var(--white); }
.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.section-sub {
  color: var(--gray-500);
  margin-bottom: 2rem;
  max-width: 38rem;
}
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 2.25rem 0;
}
.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.page-header p { opacity: 0.85; max-width: 38rem; }

/* —— Cards —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
}
.card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.card p { color: var(--gray-700); font-size: 0.95rem; }
.card .icon {
  width: 42px;
  height: 42px;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* —— CRM secondary mention —— */
.crm-aside {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  color: var(--gray-700);
}
.crm-aside strong { color: var(--navy); }

/* —— Steps —— */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  position: relative;
}
.step-num {
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.step h3 { color: var(--navy); margin-bottom: 0.5rem; font-size: 1.1rem; }
.step p { color: var(--gray-700); font-size: 0.95rem; }

/* —— Listings —— */
.listing-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.listing-img {
  height: 160px;
  background: linear-gradient(135deg, #1a3a6b, #1565C0);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  gap: 0.5rem;
}
.listing-type {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.listing-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.listing-body h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 0.35rem; }
.listing-price { color: var(--blue); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.5rem; }
.listing-meta { color: var(--gray-500); font-size: 0.88rem; margin-bottom: 0.75rem; }
.listing-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.tag {
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-weight: 500;
}

.disclaimer {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: #5d4037;
  margin-bottom: 1.75rem;
}
.disclaimer strong { font-weight: 600; }

.note-box {
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  color: var(--gray-700);
  margin: 1.5rem 0;
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-info dt {
  font-weight: 600;
  color: var(--navy);
  margin-top: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { color: var(--gray-700); margin-top: 0.25rem; }
.contact-info a { word-break: break-all; }

.contact-cta {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  padding: 2rem;
  text-align: center;
}
.contact-cta h2 { color: var(--navy); margin-bottom: 0.5rem; font-size: 1.3rem; }
.contact-cta p { color: var(--gray-700); margin-bottom: 1.25rem; }

/* —— Legal / prose —— */
.prose {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  padding: 2rem 2.25rem;
  max-width: 800px;
}
.prose h2 {
  color: var(--navy);
  font-size: 1.25rem;
  margin: 1.75rem 0 0.6rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--gray-700); margin-bottom: 0.75rem; font-size: 0.95rem; }
.prose ul { list-style: disc; padding-left: 1.35rem; margin-bottom: 0.75rem; }
.prose ol { list-style: decimal; padding-left: 1.35rem; margin-bottom: 0.75rem; }
.prose strong { color: var(--gray-900); }

.legal-block {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--gray-200);
  margin-top: 1.5rem;
  font-size: 0.92rem;
}
.legal-block p { margin-bottom: 0.4rem; color: var(--gray-700); }
.legal-block p:last-child { margin-bottom: 0; }

/* —— CTA band —— */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 2.75rem 0;
  text-align: center;
}
.cta-band h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.cta-band p { opacity: 0.88; margin-bottom: 1.5rem; max-width: 34rem; margin-left: auto; margin-right: auto; }

/* —— Footer —— */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.footer-brand span { color: #64b5f6; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--white); }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
.footer-legal-line { line-height: 1.5; }

/* —— Utility —— */
.mt-0 { margin-top: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* —— Responsive —— */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-light);
    padding: 0.75rem 1.25rem 1rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .main-nav a { display: block; padding: 0.7rem 0.85rem; }
  .header-inner { flex-wrap: wrap; position: relative; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .prose { padding: 1.5rem; }
  .hero { padding: 2.5rem 0 2.75rem; }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }
}
