/*
Theme Name: DMK Landscaping
Theme URI: https://dmklandscaping.co.uk
Author: DMK Brickwork & Landscaping
Description: A bespoke WordPress theme for DMK Brickwork & Landscaping, built for landscaping, brickwork, patios, fencing, projects, reviews and quote enquiries.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: dmk-landscaping
*/

:root {
  --dmk-ink: #182018;
  --dmk-muted: #60695f;
  --dmk-stone: #f7f5ef;
  --dmk-concrete: #dedbd2;
  --dmk-grass: #3f7d47;
  --dmk-grass-dark: #275232;
  --dmk-brick: #b7643d;
  --dmk-sand: #c8ad7b;
  --dmk-white: #ffffff;
  --dmk-shadow: 0 14px 38px rgba(24, 32, 24, 0.09);
  --dmk-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dmk-ink);
  background: var(--dmk-stone);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.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: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(12px);
}

.top-bar {
  background: var(--dmk-grass-dark);
  color: var(--dmk-white);
  font-size: 0.83rem;
}

.top-bar-inner {
  min-height: 34px;
}

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

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.custom-logo-link img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-name {
  display: grid;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
  text-transform: uppercase;
}

.brand-name span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--dmk-muted);
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.main-navigation li {
  position: relative;
  list-style: none;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.main-navigation .menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.main-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  display: grid;
  margin: 0;
  padding: 10px 0;
  border: 1px solid rgba(24, 32, 24, 0.12);
  border-radius: 14px;
  background: var(--dmk-white);
  box-shadow: var(--dmk-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.main-navigation .sub-menu a {
  display: block;
  min-height: auto;
  padding: 9px 16px;
  color: var(--dmk-ink);
  white-space: nowrap;
}

.main-navigation .sub-menu a:hover {
  background: var(--dmk-stone);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--dmk-grass-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiet-link {
  color: var(--dmk-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid var(--dmk-grass-dark);
  border-radius: var(--dmk-radius);
  background: var(--dmk-grass-dark);
  color: var(--dmk-white);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--dmk-ink);
}

.hero .button.secondary {
  border-color: var(--dmk-white);
  color: var(--dmk-white);
}

.button.green {
  border-color: var(--dmk-grass);
  background: var(--dmk-grass);
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(24, 32, 24, 0.13);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(24, 32, 24, 0.68), rgba(24, 32, 24, 0.34) 58%, rgba(24, 32, 24, 0.08)),
    url("assets/images/dmk-logo-large.png") center / cover no-repeat;
  color: var(--dmk-white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--dmk-brick) 0 50%, var(--dmk-grass) 50% 100%);
}

.hero-content {
  position: relative;
  width: min(690px, calc(100% - 32px));
  margin: 0 auto 0 max(16px, calc((100vw - 1160px) / 2));
  padding: 78px 0 104px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--dmk-grass);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero .eyebrow,
.about-copy .eyebrow {
  color: #d8e8d0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
}

.hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: #f6f5ee;
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.trust-strip {
  background: var(--dmk-white);
  color: var(--dmk-ink);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
  border-bottom: 1px solid rgba(24, 32, 24, 0.1);
}

.trust-list li {
  min-height: 88px;
  display: grid;
  align-content: center;
  padding: 20px 18px;
  background: var(--dmk-white);
  border-right: 1px solid rgba(24, 32, 24, 0.1);
  font-weight: 700;
}

.trust-list span {
  display: block;
  margin-top: 4px;
  color: var(--dmk-muted);
  font-size: 0.86rem;
  font-weight: 400;
}

.section {
  padding: 74px 0;
}

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

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(260px, 0.55fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 32px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -22px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3.5vw, 3.1rem);
}

.section-heading p {
  margin: 0;
  color: var(--dmk-muted);
  font-size: 1.08rem;
}

.service-grid,
.area-grid,
.project-grid,
.review-grid {
  display: grid;
  gap: 18px;
}

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

.service-card,
.project-card,
.review-card,
.contact-panel {
  border-radius: var(--dmk-radius);
  background: var(--dmk-white);
  box-shadow: var(--dmk-shadow);
}

.service-card {
  display: grid;
  gap: 13px;
  min-height: 300px;
  padding: 26px;
  align-content: start;
  border: 1px solid rgba(24, 32, 24, 0.1);
  box-shadow: none;
}

.service-card:nth-child(2n) {
  border-color: var(--dmk-brick);
}

.service-number {
  color: var(--dmk-sand);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.service-card h3 {
  font-size: 1.55rem;
}

.service-card p,
.service-card li,
.review-card p,
.contact-panel p {
  color: var(--dmk-muted);
}

.service-card ul {
  margin: 0;
  padding-left: 18px;
}

.service-links {
  padding: 0;
  background: var(--dmk-white);
}

.service-link-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid rgba(24, 32, 24, 0.1);
  border-left: 1px solid rgba(24, 32, 24, 0.1);
}

.service-link-grid a {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-right: 1px solid rgba(24, 32, 24, 0.1);
  border-bottom: 1px solid rgba(24, 32, 24, 0.1);
  color: var(--dmk-ink);
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.service-link-grid a:hover {
  background: var(--dmk-stone);
  color: var(--dmk-grass-dark);
}

.project-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
}

.project-card {
  min-height: 420px;
  display: grid;
  align-content: end;
  padding: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(24, 32, 24, 0.06), rgba(24, 32, 24, 0.72)),
    url("assets/images/dmk-header.png") center / cover no-repeat;
  color: var(--dmk-white);
}

.project-card.small {
  background:
    linear-gradient(180deg, rgba(24, 32, 24, 0.08), rgba(24, 32, 24, 0.72)),
    url("assets/images/dmk-logo.png") center / cover no-repeat;
}

.project-card p {
  max-width: 560px;
  margin: 10px 0 0;
  color: #edece4;
}

.area-grid {
  grid-template-columns: repeat(7, 1fr);
}

.area-grid span {
  padding: 14px 12px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: var(--dmk-radius);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
  font-weight: 600;
}

.about-band {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 42px;
  align-items: center;
}

.about-logo {
  padding: 32px;
  border-radius: var(--dmk-radius);
  background: linear-gradient(135deg, var(--dmk-concrete), #f3f1eb);
}

.about-copy p {
  color: var(--dmk-muted);
  font-size: 1.08rem;
}

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

.review-card {
  padding: 26px;
  border: 1px solid rgba(24, 32, 24, 0.1);
  box-shadow: none;
}

.review-card strong {
  display: block;
  margin-top: 16px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.contact-panel {
  padding: 30px;
  border: 1px solid rgba(24, 32, 24, 0.1);
  box-shadow: none;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: var(--dmk-radius);
  background: var(--dmk-stone);
  font-weight: 650;
  text-decoration: none;
}

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

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--dmk-muted);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: var(--dmk-radius);
  font: inherit;
}

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

.site-footer {
  padding: 36px 0;
  background: var(--dmk-ink);
  color: var(--dmk-white);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  color: #cfd1ca;
}

.page-hero {
  padding: 74px 0;
  background: linear-gradient(135deg, var(--dmk-grass-dark), var(--dmk-ink));
  color: var(--dmk-white);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.wf-hero {
  padding: 72px 0 86px;
  background: linear-gradient(180deg, #ffffff 0%, var(--dmk-stone) 100%);
}

.wf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 44px;
  align-items: center;
}

.wf-hero-copy h1 {
  max-width: 720px;
  font-size: clamp(2.8rem, 6vw, 5.9rem);
  line-height: 0.98;
}

.wf-hero-copy p {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--dmk-muted);
  font-size: 1.08rem;
}

.wf-area-line {
  color: var(--dmk-ink) !important;
  font-weight: 650;
}

.wf-hero-media {
  display: grid;
  gap: 16px;
}

.wf-hero-main,
.wf-hero-thumbs img,
.wf-gallery-grid img,
.wf-contact-grid > img {
  width: 100%;
  object-fit: cover;
  border-radius: 22px;
}

.wf-hero-main {
  aspect-ratio: 4 / 3;
  box-shadow: var(--dmk-shadow);
}

.wf-hero-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wf-hero-thumbs img {
  aspect-ratio: 5 / 3;
}

.wf-two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
}

.wf-two-column h2,
.wf-section-title h2,
.wf-review-layout h2,
.wf-contact-grid h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.wf-two-column p,
.wf-section-title p,
.wf-review-layout > div > p,
.wf-contact-grid p {
  color: var(--dmk-muted);
  font-size: 1.04rem;
}

.wf-credentials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 38px;
}

.wf-credentials span {
  min-height: 76px;
  display: grid;
  align-content: center;
  padding: 16px;
  border: 1px solid rgba(24, 32, 24, 0.12);
  border-radius: 16px;
  background: var(--dmk-white);
  color: var(--dmk-ink);
  font-weight: 650;
}

.wf-section-title {
  max-width: 780px;
  margin-bottom: 34px;
}

.wf-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.wf-offer-grid article,
.wf-package-card,
.wf-testimonial-grid article,
.wf-faq-list details {
  border: 1px solid rgba(24, 32, 24, 0.12);
  border-radius: 20px;
  background: var(--dmk-white);
}

.wf-offer-grid article {
  min-height: 210px;
  padding: 24px;
}

.wf-offer-grid h3,
.wf-package-card h3 {
  font-size: 1.45rem;
}

.wf-offer-grid p,
.wf-package-card p,
.wf-package-card li,
.wf-testimonial-grid p,
.wf-testimonial-grid span,
.wf-faq-list p {
  color: var(--dmk-muted);
}

.wf-centered-button {
  margin-top: 28px;
}

.wf-packages {
  background: var(--dmk-white);
}

.wf-package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.wf-package-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 26px;
}

.wf-package-card.featured {
  background: var(--dmk-ink);
  color: var(--dmk-white);
}

.wf-package-card.featured p,
.wf-package-card.featured li {
  color: #dfe3dc;
}

.wf-package-card ul {
  margin: 0;
  padding-left: 18px;
}

.wf-package-label {
  margin: 0;
  color: var(--dmk-grass-dark) !important;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wf-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.wf-gallery-grid img {
  aspect-ratio: 1 / 1.15;
}

.wf-review-layout {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 42px;
}

.wf-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.wf-stats span {
  display: grid;
  gap: 2px;
  padding: 18px;
  border-radius: 16px;
  background: var(--dmk-white);
}

.wf-stats strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  font-weight: 500;
}

.wf-testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wf-testimonial-grid article {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 12px;
  padding: 20px;
}

.wf-testimonial-grid p {
  grid-column: 1 / -1;
  margin-top: 0;
}

.wf-testimonial-grid img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.wf-testimonial-grid strong,
.wf-testimonial-grid span {
  display: block;
}

.wf-faq {
  background: var(--dmk-white);
}

.wf-faq-list {
  display: grid;
  gap: 12px;
}

.wf-faq-list details {
  padding: 18px 20px;
}

.wf-faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.wf-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 42px;
  align-items: center;
}

.wf-contact-grid > img {
  aspect-ratio: 4 / 3.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 34px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

.footer-grid a {
  display: block;
  color: #d8ded5;
  text-decoration: none;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-bottom a {
  margin-left: 16px;
  color: #d8ded5;
  text-decoration: none;
}

.content-area {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0;
}

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

@media (max-width: 940px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .main-navigation,
  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .primary-menu {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 720px;
  }

  .trust-list,
  .service-grid,
  .review-grid,
  .contact-layout,
  .about-band,
  .section-heading,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .wf-hero-grid,
  .wf-two-column,
  .wf-review-layout,
  .wf-contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .wf-hero-copy h1 {
    font-size: clamp(2.4rem, 10vw, 4.4rem);
  }

  .wf-hero-media,
  .wf-contact-grid > img {
    max-width: 680px;
  }

  .wf-credentials,
  .wf-offer-grid,
  .wf-package-grid,
  .wf-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 620px) {
  .header-inner,
  .section-inner {
    width: min(100% - 24px, 1160px);
  }

  .hero-content {
    width: min(100% - 24px, 760px);
    padding-top: 50px;
  }

  .main-navigation {
    gap: 14px;
  }

  .main-navigation .sub-menu {
    position: static;
    min-width: 100%;
    padding: 6px 0 6px 14px;
    border: 0;
    border-left: 1px solid rgba(24, 32, 24, 0.14);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .main-navigation .sub-menu a {
    padding: 7px 10px;
    white-space: normal;
  }

  .button {
    width: 100%;
  }

  .trust-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .wf-hero {
    padding: 46px 0 58px;
  }

  .wf-credentials,
  .wf-offer-grid,
  .wf-package-grid,
  .wf-gallery-grid,
  .wf-testimonial-grid,
  .wf-stats {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
  }

  .footer-bottom a {
    margin: 0 16px 0 0;
  }

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

  .footer-inner {
    flex-direction: column;
  }
}
