/*
  Wolf Dental site styles.
  Rebuilt from the Squarespace template the site used (thick page borders,
  centered logo, address bar, centered navigation). Fonts:
  - Montserrat stands in for Proxima Nova (an Adobe font licensed through Squarespace).
  - Merriweather is the original body font.
*/

:root {
  --text: #222;
  --text-body: #545454;
  --muted: rgba(0, 0, 0, .3);
  --nav: rgba(0, 0, 0, .5);
  --line: rgba(0, 0, 0, .1);
  --border: 2px;
  --sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Merriweather", Georgia, serif;
}

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

html { font-size: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text-body);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.8em;
}

a, a:visited { color: #111; }

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

h1, h2, h3 {
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 1px;
  margin: 1.2em 0 .5em;
}
h1 { color: #222; font-size: 3em; font-weight: 300; line-height: 1.2; }
h2 { color: #262626; font-size: 2em; font-weight: 300; line-height: 1.4; }
h3 { color: #222; font-size: 1.3em; font-weight: 400; line-height: 1.5; }

p { margin: 0 0 1.8em; }
ul, ol { margin: 1em 0; }

/* Squarespace kept the editor's whitespace, so the copied text relies on it. */
.content p, .content h1, .content h2, .content h3, .content li p { white-space: pre-wrap; }
.content li p { margin: 0; }
.text-align-center { text-align: center; }

/* ---------- Page frame ---------- */

#canvas {
  max-width: 1304px; /* 1100px of content + padding + border, as on the old site */
  margin: 80px auto;
  padding: 100px 100px 0;
  border: var(--border) solid var(--line);
  background: #fff;
}

.page-divider { border-bottom: var(--border) solid var(--line); }

/* ---------- Header ---------- */

#header { position: relative; text-align: center; }

.logo { margin: 0; line-height: 0; }
.logo a { display: inline-block; }
.logo img { max-height: 80px; width: auto; }

.site-info {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 3px;
  line-height: 2em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-info > div { flex: 1 1 33.333%; }
.site-info .site-address { text-align: left; }
.site-info .site-city-state { text-align: center; }
.site-info .site-phone { text-align: right; }
.site-info a { color: inherit; text-decoration: none; }

#topNav { margin-top: 50px; position: relative; z-index: 1000; }
#topNav nav { position: relative; }
#topNav .page-divider {
  position: absolute;
  left: 0; right: 0;
  top: .8em;
  font-size: 14px;
}
#topNav nav > ul {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 30px;
  margin: 0;
  padding: 0 30px;
  list-style: none;
  background: #fff;
}
#topNav ul, #mobileNav ul {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.6em;
  text-transform: uppercase;
}
#topNav li { position: relative; margin: 0; }
#topNav a {
  display: inline-block;
  color: var(--nav);
  text-decoration: none;
  border-bottom: var(--border) solid transparent;
}
#topNav a:hover,
#topNav .active-link > a { color: #111; border-bottom-color: var(--line); }
#topNav .folder > a,
#topNav .folder > button { cursor: pointer; border-bottom: 0; }
#topNav .folder > button {
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  color: var(--nav); background: none; border: 0; padding: 0;
}
#topNav .folder > button:hover { color: #111; }

#topNav .subnav {
  position: absolute;
  top: 100%;
  left: -15px;
  min-width: 100%;
  height: 0;
  overflow: hidden;
  background: #fff;
  z-index: 1000;
}
#topNav .folder:hover .subnav,
#topNav .folder:focus-within .subnav { height: auto; }
#topNav .subnav ul {
  margin: 0;
  padding: .5em 0;
  list-style: none;
  border: var(--border) solid var(--line);
}
#topNav .subnav a {
  display: block;
  padding: .5em 1em;
  white-space: nowrap;
  text-align: left;
  border: 0;
}

/* Mobile menu (shown at 640px and below) */
#mobileMenuLink { display: none; }
#mobileMenuLink button {
  display: block;
  width: 100%;
  padding: 0;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--nav);
  background: none;
  border: 0;
  border-bottom: var(--border) solid var(--line);
  line-height: 2.5em;
  cursor: pointer;
}
#mobileNav { display: none; }

/* ---------- Banner ---------- */

#hero { margin-top: 80px; }
.page-image { position: relative; }
.page-image .image-wrapper { background: #fafafa; }
.page-image .image-wrapper img { display: block; width: 100%; }
.page-image .wrapper {
  position: absolute;
  top: 50%;
  width: 100%;
  padding: 0 75px;
  transform: translateY(-50%);
  text-align: center;
}
.page-image .page-title {
  margin: .25em 0 .5em;
  color: #fff;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 63px;
  letter-spacing: 3px;
  line-height: 1.2em;
  text-transform: uppercase;
}
.page-image .page-title::after {
  content: "";
  display: block;
  width: .75em;
  height: var(--border);
  margin: .25em auto;
  background: #fff;
}
.page-image .page-description { width: 50%; margin: .25em auto; }
.page-image .page-description p {
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 3px;
  line-height: 2em;
  text-transform: uppercase;
}

/* ---------- Main content ---------- */

#page { margin: 80px auto; position: relative; }
#page.narrow { width: 70%; }

.row { display: flex; gap: 0 34px; }
.row > .col { min-width: 0; }
.span-12 { flex: 1 1 100%; }
.span-6 { flex: 1 1 50%; }
.span-4 { flex: 1 1 33.333%; }
.span-8 { flex: 1 1 66.666%; }
.span-3 { flex: 1 1 25%; }
.span-9 { flex: 1 1 75%; }

.block { padding: 17px 0; }
.block > :first-child { margin-top: 0; }
.block > :last-child { margin-bottom: 0; }

hr.rule {
  margin: 0;
  height: var(--border);
  border: 0;
  background: var(--line);
}

.image-block img { display: block; margin: 0 auto; }

.button {
  display: inline-block;
  padding: 1em 2.5em;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff !important;
  background: #272727;
}
.button:hover { opacity: .8; }

/* ---------- Contact form ---------- */

.contact-form .field { margin-bottom: 1.4em; }
.contact-form label, .contact-form legend {
  display: block;
  margin-bottom: .3em;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #222;
}
.contact-form fieldset { border: 0; margin: 0; padding: 0; }
.contact-form .req { color: var(--muted); font-weight: 400; }
.contact-form .desc { margin: 0 0 .4em; font-size: 12px; }
.contact-form .pair { display: flex; gap: 12px; }
.contact-form .pair > div { flex: 1; }
.contact-form .pair label { font-weight: 400; color: var(--text-body); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 12px;
  font: inherit;
  color: #222;
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 0;
}
.contact-form textarea { min-height: 100px; }
.contact-form .hidden { display: none; }
.contact-form button {
  padding: 1em 2.5em;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: #272727;
  border: 0;
  cursor: pointer;
}

/* ---------- Gallery slideshow ---------- */

.slideshow { position: relative; }
.slideshow .stage {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #fafafa;
  overflow: hidden;
}
.slideshow .stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}
.slideshow .stage img.active { opacity: 1; }
.slideshow .thumbs {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  overflow-x: auto;
}
.slideshow .thumbs button {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: .5;
}
.slideshow .thumbs button.active, .slideshow .thumbs button:hover { opacity: 1; }
.slideshow .thumbs img { display: block; height: 80px; width: auto; }

/* ---------- Services index ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px 4.76%;
}
.project-grid a { text-decoration: none; }
.project-grid .project-image {
  position: relative;
  padding-bottom: 80%;
  overflow: hidden;
  background: #eee;
  margin-bottom: 5%;
  transition: opacity .14s;
}
.project-grid .project-image:hover { opacity: .8; }
.project-grid .project-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-grid .project-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.6em;
  text-align: center;
  color: #545454;
}

/* ---------- Footer ---------- */

#footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px 0;
  border-top: var(--border) solid var(--line);
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 1px;
}
#footer p { margin: 0; }
#footer a { text-decoration: none; }
#footer .social a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  color: #000;
}
#footer .social svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- Responsive ---------- */

@media (max-width: 1460px) { #canvas { margin: 80px; } }

@media (max-width: 1140px) {
  .page-image .page-title { font-size: 52px; }
  .page-image .page-description { width: 70%; }
  .page-image .page-description p { font-size: 100%; }
}

@media (max-width: 1024px) {
  #canvas { margin: 0 auto; border-width: 0; }
  .page-image .wrapper { padding: 0 15px; }
  .page-image .page-title { font-size: 40px; }
}

@media (max-width: 767px) {
  #canvas { padding: 50px 50px 0; }
  #page { margin: 30px auto; }
  #page.narrow { width: 100%; }
  #hero { margin-top: 30px; }
  .page-image .page-title { font-size: 21px; }
  .page-image .page-description { display: none; }
  #topNav nav > ul { gap: 0 1em; }
  .row { flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  #canvas { padding: 20px 16px 0; }
  .site-info { display: block; padding: 15px 0; text-align: center; }
  .site-info .site-address,
  .site-info .site-city-state,
  .site-info .site-phone { text-align: center; }
  #header #topNav { display: none; }
  #hero { margin-top: 15px; }
  #mobileMenuLink { display: block; margin-top: 15px; }
  #mobileNav { background: #fff; }
  #mobileNav.menu-open { display: block; }
  #mobileNav ul { margin: 0; padding: 1em 0; list-style: none; text-align: center; }
  #mobileNav a, #mobileNav .folder-label {
    display: block;
    color: var(--nav);
    text-decoration: none;
    line-height: 2.2em;
  }
  #mobileNav .subnav { display: none; background: #f2f2f2; }
  #mobileNav .subnav ul { padding: .5em 0; }
  #mobileNav .folder.open .subnav { display: block; }
  #mobileNav .folder-label {
    width: 100%;
    font: inherit; letter-spacing: inherit; text-transform: inherit;
    background: none; border: 0; cursor: pointer;
  }
  #mobileNav .folder-label::after { content: " +"; }
  #mobileNav .folder.open .folder-label::after { content: " –"; }
  #mobileNav .wrapper { border-bottom: var(--border) solid var(--line); }
  .slideshow .thumbs img { height: 56px; }
}
