/*
Theme Name: NewAgePet Recovery
Version: 0.2.0
Text Domain: newagepet-recovery
*/

:root {
  --nap-ink: #2d2925;
  --nap-green: #6da854;
  --nap-deep-green: #38693a;
  --nap-orange: #f36c21;
  --nap-sky: #85dbe0;
  --nap-utility: #f4f4f4;
  --nap-line: #e4e4e4;
  --nap-frame: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--nap-ink); background: #fff; font-family: "Maven Pro", Arial, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button { cursor: pointer; }
.nap-frame { width: min(var(--nap-frame), calc(100% - 48px)); margin-inline: auto; }
.page-main { min-height: 42vh; }

.nap-utility { display: flex; align-content: center; align-items: center; flex-wrap: wrap; gap: 13px 28px; max-width: 500px; color: #575757; font-size: 12px; line-height: 1.2; }
.nap-utility__spacer { flex: 1; }
.nap-masthead { display: grid; grid-template-columns: 220px 1fr auto; min-height: 135px; align-items: center; gap: 29px; }
.nap-logo { grid-column: 1; display: block; }
.nap-logo .custom-logo-link, .nap-logo__image { display: block; width: 220px; height: auto; }
.nap-logo .custom-logo { display: block; width: 220px; height: auto; }
.nap-actions { grid-column: 3; display: flex; justify-content: end; align-items: center; gap: 17px; }
.nap-localization { color: #575757; font-size: 12px; white-space: nowrap; }
.nap-icon-button { position: relative; display: grid; width: 28px; height: 28px; padding: 0; place-items: center; color: var(--nap-ink); background: transparent; border: 0; }
.nap-icon-button svg { width: 22px; height: 22px; }
.nap-icon-button:hover { color: var(--nap-green); }
.nap-cart svg { width: 28px; height: 28px; }
.nap-cart__count { position: absolute; top: -5px; right: -7px; display: grid; min-width: 15px; height: 15px; padding-inline: 3px; place-items: center; color: #fff; background: var(--nap-orange); border-radius: 50%; font-size: 10px; line-height: 1; }
.nap-mobile-menu { display: none; }
.nap-search { display: flex; gap: 12px; align-items: center; padding: 16px 0; }
.nap-search label { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0, 0, 0, 0); }
.nap-search input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--nap-line); }
.nap-search button, .nap-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 9px 23px; color: #fff; background: var(--nap-orange); border: 1px solid var(--nap-orange); font-size: 14px; font-weight: 600; }
.nap-search button:hover, .nap-button:hover { color: #fff; background: #cc5819; border-color: #cc5819; text-decoration: none; }
.nap-main-nav { border: 0; background: #777879; }
.nap-main-nav ul { display: flex; min-height: 51px; align-items: stretch; justify-content: center; gap: 39px; margin: 0; padding: 0; list-style: none; }
.nap-main-nav li { position: relative; display: flex; align-items: center; }
.nap-main-nav > .nap-frame > ul > li > a { display: flex; min-height: 46px; align-items: center; color: #fff; border-bottom: 3px solid transparent; font-size: 15px; font-weight: 600; }
.nap-main-nav > .nap-frame > ul > li:hover > a, .nap-main-nav > .nap-frame > ul > li:focus-within > a { border-bottom-color: #fff; text-decoration: none; }
.nap-main-nav .sub-menu { position: absolute; z-index: 20; top: calc(100% - 1px); left: -20px; display: none; min-width: 210px; padding: 12px 0; background: #fff; border: 1px solid var(--nap-line); box-shadow: 0 9px 20px rgb(0 0 0 / 10%); }
.nap-main-nav li:hover > .sub-menu, .nap-main-nav li:focus-within > .sub-menu { display: block; }
.nap-main-nav .sub-menu li { display: block; }
.nap-main-nav .sub-menu a { display: block; padding: 8px 19px; font-size: 14px; }
.nap-main-nav .sub-menu a:hover { color: var(--nap-green); text-decoration: none; }

.nap-home-carousel { position: relative; overflow: hidden; background: #ddd; }
.nap-home-carousel__track { position: relative; height: 477px; }
.nap-home-slide { position: absolute; inset: 0; display: grid; opacity: 0; transition: opacity 500ms ease; }
.nap-home-slide.is-active { position: relative; opacity: 1; }
.nap-home-slide__image { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; }
.nap-home-slide::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgb(0 0 0 / 42%) 0%, rgb(0 0 0 / 20%) 45%, transparent 75%); pointer-events: none; }
.nap-home-slide__content { grid-area: 1 / 1; z-index: 1; align-self: center; color: #fff; pointer-events: none; }
.nap-home-slide__content > * { max-width: 475px; pointer-events: auto; }
.nap-home-slide__content p { margin: 0 0 11px; font-size: 16px; font-weight: 500; }
.nap-home-slide__content h1 { margin: 0 0 18px; font-size: 48px; font-weight: 600; line-height: 1.05; }
.nap-carousel-control { position: absolute; z-index: 2; top: calc(50% - 23px); display: grid; width: 46px; height: 46px; padding: 0; place-items: center; color: #fff; background: rgb(0 0 0 / 23%); border: 0; font-size: 38px; line-height: 1; }
.nap-carousel-control:hover { background: rgb(0 0 0 / 48%); }
.nap-carousel-control--previous { left: 19px; }
.nap-carousel-control--next { right: 19px; }
.nap-carousel-dots { position: absolute; z-index: 2; bottom: 19px; left: 50%; display: flex; gap: 9px; transform: translateX(-50%); }
.nap-carousel-dots button { width: 9px; height: 9px; padding: 0; background: rgb(255 255 255 / 60%); border: 1px solid #fff; border-radius: 50%; }
.nap-carousel-dots button[aria-selected="true"] { background: #fff; }

.nap-information { padding-block: 35px 48px; background: #fff; }
.nap-information__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 125px; align-items: center; }
.nap-help-card, .nap-ecoflex-card { min-height: 310px; padding: 54px 9%; }
.nap-help-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; color: #fff; background: var(--nap-green); border-radius: 9px; }
.nap-help-card p { max-width: 300px; margin: 0 0 30px; font-size: 28px; font-weight: 600; line-height: 1.2; }
.nap-help-card strong { padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 16px; }
.nap-help-card:hover { color: #fff; text-decoration: none; background: var(--nap-deep-green); }
.nap-ecoflex-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-inline: 0; background: #fff; }
.nap-ecoflex-card__logo { width: 380px; max-width: 100%; margin-bottom: 15px; }
.nap-ecoflex-card p { margin: 0 0 8px; color: #4e4e4e; font-size: 12px; font-weight: 600; }
.nap-ecoflex-card > a:not(.nap-inline-link) { max-width: 500px; color: #575757; font-size: 15px; font-weight: 400; line-height: 1.7; }
.nap-inline-link { display: inline-block; margin-top: 19px; padding-bottom: 3px; color: var(--nap-ink); border-bottom: 1px solid currentColor; font-size: 14px; font-weight: 600; }
.nap-inline-link:hover { color: var(--nap-green); text-decoration: none; }

.nap-category-section { padding-block: 64px; }
.nap-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nap-category-card { position: relative; display: block; overflow: hidden; color: #fff; background: #d0d0d0; aspect-ratio: 3 / 2; }
.nap-category-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 250ms ease; }
.nap-category-card:hover .nap-category-card__image { transform: scale(1.035); }
.nap-category-card span { position: absolute; right: 0; bottom: 0; left: 0; padding: 15px 18px; color: #fff; background: rgb(0 0 0 / 48%); font-size: 20px; font-weight: 600; }
.nap-category-card:hover { color: #fff; text-decoration: none; }
.nap-category-card:last-child { grid-column: 2 / span 2; }

.nap-learning { padding-block: 12px 68px; }
.nap-learning__grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 55px; align-items: center; }
.nap-learning__image { overflow: hidden; background: #ececec; }
.nap-learning__image img { width: 100%; height: 100%; aspect-ratio: 1.22; object-fit: cover; }
.nap-learning__copy { max-width: 510px; }
.nap-kicker { margin: 0 0 5px; color: var(--nap-green); font-size: 16px; font-weight: 600; }
.nap-learning h2 { margin: 0; font-size: 39px; font-weight: 600; line-height: 1.12; }
.nap-learning__copy > p:not(.nap-kicker) { margin: 22px 0 0; font-size: 17px; line-height: 1.7; }

.content-wrap { width: min(1200px, calc(100% - 40px)); margin: 48px auto; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.product-card__image { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f5f5f5; }
.product-card h2 { margin: 12px 0 5px; font-size: 17px; line-height: 1.3; }
.price { color: var(--nap-green); font-weight: 700; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 48px; }
.woocommerce-product-gallery__image a { display: block; background: #f5f5f5; }
.single-product .summary h1 { margin-top: 0; font-size: 34px; line-height: 1.15; }
.single-product .woocommerce-variation-add-to-cart, .single-product form.cart { display: grid; gap: 16px; }
.single-product .single_add_to_cart_button { border: 0; padding: 14px 24px; color: #fff; background: var(--nap-orange); font-weight: 700; cursor: pointer; }
.woocommerce-product-details__short-description, .woocommerce-product-details__description { margin-top: 24px; }

.site-footer { padding: 50px 24px 24px; color: #fff; background: #3f7041; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: var(--nap-frame); margin: 0 auto; }
.footer-grid h2 { margin: 0 0 12px; font-size: 18px; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin: 7px 0; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.copyright { max-width: var(--nap-frame); margin: 33px auto 0; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 35%); font-size: 13px; }

@media (max-width: 900px) {
  .nap-utility { display: none; }
  .nap-masthead { grid-template-columns: 1fr auto 1fr; min-height: 75px; gap: 0; }
  .nap-mobile-menu { display: grid; grid-column: 1; }
  .nap-actions { gap: 10px; }
  .nap-main-nav { display: none; }
  .nap-main-nav.is-open { display: block; }
  .nap-main-nav ul { display: block; min-height: 0; padding: 10px 0; }
  .nap-main-nav li { display: block; }
  .nap-main-nav > .nap-frame > ul > li > a { min-height: 0; padding: 11px 0; color: #fff; border-bottom: 0; }
  .nap-main-nav .sub-menu { position: static; display: block; min-width: 0; margin-left: 14px; padding: 0; border: 0; box-shadow: none; }
  .nap-main-nav .sub-menu a { padding: 7px 0; }
  .nap-home-carousel__track { height: 430px; }
  .nap-home-slide__content p { font-size: 16px; }
  .nap-home-slide__content h1 { margin-bottom: 16px; font-size: 39px; }
  .nap-information__grid, .nap-learning__grid { grid-template-columns: 1fr; gap: 0; }
  .nap-help-card, .nap-ecoflex-card { min-height: 214px; padding: 36px 9%; }
  .nap-category-grid { grid-template-columns: repeat(2, 1fr); gap: 13px; }
  .nap-category-card:last-child { grid-column: auto; }
  .nap-learning { padding-top: 0; }
  .nap-learning__copy { padding: 36px 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .nap-frame { width: min(100% - 32px, var(--nap-frame)); }
  .nap-logo .custom-logo-link, .nap-logo__image, .nap-logo .custom-logo { width: 150px; }
  .nap-actions { gap: 4px; }
  .nap-actions .nap-icon-button:first-child { display: none; }
  .nap-home-carousel__track { height: 455px; }
  .nap-home-slide__image { object-position: 58% center; }
  .nap-home-slide__content { align-self: end; padding-bottom: 64px; }
  .nap-home-slide__content p { max-width: 240px; }
  .nap-home-slide__content h1 { max-width: 260px; font-size: 34px; }
  .nap-carousel-control { display: none; }
  .nap-ecoflex-card > a:not(.nap-inline-link) { font-size: 15px; }
  .nap-help-card p { font-size: 24px; }
  .nap-category-section { padding-block: 38px; }
  .nap-category-card span { padding: 11px 12px; font-size: 16px; }
  .nap-learning h2 { font-size: 31px; }
  .product-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-layout { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; transition-duration: 0.01ms !important; }
}
