/* Shared header and footer polish for All Seasons Painting. */
.topbar {
  background: #3f8f7e;
  font-size: .76rem;
}
.topbar .container {
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 24px;
}
.topbar-left { display: none; }
.topbar .hours {
  grid-column: auto;
  justify-self: auto;
  text-align: left;
  white-space: nowrap;
}
.topbar-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-self: auto;
  gap: 16px;
}
.topbar-right-links { gap: 16px !important; }
.topbar-socials { margin-top: 0; }

.site-header {
  border-bottom: 1px solid #e5ece8;
  box-shadow: 0 6px 22px rgba(24, 58, 47, .07);
}
.site-header .header-inner {
  max-width: 1280px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 120px;
  padding: 14px 24px;
}
.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}
.site-header .logo-emblem {
  width: 170px;
  height: 170px;
  flex: 0 0 170px;
  margin: -30px 14px -50px 0;
  padding: 0;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22), 0 0 0 4px rgba(62, 168, 77, .18);
  background: #fff;
}
.site-header .logo-wordmark {
  display: flex;
  align-self: flex-end;
  margin: 0 0 -14px;
}
.site-header .logo-wordmark .brand {
  color: #255e4b;
  font-size: .96rem;
  letter-spacing: 0;
}
.site-header .logo-wordmark .est { letter-spacing: .16em; }
.site-header .nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.7vw, 24px);
  min-width: 0;
}
.site-header .nav-row { display: contents; }
.site-header .nav a,
.site-header .nav a.nav-main {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  color: #29493e;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  box-shadow: none;
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
  white-space: nowrap;
  transform: none;
}
.site-header .nav a:hover,
.site-header .nav a:focus-visible {
  color: #267444;
  background: transparent;
  border-bottom-color: #3ea84d;
  box-shadow: none;
  transform: none;
}
.site-header .nav .has-menu { position: relative; }
.site-header .nav .has-menu > a::after {
  content: '⌄';
  margin-left: 5px;
  color: #588a72;
  font-size: .9em;
}
.site-header .submenu {
  top: calc(100% - 2px);
  min-width: 220px;
  padding: 8px;
  border: 1px solid #e4eee8;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(23, 55, 43, .14);
}
.site-header .has-menu:focus-within > .submenu { display: block; }
.site-header .submenu a {
  display: block;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  color: #29493e;
  font-size: .78rem;
  white-space: normal;
}
.site-header .submenu a:hover,
.site-header .submenu a:focus-visible {
  color: #267444;
  background: #edf6f0;
  border: 0;
}
.site-header .header-cta { display: flex; align-items: center; gap: 10px; }
.site-header .header-cta .phone { display: none; }
.site-header .header-cta .btn {
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(46, 139, 60, .18);
  font-size: .74rem;
  white-space: nowrap;
}
.copyright a {
  color: #c5eee0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.copyright a:hover,
.copyright a:focus-visible { color: #fff; }
.footer-credit-separator { margin: 0 .55em; color: #9cafaa; }

/* The restored large emblem reaches into the breadcrumb; keep its text clear. */
@media (min-width: 981px) {
  .breadcrumbs ol { padding-left: 190px; }
}

@media (max-width: 1120px) {
  .site-header .header-inner { min-height: 120px; gap: 12px; }
  .site-header .nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 20px;
    right: 20px;
    z-index: 70;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 105px);
    overflow-y: auto;
    padding: 12px;
    background: #fff;
    border: 1px solid #dfebe3;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(21, 49, 37, .18);
  }
  .site-header .nav.open { display: flex; }
  .site-header .nav-row { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .site-header .nav a,
  .site-header .nav a.nav-main {
    display: block;
    padding: 12px 14px;
    border: 0;
    border-radius: 8px;
    font-size: .86rem;
  }
  .site-header .nav a:hover,
  .site-header .nav a:focus-visible { background: #edf6f0; border: 0; }
  .site-header .submenu {
    position: static;
    display: block;
    min-width: 0;
    margin: 0 0 4px 12px;
    padding: 0 0 0 10px;
    border: 0;
    border-left: 2px solid #e0eee4;
    border-radius: 0;
    box-shadow: none;
  }
  .site-header .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border: 1px solid #d8e7dd;
    border-radius: 10px;
    color: #285741;
    font-size: 1.35rem;
    line-height: 1;
  }
}

@media (max-width: 980px) {
  .site-header .header-inner { min-height: 80px; }
  .site-header .logo-emblem {
    width: 90px;
    height: 90px;
    flex-basis: 90px;
    margin: -12px 8px -18px 0;
  }
  .site-header .logo-wordmark { align-self: center; margin: 0; }
}

@media (max-width: 700px) {
  .topbar .container {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 6px 12px;
    text-align: center;
  }
  .topbar .hours { white-space: normal; text-align: center; font-size: .7rem; }
  .topbar-right { justify-content: center; }
  .topbar-right-links { justify-content: center; font-size: .7rem; }
  .topbar-socials { display: none; }
  .site-header .header-inner { min-height: 70px; padding: 7px 14px; }
  .site-header .logo-wordmark { display: none; }
  .site-header .logo-emblem {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    margin: -8px 6px -14px 0;
  }
  .site-header .header-cta { justify-self: end; }
  .site-header .header-cta .btn { padding: 10px 13px; font-size: .7rem; }
  .site-header .nav { left: 10px; right: 10px; }
}
