/*
Theme Name: Artificial Turf B2B
Theme URI: https://example.com/artificial-turf-b2b
Author: Codex
Author URI: https://example.com
Description: A conversion-focused WordPress theme for artificial turf manufacturers, exporters, and B2B project suppliers.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: artificial-turf-b2b
*/

:root {
  --at-green: #0f7a42;
  --at-green-dark: #075735;
  --at-green-soft: #e7f5ec;
  --at-lime: #c6dd3f;
  --at-ink: #17201b;
  --at-muted: #5f6d65;
  --at-line: #d9e4dc;
  --at-bg: #f6f8f5;
  --at-white: #ffffff;
  --at-slate: #24303a;
  --at-gold: #d6a23a;
  --at-radius: 8px;
  --at-shadow: 0 20px 50px rgba(20, 46, 31, 0.12);
  --hero-image: url("assets/images/selected/hero-factory-warehouse-2200x1000.jpg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--at-ink);
  background: var(--at-bg);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

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

.site-shell {
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 228, 220, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--at-white);
  background: var(--at-green);
  font-size: 20px;
}

.brand span:last-child {
  display: block;
  color: var(--at-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--at-slate);
  font-size: 14px;
  font-weight: 700;
}

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

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--at-line);
  border-radius: 8px;
  background: var(--at-white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--at-ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--at-white);
  background: var(--at-green);
  box-shadow: 0 12px 26px rgba(15, 122, 66, 0.22);
}

.btn-primary:hover {
  background: var(--at-green-dark);
}

.btn-secondary {
  color: var(--at-green-dark);
  border-color: rgba(15, 122, 66, 0.25);
  background: var(--at-white);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--at-white);
  background: #10261b;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(7, 24, 16, 0.86) 0%, rgba(7, 24, 16, 0.58) 42%, rgba(7, 24, 16, 0.2) 72%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 56px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--at-lime);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  content: "";
  background: currentColor;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-copy p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 980px;
  margin-top: 64px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.stat {
  padding: 22px;
}

.stat strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.stat span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: 82px 0;
}

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

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.section-head p {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--at-muted);
}

.product-grid,
.industry-grid,
.reason-grid,
.process-grid,
.cert-grid {
  display: grid;
  gap: 18px;
}

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

.product-card,
.industry-card,
.reason-card,
.process-card,
.cert-card,
.form-panel,
.article-card {
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius);
  background: var(--at-white);
}

.product-card {
  overflow: hidden;
}

.product-visual {
  display: grid;
  min-height: 152px;
  place-items: center;
  color: var(--at-white);
  background:
    linear-gradient(135deg, rgba(15, 122, 66, 0.8), rgba(198, 221, 63, 0.26)),
    repeating-linear-gradient(90deg, #0e6f3c 0 4px, #12854a 4px 8px);
}

.product-photo {
  display: block;
  min-height: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--at-green-soft);
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-visual svg {
  width: 72px;
  height: 72px;
}

.product-body,
.industry-card,
.reason-card,
.process-card,
.cert-card,
.article-card {
  padding: 22px;
}

.product-body p,
.industry-card p,
.reason-card p,
.process-card p,
.cert-card p,
.article-card p {
  color: var(--at-muted);
}

.spec-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--at-slate);
  font-size: 14px;
  font-weight: 700;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--at-line);
  padding-top: 8px;
}

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

.industry-card {
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.97)),
    repeating-linear-gradient(45deg, rgba(15, 122, 66, 0.16) 0 10px, rgba(198, 221, 63, 0.12) 10px 20px);
}

.icon-badge {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  color: var(--at-green-dark);
  background: var(--at-green-soft);
  font-size: 24px;
}

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

.reason-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--at-green-dark);
  font-size: 30px;
  line-height: 1;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.media-frame {
  margin: 0;
  overflow: hidden;
  border-radius: var(--at-radius);
  box-shadow: var(--at-shadow);
  background: var(--at-white);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.quality-panel {
  padding: 30px;
  border: 1px solid rgba(15, 122, 66, 0.18);
  border-radius: var(--at-radius);
  background: var(--at-green-soft);
}

.quality-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.compact-list {
  margin-top: 24px;
}

.quality-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--at-radius);
  background: rgba(255, 255, 255, 0.78);
}

.check {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  color: var(--at-white);
  background: var(--at-green);
  font-size: 11px;
  font-weight: 800;
}

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

.image-strip figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius);
  background: var(--at-white);
}

.image-strip img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.image-strip figcaption {
  padding: 14px 16px;
  color: var(--at-slate);
  font-size: 14px;
  font-weight: 800;
}

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

.process-card {
  position: relative;
}

.process-card::before {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  color: var(--at-white);
  background: var(--at-green);
  counter-increment: process;
  content: counter(process, decimal-leading-zero);
  font-weight: 800;
}

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

.cert-card {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
}

.cert-card span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--at-green-dark);
  background: var(--at-green-soft);
}

.cta-band {
  color: var(--at-white);
  background: var(--at-green-dark);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.cta-inner p {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.82);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 16px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius);
  background: var(--at-white);
}

.form-panel {
  padding: 28px;
  box-shadow: var(--at-shadow);
}

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

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.at-form label {
  display: grid;
  gap: 6px;
  color: var(--at-slate);
  font-size: 13px;
  font-weight: 800;
}

.at-form input,
.at-form select,
.at-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--at-line);
  border-radius: 8px;
  color: var(--at-ink);
  background: #fff;
  font: inherit;
}

.at-form textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--at-muted);
  font-size: 13px;
}

.site-footer {
  padding: 48px 0 28px;
  color: rgba(255, 255, 255, 0.78);
  background: #15211b;
}

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

.footer-grid h3 {
  color: var(--at-white);
  font-size: 16px;
}

.footer-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

.page-hero {
  padding: 76px 0 54px;
  color: var(--at-white);
  background: linear-gradient(135deg, var(--at-green-dark), #193325);
}

.page-content {
  padding: 66px 0;
  background: var(--at-white);
}

.content-narrow {
  width: min(840px, calc(100% - 32px));
  margin: 0 auto;
}

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

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 18px;
    border: 1px solid var(--at-line);
    border-radius: 8px;
    background: var(--at-white);
    box-shadow: var(--at-shadow);
  }

  .main-nav.is-open,
  .main-nav ul {
    display: grid;
  }

  .main-nav ul {
    gap: 14px;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-stats,
  .product-grid,
  .reason-grid,
  .process-grid,
  .cert-grid,
  .footer-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .industry-grid,
  .split,
  .contact-grid,
  .image-strip,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 72px 0 40px;
  }

  .hero-stats,
  .product-grid,
  .industry-grid,
  .reason-grid,
  .process-grid,
  .cert-grid,
  .field-grid,
  .footer-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .section-head {
    display: block;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
