/*
Theme Name: DIY Near Me B2B
Theme URI: https://www.diynearme.com/
Author: DIY Near Me
Description: Multi-page English B2B WordPress theme for acoustic product sourcing, supplier search, private-label kits and sourcing guides.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: diynearme-b2b
*/

:root {
  color-scheme: light;
  --ink: #142124;
  --muted: #607070;
  --line: #d8dfdc;
  --paper: #fbf8ef;
  --surface: #ffffff;
  --green-50: #edf5ef;
  --green-700: #17605e;
  --green-900: #123c3f;
  --clay: #9f6047;
  --amber: #c69a45;
  --charcoal: #202727;
  --shadow: 0 24px 70px rgba(17, 39, 38, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--surface);
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

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

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

.dnm-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(216, 223, 220, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.dnm-logo {
  display: inline-flex;
  width: 220px;
  max-width: 44vw;
}

.dnm-logo img {
  width: 100%;
  height: auto;
}

.dnm-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.7vw, 36px);
  color: #405251;
  font-size: 0.94rem;
  font-weight: 780;
}

.dnm-nav a {
  padding: 8px 0;
}

.dnm-nav a:hover {
  color: var(--green-700);
}

.dnm-header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 850;
  white-space: nowrap;
}

.dnm-header-cta,
.button.primary {
  color: #fff;
  background: var(--green-900);
}

.dnm-header-cta {
  padding: 0 18px;
}

.button {
  border: 0;
  padding: 0 22px;
  cursor: pointer;
}

.button.secondary {
  color: var(--green-900);
  border: 1px solid var(--line);
  background: #fff;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  min-height: calc(100vh - 78px);
  background:
    linear-gradient(90deg, var(--paper), #f6f7f1);
}

.home-hero-copy {
  align-self: center;
  padding: clamp(48px, 7vw, 104px) clamp(20px, 5vw, 76px);
}

.home-hero-media {
  display: grid;
  align-items: center;
  padding: clamp(26px, 4vw, 64px);
  background: var(--green-50);
}

.home-hero-media img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 5vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.95rem, 3.2vw, 3.55rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.22;
}

p {
  color: var(--muted);
  line-height: 1.66;
}

.home-hero-copy > p:not(.eyebrow),
.page-hero > p {
  max-width: 710px;
  font-size: clamp(1rem, 1.22vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 680px;
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.hero-proof div {
  padding: 17px;
}

.hero-proof div + div {
  border-left: 1px solid var(--line);
}

.hero-proof dt {
  margin-bottom: 5px;
  font-weight: 900;
}

.hero-proof dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.keyword-ribbon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 18px clamp(20px, 4vw, 58px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.keyword-ribbon span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: #405251;
  font-size: 0.9rem;
  font-weight: 760;
}

.section {
  padding: clamp(54px, 7vw, 104px) clamp(20px, 4.6vw, 74px);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 720px;
}

.home-positioning {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: start;
}

.positioning-grid,
.product-preview-grid,
.blog-card-grid,
.blog-index-grid {
  display: grid;
  gap: 18px;
}

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

.positioning-grid article,
.service-steps article,
.process-grid div,
.about-principles article,
.info-grid div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 22px;
}

.positioning-grid span,
.service-matrix span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green-700);
  font-weight: 900;
}

.product-preview,
.packing-section {
  background: var(--paper);
}

.product-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-tile,
.blog-card,
.blog-index-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.product-tile img,
.blog-card img,
.blog-index-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f8f8f5;
}

.product-tile div,
.blog-card,
.blog-index-card {
  padding: 22px;
}

.product-tile img + div {
  padding: 22px;
}

.tile-label,
.blog-card span,
.blog-index-card span {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-tile a,
.text-link {
  color: var(--green-700);
  font-weight: 900;
}

.service-preview,
.quality-section {
  background: var(--charcoal);
}

.service-preview h2,
.service-preview h3,
.service-preview strong,
.quality-section h2,
.quality-section h3 {
  color: #fff;
}

.service-preview p,
.service-preview span,
.quality-section p,
.quality-section span {
  color: #d6ddda;
}

.service-steps,
.process-grid,
.about-principles,
.info-grid {
  display: grid;
  gap: 14px;
}

.service-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.service-steps article {
  background: #2b3332;
  border-color: rgba(255, 255, 255, 0.12);
}

.service-steps strong,
.service-steps span,
.process-grid strong,
.process-grid span,
.about-principles strong,
.about-principles span {
  display: block;
}

.service-steps strong,
.process-grid strong,
.about-principles strong {
  margin-bottom: 8px;
}

.blog-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
  display: block;
  padding: 0;
}

.blog-card span,
.blog-card h3 {
  display: block;
  padding-right: 22px;
  padding-left: 22px;
}

.blog-card span {
  padding-top: 22px;
}

.blog-card h3 {
  padding-bottom: 24px;
}

.quote-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(340px, 1.14fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: start;
  background: var(--green-50);
}

.quote-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfaf6;
}

.quote-form textarea {
  resize: vertical;
}

.page-hero {
  padding: clamp(64px, 8vw, 118px) clamp(20px, 4.6vw, 74px);
  background: var(--paper);
}

.page-hero.slim {
  min-height: 410px;
  display: grid;
  align-content: center;
}

.split-about {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.split-about img {
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.product-detail-list {
  display: grid;
  gap: 24px;
}

.product-detail-row {
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 0.58fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.product-detail-row > img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  background: #f8f8f5;
}

.product-detail-row > div {
  padding: clamp(24px, 4vw, 46px);
}

.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

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

.info-grid strong {
  margin-bottom: 6px;
}

.service-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-matrix article {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  background: #fff;
}

.process-band {
  background: var(--paper);
}

.process-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.about-copy {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: start;
}

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

.blog-index-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-index-card {
  display: block;
  padding: 0;
}

.blog-index-card span,
.blog-index-card h2,
.blog-index-card p {
  display: block;
  padding-right: 22px;
  padding-left: 22px;
}

.blog-index-card span {
  padding-top: 22px;
}

.blog-index-card p {
  padding-bottom: 24px;
}

.article-layout {
  display: grid;
  justify-items: center;
  padding: clamp(54px, 7vw, 104px) 20px;
  background: var(--paper);
}

.article-layout article {
  width: min(880px, 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(24px, 5vw, 58px);
  background: #fff;
}

.article-layout .article-lead {
  color: #405251;
  font-size: 1.18rem;
}

.article-layout img {
  width: 100%;
  margin: 26px 0 32px;
  border-radius: 10px;
}

.article-layout h2 {
  margin-top: 34px;
  font-size: clamp(1.6rem, 2.3vw, 2.3rem);
}

.article-layout li {
  margin-bottom: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  padding: 34px clamp(20px, 4.6vw, 74px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer .dnm-logo {
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 620px;
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #405251;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .dnm-header {
    grid-template-columns: 1fr auto;
  }

  .dnm-nav {
    display: none;
  }

  .home-hero,
  .home-positioning,
  .quote-panel,
  .split-about,
  .about-copy {
    grid-template-columns: 1fr;
  }

  .home-hero-media {
    order: -1;
  }

  .positioning-grid,
  .product-preview-grid,
  .service-steps,
  .service-matrix,
  .process-grid,
  .blog-card-grid,
  .blog-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dnm-logo {
    width: 176px;
    max-width: 58vw;
  }

  .dnm-header-cta {
    min-height: 42px;
    padding: 0 13px;
    font-size: 0.88rem;
  }

  .hero-actions,
  .hero-proof,
  .positioning-grid,
  .product-preview-grid,
  .service-steps,
  .service-matrix,
  .process-grid,
  .blog-card-grid,
  .product-detail-row,
  .info-grid,
  .about-principles,
  .blog-index-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-proof div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-actions {
    display: grid;
  }

  .product-detail-row > img {
    min-height: 280px;
  }
}
