:root {
  --ink: #18221f;
  --muted: #5f6a65;
  --paper: #f7f3ea;
  --white: #ffffff;
  --charcoal: #25312d;
  --moss: #65735f;
  --olive: #8a8750;
  --clay: #c06e43;
  --sand: #e5d7bd;
  --line: rgba(24, 34, 31, 0.12);
  --shadow: 0 24px 60px rgba(24, 34, 31, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Barlow', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img, svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  margin: 10px 0px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo-image { 
  width: 180px; 
  height: auto; 
  display: block; 
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--charcoal);
  color: var(--sand);
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.35rem;
  box-shadow: 7px 7px 0 var(--clay);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.logo-text strong {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.86rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
  color: var(--charcoal);
}

.main-nav a:not(.nav-button) {
  position: relative;
}

.main-nav a:not(.nav-button)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--clay);
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-button {
  padding: 11px 18px;
  background: var(--clay);
  color: var(--white);
}

.button {
  padding: 15px 24px;
}

.button:hover,
.nav-button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--clay);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(192, 110, 67, 0.32);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero {
  position: relative;
  min-height: 740px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-slider,
.hero-overlay,
.slide {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(24, 34, 31, 0.92) 0%, rgba(24, 34, 31, 0.70) 46%, rgba(24, 34, 31, 0.14) 100%),
    radial-gradient(circle at 78% 18%, rgba(192, 110, 67, 0.35), transparent 35%);
}

.slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  animation: slider 18s infinite;
}

.slide-one {
  background-image: linear-gradient(135deg, rgba(37,49,45,.25), rgba(37,49,45,.25)), url('https://placehold.co/1800x1100/5d665f/f7f3ea?text=Roof+Repair+Work');
}

.slide-two {
  background-image: linear-gradient(135deg, rgba(37,49,45,.25), rgba(37,49,45,.25)), url('https://placehold.co/1800x1100/8a8750/f7f3ea?text=Kitchen+and+Interior+Repairs');
  animation-delay: 6s;
}

.slide-three {
  background-image: linear-gradient(135deg, rgba(37,49,45,.25), rgba(37,49,45,.25)), url('https://placehold.co/1800x1100/c06e43/ffffff?text=Property+Maintenance');
  animation-delay: 12s;
}

@keyframes slider {
  0%, 28% { opacity: 1; transform: scale(1); }
  34%, 94% { opacity: 0; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 96px 0;
  max-width: 780px;
  margin-left: calc((100% - min(1160px, calc(100% - 40px))) / 2);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--clay);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
}

.hero h1,
.project-hero h1,
h2 {
  font-family: 'Merriweather', Georgia, serif;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.7rem);
  max-width: 850px;
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.trust-strip span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.intro-section,
.services-section,
.portfolio-section,
.why-section,
.project-content-section,
.before-after-section {
  padding: 92px 0;
}

.intro-grid,
.why-grid,
.project-content-grid,
.before-after-grid,
.project-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.intro-grid h2,
.section-heading h2,
.why-card h2,
.contact-card h2,
.project-story h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
}

.intro-grid p:last-child,
.why-card p,
.contact-card p,
.project-story p {
  font-size: 1.12rem;
  color: var(--muted);
}

.services-section {
  background: var(--white);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.split-heading {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.text-link {
  color: var(--clay);
  font-weight: 800;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  padding: 28px;
  min-height: 230px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.featured-service {
  background: var(--charcoal);
  color: var(--white);
}

.featured-service p {
  color: rgba(255, 255, 255, 0.72);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--sand);
  color: var(--charcoal);
  font-size: 1.3rem;
  font-weight: 800;
}

.service-card h3 {
  margin: 22px 0 8px;
  font-size: 1.35rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.portfolio-card {
  position: relative;
  display: grid;
  min-height: 330px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--charcoal);
  color: var(--white);
  box-shadow: 0 20px 48px rgba(24, 34, 31, 0.14);
}

.large-card {
  grid-row: span 2;
  min-height: 680px;
}

.portfolio-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.06);
}

.portfolio-image::after,
.project-image::after,
.before-image::after,
.after-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,34,31,0.08), rgba(24,34,31,0.82));
}

.portfolio-content {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 28px;
}

.portfolio-content span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: var(--sand);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portfolio-content h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2.2rem);
  line-height: 1.1;
}

.portfolio-content p {
  margin-bottom: 0;
  color: rgba(255,255,255,.78);
}

.image-roof { background-image: url('https://placehold.co/900x1200/5d665f/f7f3ea?text=Roof+Leak+Repair'); }
.image-kitchen { background-image: url('https://placehold.co/900x700/8a8750/f7f3ea?text=Kitchen+Refresh'); }
.image-door { background-image: url('https://placehold.co/900x700/25312d/f7f3ea?text=Door+Repair'); }
.image-tiles { background-image: url('https://placehold.co/900x700/c06e43/ffffff?text=Tiling+Work'); }
.image-paint { background-image: url('https://placehold.co/900x700/65735f/ffffff?text=Painting+Project'); }

.why-section {
  background: linear-gradient(135deg, var(--charcoal), #17201d);
}

.why-card,
.contact-card,
.project-summary-card,
.process-card,
.before-after-card {
  border-radius: 32px;
  padding: 42px;
  box-shadow: var(--shadow);
}

.dark-card {
  background: var(--paper);
}

.why-list {
  display: grid;
  gap: 18px;
}

.why-item {
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  color: var(--white);
}

.why-item strong {
  font-size: 1.25rem;
}

.why-item p {
  margin-bottom: 0;
  color: rgba(255,255,255,.72);
}

.contact-section {
  padding: 84px 0;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 42px;
  align-items: center;
  background: var(--sand);
}

.contact-details {
  display: grid;
  gap: 12px;
  font-size: 1.18rem;
  font-weight: 800;
}

.contact-details a {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--white);
}

.contact-details span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

.site-footer {
  padding: 54px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}

.footer-logo {
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 24px;
  color: var(--white);
  font-weight: 700;
}

.project-hero {
  padding: 108px 0 76px;
  background:
    radial-gradient(circle at 80% 20%, rgba(192, 110, 67, 0.24), transparent 32%),
    linear-gradient(135deg, var(--charcoal), #19231f);
  color: var(--white);
}

.project-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--sand);
  font-weight: 800;
}

.project-summary-card {
  display: grid;
  gap: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.project-summary-card div {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.project-summary-card div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.project-summary-card span {
  color: var(--sand);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.project-summary-card strong {
  color: var(--white);
  font-size: 1.25rem;
}

.project-gallery-section {
  padding: 34px 0 0;
  background: var(--paper);
}

.project-gallery {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  grid-template-rows: 250px 250px;
  gap: 18px;
}

.project-image {
  position: relative;
  min-height: 250px;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.project-image-main {
  grid-row: span 2;
  background-image: url('https://placehold.co/1200x900/5d665f/f7f3ea?text=Main+Project+Photo');
}

.project-image-two {
  background-image: url('https://placehold.co/800x600/c06e43/ffffff?text=Before+Repair');
}

.project-image-three {
  background-image: url('https://placehold.co/800x600/8a8750/ffffff?text=Finished+Work');
}

.project-story {
  max-width: 720px;
}

.process-card,
.before-after-card {
  background: var(--white);
  border: 1px solid var(--line);
}

.process-card h3 {
  margin-top: 0;
  font-size: 1.6rem;
}

.process-card ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
  font-weight: 700;
}

.before-after-section {
  padding-top: 0;
}

.before-after-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--clay);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.before-image,
.after-image {
  position: relative;
  min-height: 320px;
  border-radius: 22px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.before-image {
  background-image: url('https://placehold.co/900x700/25312d/f7f3ea?text=Before');
}

.after-image {
  background-image: url('https://placehold.co/900x700/65735f/f7f3ea?text=After');
}

.project-cta {
  padding-top: 0;
}

@media (max-width: 980px) {
  .main-nav {
    gap: 14px;
    font-size: 0.95rem;
  }

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

  .large-card {
    grid-row: auto;
    grid-column: span 2;
    min-height: 520px;
  }

  .intro-grid,
  .why-grid,
  .project-content-grid,
  .before-after-grid,
  .project-hero-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    margin-left: auto;
    padding: 70px 0;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(24, 34, 31, 0.92), rgba(24, 34, 31, 0.58));
  }

  .intro-section,
  .services-section,
  .portfolio-section,
  .why-section,
  .project-content-section,
  .before-after-section {
    padding: 64px 0;
  }

  .split-heading {
    display: block;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .large-card {
    grid-column: auto;
    min-height: 430px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .project-image-main {
    grid-row: auto;
  }

  .footer-grid,
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }
}
