/* ==========================================================
   GoldBest Services - "Nos services" section (homepage)
   Used by: index.html  (markup: <section class="services">)
   Font: Plus Jakarta Sans (Google Fonts link in index.html <head>)
   ========================================================== */

.services {
  --navy: #0b2545;
  --navy-soft: #1c4580;
  --ink: #3f4d61;
  --gold: #ebb741;
  --gold-soft: #f6d98a;
  --ice: #e6eefa;
  --line: #e6ecf4;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  background: linear-gradient(180deg, rgba(228, 238, 250, .38) 0%, rgba(240, 245, 252, .25) 100%);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.services *,
.services *::before,
.services *::after { box-sizing: border-box; }
.services svg { display: block; flex: none; }

/* faint house watermark, top right */
.services::before {
  content: "";
  position: absolute;
  top: 10px;
  right: -40px;
  width: 340px;
  height: 300px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 300'%3E%3Cg fill='%23e3ecf7'%3E%3Cpath d='M170 20 20 150h40v140h220V150h40z' fill-opacity='.7'/%3E%3Crect x='120' y='150' width='44' height='44' rx='4' fill='%23d3e1f2'/%3E%3Crect x='176' y='150' width='44' height='44' rx='4' fill='%23d3e1f2'/%3E%3Crect x='120' y='206' width='44' height='44' rx='4' fill='%23d3e1f2'/%3E%3Crect x='176' y='206' width='44' height='44' rx='4' fill='%23d3e1f2'/%3E%3Cpath d='M290 40c3 17 8 22 25 25-17 3-22 8-25 25-3-17-8-22-25-25 17-3 22-8 25-25z'/%3E%3Cpath d='M252 96c2 9 4 11 13 13-9 2-11 4-13 13-2-9-4-11-13-13 9-2 11-4 13-13z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .6;
  pointer-events: none;
}

.services-inner {
  position: relative;
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
}


/* ---------- Heading ---------- */
.services-head {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.services-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--navy);
}
.services-eyebrow svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}
.services-eyebrow::after {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.services-title {
  margin: 14px 0 0;
  font-size: clamp(28px, 1rem + 2.2vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--navy);
}
.services-title span {
  display: block;
  color: #c08d1a;
}
.services-lead {
  margin: 14px auto 0;
  max-width: 620px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}


/* ---------- Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.svc-card { display: flex; }
.svc-card a {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px -10px rgba(11, 37, 69, .14), 0 0 0 1px var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .25s;
}
.svc-media {
  aspect-ratio: 3.2 / 1;
  overflow: hidden;
  background: var(--ice);
}
.svc-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.svc-icon {
  position: relative;               /* first item of .svc-body, pulled up onto the photo edge */
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: -50px 0 12px -2px;        /* 20px body padding + half the circle */
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--ice);
  color: var(--navy-soft);
  box-shadow: 0 6px 14px -6px rgba(11, 37, 69, .25);
  transition: background-color .25s, color .25s;
}
.svc-icon svg { width: 28px; height: 28px; stroke-width: 2; }
.svc-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 20px;
}
.svc-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--navy);
}
.svc-text {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}
.svc-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.svc-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ice);
  transition: background-color .25s, transform .35s var(--ease-out);
}
.svc-arrow svg { width: 15px; height: 15px; }

/* highlighted card (Maisons & Villas) + hover/focus state on any card */
.svc-card--featured a,
.svc-card a:hover,
.svc-card a:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 18px 40px -16px rgba(11, 37, 69, .22), 0 0 0 1px rgba(235, 183, 65, .25);
}
.svc-card--featured .svc-icon,
.svc-card a:hover .svc-icon,
.svc-card a:focus-visible .svc-icon {
  background: var(--gold-soft);
  color: var(--navy);
}
.svc-card--featured .svc-arrow,
.svc-card a:hover .svc-arrow,
.svc-card a:focus-visible .svc-arrow { background: var(--gold); }
.svc-card a:hover { transform: translateY(-4px); }
.svc-card a:hover .svc-media img { transform: scale(1.05); }
.svc-card a:hover .svc-arrow { transform: translateX(3px); }
.svc-card a:focus-visible { outline: 3px solid var(--navy-soft); outline-offset: 3px; }


/* ---------- Bottom banner ---------- */
.services-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  margin-top: 24px;
  padding: 18px 280px 18px 30px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(90deg, #eef3f9 0%, #f3f6fa 60%, #fff 100%);
  box-shadow: 0 0 0 1px var(--line);
}
.services-cta > svg {
  width: 34px;
  height: 34px;
  color: var(--gold);
}
.services-cta-text { flex: 1; }
.services-cta-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--navy);
}
.services-cta-text p:last-child {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink);
}
.services-cta-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 26px;
  border-radius: 10px;
  background: var(--navy);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s;
}
.services-cta-btn svg {
  width: 18px;
  height: 18px;
  transition: transform .3s var(--ease-out);
}
.services-cta-btn:hover { background: var(--navy-soft); }
.services-cta-btn:hover svg { transform: translateX(3px); }
.services-cta-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.services-cta-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}

@media (prefers-reduced-motion: reduce) {
  .services * { transition: none !important; }
}


/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-cta { padding-right: 30px; flex-wrap: wrap; }
  .services-cta-img { display: none; }
}


/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .services { padding: 56px 0 64px; }
  .services::before { width: 220px; height: 200px; right: -70px; opacity: .7; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .services-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }
  .services-cta-btn {
    width: 100%;
    justify-content: center;
  }
}
