* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #1f1f1f;
}

:root {
  --brand-blue: #0b5bd3;
}

a {
  color: inherit;
  text-decoration: none;
}

.nav {
  background: #ffffff;
  border-bottom: 1px solid #e4ded3;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: #1f1f1f;
  color: #f5f2ea;
  font-weight: 600;
  font-size: 14px;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
  padding: 48px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(120deg, rgba(10, 10, 10, 0.82), rgba(10, 10, 10, 0.35)),
    url("images/handyman-hero.jpg");
  background-size: cover;
  background-position: center;
}

.pill {
  display: inline-block;
  background: #f2c94c;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 16px 0 12px;
  font-size: 48px;
}

.hero p {
  margin: 0 0 18px;
  font-size: 18px;
  color: #e6e6e6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.primary-button {
  background: var(--brand-blue);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
}

.secondary-link {
  padding: 12px 0;
  font-weight: 600;
  color: #ffffff;
  opacity: 0.9;
}

.hero-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #e4ded3;
  display: grid;
  gap: 16px;
  align-content: start;
  color: #1f1f1f;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.hero-card p {
  color: #2b2b2b;
}

.hero-card-title {
  margin: 0;
  font-weight: 600;
  color: #2f2f2f;
}

.hero-phone {
  font-size: 28px;
  margin: 0;
  font-weight: 700;
  color: #1f1f1f;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-number {
  margin: 0;
  font-weight: 700;
  color: #1f1f1f;
}

.stat-label {
  margin: 0;
  font-size: 12px;
  color: #5a5a5a;
}

.rating-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1f1f1f;
  color: #f2c94c;
  margin-bottom: 8px;
  font-size: 14px;
}

.highlight {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0 40px;
}

.highlight-card {
  background: #ffffff;
  border: 1px solid #e4ded3;
  border-radius: 16px;
  padding: 16px;
}

.highlight-number {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.highlight-label {
  margin: 0;
  color: #6b6b6b;
}

.section {
  padding: 28px 0;
}

.section-blue {
  background: var(--brand-blue);
  color: #ffffff;
  margin: 40px -24px 0;
  padding: 40px 24px;
  border-radius: 28px;
}

.section-blue p,
.section-blue .section-header a {
  color: #e6eefc;
}

.section-blue .section-header h2 {
  color: #ffffff;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.section-header h2 {
  margin: 0;
  font-size: 28px;
}

.section-header a {
  font-size: 14px;
  font-weight: 600;
}

.service-grid,
.process-grid,
.testimonial-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.process-card,
.testimonial-card {
  background: #ffffff;
  border: 1px solid #e4ded3;
  border-radius: 18px;
  padding: 20px;
}

.service-card h3,
.process-card h4 {
  margin: 0 0 8px;
}

.service-card p,
.process-card p,
.testimonial-card p {
  margin: 0 0 10px;
  color: #4a4a4a;
}

.process-card a {
  font-weight: 600;
}

.testimonial-name {
  font-weight: 700;
  margin-bottom: 2px;
}

.testimonial-role {
  margin: 0;
  font-size: 13px;
  color: #6b6b6b;
}

.testimonial-card {
  background: #e8f0ff;
  border-color: #d2e1ff;
}

.testimonial-card p {
  color: #1f2a44;
}

.testimonial-card .testimonial-role {
  color: #465b7b;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  margin-top: 40px;
  padding: 40px 24px;
  background: #ffffff;
  border-top: 1px solid #e4ded3;
}

.footer h4 {
  margin: 0 0 8px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.footer-title {
  font-weight: 700;
  margin: 0 0 8px;
}

.footer a {
  display: block;
  margin-bottom: 6px;
  color: #4a4a4a;
}

.service-hero {
  background: linear-gradient(120deg, rgba(12, 12, 12, 0.6), rgba(12, 12, 12, 0.2)),
    url("images/handyman-hero.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  padding: 60px;
  color: #ffffff;
  margin-top: 24px;
}

.service-hero-content h1 {
  margin: 0 0 12px;
  font-size: 42px;
}

.service-hero-content p {
  margin: 0;
  font-size: 18px;
  color: #e6e6e6;
}

.service-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.service-tile {
  background: #ffffff;
  border: 1px solid #e4ded3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.service-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.service-label {
  padding: 12px 16px;
  font-weight: 700;
}

.service-image-exterior {
  background-image: url("images/design_build_construction.jpg");
}

.service-image-interior {
  background-image: url("images/images.jpeg");
}

.service-image-carpentry {
  background-image: url("images/01-ua-steps-to-design-and-build-your-house-1200x630-crop-1-q80.jpg");
}

.service-image-plumbing {
  background-image: url("images/how-does-plumbing-work-e1548696261445-1024x658.jpeg");
}

.service-image-maintenance {
  background-image: url("images/Home-Maintenance.jpg");
}

.service-image-quickfix {
  background-image: url("images/brkmarketing-create-an-image-of-a-handyman-in-nairobi-fixing-a-9dc52b28-fe77-4dd8-8260-94bf90e6eb02-1.webp");
}

.service-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 960px) {
  .service-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .service-gallery {
    grid-template-columns: 1fr;
  }

  .service-hero {
    padding: 40px 24px;
  }
}

@media (max-width: 960px) {
  .nav-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .highlight {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  main {
    padding: 16px;
  }

  .highlight {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero {
    padding: 24px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-blue {
    margin: 24px -16px 0;
    padding: 32px 16px;
    border-radius: 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
