/*
Theme Name: Puppy Behavior Guide Astra Child
Theme URI: https://puppybehaviorguide.com/
Description: Astra child theme with a dynamic magazine-style front page for Puppy Behavior Guide.
Author: Puppy Behavior Guide
Template: astra
Version: 1.0.0
Text Domain: puppy-behavior-guide
*/

:root {
  --pbg-bg: #f7f4ef;
  --pbg-surface-soft: #eef4f1;
  --pbg-ink: #1f2623;
  --pbg-muted: #61706a;
  --pbg-line: #d9ded8;
  --pbg-brand: #2f6f64;
  --pbg-brand-dark: #194941;
  --pbg-gold: #d9a441;
  --pbg-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(217, 222, 216, 0.86);
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: blur(14px);
}

body.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  width: min(1160px, calc(100% - 32px));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--pbg-ink);
  text-decoration: none;
}

.brand:hover,
.brand:focus {
  color: var(--pbg-ink);
  text-decoration: none;
}

.pbg-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pbg-logo-mark {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: var(--pbg-brand);
  padding: 8px;
}

.pbg-logo-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pbg-logo-copy {
  display: grid;
  min-width: 0;
  line-height: 1;
}

.pbg-logo-title {
  color: var(--pbg-ink);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.pbg-logo-subtitle {
  width: fit-content;
  margin-top: 2px;
  border-bottom: 2px solid var(--pbg-gold);
  padding-bottom: 3px;
  color: var(--pbg-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-header .logo-img,
.site-header .custom-logo {
  display: block;
  width: 218px;
  max-height: 52px;
  height: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  color: var(--pbg-muted);
  font-size: 14px;
  font-weight: 650;
}

.nav .pbg-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav li {
  margin: 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: var(--pbg-radius);
  padding: 0 12px;
  color: var(--pbg-muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus {
  background: var(--pbg-surface-soft);
  color: var(--pbg-brand-dark);
  text-decoration: none;
}

.nav .nav-cta,
.nav .pbg-menu > li:last-child > a {
  justify-content: center;
  min-height: 42px;
  margin-left: 4px;
  padding: 0 16px;
  background: var(--pbg-brand);
  color: #fff;
  white-space: nowrap;
}

.nav .nav-cta:hover,
.nav .nav-cta:focus,
.nav .pbg-menu > li:last-child > a:hover,
.nav .pbg-menu > li:last-child > a:focus {
  background: var(--pbg-brand-dark);
  color: #fff;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav .pbg-menu {
    min-width: max-content;
  }
}

@media (max-width: 560px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .header-inner {
    width: min(100% - 22px, 1160px);
  }

  .pbg-logo-mark {
    width: 44px;
    height: 44px;
  }

  .pbg-logo-title {
    font-size: 17px;
  }

  .pbg-logo-subtitle {
    font-size: 12px;
  }

  .site-header .logo-img,
  .site-header .custom-logo {
    width: 198px;
    max-height: 46px;
  }

  .nav .nav-cta,
  .nav .pbg-menu > li:last-child > a {
    width: auto;
  }
}
