/*
Theme Name: Konrad Handyman
Theme URI: https://example.com/konrad-handyman
Author: Konrad Handyman
Author URI: https://example.com
Description: A responsive WordPress theme for a West London handyman service with project photo and video support.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: konrad-handyman
Tags: custom-background, custom-logo, custom-menu, featured-images, one-column, responsive-layout
*/

:root {
  --kh-ink: #171a1c;
  --kh-charcoal: #24292d;
  --kh-paper: #fffdf8;
  --kh-soft: #f4f0e8;
  --kh-line: #ded6c8;
  --kh-yellow: #f5bf2f;
  --kh-blue: #1769aa;
  --kh-green: #1f7a58;
  --kh-red: #c94831;
  --kh-muted: #606a70;
  --kh-white: #ffffff;
  --kh-shadow: 0 18px 50px rgba(23, 26, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--kh-ink);
  background: var(--kh-paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

img,
video,
iframe {
  display: block;
  max-width: 100%;
}

iframe {
  border: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(222, 214, 200, 0.85);
  box-shadow: 0 10px 30px rgba(23, 26, 28, 0.05);
}

@supports (backdrop-filter: blur(14px)) {
  .site-header {
    backdrop-filter: blur(14px);
  }
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--kh-ink);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--kh-ink);
  background: var(--kh-yellow);
  border: 2px solid var(--kh-ink);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 10px 13px;
  border-radius: 6px;
  color: var(--kh-charcoal);
  font-weight: 700;
  font-size: 14px;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: var(--kh-soft);
  color: var(--kh-ink);
}

.header-call {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  color: var(--kh-white);
  background: var(--kh-blue);
  border-radius: 6px;
  font-weight: 800;
  white-space: nowrap;
}

.header-call:hover,
.header-call:focus-visible {
  background: #125788;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  background: var(--kh-ink);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--kh-white);
  content: "";
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before {
  top: -7px;
}

.nav-toggle-lines::after {
  top: 7px;
}

.nav-toggle.is-open .nav-toggle-lines {
  background: transparent;
}

.nav-toggle.is-open .nav-toggle-lines::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-lines::after {
  transform: translateY(-7px) rotate(-45deg);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 2px solid var(--kh-ink);
  border-radius: 6px;
  background: var(--kh-white);
  color: var(--kh-ink);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  box-shadow: 4px 4px 0 rgba(23, 26, 28, 0.2);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 5px 6px 0 rgba(23, 26, 28, 0.2);
}

.button-primary {
  background: var(--kh-yellow);
}

.button-dark {
  color: var(--kh-white);
  background: var(--kh-ink);
  box-shadow: 4px 4px 0 rgba(245, 191, 47, 0.7);
}

.button-whatsapp {
  color: var(--kh-white);
  background: #1f7a58;
  border-color: #14553c;
  box-shadow: 4px 4px 0 rgba(20, 85, 60, 0.28);
}

.button-whatsapp:hover,
.button-whatsapp:focus-visible {
  background: #196447;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--kh-white);
  background: var(--kh-ink);
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 26, 28, 0.9) 0%, rgba(23, 26, 28, 0.58) 46%, rgba(23, 26, 28, 0.16) 100%),
    linear-gradient(0deg, rgba(23, 26, 28, 0.75) 0%, rgba(23, 26, 28, 0) 46%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 160px 0 62px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 10px;
  color: var(--kh-ink);
  background: var(--kh-yellow);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.55;
}

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

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
  margin-top: 46px;
}

.proof-item {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(23, 26, 28, 0.58);
}

.proof-number {
  display: block;
  color: var(--kh-yellow);
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.proof-label {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.section {
  padding: 86px 0;
}

.section-tight {
  padding: 58px 0;
}

.section-soft {
  background: var(--kh-soft);
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--kh-blue);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-title {
  max-width: 820px;
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-lede {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--kh-muted);
  font-size: 18px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.about-panel {
  padding: 30px;
  border-radius: 8px;
  background: var(--kh-white);
  border: 1px solid var(--kh-line);
  box-shadow: var(--kh-shadow);
}

.about-panel p {
  margin: 0;
  color: var(--kh-muted);
  font-size: 18px;
}

.about-panel p + p {
  margin-top: 16px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.service-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--kh-line);
  border-top: 6px solid var(--kh-yellow);
  border-radius: 8px;
  background: var(--kh-white);
}

.service-card:nth-child(3n + 2) {
  border-top-color: var(--kh-blue);
}

.service-card:nth-child(3n + 3) {
  border-top-color: var(--kh-green);
}

.service-card h3,
.project-card h3,
.step h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0;
}

.service-card p,
.project-card p,
.step p {
  margin: 12px 0 0;
  color: var(--kh-muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--kh-line);
  border-radius: 8px;
  background: var(--kh-white);
  box-shadow: 0 14px 32px rgba(23, 26, 28, 0.08);
}

.project-link {
  display: block;
  height: 100%;
}

.project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--kh-charcoal);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--kh-white);
  background:
    linear-gradient(135deg, rgba(245, 191, 47, 0.95), rgba(31, 122, 88, 0.86)),
    var(--kh-charcoal);
  font-weight: 900;
  text-align: center;
}

.project-card-body {
  padding: 22px;
}

.media-ready {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: center;
  margin-top: 48px;
  padding: 34px;
  border-radius: 8px;
  color: var(--kh-white);
  background: var(--kh-ink);
}

.media-ready h3 {
  margin: 0;
  color: var(--kh-yellow);
  font-size: 28px;
  line-height: 1.15;
}

.media-ready p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.step {
  padding: 26px;
  border-left: 6px solid var(--kh-red);
  border-radius: 8px;
  background: var(--kh-white);
  box-shadow: 0 14px 34px rgba(23, 26, 28, 0.08);
}

.step-number {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--kh-white);
  background: var(--kh-red);
  border-radius: 6px;
  font-weight: 900;
}

.contact-section {
  color: var(--kh-white);
  background:
    linear-gradient(90deg, rgba(23, 26, 28, 0.96), rgba(23, 26, 28, 0.88)),
    var(--kh-ink);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 36px;
  align-items: start;
}

.contact-section .section-kicker {
  color: var(--kh-yellow);
}

.contact-section .section-lede {
  color: rgba(255, 255, 255, 0.82);
}

.contact-stack {
  display: grid;
  gap: 18px;
}

.contact-details,
.contact-form-card {
  padding: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-details p {
  margin: 0;
}

.contact-details p + p {
  margin-top: 14px;
}

.contact-details strong {
  display: block;
  color: var(--kh-yellow);
  font-size: 14px;
  text-transform: uppercase;
}

.copy-email,
.footer-copy {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 8px;
  padding: 7px 10px;
  color: var(--kh-ink);
  background: var(--kh-yellow);
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.footer-copy {
  min-height: auto;
  margin-top: 0;
  padding: 0;
  color: inherit;
  background: transparent;
}

.contact-form-card h3 {
  margin: 0 0 16px;
  color: var(--kh-white);
  font-size: 26px;
  line-height: 1.2;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--kh-ink);
  background: var(--kh-white);
  border: 2px solid transparent;
  border-radius: 6px;
  font: inherit;
}

.contact-form textarea {
  min-height: 128px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--kh-yellow);
  outline: none;
}

.form-hidden {
  position: absolute;
  left: -9999px;
  height: 1px;
  overflow: hidden;
}

.form-notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 800;
}

.form-notice-success {
  color: #123d2c;
  background: #dff5e9;
}

.form-notice-error {
  color: #5c1f16;
  background: #ffe4dd;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--kh-charcoal);
}

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

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 800;
}

.content-page {
  padding: 72px 0;
}

.content-page .entry {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
}

.entry-title {
  margin: 0 0 24px;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: 0;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content img,
.entry-content video,
.entry-content iframe {
  border-radius: 8px;
}

.single-project-hero {
  padding: 76px 0 34px;
  background: var(--kh-soft);
}

.single-project-image {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 8px;
}

.back-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--kh-blue);
  font-weight: 900;
}

@media (max-width: 980px) {
  .hero h1 {
    font-size: 54px;
  }

  .split,
  .contact-layout,
  .media-ready {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 32px, 1160px);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    max-height: 0;
    overflow: hidden;
    margin-left: 0;
    border-radius: 8px;
    background: var(--kh-white);
    box-shadow: var(--kh-shadow);
    transition: max-height 180ms ease;
  }

  .primary-nav.is-open {
    max-height: 360px;
  }

  .primary-nav ul {
    display: block;
    padding: 10px;
  }

  .primary-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .header-call {
    margin-left: 0;
  }

  .hero {
    min-height: 630px;
  }

  .hero-inner {
    width: min(100% - 32px, 1160px);
    padding: 128px 0 42px;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 1.04;
  }

  .hero-lede {
    font-size: 18px;
  }

  .hero-proof,
  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 66px 0;
  }

  .section-title {
    font-size: 34px;
  }
}

@media (max-width: 620px) {
  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-call {
    display: none;
  }

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

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .media-ready {
    padding: 24px;
  }

  .footer-inner {
    display: grid;
  }
}
