:root {
  --ink: #142023;
  --muted: #5d6b70;
  --paper: #f6f8f7;
  --panel: #ffffff;
  --teal: #08746e;
  --teal-dark: #064f4c;
  --gold: #c98b2b;
  --line: rgba(20, 32, 35, 0.12);
  --shadow: 0 18px 42px rgba(20, 32, 35, 0.11);
  --soft-shadow: 0 10px 26px rgba(20, 32, 35, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 16px;
  left: clamp(14px, 4vw, 44px);
  right: clamp(14px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 18, 20, 0.74);
  box-shadow: 0 16px 38px rgba(7, 18, 20, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: var(--teal);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.78);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a:not(.nav-call) {
  color: rgba(255, 255, 255, 0.82);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
}

.nav-call {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  padding: 120px clamp(18px, 5vw, 64px) 96px;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(4, 14, 17, 0.86) 0%, rgba(4, 14, 17, 0.58) 42%, rgba(4, 14, 17, 0.12) 78%),
    url("https://images.unsplash.com/photo-1645005049035-c35644b627ba?auto=format&fit=crop&fm=jpg&q=78&w=2400");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16%;
  background: linear-gradient(180deg, rgba(246, 248, 247, 0), var(--paper));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

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

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 7vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover,
.floating-whatsapp:hover,
.gallery-upload:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 10px 22px rgba(8, 116, 110, 0.24);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.1);
}

.button.whatsapp {
  color: #fff;
  background: #1f8f52;
}

.button.outline {
  color: var(--teal-dark);
  border-color: rgba(13, 118, 110, 0.32);
  background: #fff;
}

.inline-link {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.trust-strip,
.section,
.coverage,
.quote-band,
.site-footer {
  padding-left: clamp(18px, 5vw, 64px);
  padding-right: clamp(18px, 5vw, 64px);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1180px;
  margin: -46px auto 0;
  position: relative;
  z-index: 2;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.trust-strip div {
  padding: 26px;
  background: var(--panel);
}

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

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 4px;
  color: var(--muted);
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 96px;
  padding-bottom: 82px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.services-image {
  position: relative;
  margin: 0 0 30px;
  overflow: hidden;
  border-radius: 8px;
  background: #172125;
  aspect-ratio: 16 / 6.5;
  box-shadow: var(--shadow);
}

.services-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-image figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  width: fit-content;
  max-width: min(620px, calc(100% - 36px));
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(7, 18, 20, 0.76);
  font-size: 0.94rem;
  font-weight: 700;
}

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

.service-card {
  min-height: 260px;
  padding: 14px 14px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.service-card:nth-child(even) {
  background: #fff;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.service-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  background: #edf3f0;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 32px;
  margin: 0 8px 16px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(211, 154, 53, 0.22);
  font-size: 0.82rem;
  font-weight: 800;
}

.service-card p,
.coverage p,
.quote-band p {
  color: var(--muted);
}

.service-card h3,
.service-card p {
  padding-left: 8px;
  padding-right: 8px;
}

.gallery-section {
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.gallery-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.gallery-intro p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.gallery-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(8, 116, 110, 0.18);
}

.gallery-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

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

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.coverage {
  display: block;
  padding-top: 82px;
  padding-bottom: 82px;
  background:
    linear-gradient(90deg, rgba(20, 32, 35, 0.95), rgba(20, 32, 35, 0.82)),
    url("assets/electric-fence-installation.png");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.coverage p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
}

.quote-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 540px);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  padding-top: 92px;
  padding-bottom: 96px;
  background: #fff;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

label {
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfcfc;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(8, 116, 110, 0.55);
  outline: 3px solid rgba(8, 116, 110, 0.12);
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  background: #0f1719;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.floating-whatsapp {
  position: fixed;
  right: clamp(18px, 4vw, 34px);
  bottom: clamp(18px, 4vw, 34px);
  z-index: 20;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 12px 30px rgba(23, 33, 37, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.floating-whatsapp svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.floating-whatsapp:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.page-hero {
  display: grid;
  align-items: end;
  min-height: 64vh;
  padding: 130px clamp(18px, 5vw, 64px) 72px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(4, 14, 17, 0.88), rgba(4, 14, 17, 0.54)),
    url("https://images.pexels.com/photos/29866272/pexels-photo-29866272.jpeg?auto=compress&cs=tinysrgb&w=1800");
  background-position: center;
  background-size: cover;
}

.page-hero-content {
  max-width: 860px;
}

.page-hero p:not(.eyebrow) {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.about-layout,
.about-values,
.about-cta {
  padding-left: clamp(18px, 5vw, 64px);
  padding-right: clamp(18px, 5vw, 64px);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 92px;
  padding-bottom: 82px;
}

.about-copy p:not(.eyebrow) {
  color: var(--muted);
}

.about-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 86px;
}

.about-values article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.about-values span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 32px;
  margin-bottom: 22px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(211, 154, 53, 0.22);
  font-size: 0.82rem;
  font-weight: 800;
}

.about-values p {
  color: var(--muted);
}

.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 64px;
  padding-bottom: 64px;
  background: #eef4f2;
}

.about-cta p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 1040px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-card:last-child {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    align-items: flex-start;
    padding: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 0.86rem;
  }

  .nav-call {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-top: 112px;
    padding-bottom: 86px;
    background-position: 62% center;
  }

  .trust-strip,
  .coverage,
  .quote-band,
  .about-layout,
  .about-cta {
    grid-template-columns: 1fr;
  }

  .about-cta {
    display: grid;
  }

  .trust-strip {
    margin-top: 0;
    border-radius: 0;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 54px;
  }

  .services-image {
    aspect-ratio: 4 / 3;
  }

  .services-image figcaption {
    position: static;
    max-width: none;
    width: auto;
    border-radius: 0;
  }

  .service-grid,
  .gallery-grid,
  .about-values {
    grid-template-columns: 1fr;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }

  .gallery-intro {
    display: grid;
    align-items: start;
  }

  .service-card,
  .service-card:last-child {
    grid-column: auto;
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav-links {
    width: 100%;
  }

  h1 {
    font-size: 3rem;
  }

  .button {
    width: 100%;
  }
}
