/* =============================================================
   Wetherill Park Metal Fabrications — hand-written static clone
   Design tokens (retheme by editing this :root block)
   ============================================================= */
:root {
  --red-brand: #db0c26;
  --red-tile: #fd0002;
  --red-dark: #b70a1f;
  --yellow-accent: #f8f400;
  --gray-band: #a9a9a9;
  --gray-light: #eaeaea;
  --gray-line: #cfcfcf;
  --text-body: #2d2d2d;
  --text-muted: #555;
  --white: #ffffff;
  --black: #000;

  --font-body: "Roboto-Regular", "Roboto", Arial, sans-serif;
  --font-bold: "Roboto-Bold", "Roboto", Arial, sans-serif;
  --font-impact: Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;

  --wrap: 1130px;
  --topbar-h: 30px;
  --header-h: 100px;
  --nav-h: 46px;
}

/* =============================================================
   Fonts — pull Roboto from Google (regular + bold). Aliases below
   mirror the source's family names so selector-per-selector copies
   from the source CSS still resolve to something sensible.
   ============================================================= */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

@font-face {
  font-family: "Roboto-Regular";
  src: local("Roboto"), local("Roboto Regular");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Roboto-Bold";
  src: local("Roboto Bold"), local("Roboto-Bold");
  font-weight: 700;
  font-style: normal;
}

/* =============================================================
   Reset + base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-body);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =============================================================
   Topbar — thin red strip with phone
   ============================================================= */
.topbar {
  background: var(--red-brand);
  color: var(--yellow-accent);
  font-family: var(--font-impact);
  font-size: 14px;
  letter-spacing: 0.5px;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: var(--topbar-h);
  padding-top: 4px;
  padding-bottom: 4px;
  gap: 12px;
}
.topbar__phone a { color: var(--yellow-accent); font-size: 22px; }
.topbar__phone a:hover { text-decoration: underline; }
.topbar__burger {
  display: none;
  background: transparent;
  border: 0;
  color: var(--yellow-accent);
  padding: 6px 10px;
  font-size: 24px;
  line-height: 1;
}

/* =============================================================
   Header — red bar with logo
   ============================================================= */
.site-header {
  background: var(--red-brand);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  padding: 8px 20px;
  gap: 20px;
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.site-header__logo img {
  height: 74px;
  width: auto;
  display: block;
}
.site-header__logo-icon {
  display: inline-block;
  width: 130px;
  height: 90px;
  background-image: url("/assets/images/logo/header-banner.png");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: auto;
  flex-shrink: 0;
}
.site-header__brand {
  font-family: var(--font-impact);
  color: var(--yellow-accent);
  line-height: 1.05;
  letter-spacing: 0.5px;
}
.site-header__brand-1 { display: block; font-size: 34px; font-weight: 700; }
.site-header__brand-2 { display: block; font-size: 20px; }

/* Decorative gray band + red hairline below header (mirrors source banner) */
.header-band {
  background: var(--gray-band);
  height: 24px;
  border-bottom: 3px solid var(--red-brand);
}

/* =============================================================
   Primary nav — red bar with dropdowns
   ============================================================= */
.site-nav {
  background: var(--red-brand);
  border-top: 2px solid var(--red-dark);
  border-bottom: 3px solid var(--red-dark);
}
.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.site-nav__list > li {
  position: relative;
}
.site-nav__list > li > a {
  display: block;
  padding: 14px 18px;
  color: var(--white);
  font-family: var(--font-bold);
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background-color 120ms ease;
}
.site-nav__list > li > a:hover,
.site-nav__list > li.is-active > a,
.site-nav__list > li.has-children:hover > a {
  background: var(--red-dark);
  color: var(--yellow-accent);
}
.site-nav__list > li.has-children > a::after {
  content: " \25BE";
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.75;
}
.site-nav__submenu {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--red-dark);
  border-top: 3px solid var(--yellow-accent);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
  z-index: 100;
}
.site-nav__list > li.has-children:hover > .site-nav__submenu,
.site-nav__list > li.has-children:focus-within > .site-nav__submenu,
.site-nav__list > li.is-open > .site-nav__submenu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 0s;
}
.site-nav__submenu a {
  display: block;
  padding: 10px 18px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-nav__submenu li:last-child a { border-bottom: 0; }
.site-nav__submenu a:hover,
.site-nav__submenu li.is-active a {
  background: var(--red-brand);
  color: var(--yellow-accent);
}

/* =============================================================
   Home — hero slider
   ============================================================= */
.hero {
  background: var(--black);
}
.hero__slider {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  aspect-ratio: 976 / 297;
  overflow: hidden;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }

.hero__controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 2;
  pointer-events: none;
}
.hero__btn {
  pointer-events: auto;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 44px;
  transition: background-color 140ms ease;
}
.hero__btn:hover { background: rgba(0,0,0,0.7); }
.hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.55);
  padding: 0;
}
.hero__dot.is-active { background: var(--yellow-accent); }

/* =============================================================
   Home — 2x2 category tiles
   ============================================================= */
.categories {
  padding: 40px 0 60px;
  background: var(--white);
}
.categories__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.category-tile {
  display: block;
  position: relative;
  aspect-ratio: 480 / 300;
  background-image: var(--bg);
  background-size: 100% 200%;
  background-repeat: no-repeat;
  background-position: 0 0;
  transition: background-position 220ms ease;
  overflow: hidden;
}
.category-tile:hover,
.category-tile:focus-visible { background-position: 0 100%; }

/* =============================================================
   Page-title banner (for inner pages) — red band under nav
   ============================================================= */
.page-banner {
  background: var(--red-brand);
  color: var(--white);
  padding: 22px 0;
  text-align: center;
}
.page-banner__title {
  margin: 0;
  font-family: var(--font-impact);
  font-size: 34px;
  letter-spacing: 1px;
  color: var(--yellow-accent);
  text-transform: uppercase;
}

/* =============================================================
   Content sections
   ============================================================= */
.content { padding: 40px 0 60px; }
.content h1, .content h2, .content h3 {
  font-family: var(--font-bold);
  color: var(--text-body);
  line-height: 1.15;
  margin: 0 0 18px;
}
.content h1 { font-size: 32px; }
.content h2 { font-size: 26px; }
.content h3 { font-size: 20px; }
.content p { margin: 0 0 16px; font-size: 18px; }
.content ul { padding-left: 22px; margin: 0 0 16px; }
.content li { margin-bottom: 8px; font-size: 17px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* =============================================================
   About-page service list (h3 + bulleted)
   ============================================================= */
.services-heading {
  font-family: var(--font-impact);
  font-size: 24px;
  color: var(--red-brand);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 10px 0 12px;
}
.services-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.services-list li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 17px;
}
.services-list li::before {
  content: "\25B8";
  color: var(--red-brand);
  position: absolute;
  left: 0;
  top: 5px;
}

/* =============================================================
   Contact page — info + form + map
   ============================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info dt {
  font-family: var(--font-impact);
  font-size: 22px;
  color: var(--red-brand);
  text-transform: uppercase;
  margin-top: 20px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 6px 0 0;
  font-size: 18px;
  color: var(--text-body);
}
.contact-info dd a { color: var(--text-body); }
.contact-info dd a:hover { color: var(--red-brand); text-decoration: underline; }
.contact-map {
  margin-top: 30px;
  border: 1px solid var(--gray-line);
  aspect-ratio: 16 / 10;
  background: var(--gray-light);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Enquiry form */
.enquiry-form {
  background: var(--gray-light);
  padding: 24px;
  border-top: 4px solid var(--red-brand);
}
.enquiry-form h2 {
  margin: 0 0 20px;
  font-family: var(--font-impact);
  font-size: 26px;
  color: var(--red-brand);
  text-transform: uppercase;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--font-bold);
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: 2px;
  color: var(--text-body);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red-brand);
  box-shadow: 0 0 0 3px rgba(219,12,38,0.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.btn-submit {
  display: inline-block;
  background: var(--red-brand);
  color: var(--white);
  font-family: var(--font-bold);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 28px;
  border: 0;
  border-radius: 2px;
  transition: background-color 140ms ease;
}
.btn-submit:hover { background: var(--red-dark); }
.hp-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* =============================================================
   Category index — grid of subcategory tiles
   ============================================================= */
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.subcat-tile {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-line);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.subcat-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.subcat-tile__thumb {
  aspect-ratio: 4 / 3;
  background: var(--gray-light);
  overflow: hidden;
}
.subcat-tile__thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.subcat-tile__label {
  padding: 14px 16px;
  background: var(--red-brand);
  color: var(--white);
  font-family: var(--font-bold);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

/* =============================================================
   Product page — image gallery
   ============================================================= */
.gallery__intro {
  margin-bottom: 24px;
  font-size: 18px;
  color: var(--text-muted);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.gallery__item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-light);
  border: 1px solid var(--gray-line);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.gallery__item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  z-index: 2;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 95%;
  max-height: 90%;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  color: #fff;
  font-size: 40px;
  border: 0;
  line-height: 1;
  padding: 4px 12px;
}

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  background: var(--red-brand);
  color: var(--white);
  padding: 26px 0;
  margin-top: 40px;
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.site-footer__nav a {
  color: var(--white);
  font-family: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
}
.site-footer__nav a:hover { color: var(--yellow-accent); }
.site-footer__meta {
  color: rgba(255,255,255,0.85);
  text-align: right;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 960px) {
  :root { --header-h: 84px; }
  .site-header__logo img { height: 60px; }
  .site-header__brand-1 { font-size: 28px; }
  .site-header__brand-2 { font-size: 16px; }
  .subcat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two-col,
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar .wrap { justify-content: space-between; }
  .topbar__burger { display: inline-flex; align-items: center; justify-content: center; }
  .topbar__phone a { font-size: 18px; }

  .site-header .wrap { padding: 12px 20px; }
  .site-header__brand-1 { font-size: 22px; }
  .site-header__brand-2 { font-size: 14px; }
  .site-header__logo img { height: 50px; }

  /* Mobile nav — collapsible drawer */
  .site-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms ease;
    border-top: 0;
    border-bottom: 0;
  }
  body.menu-open .site-nav {
    max-height: calc(100vh - var(--topbar-h) - var(--header-h));
    border-top: 2px solid var(--red-dark);
    border-bottom: 3px solid var(--red-dark);
    overflow-y: auto;
  }
  body.menu-open .topbar__burger[aria-expanded="true"]::before { content: "\2715"; }
  .topbar__burger::before { content: "\2261"; }

  .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-nav__list > li { border-bottom: 1px solid var(--red-dark); }
  .site-nav__list > li:last-child { border-bottom: 0; }
  .site-nav__list > li > a { text-align: center; padding: 14px 18px; }
  .site-nav__list > li.has-children > a::after { content: none; }
  .site-nav__submenu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    background: var(--red-dark);
    border-top: 0;
    transition: none;
    padding: 0;
    display: none;
  }
  .site-nav__list > li.is-open > .site-nav__submenu { display: block; }
  .site-nav__submenu a { text-align: center; padding: 12px; font-size: 13px; }

  .categories__grid { grid-template-columns: 1fr; }
  .subcat-grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .page-banner__title { font-size: 26px; }
  .content h1 { font-size: 24px; }
  .content h2 { font-size: 22px; }

  .site-footer .wrap { flex-direction: column; align-items: stretch; text-align: center; }
  .site-footer__nav { justify-content: center; }
  .site-footer__meta { text-align: center; }
}
