/*
Theme Name: TPM Fencing
Theme URI: https://tpmfencing.com.au/
Author: Jia Design
Author URI: https://jiadesign.com.au/
Description: Custom WordPress theme for TPM Fencing — fencing and outdoor improvements.
Version: 1.0.7
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: tpm-fencing
Tags: custom-menu, custom-logo
*/

:root {
  --brown: #602502;
  --brown-mid: #8b5a3c;
  --brown-deep: #8f5a44;
  --brown-card: #97522b;
  --brown-dark: #7f3e12;
  --tan: #d38d5c;
  --tan-light: #ecc9af;
  --cream: #ffeadd;
  --cream-bg: #f1e7df;
  --orange: #de5200;
  --border: #d4905f;
  --muted: #8f857f;
  --white: #ffffff;
  --text: #602502;
  --font: "Lora", Georgia, "Times New Roman", serif;
  --font-min: 14px;
  --max: 1440px;
  --header-h: 67px;
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  background: var(--white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Small text */
small,
.hint,
.form-upload__name,
.form-field .hint {
  font-size: var(--font-min);
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--brown);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 228px;
  height: 47px;
  padding: 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.btn--brown {
  background: var(--brown);
  color: var(--white);
}

.btn--orange {
  background: var(--orange);
  color: var(--white);
}

.btn--wide {
  min-width: 304px;
}

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(90deg, #8b5a3c 0%, rgba(139, 90, 60, 0.1) 83.654%);
}

.site-header--home {
  background: transparent;
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 44px;
  gap: 24px;
}

.site-logo img {
  width: 51px;
  height: 44px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 5px 40px;
  background: rgba(96, 37, 2, 0.2);
  border-radius: var(--radius);
  min-height: 30px;
}

.site-nav__list a {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list a[aria-current="page"] {
  opacity: 0.85;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 11px;
  transition: transform 0.2s ease;
}

.nav-toggle span {
  top: 21px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
}

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

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

.site-header.is-open .nav-toggle span {
  background: transparent;
}

.site-header.is-open .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  min-height: 754px;
  display: flex;
  align-items: flex-start;
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  position: absolute;
  left: 0;
  top: 0;
  width: min(736px, 100%);
  height: 706px;
  background: linear-gradient(90deg, rgba(79, 20, 0, 0.4), rgba(182, 126, 78, 0.4));
  filter: blur(40px);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 180px 84px 80px;
}

.hero__title {
  margin: 0 0 20px;
  font-size: 60px;
  font-weight: 500;
  line-height: 1.15;
  max-width: 520px;
}

.hero__text {
  margin: 0 0 40px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  max-width: 592px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

/* ---------- Page Hero (inner) ---------- */
.page-hero {
  position: relative;
  min-height: 810px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__box {
  position: relative;
  z-index: 1;
  width: min(917px, calc(100% - 48px));
  min-height: 239px;
  padding: 50px 40px;
  background: rgba(96, 37, 2, 0.8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.page-hero__title {
  margin: 0;
  font-size: 60px;
  font-weight: 500;
}

.page-hero__text {
  margin: 0;
  font-size: 20px;
  max-width: 592px;
  line-height: 1.4;
}

/* ---------- About + Services (home) ---------- */
.about-services {
  position: relative;
  padding: 96px 24px 90px;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.about-services__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.about-services__overlay {
  position: absolute;
  inset: 0;
  background: rgba(65, 25, 8, 0.6);
}

.about-strip__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto 90px;
}

.about-strip__title {
  margin: 0 0 24px;
  font-size: 50px;
  font-weight: 500;
}

.about-strip__text {
  margin: 0 auto 40px;
  font-size: 20px;
  line-height: 1.45;
  max-width: 796px;
}

.services-home__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}

.services-home__title {
  margin: 0 0 12px;
  font-size: 50px;
  font-weight: 500;
}

.services-home__sub {
  margin: 0 0 48px;
  font-size: 20px;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-height: 159px;
  padding: 22px 40px;
  border-radius: var(--radius);
  text-align: left;
}

.service-card--tan {
  background: var(--tan);
  color: var(--brown);
}

.service-card--mid {
  background: var(--brown-card);
  color: var(--white);
}

.service-card--dark {
  background: var(--brown-dark);
  color: var(--white);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 40px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.service-card__name {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  text-transform: capitalize;
  line-height: 1.2;
}

/* ---------- Why choose ---------- */
.why {
  display: grid;
  grid-template-columns: 640px 1fr;
  align-items: stretch;
  background: var(--white);
}

.why__media {
  min-height: 636px;
  overflow: hidden;
  border-top-right-radius: 100px;
}

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

.why__content {
  padding: 48px 72px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why__title {
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 500;
  color: var(--brown);
}

.why__sub {
  margin: 0 0 40px;
  font-size: 20px;
  color: var(--brown);
}

.why__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 36px;
}

.why__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(96, 37, 2, 0.25);
}

.why__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.why__num {
  font-size: 24px;
  color: var(--brown);
}

.why__item h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  color: var(--brown);
}

.why__item p {
  margin: 0;
  font-size: 18px;
  color: var(--brown);
  line-height: 1.4;
  max-width: 530px;
}

/* ---------- Work gallery ---------- */
.work {
  padding: 80px 84px 90px;
  text-align: center;
}

.work__title {
  margin: 0 0 12px;
  font-size: 40px;
  font-weight: 500;
  color: var(--brown);
}

.work__sub {
  margin: 0 0 48px;
  font-size: 20px;
  color: var(--brown);
}

.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 28px;
  max-width: 1272px;
  margin: 0 auto;
}

.work__item {
  overflow: hidden;
  background: #d9d9d9;
  min-height: 315px;
}

.work__item img {
  width: 100%;
  height: 315px;
  object-fit: cover;
}

.work__item--wide {
  grid-column: 1 / -1;
}

.work__item--wide img {
  height: 315px;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: 560px 1fr;
  min-height: 345px;
  background: var(--tan-light);
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
  overflow: hidden;
  margin-top: 20px;
}

.cta-band__media {
  position: relative;
  border-top-left-radius: 100px;
  overflow: hidden;
  min-height: 345px;
}

.cta-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 56px;
  gap: 16px;
}

.cta-band__title {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  color: var(--brown);
  max-width: 700px;
}

.cta-band__text {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--brown);
  max-width: 740px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-deep);
  color: var(--white);
  padding: 72px 84px 80px;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.site-footer__brand{
  text-align: center;
}
.site-footer__logo img {
  width: 150px;
  max-width: 100%;
  height: auto;
}

.site-footer__col-title {
  margin: 0 0 40px;
  font-size: 20px;
  font-weight: 600;
}

.site-footer__pages {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.site-footer__pages a {
  font-size: var(--font-min);
  font-weight: 500;
}

.site-footer__pages a:hover {
  text-decoration: underline;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.site-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--font-min);
  font-weight: 500;
}

.site-footer__contact-item img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- About page ---------- */
.about-split {
  display: grid;
  grid-template-columns: 593px 1fr;
  min-height: 687px;
}

.about-split__copy {
  background: var(--brown-mid);
  color: var(--white);
  padding: 100px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-split__copy h2 {
  margin: 0 0 48px;
  font-size: 50px;
  font-weight: 500;
  line-height: 1.15;
}

.about-split__copy p {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  max-width: 324px;
}

.about-split__media img {
  width: 100%;
  height: 100%;
  min-height: 687px;
  object-fit: cover;
}

.about-needs {
  padding: 90px 24px 60px;
  text-align: center;
}

.about-needs h2 {
  margin: 0 0 18px;
  font-size: 40px;
  font-weight: 500;
  color: var(--brown);
}

.about-needs > p {
  margin: 0 auto 48px;
  font-size: 20px;
  color: var(--brown);
  max-width: 978px;
  line-height: 1.4;
}

.about-needs__img {
  max-width: 1161px;
  margin: 0 auto;
}

.about-needs__img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-quality {
  padding: 60px 24px 80px;
  text-align: center;
}

.about-quality h2 {
  margin: 0 0 18px;
  font-size: 40px;
  font-weight: 500;
  color: var(--brown);
}

.about-quality > p {
  margin: 0 auto 48px;
  font-size: 20px;
  color: var(--brown);
  max-width: 796px;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.quality-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.quality-item__icon {
  width: 192px;
  height: 192px;
  border-radius: 50%;
  overflow: hidden; 
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quality-item__icon img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.quality-item h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--brown);
}

.quality-item p {
  margin: 0;
  font-size: var(--font-min);
  color: var(--brown);
  max-width: 257px;
  line-height: 1.35;
}

/* ---------- Services page ---------- */
.svc-section {
  padding: 70px 82px 40px;
}

.svc-section__title {
  margin: 0 0 40px;
  font-size: 40px;
  font-weight: 500;
  color: var(--brown);
  text-align: center;
}

.svc-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;
}

.svc-card-block {
  position: relative;
}

.svc-card-block__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 315px;
}

.svc-card-block__media img {
  width: 100%;
  height: 315px;
  object-fit: cover;
}

.svc-card-block__bar {
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
  height: 315px;
  background: var(--brown);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.svc-card-block__num {
  position: absolute;
  left: 0;
  bottom: -10px;
  font-size: 100px;
  line-height: 1;
  color: var(--white);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.svc-card-block__body {
  padding-top: 28px;
}

.svc-card-block__body h3 {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 600;
  color: var(--brown);
}

.svc-card-block__body ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.svc-card-block__body li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 18px;
  color: var(--brown);
  line-height: 1.35;
  text-align: left;
}

.svc-card-block__body li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 6px;
  flex-shrink: 0;
  background: var(--brown);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.svc-gates {
  background: var(--cream-bg);
  display: grid;
  grid-template-columns: 816px 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.svc-gates__media {
  min-height: 706px;
  border-top-right-radius: 100px;
  overflow: hidden;
}

.svc-gates__media img {
  width: 100%;
  height: 100%;
  min-height: 706px;
  object-fit: cover;
}

.svc-gates__content {
  padding: 60px 72px 60px 24px;
}

.svc-gates__content h2 {
  margin: 0 0 18px;
  font-size: 40px;
  font-weight: 500;
  color: var(--brown);
  position: relative;
  display: inline-block;
}

.svc-gates__content h2::after {
  content: "";
  display: block;
  width: 100%;
  max-width: 468px;
  height: 1px;
  margin-top: 18px;
  background: rgba(96, 37, 2, 0.35);
}

.svc-gates__content p {
  margin: 0 0 24px;
  font-size: 20px;
  color: var(--brown);
  line-height: 1.45;
  max-width: 484px;
}

.svc-gates__divider {
  width: 100%;
  display: block;
  margin-top: -60px;
  position: relative;
  z-index: 1;
}

.svc-retaining {
  padding: 80px 82px 40px;
  display: grid;
  grid-template-columns: 1fr 760px;
  gap: 40px;
  align-items: center;
}

.svc-retaining h2 {
  margin: 0 0 24px;
  font-size: 40px;
  font-weight: 500;
  color: var(--brown);
}

.svc-retaining p {
  margin: 0;
  font-size: 20px;
  color: var(--brown);
  line-height: 1.45;
  max-width: 523px;
}

.svc-retaining__imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.svc-retaining__imgs img {
  width: 100%;
  height: 315px;
  object-fit: cover;
}

.svc-repairs {
  padding: 60px 82px 80px;
  text-align: center;
  position: relative;
}

.svc-repairs h2 {
  margin: 0 0 24px;
  font-size: 40px;
  font-weight: 500;
  color: var(--brown);
}

.svc-repairs > p {
  margin: 0 auto 40px;
  font-size: 20px;
  color: var(--brown);
  max-width: 881px;
  line-height: 1.4;
}

.svc-repairs__img {
  max-width: 1168px;
  margin: 0 auto;
}

.svc-repairs__img img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* ---------- Contact form ---------- */
.contact-page {
  position: relative;
  padding: 120px 24px 80px;
  min-height: 100vh;
}

.contact-page__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.contact-card {
  position: relative;
  z-index: 1;
  max-width: 1303px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 4px 7.6px rgba(0, 0, 0, 0.25);
  padding: 72px 68px 64px;
}

.contact-card__title {
  margin: 0 0 16px;
  font-size: 60px;
  font-weight: 500;
  color: var(--brown);
  text-align: center;
}

.contact-card__sub {
  margin: 0 0 56px;
  font-size: 20px;
  color: var(--brown);
  text-align: center;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 46px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 26px;
  font-weight: 600;
  color: var(--brown);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 74px;
  padding: 0 20px;
  border: 1px solid var(--brown);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font);
  font-size: 20px;
  color: var(--brown);
  appearance: none;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23602502' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 22px center;
  padding-right: 48px;
}

.form-field textarea {
  min-height: 285px;
  padding: 24px 20px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field .hint {
  font-size: var(--font-min);
  color: var(--muted);
  margin-top: -4px;
}

.form-upload {
  border: 1px solid var(--brown);
  border-radius: var(--radius);
  min-height: 285px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.form-upload__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 219px;
  height: 48px;
  padding: 0 20px;
  background: #dedede;
  border-radius: var(--radius);
  font-size: 26px;
  font-weight: 600;
  color: var(--brown);
  cursor: pointer;
  border: 0;
  font-family: var(--font);
}

.form-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.form-upload__name {
  padding: 20px;
  font-size: var(--font-min);
  color: var(--muted);
}

.quote-form__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-top: 24px;
}

.form-notice {
  grid-column: 1 / -1;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: #e8f5e9;
  color: #1b5e20;
  font-size: var(--font-min);
}

.form-notice--error {
  background: #fdecea;
  color: #8a1f11;
}

/* ---------- Generic ---------- */
.site-main {
  overflow-x: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .why {
    grid-template-columns: 1fr;
  }

  .why__media {
    border-top-right-radius: 60px;
    max-height: 480px;
  }

  .about-split,
  .svc-gates,
  .svc-retaining,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-band__media {
    border-top-left-radius: 60px;
    min-height: 240px;
  }

  .services-grid,
  .quality-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    padding: 0 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(96, 37, 2, 0.96);
    padding: 20px;
  }

  .site-header.is-open .site-nav {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: transparent;
    padding: 0;
  }

  .hero__content {
    padding: 140px 24px 60px;
  }

  .hero__title,
  .page-hero__title,
  .contact-card__title {
    font-size: 32px;
  }

  .about-strip__title,
  .services-home__title,
  .about-split__copy h2 {
    font-size: 30px;
  }

  .contact-card__sub,
  .page-hero__text,
  .hero__text,
  .about-strip__text,
  .services-home__sub {
    font-size: 16px;
  }

  .form-field label {
    font-size: 18px;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px;
    min-height: 52px;
  }

  .form-upload__btn {
    font-size: 18px;
  }

  .why__title,
  .work__title,
  .cta-band__title,
  .about-needs h2,
  .about-quality h2,
  .svc-section__title,
  .svc-gates__content h2,
  .svc-retaining h2,
  .svc-repairs h2 {
    font-size: 28px;
  }

  .why__sub,
  .work__sub,
  .cta-band__text,
  .why__item p,
  .svc-gates__content p,
  .svc-retaining p,
  .svc-repairs > p,
  .about-needs > p,
  .about-quality > p {
    font-size: 16px;
  }

  .btn {
    font-size: 16px;
    min-width: 0;
  }

  .work {
    padding: 60px 24px;
  }

  .work__grid,
  .svc-pair,
  .quote-form,
  .svc-retaining__imgs {
    grid-template-columns: 1fr;
  }

  .svc-section,
  .svc-retaining,
  .svc-repairs {
    padding-left: 24px;
    padding-right: 24px;
  }

  .svc-gates__content {
    padding: 40px 24px;
  }

  .contact-card {
    padding: 48px 24px;
  }

  .site-footer {
    padding: 56px 24px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .services-grid,
  .quality-grid {
    grid-template-columns: 1fr;
  }

  .hero__title,
  .page-hero__title,
  .contact-card__title {
    font-size: 26px;
  }

  .about-strip__title,
  .services-home__title,
  .about-split__copy h2 {
    font-size: 24px;
  }

  .why__title,
  .work__title,
  .cta-band__title,
  .about-needs h2,
  .about-quality h2,
  .svc-section__title,
  .svc-gates__content h2,
  .svc-retaining h2,
  .svc-repairs h2 {
    font-size: 22px;
  }

  .contact-card__sub,
  .page-hero__text,
  .hero__text,
  .about-strip__text,
  .services-home__sub,
  .why__sub,
  .work__sub,
  .cta-band__text,
  .why__item p,
  .svc-gates__content p,
  .svc-retaining p,
  .svc-repairs > p,
  .about-needs > p,
  .about-quality > p,
  .about-split__copy p,
  .service-card__name,
  .why__item h3,
  .quality-item h3,
  .svc-card-block__body h3,
  .site-footer__col-title {
    font-size: 15px;
  }

  .form-field label {
    font-size: 16px;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 14px;
    min-height: 48px;
    padding: 0 14px;
  }

  .form-field textarea {
    padding: 14px;
  }

  .form-upload__btn {
    font-size: 16px;
    min-width: 160px;
    height: 42px;
  }

  .btn {
    width: 100%;
    font-size: 15px;
    height: 44px;
  }

  .site-nav__list a,
  .site-footer__pages a,
  .site-footer__contact-item,
  .quality-item p,
  .form-field .hint,
  .form-upload__name,
  .form-notice {
    font-size: var(--font-min);
  }

  .svc-card-block__num {
    font-size: 56px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .page-hero {
    min-height: 420px;
  }

  .page-hero__box {
    padding: 28px 20px;
    min-height: 0;
  }

  .contact-card {
    padding: 32px 16px;
  }

  .contact-page {
    padding: 88px 12px 48px;
  }
  .svc-gates__media img{
    height: 200px;  
    min-height: 200px;
  }
  .svc-gates__media{
    min-height: 200px;
  }
  .hero{
    min-height: 420px;
  }
  .why__media{
    min-height: 380px;
  }
}
