/*
Theme Name: Petz Astra
Theme URI: https://www.petz.uk
Template: astra
Author: Petz
Author URI: https://www.petz.uk
Description: Petz - modern child theme powered by Astra
Version: 2.0.0
Text Domain: petz-astra
*/

/* ============================================
   PETZ DESIGN SYSTEM
   ============================================ */

:root {
  --petz-primary: #15d995;
  --petz-primary-dark: #0fb87e;
  --petz-accent: #17EBD2;
  --petz-gradient: linear-gradient(130deg, #15d995, #17EBD2);
  --petz-dark: #1a192b;
  --petz-dark-soft: #2a293b;
  --petz-text: #333;
  --petz-text-light: #666;
  --petz-bg: #f8fafb;
  --petz-white: #ffffff;
  --petz-border: #e8edf2;
  --petz-shadow: 0 2px 20px rgba(0,0,0,0.06);
  --petz-shadow-hover: 0 8px 30px rgba(21,217,149,0.15);
  --petz-radius: 12px;
  --petz-radius-sm: 8px;
  --petz-font: 'Inter', 'Varela Round', system-ui, -apple-system, sans-serif;
  --petz-font-heading: 'Inter', 'Varela Round', system-ui, sans-serif;
  --petz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ── */
body {
  font-family: var(--petz-font);
  color: var(--petz-text);
  background: var(--petz-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--petz-font-heading);
  color: var(--petz-dark);
  line-height: 1.3;
  font-weight: 700;
}

a {
  color: var(--petz-primary-dark);
  text-decoration: none;
  transition: var(--petz-transition);
}
a:hover {
  color: var(--petz-primary);
}

/* ── Header ── */
.ast-primary-header-bar {
  background: var(--petz-gradient) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.ast-primary-header-bar .ast-builder-menu-mobile .main-header-menu-toggle .ast-mobile-svg {
  fill: white;
}
.ast-primary-header-bar,
.ast-primary-header-bar .main-header-menu > .menu-item > a,
.ast-primary-header-bar .ast-header-search-icon {
  color: #fff !important;
}
.main-header-menu > .menu-item > a {
  font-family: var(--petz-font) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}
.main-header-menu > .menu-item > a:hover,
.main-header-menu > .menu-item.current-menu-item > a {
  opacity: 0.85;
}
.ast-sticky-active .ast-primary-header-bar {
  background: var(--petz-gradient) !important;
  backdrop-filter: blur(10px);
}
.ast-header-break-point .ast-mobile-header-wrap .ast-primary-header-bar {
  background: var(--petz-gradient) !important;
}

/* ── Hero Section (Posts & Pages) ── */
.petz-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 2rem;
}
.petz-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.petz-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,25,43,0.85) 0%, rgba(26,25,43,0.3) 100%);
}
.petz-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
}
.petz-hero__title {
  color: #fff !important;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.petz-hero__meta {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.petz-hero__meta a {
  color: var(--petz-accent);
}
.petz-hero__breadcrumb {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  z-index: 2;
  font-size: 0.8rem;
}
.petz-hero__breadcrumb,
.petz-hero__breadcrumb a {
  color: rgba(255,255,255,0.7);
}

/* ── Content Area ── */
.entry-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}
.entry-content h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--petz-primary);
  display: inline-block;
}
.entry-content h3 {
  margin-top: 2rem;
  color: var(--petz-dark);
}
.entry-content img {
  border-radius: var(--petz-radius);
  box-shadow: var(--petz-shadow);
}
.entry-content blockquote {
  border-left: 4px solid var(--petz-primary);
  background: linear-gradient(135deg, #f0fdf7 0%, #f0f9ff 100%);
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--petz-radius-sm) var(--petz-radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
}
.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
}
.entry-content li {
  margin-bottom: 0.5rem;
}

/* ── Last Updated Badge (enhanced from snippet) ── */
.entry-content > p[style*='#f0f9ff'] {
  border-radius: var(--petz-radius-sm) !important;
  box-shadow: var(--petz-shadow);
}

/* ── Sidebar Widgets ── */
.widget {
  background: var(--petz-white);
  border-radius: var(--petz-radius);
  padding: 1.5rem;
  box-shadow: var(--petz-shadow);
  margin-bottom: 1.5rem;
}
.widget-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--petz-primary);
  margin-bottom: 1rem;
}

/* ── Footer ── */
.ast-footer-overlay {
  background: var(--petz-dark) !important;
}
.site-footer,
.ast-small-footer {
  background: var(--petz-dark) !important;
  color: rgba(255,255,255,0.7);
}
.site-footer a {
  color: var(--petz-accent);
}
.site-footer a:hover {
  color: var(--petz-primary);
}
.site-footer .widget-title {
  color: #fff;
  border-bottom-color: var(--petz-primary);
}
.ast-small-footer {
  border-top: 1px solid var(--petz-dark-soft);
}

/* ── Cards / Archive Grid ── */
.ast-article-post {
  background: var(--petz-white);
  border-radius: var(--petz-radius);
  overflow: hidden;
  box-shadow: var(--petz-shadow);
  transition: var(--petz-transition);
}
.ast-article-post:hover {
  box-shadow: var(--petz-shadow-hover);
  transform: translateY(-3px);
}
.ast-article-post .post-thumb-img-content img {
  transition: transform 0.4s ease;
}
.ast-article-post:hover .post-thumb-img-content img {
  transform: scale(1.03);
}

/* ── Product Repeater (ACF Shortcode) ── */
.item-container {
  max-width: 900px;
  margin: 2rem auto;
}
.item-container .row {
  display: flex;
  flex-wrap: wrap;
}
.item-container .col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 768px) {
  .item-container .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .item-container .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .item-container .col-md-8 { flex: 0 0 66.667%; max-width: 66.667%; }
}
.rp-product {
  background: var(--petz-white);
  border-radius: var(--petz-radius);
  box-shadow: var(--petz-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--petz-transition);
}
.rp-product:hover {
  box-shadow: var(--petz-shadow-hover);
}
.rp-box h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.itemrank span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--petz-gradient);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}
.rp-product .image img {
  width: 100%;
  border-radius: var(--petz-radius-sm);
  transition: transform 0.3s ease;
}
.rp-product:hover .image img {
  transform: scale(1.02);
}
.rp-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--petz-primary-dark);
  margin-top: 1rem;
}
.features ul, .specifications ul {
  list-style: none;
  padding: 0;
}
.features li::before {
  content: '✓ ';
  color: var(--petz-primary);
  font-weight: 700;
}
.specifications li::before {
  content: '• ';
  color: var(--petz-text-light);
}
.btn-rp-view-prices button {
  background: var(--petz-gradient);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--petz-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--petz-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.btn-rp-view-prices button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21,217,149,0.3);
}

/* ── Buttons ── */
.wp-block-button__link,
.ast-button,
input[type='submit'] {
  background: var(--petz-gradient) !important;
  border: none !important;
  border-radius: var(--petz-radius-sm) !important;
  font-weight: 600;
  transition: var(--petz-transition);
}
.wp-block-button__link:hover,
.ast-button:hover,
input[type='submit']:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21,217,149,0.3);
}

/* ── Table of Contents ── */
.rank-math-toc-container {
  background: var(--petz-white);
  border: 1px solid var(--petz-border);
  border-radius: var(--petz-radius);
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
}
.rank-math-toc-container nav > ul {
  padding-left: 1rem;
}

/* ── 404 Page ── */
.error-404 {
  text-align: center;
  padding: 4rem 1rem;
}
.error-404 h1 {
  font-size: 4rem;
  background: var(--petz-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-404 .search-form {
  max-width: 500px;
  margin: 2rem auto;
}

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }

/* ── Selection ── */
::selection {
  background: var(--petz-primary);
  color: white;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .petz-hero { min-height: 280px; }
  .petz-hero__title { font-size: 1.6rem; }
  .petz-hero__content { padding: 2rem 1rem; }
  .entry-content { font-size: 1rem; }
}
