* { box-sizing: border-box; }

:root {
  --ink: #111;
  --link: #453d3d;
  --footer: #d3d3d3;
  --content-width: 1203px;
}

html { background: #fff; color: var(--ink); }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.sr-only,
.skip-link:not(:focus) {
  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:focus {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  background: #fff;
  color: #000;
}

.site-header {
  height: 126px;
  background: #000;
  color: #fff;
}
.header-inner {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 18px 22px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 340px; height: auto; }
.header-menu { display: flex; align-items: center; gap: 27px; }
.header-menu nav { display: flex; align-items: center; gap: 31px; }
.header-menu nav a {
  position: relative;
  color: #fff;
  font-family: Verdana, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  text-decoration: none;
}
.header-menu nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: #999;
  opacity: 0;
  transition: opacity 150ms ease;
}
.header-menu nav a:hover::after,
.header-menu nav a[aria-current="page"]::after { opacity: 1; }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #bdbdbd;
  color: #fff;
  transition: background-color 150ms ease;
}
.social-link:hover { background: #929292; }
.social-link svg { width: 25px; height: 25px; fill: currentColor; }
.menu-toggle { display: none; }

#content { background: #fff; }
.home-grid {
  padding: 21px 42px 101px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 69px;
}
.service-card { min-width: 0; text-align: center; }
.service-image { display: block; overflow: hidden; }
.service-image img { width: 100%; transition: opacity 150ms ease; }
.service-image:hover img { opacity: .88; }
.service-card h2 {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}
.service-card h2 a { color: var(--link); text-decoration: none; }

.detail-layout {
  width: min(var(--content-width), calc(100% - 48px));
  min-height: 1010px;
  margin: 20px auto 0;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: minmax(0, 2.18fr) minmax(260px, 1fr);
  gap: 26px;
  align-items: start;
}
.detail-primary { min-width: 0; }
.detail-banner { width: 100%; }
.detail-copy { padding-top: 16px; }
.detail-copy h1 {
  margin: 24.12px 0 20px;
  padding: 22.5px 0 0;
  color: #000;
  font-size: 36px;
  line-height: 1.3;
}
.detail-copy h1:first-child { padding: 20px 0; }
.detail-copy p {
  margin: 0 0 20px;
  color: #000;
  font-size: 17.6px;
  line-height: 1.9;
}
.detail-copy a,
.service-nav a { color: var(--link); text-decoration: none; font-weight: 600; }
.detail-copy a:hover,
.service-nav a:hover { text-decoration: underline; }
.detail-layout aside { min-width: 0; }
.service-nav {
  position: relative;
  min-height: 459px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 20px;
}
.service-nav > img {
  position: absolute;
  top: 0;
  right: 0;
  width: 138px;
}
.service-nav a {
  max-width: calc(100% - 30px);
  font-size: 16px;
  line-height: 1.95;
}
.aside-image {
  width: auto;
  max-width: 250px;
  margin: 40px auto;
}
.services-overview {
  min-height: 650px;
  grid-template-columns: minmax(0, 750px) minmax(280px, 390px);
}
.services-overview .detail-banner { width: 750px; }

.contact-layout {
  width: min(1175px, calc(100% - 48px));
  min-height: 985px;
  margin: 0 auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr .95fr;
  gap: 55px;
  align-items: start;
}
.contact-shop { padding-top: 0; }
.contact-shop h2 {
  margin: 0 0 19px;
  font-size: 22px;
  line-height: 1.4;
}
.contact-shop h3 {
  margin: 43px 0 25px;
  font-size: 22px;
  line-height: 1.4;
}
.contact-details { list-style: none; margin: 0; padding: 0 10px; }
.contact-details li {
  min-height: 40px;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.contact-details img { width: 30px; height: 30px; }
.contact-details a { color: var(--link); text-decoration: none; }
.contact-layout > aside { padding-top: 4px; }
.contact-form { width: 82%; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 5px; color: #444; font-weight: 700; }
.form-field label span { color: #e00; }
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #c8c8c8;
  border-radius: 0;
  background: #f7f7f7;
  color: #111;
  padding: 8px;
}
.form-field input { height: 51px; }
.form-field textarea { min-height: 200px; resize: vertical; }
.contact-form button,
.search-form button {
  border: 0;
  border-radius: 0;
  padding: 13px 15px;
  background: #333;
  color: #fff;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
}
.contact-form button:hover,
.search-form button:hover { background: #111; }
.form-honeypot { position: absolute; left: -10000px; }
.form-status { padding: 9px 11px; border-left: 3px solid; font-size: 14px; line-height: 1.5; }
.form-status.error { border-color: #b00020; background: #fff0f2; }
.form-status.success { border-color: #287a2c; background: #effaef; }

.about-page {
  width: min(1050px, calc(100% - 48px));
  min-height: 850px;
  margin: 32px auto 90px;
  font-size: 17px;
  line-height: 1.55;
}
.about-page img { width: 50%; float: right; margin: 0 0 15px 3%; }
.about-page p { margin: 0 0 20px; }
.drop-cap::first-letter {
  float: left;
  margin: 3px 5px 0 0;
  font-family: Bentham, Georgia, serif;
  font-size: 5em;
  line-height: .72;
}
.blog-empty,
.not-found {
  width: min(1170px, calc(100% - 48px));
  min-height: 620px;
  margin: 70px auto 90px;
}
.blog-empty h1,
.blog-empty h2,
.not-found h1 { font-size: 30px; }
.search-form { max-width: 500px; }
.search-form label { display: block; font-weight: 700; }
.search-form div { display: flex; }
.search-form input { flex: 1; min-width: 0; padding: 8px; border: 1px solid #bbb; }

.site-footer {
  min-height: 642px;
  padding: 70px 0 80px;
  background: var(--footer);
  color: #000;
}
.footer-grid {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 310px 340px 1fr;
  grid-template-areas:
    "wh wa wm"
    "fh fa fm";
  column-gap: 30px;
  row-gap: 91px;
  align-items: start;
}
.whanganui-hours { grid-area: wh; }
.feilding-hours { grid-area: fh; }
.whanganui-address { grid-area: wa; padding-top: 39px; }
.feilding-address { grid-area: fa; padding-top: 39px; }
.whanganui-map { grid-area: wm; }
.feilding-map { grid-area: fm; }
.site-footer h2 { margin: 0 0 18px; font-size: 20px; line-height: 1.4; }
.site-footer p { margin: 0; color: #000; line-height: 1.65; }
.site-footer a { color: #000; text-decoration: none; }
.shop-map { width: 100%; height: 155px; border: 0; }

@media (max-width: 1024px) {
  .site-header { height: 91px; }
  .header-inner { padding: 18px 16px; }
  .brand img { width: 179px; }
  .menu-toggle {
    width: 36px;
    height: 36px;
    padding: 8px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) { width: 17px; height: 1px; background: #fff; }
  .header-menu {
    position: absolute;
    z-index: 20;
    top: 91px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 20px 22px;
    background: #000;
  }
  .header-menu.is-open { display: block; }
  .header-menu nav { display: block; }
  .header-menu nav a { display: block; padding: 9px 0; font-size: 16px; }
  .header-menu nav a::after { display: none; }
  .social-links { margin-top: 12px; }
  .social-link { width: 36px; height: 36px; }

  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { gap: 25px; }
  .service-nav > img { width: 100px; }
  .service-nav a { font-size: 14px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "wh wa" "fh fa";
  }
  .shop-map { display: none; }
}

@media (max-width: 782px) {
  body { font-size: 16px; line-height: 1.8; }
  .home-page .site-header { position: absolute; z-index: 10; width: 100%; }
  .home-grid {
    padding: 51px 19px 85px;
    grid-template-columns: 1fr;
    gap: 45.7px;
  }
  .service-card h2 { margin-top: 6px; font-size: 16px; }

  .detail-layout,
  .services-overview {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding-bottom: 72px;
    display: block;
  }
  .detail-layout aside,
  .detail-copy { padding-left: 1px; padding-right: 1px; }
  .service-nav { min-height: 0; padding: 29px 0 74px; }
  .service-nav > img { width: 138px; top: 29px; right: 8px; }
  .service-nav a { max-width: calc(100% - 20px); font-size: 16px; line-height: 2; }
  .contact-layout .service-nav { padding: 20px 0 35px; }
  .contact-layout .service-nav > img { top: 20px; }
  .aside-image { margin: 40px auto; }
  .services-overview .detail-banner { width: 100%; }

  .contact-layout {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding-bottom: 11px;
    display: block;
  }
  .contact-shop { padding: 14px 0 28px; }
  .contact-shop h2 { margin: 0 0 15px; font-size: 22px; }
  .contact-shop h3 { margin: 34px 0 21px; font-size: 22px; }
  .contact-details { padding: 0 11px; }
  .contact-form { width: 82%; padding: 0 6px; }
  .form-field input { height: 50px; }
  .form-field textarea { min-height: 200px; }
  .contact-layout > aside { padding: 0; }

  .about-page { width: 100%; min-height: 0; margin: 0 0 70px; padding: 0 8px; }
  .about-page img { width: 50%; }
  .blog-empty,
  .not-found { width: calc(100% - 20px); min-height: 500px; margin: 30px 10px 70px; }

  .site-footer { min-height: 1525px; padding: 67px 0 100px; }
  .footer-grid {
    width: calc(100% - 28px);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "wh" "fh" "wa" "fa";
    row-gap: 69px;
  }
  .whanganui-address,
  .feilding-address { padding-top: 0; }
  .site-footer h2 { font-size: 18px; }
  .site-footer p { font-size: 14px; line-height: 1.65; }
}
