/* WisedHome Starter v2 — layout, spacing, and hover states.
   Colors/text/images/links are edited in the block editor itself.
   This file only covers spacing, card/button shape, and button HOVER
   colors (WordPress core buttons have no hover control in the UI). */

.wh-container{
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.wh-section{
  padding-top: 90px;
  padding-bottom: 90px;
}
.wh-hero{ padding-top: 80px; padding-bottom: 80px; }
.wh-trust-bar{ padding-top: 32px; padding-bottom: 32px; }

/* Cards */
.wh-card,
.wh-category-card,
.wh-compare-card{
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.wh-card{ padding-bottom: 24px; }
.wh-card figure,
.wh-category-card figure,
.wh-compare-card figure{ margin: 0 0 16px; }
.wh-card figure img,
.wh-category-card figure img,
.wh-compare-card figure img{
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  display: block;
  border-radius: 0;
}
.wh-card .wp-block-heading,
.wh-card > p{ padding-left: 22px; padding-right: 22px; }
.wh-card > p:last-child{ padding-bottom: 22px; }

.wh-category-card{ padding-bottom: 22px; }
.wh-category-card .wh-icon{ margin-top: 18px; }
.wh-category-card .wp-block-heading,
.wh-category-card p,
.wh-category-card a{ padding-left: 20px; padding-right: 20px; }

.wh-compare-card{ padding-bottom: 22px; }
.wh-compare-card .wp-block-heading,
.wh-compare-card p{ padding-left: 20px; padding-right: 20px; }

/* Review cards (no image) */
.wh-review-card{
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  padding: 28px 24px;
}
.wh-stars{ color: #f5a623; font-size: 18px; letter-spacing: 2px; }

/* Consistent icon style used across Trust Bar, Why Trust Us, Categories */
.wh-icon{
  font-size: 34px;
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}

/* Trust bar row */
.wh-trust-bar-row{ column-gap: 36px; row-gap: 12px; }
.wh-trust-bar-item{ white-space: nowrap; font-weight: 600; }

/* "Explore →" / "Read Review →" text links */
.wh-text-link{
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

/* Chip lists (Build Your Smart Home / Eco-Friendly Living topic lists) */
.wh-chip-list{ display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 24px 0 0; }
.wh-chip-list li{ margin: 0; }
.wh-chip-list a{
  display: inline-block;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #1a1a1a;
}

/* Footer */
.wh-footer .wp-block-heading{ margin-bottom: 16px; }
.wh-social-row{ display: flex; gap: 16px; margin-top: 14px; }
.wh-social-row a{ text-decoration: none; font-weight: 600; }

/* Sidebar (unchanged from v1) */
.wh-sidebar{
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 28px;
}
.wh-sidebar > * + *{ margin-top: 30px; }
.wh-sidebar .wp-block-heading{ margin-bottom: 14px; }

/* ---------------------------------------------------------
   QUERY LOOP CARDS (Latest Articles section)
   --------------------------------------------------------- */
.wp-block-post{
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  padding-bottom: 22px;
}
.wp-block-post-featured-image{ margin: 0 0 16px; }
.wp-block-post-featured-image img{
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  display: block;
}
.wp-block-post .wp-block-post-terms,
.wp-block-post .wp-block-post-title{
  margin-left: 20px;
  margin-right: 20px;
}
.wp-block-post-title{ font-size: 19px; margin-top: 6px; }
.wp-block-post-title a{ color: #1a1a1a; text-decoration: none; }

/* ---------------------------------------------------------
   BUTTON HOVER STATES — red (primary) and blue (secondary)
   Targets the classes WordPress generates for each swatch, so
   ANY button anywhere using these colors gets the hover
   automatically, including ones added later.
   --------------------------------------------------------- */
.wp-block-button__link.has-wh-red-background-color{ transition: background-color .18s ease; }
.wp-block-button__link.has-wh-red-background-color:hover,
.wp-block-button__link.has-wh-red-background-color:focus{
  background-color: #ef5169 !important;
}
.wp-block-button__link.has-wh-blue-background-color{ transition: background-color .18s ease; }
.wp-block-button__link.has-wh-blue-background-color:hover,
.wp-block-button__link.has-wh-blue-background-color:focus{
  background-color: #5aa0f5 !important;
}
.wp-block-button.is-style-outline .wp-block-button__link.has-wh-red-color{ transition: all .18s ease; }
.wp-block-button.is-style-outline .wp-block-button__link.has-wh-red-color:hover,
.wp-block-button.is-style-outline .wp-block-button__link.has-wh-red-color:focus{
  background-color: #dd183b !important;
  color: #fff !important;
}
.wp-block-button.is-style-outline .wp-block-button__link.has-wh-blue-color{ transition: all .18s ease; }
.wp-block-button.is-style-outline .wp-block-button__link.has-wh-blue-color:hover,
.wp-block-button.is-style-outline .wp-block-button__link.has-wh-blue-color:focus{
  background-color: #2f80ed !important;
  color: #fff !important;
}

/* Buttons/cards get the same 12–14px radius everywhere */
.wp-block-button__link{ border-radius: 8px; }

@media (max-width: 782px){
  .wh-container{ padding-left: 20px; padding-right: 20px; }
  .wh-section{ padding-top: 60px; padding-bottom: 60px; }
}
