/* ============================================================
   PROFIRST PROPERTY SERVICES LTD — shared stylesheet
   ============================================================ */

:root {
  --bg: #FAF8F3;
  --bg-card: #FFFFFF;
  --bg-dark: #131A22;
  --bg-section: #F2EEE5;
  --text: #1A2330;
  --text-muted: #5B6473;
  --text-on-dark: #F4F1EA;
  --accent: #D9531E;       /* bold copper/orange */
  --accent-deep: #A93C12;
  --rule: #E2DCCC;
  --rule-strong: #C9C0AA;
  --shadow-sm: 0 1px 2px rgba(19, 26, 34, 0.04), 0 2px 6px rgba(19, 26, 34, 0.04);
  --shadow-md: 0 4px 12px rgba(19, 26, 34, 0.06), 0 12px 32px rgba(19, 26, 34, 0.08);
  --maxw: 1200px;
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* -------------------- Typography -------------------- */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-variation-settings: 'opsz' 96; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--text-muted); }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
  display: inline-block;
}

/* -------------------- Layout -------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5.5rem 0; }
@media (max-width: 700px) { section { padding: 3.5rem 0; } }

.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--text-on-dark); }
.section-dark p { color: rgba(244, 241, 234, 0.7); }
.section-alt { background: var(--bg-section); }

/* -------------------- Header / Nav -------------------- */
header.site {
  position: sticky;
  top: 0;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--rule);
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-mark {
  width: 36px; height: 36px;
  background: var(--bg-dark);
  color: var(--accent);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 4px;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 0.4rem 0;
}
.nav-links a.active::after,
.nav-links a:hover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
}
.nav-links a.nav-cta {
  background: var(--bg-dark);
  color: var(--text-on-dark) !important;
  padding: 0.7rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: #000; }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--text); }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--rule);
  }
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--rule-strong);
}
.btn-ghost:hover { border-color: var(--text); background: var(--bg-card); }
.section-dark .btn-ghost,
.cta-banner .btn-ghost { color: var(--text-on-dark); border-color: rgba(244, 241, 234, 0.3); }
.section-dark .btn-ghost:hover,
.cta-banner .btn-ghost:hover { border-color: var(--text-on-dark); background: rgba(255,255,255,0.06); }

/* -------------------- Hero -------------------- */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: 'opsz' 144;
}
.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 32rem;
}
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.hero-img {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag {
  position: absolute;
  bottom: 1.25rem; left: 1.25rem;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 0.5rem 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  border-radius: 3px;
}

/* -------------------- Trust strip -------------------- */
.trust {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
}
.trust-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.trust-item strong { color: var(--text); font-weight: 600; }
.trust-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* -------------------- Section header -------------------- */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
}
@media (max-width: 780px) {
  .sec-head { grid-template-columns: 1fr; gap: 1rem; }
}
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; max-width: 36rem; }

/* -------------------- Service cards -------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }

.service {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--rule-strong);
}
.service-img {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--bg-section);
}
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.service:hover .service-img img { transform: scale(1.04); }
.service-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.service-no {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.service h3 { margin-bottom: 0.75rem; }
.service p { font-size: 0.95rem; margin-bottom: 1.25rem; flex: 1; }
.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  align-self: flex-start;
}

/* -------------------- Stats -------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(244, 241, 234, 0.15);
  border-bottom: 1px solid rgba(244, 241, 234, 0.15);
}
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 2.5rem 1.5rem;
  border-right: 1px solid rgba(244, 241, 234, 0.1);
  text-align: left;
}
.stat:last-child { border-right: 0; }
@media (max-width: 780px) {
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(244, 241, 234, 0.1); }
}
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-variation-settings: 'opsz' 144;
  font-weight: 500;
  color: var(--text-on-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(244, 241, 234, 0.6);
}

/* -------------------- Two-col content -------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }
.two-col img { border-radius: 6px; }

/* -------------------- Service detail rows -------------------- */
.svc-detail {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--rule);
}
.svc-detail:last-of-type { border-bottom: 0; }
.svc-detail.flip { grid-template-columns: 1.3fr 1fr; }
.svc-detail.flip .svc-detail-img { order: 2; }
@media (max-width: 900px) {
  .svc-detail, .svc-detail.flip { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0; }
  .svc-detail.flip .svc-detail-img { order: 0; }
}
.svc-detail-img { border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; }
.svc-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 1.25rem;
}
.svc-feat {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.6rem;
}
.svc-feat li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--text);
}
.svc-feat li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 0.55rem;
  flex-shrink: 0;
}

/* -------------------- Process / steps -------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  position: relative;
}
.step-num {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-variation-settings: 'opsz' 144;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}
.step h4 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600; margin: 0 0 0.5rem; }
.step p { font-size: 0.9rem; margin: 0; }

/* -------------------- About page bits -------------------- */
.about-hero {
  padding: 5rem 0 3rem;
}
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: end;
}
@media (max-width: 900px) { .about-hero-grid { grid-template-columns: 1fr; gap: 2rem; } }
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 800px) { .values { grid-template-columns: 1fr; } }
.value {
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.value-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.value h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.value p { font-size: 0.92rem; margin: 0; }

/* -------------------- Contact block -------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 2.25rem;
}
.contact-row {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}
.contact-row:last-child { border-bottom: 0; }
.contact-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 90px;
  padding-top: 0.2rem;
}
.contact-value { font-weight: 500; font-size: 1rem; }
.contact-value a:hover { color: var(--accent); }

/* -------------------- Careers -------------------- */
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 2.5rem;
  margin-top: 2rem;
  position: relative;
}
.job-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.job-head h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}
.job-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-muted); }
.job-meta span { display: flex; align-items: center; gap: 0.4rem; }
.job-meta strong { color: var(--text); font-weight: 600; }
.job-tag {
  background: var(--accent);
  color: #fff;
  padding: 0.4rem 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  border-radius: 3px;
  align-self: flex-start;
}
.job-section { margin-bottom: 1.75rem; }
.job-section h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.8rem;
}
.job-section p { color: var(--text); font-size: 0.96rem; }
.job-section ul { padding-left: 1.2rem; margin: 0; }
.job-section li { margin-bottom: 0.45rem; font-size: 0.95rem; color: var(--text); }
.job-apply {
  padding-top: 1.75rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

/* -------------------- CTA banner -------------------- */
.cta-banner {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 4rem 0;
}
.cta-banner-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 800px) { .cta-banner-inner { grid-template-columns: 1fr; gap: 1.5rem; } }
.cta-banner h2 { color: var(--text-on-dark); margin: 0 0 0.75rem; }
.cta-banner p { color: rgba(244,241,234,0.7); margin: 0; }
.cta-banner-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 800px) { .cta-banner-actions { justify-content: flex-start; } }

/* -------------------- Footer -------------------- */
footer.site {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 4rem 0 1.5rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.foot-grid p, .foot-grid a { color: rgba(244,241,234,0.65); font-size: 0.9rem; }
.foot-grid h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.9);
  font-weight: 500;
  margin: 0 0 1rem;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 0.5rem; }
.foot-grid li a:hover { color: var(--accent); }
.foot-bottom {
  border-top: 1px solid rgba(244,241,234,0.12);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(244,241,234,0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* -------------------- Page title block (used on inner pages) -------------------- */
.page-title {
  padding: 5rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.page-title h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  max-width: 28ch;
}
.page-title p {
  font-size: 1.05rem;
  max-width: 50ch;
  margin-top: 1rem;
}
