/*
Theme Name: Paws and Years Child
Theme URI: https://pawsandyears.com
Description: Custom child theme for Paws and Years - a warm, professional pet-care blog focused on cats and dogs. Built on Astra.
Author: Paws and Years
Template: astra
Version: 1.0.0
Text Domain: paws-and-years-child
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root{
  --pay-terracotta:      #C7623F;
  --pay-terracotta-dark: #A84E2F;
  --pay-terracotta-light:#F2DACD;
  --pay-sage:            #8A9A6E;
  --pay-sage-dark:       #6E7D57;
  --pay-sage-light:      #E4E9DB;
  --pay-cream:           #FBF7F1;
  --pay-cream-deep:      #F3ECE2;
  --pay-card:            #FFFFFF;
  --pay-charcoal:        #3A322C;
  --pay-muted:           #7A6F64;
  --pay-border:          #EDE3D8;
  --pay-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pay-font-body: 'Lora', Georgia, 'Times New Roman', serif;
}

/* ==========================================================================
   2. BASE / TYPOGRAPHY
   ========================================================================== */
body{
  background-color: var(--pay-cream);
  color: var(--pay-charcoal);
  font-family: var(--pay-font-body);
  font-size: 17px;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .site-title, .ast-woocommerce-container h2{
  font-family: var(--pay-font-heading);
  font-weight: 600;
  color: var(--pay-charcoal);
  letter-spacing: -0.01em;
}

a{ color: var(--pay-terracotta); }
a:hover{ color: var(--pay-terracotta-dark); }

::selection{ background: var(--pay-terracotta-light); color: var(--pay-charcoal); }

/* Comfortable single-post reading width */
.single .entry-content{
  font-size: 1.05rem;
  line-height: 1.85;
}
.entry-content p{ margin-bottom: 1.4em; }

.entry-content h2{
  margin-top: 2.2em;
  padding-bottom: 0.35em;
  border-bottom: 2px solid var(--pay-sage-light);
}
.entry-content h3{ margin-top: 1.8em; color: var(--pay-terracotta-dark); }

.entry-content blockquote{
  border-left: 4px solid var(--pay-sage);
  background: var(--pay-sage-light);
  padding: 1em 1.4em;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

/* Paw-print list bullets - subtle pet touch */
.entry-content ul:not(.wp-block-gallery):not([class*="ast-"]) li{
  list-style: none;
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.5em;
}
.entry-content ul:not(.wp-block-gallery):not([class*="ast-"]) li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23C7623F'%3E%3Cellipse cx='32' cy='40' rx='16' ry='13'/%3E%3Cellipse cx='14' cy='22' rx='7' ry='9'/%3E%3Cellipse cx='50' cy='22' rx='7' ry='9'/%3E%3Cellipse cx='22' cy='10' rx='6' ry='8'/%3E%3Cellipse cx='42' cy='10' rx='6' ry='8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ==========================================================================
   3. HEADER / NAVIGATION
   ========================================================================== */
.ast-above-header, .site-header, .main-header-bar{
  background-color: var(--pay-card);
  border-bottom: 3px solid var(--pay-sage);
}
.site-title a, .site-title a:hover{
  font-family: var(--pay-font-heading);
  font-weight: 700;
  color: var(--pay-terracotta);
}
.site-description{ color: var(--pay-muted); font-family: var(--pay-font-body); }

.main-header-menu .menu-item a,
.ast-header-navigation-arrow{
  font-family: var(--pay-font-heading);
  font-weight: 500;
  color: var(--pay-charcoal);
}
.main-header-menu .menu-item a:hover,
.main-header-menu .current-menu-item > a{
  color: var(--pay-terracotta);
}

/* ==========================================================================
   4. HOMEPAGE HERO
   ========================================================================== */
.pay-hero{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(135deg, var(--pay-sage-light) 0%, var(--pay-cream) 60%);
  border-radius: 18px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  border: 1px solid var(--pay-border);
}
.pay-hero-image{
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(58, 50, 44, 0.15);
}
.pay-hero-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
}
.pay-hero-badge{
  display: inline-block;
  background: var(--pay-terracotta);
  color: #fff;
  font-family: var(--pay-font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.pay-hero-title{
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 0.7rem;
}
.pay-hero-title a{ color: var(--pay-charcoal); text-decoration: none; }
.pay-hero-title a:hover{ color: var(--pay-terracotta); }
.pay-hero-excerpt{
  color: var(--pay-muted);
  font-size: 1.02rem;
  margin-bottom: 1.2rem;
}
.pay-hero-meta{
  font-family: var(--pay-font-heading);
  font-size: 0.82rem;
  color: var(--pay-muted);
  margin-bottom: 1.2rem;
}
.pay-btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--pay-font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--pay-terracotta);
  color: #fff !important;
  padding: 0.7em 1.5em;
  border-radius: 999px;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.15s ease;
}
.pay-btn:hover{ background: var(--pay-terracotta-dark); transform: translateY(-1px); }

/* ==========================================================================
   5. ARTICLE GRID / CARDS
   ========================================================================== */
.pay-section-title{
  font-size: 1.4rem;
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.pay-section-title::before{
  content: "";
  width: 22px;
  height: 22px;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%238A9A6E'%3E%3Cellipse cx='32' cy='40' rx='16' ry='13'/%3E%3Cellipse cx='14' cy='22' rx='7' ry='9'/%3E%3Cellipse cx='50' cy='22' rx='7' ry='9'/%3E%3Cellipse cx='22' cy='10' rx='6' ry='8'/%3E%3Cellipse cx='42' cy='10' rx='6' ry='8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.pay-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-bottom: 3rem;
}
.pay-card{
  background: var(--pay-card);
  border: 1px solid var(--pay-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.pay-card:hover{
  box-shadow: 0 14px 28px rgba(58, 50, 44, 0.12);
  transform: translateY(-3px);
}
.pay-card-thumb{
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--pay-cream-deep);
}
.pay-card-thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.pay-card-body{ padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.pay-card-cat{
  font-family: var(--pay-font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pay-sage-dark);
  background: var(--pay-sage-light);
  display: inline-block;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  margin-bottom: 0.7rem;
  width: fit-content;
}
.pay-card-title{
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}
.pay-card-title a{ color: var(--pay-charcoal); text-decoration: none; }
.pay-card-title a:hover{ color: var(--pay-terracotta); }
.pay-card-excerpt{
  color: var(--pay-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.9rem;
  flex: 1;
}
.pay-card-readmore{
  font-family: var(--pay-font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pay-terracotta);
  text-decoration: none;
}
.pay-card-readmore:hover{ color: var(--pay-terracotta-dark); }

@media (max-width: 921px){
  .pay-grid{ grid-template-columns: repeat(2, 1fr); }
  .pay-hero{ grid-template-columns: 1fr; }
}
@media (max-width: 600px){
  .pay-grid{ grid-template-columns: 1fr; }
  .pay-hero{ padding: 1.5rem; }
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.ast-small-footer, footer.site-footer{
  background-color: var(--pay-charcoal);
  color: var(--pay-cream-deep);
  border-top: 4px solid var(--pay-terracotta);
}
.ast-small-footer a, footer.site-footer a{ color: var(--pay-sage-light); }
.ast-small-footer a:hover, footer.site-footer a:hover{ color: var(--pay-terracotta-light); }

/* ==========================================================================
   7. MISC / WIDGETS / BUTTONS
   ========================================================================== */
.widget-title{ font-family: var(--pay-font-heading); color: var(--pay-terracotta-dark); }
button, input[type="submit"], .wp-block-button__link, .ast-button{
  font-family: var(--pay-font-heading) !important;
  background-color: var(--pay-terracotta) !important;
  border-radius: 999px !important;
  border: none !important;
}
button:hover, input[type="submit"]:hover, .wp-block-button__link:hover, .ast-button:hover{
  background-color: var(--pay-terracotta-dark) !important;
}

/* Hide Astra's default post loop on the homepage - replaced by pay-hero + pay-grid above */
.pay-default-loop-hidden{ display: none !important; }
