/*
  Peach Technology static homepage
  Conservative migration styles on top of Bootstrap 5.3.
*/

:root {
  --pt-accent: #e17767;
  --pt-accent-dark: #d16d5a;
  --pt-ink: #3e3f3f;
  --pt-body: #707273;
  --pt-light: #e0e0e0;
  --pt-footer: #000000;
  --pt-focus: rgba(225, 119, 103, 0.5);
}

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: var(--pt-body);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--pt-accent);
  text-decoration: none;
}

a:hover {
  color: var(--pt-accent-dark);
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--pt-ink);
  font-family: "Syncopate", "Open Sans", Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0;
}

p {
  margin-bottom: 1rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
  box-shadow: none;
  outline: 3px solid var(--pt-focus);
  outline-offset: 3px;
}

.site-header {
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}

.top-bar {
  background: #f2f2f2;
  min-height: 40px;
}

.top-contact {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  min-height: 40px;
  padding: 0;
}

.top-contact li {
  align-items: center;
  color: #999999;
  display: flex;
  font-size: 12px;
  gap: 7px;
}

.top-contact i {
  color: #999999;
  font-size: 12px;
}

.top-contact a {
  color: var(--pt-accent);
}

.top-contact a:hover {
  color: var(--pt-accent-dark);
}

.navbar {
  min-height: 90px;
  padding: 0;
}

.navbar > .container {
  min-height: 90px;
}

.site-logo {
  line-height: 1;
  padding: 0;
}

.site-logo img {
  display: block;
  height: 60px;
  width: 144px;
}

.site-logo picture,
.footer-logo picture,
.project-card picture,
.about-section picture {
  display: block;
}

.navbar-toggler {
  border-color: rgba(0, 0, 0, 0.18);
  border-radius: 4px;
}

.navbar-collapse {
  align-self: stretch;
}

.navbar-nav {
  align-items: center;
  align-self: stretch;
  gap: 0;
}

.navbar .nav-item {
  align-self: stretch;
  display: flex;
}

.navbar .nav-link {
  align-items: center;
  color: #000000;
  display: flex;
  font-family: "Syncopate", "Open Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  justify-content: center;
  letter-spacing: 0;
  min-height: 90px;
  padding: 0 25px;
  text-transform: uppercase;
}

.navbar .nav-link:hover {
  background: var(--pt-accent);
  color: #ffffff;
  text-decoration: none;
}

.hero-section {
  align-items: center;
  background-image: url("../images/fallback/team-chalkboard.jpg");
  background-image: image-set(
    url("../images/team-chalkboard.webp") type("image/webp"),
    url("../images/fallback/team-chalkboard.jpg") type("image/jpeg")
  );
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  color: #ffffff;
  display: flex;
  min-height: 520px;
  padding: 160px 0 130px;
  position: relative;
}

.hero-overlay,
.portfolio-overlay {
  background: rgba(0, 0, 0, 0.72);
  inset: 0;
  position: absolute;
}

.hero-content {
  max-width: 980px;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  color: var(--pt-accent);
  font-size: clamp(2.7rem, 5.4vw, 4.25rem);
  font-weight: 700;
  line-height: 1.28;
  margin: 0 0 36px;
}

.hero-content p {
  color: #ffffff;
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  font-weight: 300;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 720px;
}

.site-section {
  padding: 50px 0;
}

#home,
#our-services,
#our-process,
#portfolio,
#about,
#contact {
  scroll-margin-top: 150px;
}

.services-section {
  padding: 80px 0;
}

.section-heading {
  margin: 0 auto 42px;
  max-width: 820px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-heading p {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.service-row {
  margin-top: 20px;
}

.service-item {
  text-align: center;
}

.service-icon {
  color: var(--pt-accent);
  font-size: 72px;
  height: 100px;
  line-height: 100px;
  margin: 0 auto 18px;
  width: 100px;
}

.service-item h3 {
  font-size: 1.45rem;
  font-weight: 300;
}

.process-section {
  background: var(--pt-light);
}

.process-section .section-heading h2 {
  color: #142235;
  font-weight: 700;
  text-transform: lowercase;
}

.content-narrow {
  margin-left: auto;
  margin-right: auto;
  max-width: 820px;
}

.process-copy h3 {
  color: var(--pt-accent);
  font-size: clamp(1.7rem, 3vw, 2.05rem);
  font-weight: 400;
  margin: 28px 0 10px;
  text-transform: uppercase;
}

.process-copy h3:first-child {
  margin-top: 0;
}

.process-copy p {
  color: #304456;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

.portfolio-heading {
  background-image: url("../images/fallback/site-layout-glass.jpg");
  background-image: image-set(
    url("../images/site-layout-glass.webp") type("image/webp"),
    url("../images/fallback/site-layout-glass.jpg") type("image/jpeg")
  );
  background-attachment: fixed;
  background-position: 50% 0;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 90px 0 50px;
  position: relative;
}

.portfolio-heading .container {
  position: relative;
  z-index: 1;
}

.portfolio-heading h2 {
  color: #ffffff;
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  font-weight: 300;
  line-height: 1;
  margin: 0;
}

.portfolio-grid-section {
  padding: 50px 0;
}

.project-card {
  display: block;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.project-card img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
  width: 100%;
}

.project-card span {
  background: rgba(255, 255, 255, 0.76);
  color: var(--pt-ink);
  font-size: 1.2rem;
  font-weight: 300;
  bottom: 0;
  left: 0;
  line-height: 1.25;
  padding: 12px 8px;
  position: absolute;
  right: 0;
  z-index: 1;
}

.project-card:hover {
  text-decoration: none;
}

.project-card:hover img {
  filter: saturate(1.08);
  transform: scale(1.03);
}

.about-photo {
  display: block;
  height: auto;
  max-width: 100%;
}

.content-flow > * + * {
  margin-top: 1rem;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.about-section p {
  color: #555555;
}

.interior-section {
  min-height: 420px;
  padding: 90px 0;
}

.interior-section h1 {
  color: #142235;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 22px;
}

.interior-section p {
  color: #304456;
  font-size: 1rem;
}

.site-footer {
  background: var(--pt-footer);
  color: #ffffff;
  padding: 30px 0 22px;
}

.footer-contact {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.footer-logo img {
  display: block;
  filter: brightness(0) invert(1);
  height: 48px;
  opacity: 0.9;
  width: 115px;
}

.site-footer address,
.site-footer p {
  color: #ffffff;
  font-size: 13px;
  margin: 0;
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  color: var(--pt-accent);
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
  text-align: center;
}

.back-to-top {
  --bs-btn-bg: var(--pt-accent);
  --bs-btn-border-color: var(--pt-accent);
  --bs-btn-hover-bg: var(--pt-accent-dark);
  --bs-btn-hover-border-color: var(--pt-accent-dark);
  border-radius: 4px;
  bottom: 1rem;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 1rem;
  transform: translateY(0.5rem);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 1030;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.skip-link {
  background: #ffffff;
  border: 2px solid var(--pt-accent);
  border-radius: 4px;
  color: var(--pt-ink);
  left: 1rem;
  padding: 0.5rem 0.75rem;
  position: absolute;
  top: 1rem;
  transform: translateY(-150%);
  transition: transform 160ms ease;
  z-index: 2000;
}

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

@media (max-width: 991.98px) {
  .top-contact {
    justify-content: center;
  }

  .navbar-nav {
    align-items: stretch;
    padding: 0.75rem 0 0.25rem;
  }

  .navbar .nav-link {
    font-size: 12px;
    justify-content: flex-start;
    min-height: 42px;
    padding: 0.75rem 0.85rem;
  }

  .hero-section {
    min-height: 440px;
    padding: 120px 0 90px;
  }
}

@media (max-width: 767.98px) {
  .navbar {
    min-height: 72px;
  }

  .navbar > .container {
    min-height: 72px;
  }

  .site-logo img {
    height: 50px;
    width: 120px;
  }

  .hero-section {
    min-height: 390px;
    padding: 95px 0 70px;
  }

  .services-section {
    padding: 60px 0;
  }

  .portfolio-heading {
    background-attachment: scroll;
    padding: 70px 0 42px;
  }

  .project-card span {
    font-size: 1rem;
  }

  .top-contact {
    align-items: flex-end;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    min-height: 48px;
  }

  #home,
  #our-services,
  #our-process,
  #portfolio,
  #about,
  #contact {
    scroll-margin-top: 130px;
  }

  .footer-contact {
    align-items: flex-start;
    flex-direction: column;
  }
}
