/* U-Hire (Equipment & Sales) Limited — static rebuild of the Neve/WordPress theme */
:root {
  --text: #23282d;
  --blue: #0043e8;
  --blue-dark: #062567;
  --navy: #0a1e68;
  --light-blue: #e8f2ff;
  --grey-bg: #f4f4f4;
  --white: #ffffff;
  --container: 1170px;
  --font-body: "Open Sans", Arial, Helvetica, sans-serif;
  --font-head: "Noto Sans", Arial, Helvetica, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}

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

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.4;
  text-transform: capitalize;
  margin: 0 0 20px;
}
h1 { font-size: 46px; font-weight: 700; line-height: 1.3; }
h2 { font-size: 40px; }
h3 { font-size: 30px; }

p { margin: 0 0 20px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  position: relative;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo { padding: 10px 0; }
.site-logo img { max-width: 143px; }

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}
.primary-nav a {
  position: relative;
  display: inline-block;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  padding: 4px 0;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width .25s ease;
}
.primary-nav a:hover { color: var(--blue); }
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
}

/* Desktop shows only Contact, as the original did; the service links live in the hero */
.primary-nav .nav-service { display: none; }

@media (min-width: 576px) {
  .site-logo img { max-width: 274px; }
  h1 { font-size: 55px; }
  h2 { font-size: 42px; }
}
@media (min-width: 960px) {
  .site-logo img { max-width: 350px; }
  h1 { font-size: 68px; }
  h2 { font-size: 44px; }
}

@media (max-width: 959px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .12);
    display: none;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 8px 15px 16px; }
  .primary-nav li { border-bottom: 1px solid #eee; }
  .primary-nav a { padding: 12px 0; width: 100%; }
  .primary-nav .nav-service { display: list-item; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 100px 20px;
  background-color: #3a3f44;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero.has-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: .5;
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  text-align: center;
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}
.btn-group + .btn-group { margin-top: 0; }
.services { margin-bottom: 40px; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  color: var(--white);
  background: var(--text);
  border: 2px solid var(--text);
  border-radius: 4px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover,
.btn:focus-visible {
  color: var(--white);
  background: var(--blue-dark);
  border-color: var(--white);
}
.btn.is-current {
  color: var(--blue);
  background: var(--white);
  border-color: var(--white);
}
.btn.is-current:hover { color: var(--white); background: var(--blue-dark); }

@media (max-width: 960px) {
  .hero { padding: 60px 20px; }
}
@media (max-width: 600px) {
  .hero { padding: 20px 0; min-height: 85vh; }
  .btn-group { gap: 12px; }
  .services .btn { flex: 1 1 calc(50% - 12px); max-width: 220px; padding: 13px 12px; }
}

/* ---------- Content ---------- */
.content { padding: 100px 0 40px; }
.content h2 { margin-top: 40px; }
.content h2:first-child { margin-top: 0; }
.content p { font-size: 16px; }

/* ---------- Gallery ---------- */
.gallery-search {
  display: block;
  margin: 10px auto 30px;
  width: 100%;
  max-width: 260px;
  padding: 10px 14px;
  font: inherit;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 3px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.gallery a {
  display: block;
  color: var(--text);
  text-decoration: none;
}
.gallery .thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--white);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery.photos img { object-fit: cover; }
.gallery a:hover .thumb,
.gallery a:focus-visible .thumb {
  transform: scale(1.05);
  box-shadow: 0 10px 10px -10px rgba(0, 0, 0, .5);
}
.gallery .caption {
  display: block;
  padding: 10px 4px 0;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.gallery li[hidden] { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 50px 60px;
  background: rgba(0, 0, 0, .9);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
}
.lightbox .lb-title {
  color: var(--white);
  margin-top: 14px;
  font-weight: 600;
  text-align: center;
}
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 10px 14px;
}
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 50px 10px; } }

/* ---------- Forms ---------- */
.enquiry-form {
  max-width: 560px;
  margin-bottom: 60px;
}
.enquiry-form label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}
.enquiry-form .req { color: #d63637; }
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  padding: 8px 10px;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1px solid #ccc;
  border-radius: 2px;
}
.enquiry-form textarea { min-height: 160px; resize: vertical; }
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.enquiry-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.enquiry-form .row-2 small { display: block; margin-top: -16px; margin-bottom: 20px; font-size: 13px; color: #666; }
.enquiry-form button {
  padding: 12px 30px;
  font: inherit;
  font-weight: 600;
  color: var(--white);
  background: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 4px;
  cursor: pointer;
}
.enquiry-form button:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.form-note { font-size: 14px; color: #555; margin-top: 14px; }

/* ---------- Contact page ---------- */
.page-banner {
  padding: 75px 20px 70px;
  text-align: center;
  color: var(--white);
  background: var(--navy) center center / cover no-repeat;
  position: relative;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 104, .55);
}
.page-banner > * { position: relative; }
.page-banner h1 { color: var(--white); margin-bottom: 10px; }
.page-banner p { font-size: 21px; margin: 0; }

.contact-wrap {
  background: var(--light-blue);
  padding: 65px 20px 70px;
}
.contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 40% 60%;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(10, 30, 104, .08);
}
.contact-card {
  background: var(--navy);
  color: var(--white);
  padding: 100px 40px 90px;
}
.contact-card h3 { color: var(--white); margin-bottom: 24px; }
.contact-card ul { list-style: none; margin: 0; padding: 0; }
.contact-card li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.contact-card svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; fill: #8fb2ff; }
.contact-card a { color: var(--white); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; color: var(--white); }
.contact-form-col { padding: 50px 40px; }
.contact-form-col .enquiry-form { margin-bottom: 0; }
.map-embed {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 50px 24px; }
  .contact-form-col { padding: 40px 24px; }
  .contact-wrap { padding: 20px 0 60px; }
  .enquiry-form .row-2 { grid-template-columns: 1fr; gap: 0; }
  .enquiry-form .row-2 small { margin-top: -16px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 28px 0;
  text-align: center;
  font-weight: 500;
}
.site-footer p { margin: 0 0 6px; }
.site-footer p:last-child { margin: 0; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.site-footer .small { font-size: 13px; opacity: .8; }

/* ---------- 404 ---------- */
.not-found { padding: 120px 0; text-align: center; }
