﻿/*
Theme Name: Balfens v5
Theme URI: https://balfens.com/
Author: Balfens
Description: WordPress tema za Balfens proizvodnju ograda, kapija i metalnih panela.
Version: 1.0.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: balfens
*/

:root {
  --yellow: #f5b400;
  --yellow-soft: #ffd44d;
  --ink: #111111;
  --charcoal: #1b1b1b;
  --steel: #4d5960;
  --muted: #6d7477;
  --line: rgba(17, 17, 17, 0.14);
  --paper: #ffffff;
  --off: #f6f4ee;
  --red: #e52222;
  --blue: #063d5b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(17, 17, 17, 0.94);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  place-items: center;
  width: 118px;
  height: 58px;
  background: #050505;
  border: 1px solid rgba(245, 180, 0, 0.42);
  border-radius: 8px;
  overflow: hidden;
}

.brand img {
  width: 104px;
  height: 50px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.main-nav a {
  opacity: 0.82;
  transition: color 180ms ease, opacity 180ms ease;
}

.main-nav a:hover {
  color: var(--yellow-soft);
  opacity: 1;
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.language-switcher button {
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: 900 12px var(--font-body);
  cursor: pointer;
}

.language-switcher button.is-active {
  color: var(--ink);
  background: var(--yellow);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta,
.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 16px 32px rgba(245, 180, 0, 0.22);
}

.btn-primary:hover,
.header-cta:hover,
.btn-dark:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-dark {
  width: 100%;
  background: var(--ink);
  color: white;
}

.menu-toggle {
  display: none;
}

.section-dark {
  background: var(--ink);
  color: white;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(560px, 1.08fr);
  grid-template-rows: 1fr auto;
  gap: clamp(12px, 2vw, 28px);
  min-height: 720px;
  padding: clamp(34px, 3.6vw, 56px) clamp(18px, 3.8vw, 60px) 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 18%, rgba(245, 180, 0, 0.24), transparent 30%),
    radial-gradient(circle at 12% 78%, rgba(245, 180, 0, 0.18), transparent 26%),
    linear-gradient(180deg, #1d1d1d 0%, #111 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 100%);
  background-size: 74px 74px;
  opacity: 0.32;
  mask-image: radial-gradient(circle at 38% 35%, rgba(0, 0, 0, 0.42), transparent 62%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: clamp(26px, 3.4vw, 44px) auto clamp(54px, 5vw, 78px) clamp(18px, 3vw, 38px);
  width: min(47vw, 590px);
  background:
    linear-gradient(180deg, rgba(255, 224, 104, 0.92), rgba(245, 180, 0, 0.82)),
    var(--yellow);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  right: -12vw;
  top: 12vh;
  width: 48vw;
  height: 48vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(245, 180, 0, 0.24), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-copy,
.hero-media,
.hero-proof {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
  width: min(100%, 590px);
  max-width: 590px;
  padding: clamp(8px, 1.4vw, 16px) clamp(26px, 2.4vw, 38px) clamp(14px, 2.4vw, 26px);
  box-sizing: border-box;
}

.hero h1,
.intro h2,
.section-heading h2,
.calculator h2,
.contact h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 520px;
  color: #111;
  font-size: clamp(48px, 5vw, 76px);
  text-wrap: balance;
}

.hero p {
  max-width: 440px;
  margin: 20px 0 0;
  color: rgba(17, 17, 17, 0.78);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  line-height: 1.46;
}

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

.hero-actions .btn-ghost {
  background: rgba(17, 17, 17, 0.76);
  color: white;
  border-color: rgba(17, 17, 17, 0.24);
}

.hero-actions .btn-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 560px);
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.12);
}

.hero-metrics span {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.22);
  color: rgba(17, 17, 17, 0.82);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.hero-media {
  align-self: center;
  justify-self: end;
  width: min(100%, 790px);
  transform: translate(-78px, 2px);
}

.hero-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 42px 100px rgba(0, 0, 0, 0.42);
  background: #111;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 620ms ease, transform 900ms ease;
}

.gallery-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-arrows {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(12px, 2vw, 22px);
  pointer-events: none;
}

.gallery-arrows button {
  display: grid;
  place-items: center;
  width: clamp(42px, 4vw, 54px);
  height: clamp(42px, 4vw, 54px);
  padding: 0;
  color: white;
  background: rgba(17, 17, 17, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.gallery-arrows button:hover {
  transform: scale(1.06);
  color: var(--ink);
  background: var(--yellow);
}

.gallery-arrows span {
  display: block;
  margin-top: -3px;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 0.8;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: clamp(78px, 7vw, 116px);
  gap: 10px;
  margin-top: 12px;
}

.hero-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0.78;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.gallery-controls {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 4;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.gallery-controls button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
}

.gallery-controls button.is-active {
  width: 28px;
  background: var(--yellow);
}

.hero-spec {
  position: absolute;
  right: clamp(14px, 2.8vw, 26px);
  bottom: clamp(102px, 9vw, 120px);
  display: grid;
  gap: 2px;
  width: min(340px, calc(100% - 36px));
  padding: 18px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 8px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}

.hero-proof {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-proof a {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  background: rgba(5, 5, 5, 0.55);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transition: background 180ms ease, color 180ms ease;
}

.hero-proof a:hover {
  background: var(--yellow);
  color: var(--ink);
}

.hero-spec strong {
  font-family: var(--font-display);
  font-size: 20px;
}

.hero-spec span {
  font-weight: 700;
  color: rgba(17, 17, 17, 0.74);
}

@media (min-width: 1600px) {
  .hero {
    grid-template-columns: 590px 790px;
    justify-content: center;
    gap: 18px;
  }

  .hero::after {
    left: calc((100% - 1398px) / 2);
    width: 590px;
  }

  .hero-media {
    justify-self: start;
    transform: translate(0, 2px);
  }
}

.intro,
.calculator,
.contact {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(72px, 9vw, 128px) clamp(18px, 5vw, 80px);
}

.intro-mark {
  min-height: 300px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(245, 180, 0, 0.96), rgba(255, 212, 77, 0.9)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(17, 17, 17, 0.08) 28px 30px);
  border-radius: 8px;
}

.intro-mark span {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 900;
  color: var(--ink);
}

.intro h2,
.calculator h2,
.contact h2 {
  font-size: clamp(38px, 5vw, 72px);
}

.intro p,
.section-heading p,
.calculator p,
.contact p {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.products,
.catalog-prices,
.seo-content,
.internal-links,
.standards,
.faq,
.blog-preview,
.references,
.process {
  padding: clamp(72px, 9vw, 128px) clamp(18px, 5vw, 80px);
}

.seo-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 72px);
  background: var(--off);
}

.internal-links {
  background: #fff;
}

.seo-copy h2 {
  max-width: 820px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 0.98;
}

.seo-copy p {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.seo-list {
  display: grid;
  gap: 12px;
  align-self: center;
}

.seo-list a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.seo-list a::after {
  content: "â†’";
  color: var(--yellow);
}

.seo-list a:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 180, 0, 0.72);
  background: #fffaf0;
}

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

.section-heading h2 {
  max-width: 760px;
  font-size: clamp(38px, 5vw, 76px);
}

.section-heading p {
  max-width: 420px;
}

.product-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 8px;
}

.catalog-prices {
  background: var(--ink);
  color: white;
}

.catalog-prices .section-heading p {
  color: rgba(255, 255, 255, 0.68);
}

.price-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.price-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: top;
}

.price-table th {
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
}

.price-table td {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.price-table td:first-child,
.price-table td:last-child {
  color: white;
  font-weight: 900;
}

.product-card,
.standard-item,
.step {
  min-height: 280px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card {
  background: linear-gradient(180deg, #fff 0%, #f7f7f4 100%);
  color: inherit;
}

.product-card:hover,
.standard-item:hover,
.step:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 180, 0, 0.7);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.product-card span,
.step span {
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
}

.product-card h3,
.standard-item h3,
.step h3 {
  margin: 56px 0 10px;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.05;
}

.product-card p,
.standard-item p,
.step p {
  margin: 0;
  color: var(--muted);
}

.process {
  background:
    linear-gradient(90deg, rgba(245, 180, 0, 0.1), transparent 42%),
    var(--ink);
}

.process .section-heading p,
.process .step p,
.references .section-heading p {
  color: rgba(255, 255, 255, 0.68);
}

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

.step {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.calculator {
  background: var(--yellow);
}

.calculator p,
.calculator li {
  color: rgba(17, 17, 17, 0.76);
  font-weight: 600;
}

.calculator ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.calculator li::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  background: var(--ink);
  border-radius: 50%;
}

.quote-panel {
  align-self: start;
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(180deg, rgba(245, 180, 0, 0.08), transparent 36%),
    white;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

label {
  display: grid;
  gap: 10px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #f6f6f3;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 7px;
  font: 700 15px var(--font-body);
}

input[type="range"] {
  accent-color: var(--yellow);
  padding: 0;
  background: transparent;
  border: 0;
}

.toggle-row {
  min-height: 70px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  color: var(--ink);
  background: #f6f6f3;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 7px;
}

.toggle-row input {
  width: 22px;
  min-height: 22px;
  accent-color: var(--yellow);
}

.toggle-row span {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

textarea {
  min-height: 132px;
  padding-top: 14px;
  resize: vertical;
}

.estimate {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 20px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  border-top: 1px solid var(--line);
}

.estimate span {
  color: rgba(255, 255, 255, 0.64);
  font-weight: 800;
}

.estimate strong {
  font-family: var(--font-display);
  color: var(--yellow);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
}

.quote-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.1);
}

.quote-breakdown div {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 14px;
  background: #fff;
}

.quote-breakdown span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.quote-breakdown strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}

.quote-note {
  margin: -4px 0 0;
  color: rgba(17, 17, 17, 0.62);
  font-size: 13px;
  font-weight: 700;
}

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

.standard-item {
  background: #fff;
  min-height: 230px;
}

.standard-item h3 {
  margin-top: 0;
}

.faq {
  background: var(--ink);
  color: white;
}

.faq .section-heading p,
.faq-item p {
  color: rgba(255, 255, 255, 0.68);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.faq-item {
  min-height: 240px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.faq-item h3 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.05;
}

.blog-preview {
  background: var(--off);
}

.blog-grid,
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.blog-list {
  grid-template-columns: repeat(2, 1fr);
  padding: clamp(60px, 8vw, 110px) clamp(18px, 5vw, 80px);
  background: var(--off);
}

.blog-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 180, 0, 0.72);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.1);
}

.blog-card span {
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.blog-card h2,
.blog-card h3 {
  margin: 32px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 0.98;
}

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

.blog-more {
  margin-top: 24px;
}

.blog-more .btn-dark {
  width: auto;
}

.blog-hero {
  padding: clamp(74px, 10vw, 140px) clamp(18px, 5vw, 80px);
  background:
    linear-gradient(115deg, var(--yellow) 0 46%, #151515 46% 100%);
}

.blog-hero-copy {
  max-width: 680px;
}

.blog-hero h1,
.article h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.92;
}

.blog-hero p {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(17, 17, 17, 0.78);
  font-size: 19px;
  font-weight: 600;
}

.article {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 116px) 18px;
}

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

.article h1 {
  max-width: 860px;
}

.article-lead {
  margin: 26px 0 44px;
  color: var(--steel);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
}

.article h2 {
  margin: 38px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.article p {
  color: var(--muted);
  font-size: 18px;
}

.article-cta {
  display: grid;
  gap: 18px;
  margin-top: 44px;
  padding: 28px;
  border-radius: 8px;
  background: var(--yellow);
}

.article-cta h2 {
  margin: 0;
}

.article-cta .btn-dark {
  width: fit-content;
}

.references {
  background:
    linear-gradient(135deg, rgba(245, 180, 0, 0.96) 0 34%, transparent 34%),
    var(--ink);
}

.reference-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 14px;
  min-height: 360px;
}

.reference-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.reference-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.74) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 54%);
  pointer-events: none;
}

.reference-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.reference-card:hover img {
  transform: scale(1.04);
}

.reference-card span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 1;
  color: white;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
}

.contact {
  background: var(--off);
}

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

.social-links,
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links {
  margin-top: 26px;
}

.social-links a,
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid rgba(17, 17, 17, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.social-links a {
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 900;
}

.social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 999px;
}

.social-links a:hover,
.social-icons a:hover {
  transform: translateY(-2px);
  background: var(--yellow-soft);
  box-shadow: 0 14px 30px rgba(245, 180, 0, 0.24);
}

.social-links svg,
.social-icons svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  flex: 0 0 auto;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 80px);
  color: white;
  background: #050505;
  font-weight: 700;
}

.footer img {
  width: 118px;
  height: 70px;
  object-fit: contain;
}

.footer a {
  color: var(--yellow-soft);
}

.footer .social-icons a {
  color: var(--ink);
}

.product-page-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 80px);
  background:
    linear-gradient(90deg, var(--yellow) 0 46%, #151515 46% 100%);
  color: var(--ink);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px clamp(18px, 5vw, 80px);
  color: rgba(255, 255, 255, 0.76);
  background: #151515;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--yellow-soft);
}

.product-page-copy {
  align-self: center;
  max-width: 480px;
}

.product-page-copy h1 {
  max-width: 470px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 5.1vw, 74px);
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

.product-page-copy p {
  max-width: 390px;
  margin: 24px 0 0;
  color: rgba(17, 17, 17, 0.78);
  font-size: 19px;
  font-weight: 600;
}

.product-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.product-page-actions .btn-dark,
.product-cta-band .btn-dark {
  width: auto;
}

.product-page-actions .btn-ghost {
  background: rgba(17, 17, 17, 0.82);
}

.product-page-media {
  align-self: center;
  display: grid;
  gap: 14px;
}

.product-gallery {
  aspect-ratio: 16 / 10;
  min-height: 360px;
}

.product-gallery .gallery-controls {
  top: auto;
  bottom: 18px;
}

.product-gallery-caption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.product-visual {
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.7)),
    repeating-linear-gradient(90deg, #3a3a38 0 14px, #151515 14px 24px);
  box-shadow: var(--shadow);
}

.product-visual.visual-gate {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.72)),
    repeating-linear-gradient(0deg, #303030 0 18px, #121212 18px 30px);
}

.product-visual.visual-wire {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.66)),
    linear-gradient(45deg, transparent 46%, rgba(245, 180, 0, 0.38) 47% 53%, transparent 54%),
    repeating-linear-gradient(90deg, #3c4648 0 2px, #111 2px 18px);
}

.product-visual.visual-cnc {
  background:
    radial-gradient(circle at 20% 30%, transparent 0 18px, #262626 19px 32px, transparent 33px),
    radial-gradient(circle at 68% 60%, transparent 0 24px, #353535 25px 42px, transparent 43px),
    linear-gradient(135deg, #202020, #070707);
}

.product-visual.visual-grass {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.68)),
    repeating-linear-gradient(90deg, #263523 0 10px, #111 10px 18px);
}

.product-detail {
  padding: clamp(70px, 8vw, 116px) clamp(18px, 5vw, 80px);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
}

.product-detail h2,
.related-products h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.95;
}

.product-detail p {
  color: var(--muted);
  font-size: 18px;
}

.spec-list,
.benefit-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-list li,
.benefit-list li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
}

.benefit-list li strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
}

.benefit-list li span {
  color: var(--muted);
  font-weight: 500;
}

.related-products {
  padding: 0 clamp(18px, 5vw, 80px) clamp(76px, 8vw, 120px);
}

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

.related-grid a {
  min-height: 120px;
  padding: 18px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.related-grid a:hover {
  transform: translateY(-4px);
  background: var(--yellow);
  color: var(--ink);
}

.product-cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin: 0 clamp(18px, 5vw, 80px) clamp(76px, 8vw, 120px);
  padding: clamp(24px, 4vw, 44px);
  border-radius: 8px;
  background: var(--yellow);
}

.product-cta-band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.96;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  animation: riseIn 420ms ease both;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatImage {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes riseIn {
  from {
    opacity: 0.78;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-grid;
    gap: 6px;
    width: 46px;
    height: 46px;
    place-content: center;
    background: var(--yellow);
    border: 0;
    border-radius: 7px;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--ink);
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .main-nav.is-open {
    position: absolute;
    top: 76px;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 0;
    padding: 12px;
    background: #090909;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
  }

  .main-nav.is-open a {
    padding: 14px 10px;
  }

  .hero,
  .intro,
  .calculator,
  .contact,
  .seo-content,
  .product-page-hero,
  .product-detail-grid,
  .product-cta-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 24px;
    padding-top: 34px;
    padding-bottom: 34px;
    background:
      radial-gradient(circle at 76% 22%, rgba(245, 180, 0, 0.2), transparent 34%),
      #141414;
  }

  .hero::after {
    inset: 18px 18px auto 18px;
    width: auto;
    height: min(48%, 560px);
  }

  .product-page-hero {
    background:
      linear-gradient(180deg, var(--yellow) 0 56%, #151515 56% 100%);
  }

  .hero::before {
    background-size: 54px 54px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 62%);
  }

  .hero-media {
    margin-top: 20px;
    transform: none;
    justify-self: stretch;
    width: 100%;
  }

  .hero-spec {
    bottom: clamp(86px, 10vw, 110px);
  }

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

  .section-heading {
    display: grid;
  }

  .steps,
  .standard-grid,
  .blog-grid,
  .blog-list,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 680px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand {
    width: 96px;
    height: 52px;
  }

  .brand img {
    width: 84px;
    height: 42px;
  }

  .hero,
  .intro,
  .products,
  .catalog-prices,
  .seo-content,
  .process,
  .calculator,
  .standards,
  .faq,
  .blog-preview,
  .references,
  .contact {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 0.98;
  }

  .hero-copy {
    padding: 36px 16px 18px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .quote-grid,
  .quote-options,
  .quote-breakdown {
    grid-template-columns: 1fr;
  }

  .estimate {
    display: grid;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .hero-metrics span {
    min-height: 46px;
  }

  .hero-gallery {
    aspect-ratio: 4 / 3;
  }

  .hero-thumbs {
    display: none;
  }

  .hero-spec {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 12px;
  }

  .intro-mark {
    min-height: 200px;
  }

  .steps,
  .product-rail,
  .standard-grid,
  .faq-grid,
  .blog-grid,
  .blog-list,
  .reference-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    background:
      linear-gradient(180deg, var(--yellow) 0 66%, #151515 66% 100%);
  }

  .product-page-hero {
    background:
      linear-gradient(180deg, var(--yellow) 0 54%, #151515 54% 100%);
  }

  .product-page-actions {
    display: grid;
  }

  .product-visual {
    min-height: 260px;
  }

  .reference-grid {
    min-height: auto;
  }

  .reference-card {
    min-height: 220px;
  }

  .footer {
    display: grid;
  }

  .social-links,
  .social-icons {
    width: 100%;
  }

  .social-links a {
    flex: 1 1 150px;
  }
}

