/*
Theme Name: Steampunk Plumbing Replica
Theme URI: https://steampunkplumbing.com/
Author: Codex
Description: A one-page WordPress theme matching the Steampunk Plumbing and Heating landing page.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: steampunk-plumbing
*/

:root {
  --sp-blue-bg: #c2d5ff;
  --sp-button: #d6e3ff;
  --sp-black: #161616;
  --sp-text: #5e5e5e;
  --sp-heading: #1b1b1b;
  --sp-accent: #7b8eba;
  --sp-accent-2: #8494ba;
  --sp-soft: #f6f6f6;
  --sp-form: #474747;
  --sp-width: 1112px;
}

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

html {
  margin: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--sp-blue-bg);
  color: var(--sp-text);
  font-family: "Roboto", arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.admin-bar .cookie-banner,
body.admin-bar .chat-bubble {
  transform: translateY(-32px);
}

a {
  color: inherit;
}

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

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--sp-black);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-main {
  background: #fff;
}

.section-inner {
  width: min(var(--sp-width), calc(100% - 48px));
  margin: 0 auto;
}

.button,
.sp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  min-width: 179px;
  border: 0;
  border-radius: 0;
  background: var(--sp-button);
  color: #1a1b1f;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 32px;
  text-align: center;
  text-decoration: none;
}

.button:hover,
.button:focus-visible,
.sp-button:hover,
.sp-button:focus-visible {
  background: #cbdcff;
  outline: none;
}

.hero {
  background: var(--sp-black);
}

.hero__image {
  height: 360px;
  background-image: url("assets/images/hero-banner.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1029px) 179px;
  gap: 48px;
  align-items: start;
  width: min(1280px, 100%);
  min-height: 182px;
  margin: 0 auto;
  padding: 24px 0 24px 24px;
  background: #fff;
}

.hero__title {
  margin: 0;
  color: var(--sp-text);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.hero__cta {
  margin-top: 39px;
}

.intro {
  padding: 56px 0;
  background: #fff;
  text-align: center;
}

.intro__inner {
  width: min(532px, calc(100% - 48px));
  margin: 0 auto;
}

.intro h4,
.contact h4,
.quote-panel h4 {
  margin: 0 0 24px;
  color: var(--sp-heading);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
}

.intro p {
  margin: 0;
  color: var(--sp-text);
  line-height: 1.5;
}

.renovation {
  padding: 56px 0;
  background: var(--sp-soft);
  overflow: hidden;
  text-align: center;
}

.section-title {
  margin: 0 0 40px;
  color: var(--sp-accent);
  font-family: "Fjalla One", arial, sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.contact .section-title {
  color: var(--sp-accent-2);
}

.gallery-shell {
  overflow: visible;
}

.gallery-strip {
  --gallery-height: 360px;
  display: grid;
  grid-template-columns:
    calc(var(--gallery-height) * 0.6666667)
    calc(var(--gallery-height) * 1.5)
    calc(var(--gallery-height) * 0.6666667);
  gap: 16px;
  justify-content: center;
  width: 100%;
}

.gallery-strip figure {
  margin: 0;
}

.gallery-strip img {
  width: 100%;
  height: var(--gallery-height);
  object-fit: cover;
}

.contact {
  padding: 56px 0;
  background: #fff;
  text-align: center;
}

.contact__body {
  width: min(725px, calc(100% - 48px));
  margin: 0 auto;
}

.contact__block {
  margin: 0 0 40px;
}

.contact__block p {
  margin: 0;
  color: var(--sp-text);
  font-size: 22px;
  line-height: 1.5;
}

.contact__phone a {
  color: #6476a1;
  text-decoration: none;
}

.hours-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--sp-text);
  font-size: 22px;
  line-height: 1.5;
}

.hours-row span {
  display: inline-block;
}

.hours-row svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  color: var(--sp-text);
}

.quote-toggle-wrap {
  margin-top: 40px;
}

.quote-panel {
  margin-top: 40px;
  text-align: center;
}

.quote-panel[hidden],
.quote-toggle-wrap[hidden] {
  display: none;
}

.quote-form {
  display: grid;
  grid-template-columns: minmax(0, 339px) minmax(0, 339px);
  gap: 24px 48px;
  margin-top: 36px;
  text-align: left;
}

.quote-form__fields {
  display: grid;
  gap: 23px;
}

.field {
  position: relative;
  display: block;
}

.field span {
  position: absolute;
  left: 15px;
  top: 12px;
  color: var(--sp-form);
  font-size: 14px;
  line-height: 17px;
  pointer-events: none;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid #d8d8d8;
  border-radius: 0;
  background: transparent;
  color: var(--sp-form);
  font-size: 14px;
  outline: none;
  padding: 24px 15px 8px;
}

.field input {
  height: 50px;
}

.field textarea {
  min-height: 153px;
  padding-top: 12px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: #9aa9ca;
}

.quote-form__note {
  display: grid;
  align-content: start;
  gap: 24px;
}

.quote-form__note textarea::placeholder {
  color: var(--sp-form);
  opacity: 1;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #595959;
  font-size: 14px;
}

.file-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6476a1;
  cursor: pointer;
}

.file-label svg {
  width: 14px;
  height: 14px;
}

.file-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.recaptcha-note {
  grid-column: 1 / -1;
  margin: -1px 0 0;
  color: #595959;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.form-message {
  width: min(725px, calc(100% - 48px));
  margin: 0 auto 32px;
  color: #313745;
  font-size: 16px;
  text-align: center;
}

.site-footer {
  background: var(--sp-blue-bg);
  color: #000;
  text-align: center;
}

.site-footer__inner {
  width: min(var(--sp-width), calc(100% - 48px));
  min-height: 221px;
  margin: 0 auto;
  padding: 40px 0 32px;
}

.site-footer p {
  margin: 0;
}

.site-footer__brand {
  color: #000;
  font-size: 16px;
  line-height: 1.5;
}

.site-footer__phone {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.5;
}

.site-footer__phone a {
  color: #161616;
  text-decoration: none;
}

.site-footer__legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 34px;
  color: #313745;
  font-size: 14px;
  line-height: 1.5;
}

.chat-bubble {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--sp-button);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
  color: #5e5e5e;
}

.chat-bubble svg {
  width: 36px;
  height: 36px;
}

.cookie-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: min(400px, calc(100% - 48px));
  background: var(--sp-button);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
  color: #3d475c;
  padding: 24px;
  text-align: left;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h4 {
  margin: 0 0 10px;
  color: #010101;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
}

.cookie-banner p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.cookie-banner button {
  width: 100%;
  min-height: 40px;
  margin-top: 24px;
  border: 0;
  background: var(--sp-black);
  color: #dbdbdb;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 767px) {
  body.admin-bar .cookie-banner,
  body.admin-bar .chat-bubble {
    transform: translateY(-46px);
  }

  .section-inner,
  .contact__body,
  .intro__inner {
    width: calc(100% - 48px);
  }

  .hero__image {
    height: 300px;
    background-color: #fff;
    background-size: contain;
  }

  .hero__content {
    display: flex;
    min-height: 208px;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 24px 0 24px;
  }

  .hero__title {
    width: 100%;
    font-size: 32px;
    line-height: 1.25;
  }

  .hero__cta {
    min-width: 168px;
    margin-top: 24px;
  }

  .intro,
  .renovation,
  .contact {
    padding: 40px 0;
  }

  .intro {
    padding-bottom: 64px;
  }

  .contact {
    padding-bottom: 102px;
  }

  .section-title {
    font-size: 28px;
    line-height: 1.4;
  }

  .gallery-shell {
    overflow: visible;
  }

  .gallery-strip {
    --gallery-height: min(360px, 82.31vw);
    justify-content: start;
  }

  .contact__block p,
  .hours-row {
    font-size: 22px;
  }

  .hours-row {
    flex-wrap: wrap;
  }

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

  .recaptcha-note,
  .form-actions {
    grid-column: auto;
  }

  .site-footer__inner {
    min-height: 247px;
    padding: 40px 0 32px;
  }

  .site-footer__legal {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .cookie-banner {
    left: 24px;
    right: 24px;
    bottom: 24px;
    width: auto;
  }
}

@media (min-width: 768px) {
  .contact {
    padding-bottom: 85px;
  }
}
