/*
Theme Name: The Piano Restoration Company
Theme URI: https://www.thepianorestorationcompany.com.au/
Author: The Piano Restoration Company
Description: A clean, custom theme reconstructed from the company's supplied content and archived visual identity.
Version: 1.0.0
Requires at least: 7.1
Requires PHP: 8.3
Text Domain: piano-restoration
*/

:root {
  --prc-charcoal: #24272d;
  --prc-charcoal-deep: #2b2e35;
  --prc-ink: #242930;
  --prc-copy: #5a5d62;
  --prc-soft: #f8f8f8;
  --prc-yellow: #ffff00;
  --prc-white: #fff;
  --prc-rail: 1170px;
  --prc-gutter: clamp(20px, 4vw, 48px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--prc-copy);
  background: var(--prc-white);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 2.27;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.screen-reader-text:focus,
.skip-link:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 16px;
  color: var(--prc-ink);
  background: var(--prc-white);
}

.prc-rail {
  width: min(calc(100% - (2 * var(--prc-gutter))), var(--prc-rail));
  margin-inline: auto;
}

.site-header {
  min-height: 96px;
  color: var(--prc-white);
  background: var(--prc-charcoal);
}

.site-header__rail {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  flex: 0 0 230px;
  color: var(--prc-white);
  font-family: Raleway, "Trebuchet MS", sans-serif;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-brand__lead {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.74;
}

.site-brand__name {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 600;
}

.primary-menu,
.primary-menu ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.45vw, 45px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu a {
  display: block;
  color: var(--prc-white);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.primary-menu a:hover,
.primary-menu a:focus-visible,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  opacity: 0.62;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--prc-white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 500px;
  place-items: center;
  overflow: hidden;
  color: var(--prc-white);
  background-color: var(--prc-charcoal);
  background-image: linear-gradient(rgba(9, 12, 16, 0.3), rgba(9, 12, 16, 0.46)), var(--prc-background);
  background-position: center;
  background-size: cover;
  text-align: center;
}

.home-hero__content {
  width: min(100% - (2 * var(--prc-gutter)), 1040px);
  padding: 70px 0;
}

.home-hero h1 {
  max-width: 980px;
  margin: 0 auto 18px;
  color: var(--prc-white);
  font-family: "PT Sans", Arial, sans-serif;
  font-size: clamp(44px, 6vw, 70px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.home-hero__services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2em 0.55em;
  margin: 0;
  font-family: "PT Sans", Arial, sans-serif;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.2;
}

.home-hero__services a,
.home-hero__phone {
  color: var(--prc-white);
  text-decoration: none;
}

.home-hero__services a:hover,
.home-hero__services a:focus-visible,
.home-hero__phone:hover,
.home-hero__phone:focus-visible {
  text-decoration: underline;
}

.home-hero__phone {
  display: inline-block;
  margin-top: 14px;
  font-family: "PT Sans", Arial, sans-serif;
  font-size: 17px;
  letter-spacing: 0.07em;
}

.page-hero {
  position: relative;
  color: var(--prc-white);
  background-color: var(--prc-charcoal);
  background-image: linear-gradient(90deg, rgba(12, 15, 19, 0.76) 0%, rgba(12, 15, 19, 0.56) 42%, rgba(12, 15, 19, 0.06) 72%), var(--prc-background);
  background-position: center;
  background-size: cover;
}

.page-hero__rail {
  padding-top: 130px;
  padding-bottom: 120px;
}

.page-hero__copy {
  width: min(48%, 560px);
}

.page-hero h1,
.standard-page h1,
.tuning-page h1 {
  margin: 0 0 24px;
  color: currentColor;
  font-family: Raleway, "Trebuchet MS", sans-serif;
  font-size: clamp(38px, 4.2vw, 48px);
  font-weight: 400;
  line-height: 1.15;
}

.page-hero p {
  margin: 0 0 20px;
}

.page-hero a {
  color: currentColor;
}

.page-hero--about {
  color: var(--prc-yellow);
}

.page-hero--about .page-hero__rail,
.page-hero--links .page-hero__rail {
  padding-top: 150px;
  padding-bottom: 150px;
}

.page-hero--about .page-hero__copy > p:first-of-type {
  font-family: Raleway, "Trebuchet MS", sans-serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.7;
}

.page-hero--links .page-hero__copy,
.page-hero--contact .page-hero__copy {
  width: 100%;
  max-width: none;
}

.prc-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 72px);
}

.prc-columns--links {
  margin-top: 40px;
}

.prc-specialist {
  break-inside: avoid;
  margin-bottom: 28px;
}

.prc-specialist h2,
.prc-contact-card h2,
.tuning-card h2 {
  margin: 0 0 8px;
  font-family: Raleway, "Trebuchet MS", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.prc-specialist p {
  margin: 0 0 8px;
}

.prc-credits {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 13px;
  line-height: 1.8;
}

.tuning-page {
  padding: 90px 0 140px;
  color: var(--prc-copy);
  background: var(--prc-white);
}

.tuning-page h1 {
  color: var(--prc-ink);
  text-align: center;
}

.tuning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4%;
  margin-top: 35px;
}

.tuning-card {
  background: var(--prc-white);
}

.tuning-card:nth-child(n + 2) {
  background: var(--prc-soft);
}

.tuning-card__content {
  padding: 28px 30px 36px;
}

.tuning-card p {
  margin: 0;
}

.standard-page {
  min-height: 420px;
  padding: 90px 0 120px;
}

.standard-page h1 {
  color: var(--prc-ink);
}

.site-footer__empty-band {
  min-height: 96px;
  background: var(--prc-charcoal);
}

.site-footer__bar {
  min-height: 67px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--prc-charcoal-deep);
  font-size: 12px;
  line-height: 1.5;
}

.site-footer__rail {
  display: flex;
  min-height: 67px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--prc-white);
}

@media (max-width: 920px) {
  .site-header__rail {
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .primary-navigation {
    position: absolute;
    z-index: 20;
    top: 96px;
    right: calc(-1 * var(--prc-gutter));
    left: calc(-1 * var(--prc-gutter));
    display: none;
    padding: 16px var(--prc-gutter) 24px;
    background: var(--prc-charcoal-deep);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-menu,
  .primary-menu ul {
    display: block;
  }

  .primary-menu a {
    padding: 11px 0;
    font-size: 15px;
  }
}

@media (max-width: 800px) {
  .page-hero {
    background-image: linear-gradient(rgba(12, 15, 19, 0.62), rgba(12, 15, 19, 0.68)), var(--prc-background);
  }

  .page-hero__copy {
    width: 100%;
    max-width: 650px;
  }

  .prc-columns,
  .tuning-grid {
    grid-template-columns: 1fr;
  }

  .tuning-grid {
    gap: 28px;
  }

  .site-footer__rail {
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
    text-align: center;
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.95;
  }

  .site-brand {
    flex-basis: 190px;
  }

  .site-brand__name {
    font-size: 14px;
  }

  .home-hero {
    min-height: 520px;
    background-position: 58% center;
  }

  .home-hero__services {
    flex-direction: column;
    gap: 2px;
  }

  .home-hero__services .separator {
    display: none;
  }

  .page-hero__rail,
  .page-hero--about .page-hero__rail,
  .page-hero--links .page-hero__rail {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .tuning-page,
  .standard-page {
    padding-top: 68px;
    padding-bottom: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

