/*
Theme Name: Birthdaywishjoy Kadence Child
Template: kadence
Version: 1.0.0
Text Domain: birthdaywishjoy-kadence-child
*/

:root {
  --bwj-ink: #171b27;
  --bwj-muted: #646d7d;
  --bwj-line: #ece3dd;
  --bwj-pink: #df5a82;
  --bwj-coral: #f28d72;
  --bwj-gold: #f7c85f;
  --bwj-mint: #95d5c8;
  --bwj-blue: #607fc7;
  --bwj-lavender: #9a77d9;
}

.site-branding a.brand,
.mobile-site-branding a.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-branding a.brand::before,
.mobile-site-branding a.brand::before {
  content: "";
  display: inline-block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background-image: url("assets/birthdaywishjoy-mark.svg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 22px rgba(223, 90, 130, .18);
}

.site-branding .site-title,
.mobile-site-branding .site-title {
  letter-spacing: 0;
}

.bwj-home {
  background:
    radial-gradient(circle at 12% 14%, rgba(247, 200, 95, .18), transparent 28%),
    radial-gradient(circle at 86% 20%, rgba(149, 213, 200, .2), transparent 30%),
    #fffdfa;
  color: var(--bwj-ink);
  font-family: inherit;
  overflow-x: hidden;
}

.bwj-home *,
.bwj-home *::before,
.bwj-home *::after {
  box-sizing: border-box;
}

.bwj-wrap {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.bwj-hero {
  padding: clamp(32px, 4.5vw, 62px) 0 30px;
}

.bwj-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.bwj-hero-grid > * {
  min-width: 0;
}

.bwj-kicker,
.bwj-card-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(223, 90, 130, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #a34461;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  padding: 12px 18px;
  text-transform: uppercase;
}

.bwj-title {
  max-width: 760px;
  margin: 20px 0 14px;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 850;
}

.bwj-subtitle {
  max-width: 620px;
  margin: 0;
  color: var(--bwj-muted);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.55;
}

.bwj-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.bwj-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bwj-line);
  border-radius: 8px;
  padding: 0 24px;
  background: #fff;
  color: var(--bwj-ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(23, 27, 39, .07);
}

.bwj-button.primary {
  border-color: transparent;
  background: var(--bwj-pink);
  color: #fff;
}

.bwj-feature-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bwj-feature-tile {
  position: relative;
  display: flex;
  min-height: 158px;
  overflow: hidden;
  border-radius: 8px;
  padding: 22px;
  align-items: flex-end;
  isolation: isolate;
  background: linear-gradient(135deg, var(--bwj-pink), var(--bwj-coral));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 24px 48px rgba(23, 27, 39, .13);
}

.bwj-feature-tile:nth-child(2) { background: linear-gradient(135deg, #4bafb0, #526bb3); }
.bwj-feature-tile:nth-child(3) { background: linear-gradient(135deg, #8a56de, #c45b96); }
.bwj-feature-tile:nth-child(4) { background: linear-gradient(135deg, #4a9acb, #8c7850); }

.bwj-feature-tile.has-image {
  background-size: cover;
  background-position: center;
}

.bwj-feature-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(16, 20, 30, .08), rgba(16, 20, 30, .78));
}

.bwj-feature-tile span,
.bwj-feature-tile strong,
.bwj-feature-tile em {
  display: block;
  position: relative;
}

.bwj-feature-tile strong {
  font-size: clamp(22px, 2.35vw, 30px);
  line-height: 1.05;
}

.bwj-feature-tile em {
  max-width: 96%;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.35;
  font-style: normal;
  color: rgba(255, 255, 255, .84);
}

.bwj-section {
  padding: 54px 0;
}

.bwj-section.alt {
  background: #fff7f2;
}

.bwj-section-head {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.bwj-section-head h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.bwj-section-head p {
  max-width: 460px;
  margin: 10px 0 0;
  color: var(--bwj-muted);
  font-size: 17px;
  line-height: 1.6;
}

.bwj-view-link {
  flex: 0 0 auto;
  color: #a34461;
  font-weight: 800;
  text-decoration: none;
}

.bwj-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.bwj-post-card,
.bwj-category-card {
  overflow: hidden;
  border: 1px solid var(--bwj-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(23, 27, 39, .06);
}

.bwj-post-card a,
.bwj-category-card a {
  color: inherit;
  text-decoration: none;
}

.bwj-post-card img,
.bwj-category-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f7eee8;
}

.bwj-post-body,
.bwj-category-body {
  padding: 18px;
}

.bwj-post-body span,
.bwj-category-body span {
  display: block;
  margin-bottom: 8px;
  color: #a34461;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bwj-post-body h3,
.bwj-category-body h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.22;
  letter-spacing: 0;
}

.bwj-category-body p {
  margin: 10px 0 0;
  color: var(--bwj-muted);
  font-size: 15px;
  line-height: 1.55;
}

.bwj-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bwj-link-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.bwj-link-pill {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--bwj-line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
  color: var(--bwj-ink);
  font-weight: 800;
  text-decoration: none;
}

.bwj-link-pill small {
  color: var(--bwj-muted);
  font-size: 12px;
  font-weight: 700;
}

.bwj-editorial {
  border-top: 1px solid var(--bwj-line);
  padding: 38px 0 60px;
  color: var(--bwj-muted);
  font-size: 16px;
  line-height: 1.7;
}

.bwj-editorial strong {
  color: var(--bwj-ink);
}

@media (max-width: 980px) {
  .bwj-hero-grid,
  .bwj-card-grid,
  .bwj-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bwj-hero-copy {
    grid-column: 1 / -1;
  }

  .bwj-feature-board {
    grid-column: 1 / -1;
  }

  .bwj-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bwj-wrap {
    width: calc(100vw - 24px);
  }

  .bwj-hero {
    padding-top: 30px;
  }

  .bwj-hero-grid,
  .bwj-card-grid,
  .bwj-category-grid,
  .bwj-link-grid,
  .bwj-feature-board {
    grid-template-columns: 1fr;
  }

  .bwj-title {
    max-width: calc(100vw - 24px);
    font-size: clamp(26px, 7vw, 30px);
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .bwj-subtitle {
    max-width: calc(100vw - 24px);
    font-size: 16px;
    line-height: 1.5;
  }

  .bwj-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bwj-button {
    width: 100%;
    padding: 0 16px;
  }

  .bwj-section-head {
    display: block;
  }

  .bwj-view-link {
    display: inline-block;
    margin-top: 12px;
  }
}
