/*
Theme Name: BrandUNIQ Editorial
Theme URI: https://branduniq.com/
Description: Lightweight editorial child theme of Twenty Twenty-Five for BrandUNIQ.
Author: BrandUNIQ
Version: 0.4.0
Requires at least: 6.7
Requires PHP: 7.4
Template: twentytwentyfive
Text Domain: branduniq-editorial
*/

:root {
  --bu-wine: #7b0405;
  --bu-wine-dark: #54080a;
  --bu-wine-soft: #f8eeee;
  --bu-ink: #302b2a;
  --bu-muted: #716865;
  --bu-line: #e9e1dc;
  --bu-paper: #fff;
  --bu-cream: #faf8f5;
}

html { scroll-behavior: smooth; }
body {
  color: var(--bu-ink);
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  overflow-wrap: break-word;
}
body .wp-site-blocks { overflow: hidden; }
body a { text-underline-offset: 3px; }
body a:hover { color: var(--bu-wine); }
body :focus-visible { outline: 2px solid var(--bu-wine); outline-offset: 3px; }
.bu-eyebrow {
  margin: 0 0 14px;
  color: var(--bu-wine);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Header: reuses the real, existing BrandUNIQ logo. */
.bu-header {
  position: relative;
  z-index: 20;
  padding: 16px 0;
  border-bottom: 1px solid #f0ebea;
  background: #fff;
}
.bu-header-inner { gap: 28px; }
.bu-brand {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
}
.bu-brand > * { margin-left: 0 !important; margin-right: 0 !important; }
.bu-logo { width: min(310px, 100%); margin: 0; }
.bu-logo img { width: 100%; height: auto; object-fit: contain; }
.bu-logo a, .bu-logo img { display: block; }
.bu-tagline {
  margin: 0;
  width: 100%;
  text-align: left;
  color: #8a716e;
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .02em;
}
.bu-header .wp-block-navigation { gap: 22px; }
.bu-header .wp-block-navigation a {
  color: #5c3838;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
.bu-header .wp-block-navigation a:hover { color: var(--bu-wine); text-decoration: underline; }
.bu-header .wp-block-navigation__responsive-container-open {
  color: var(--bu-wine);
}

/* Hero */
.bu-hero {
  padding-top: 75px;
  padding-bottom: 66px;
  background: linear-gradient(115deg, #fff 10%, #fff 48%, #fcf8f5 100%);
  border-bottom: 4px solid var(--bu-wine);
}
.bu-hero .wp-block-columns { align-items: center; gap: 50px; }
.bu-hero h1 {
  max-width: 730px;
  margin: 0 0 25px;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  font-weight: 780;
  line-height: 1.11;
  letter-spacing: -.045em;
}
.bu-hero h1 strong, .bu-accent { color: var(--bu-wine); }
.bu-lead {
  max-width: 630px;
  color: #574d4b;
  font-size: clamp(1.08rem, 1.6vw, 1.27rem);
  line-height: 1.7;
}
.bu-ebook-visual {
  min-height: 380px;
  background-image: url("https://branduniq.com/wp-content/uploads/2015/01/header-img5-2023.jpg");
  background-size: auto 430px;
  background-repeat: no-repeat;
  background-position: 58% center;
}
.bu-button .wp-block-button__link,
.bu-button.wp-block-button .wp-block-button__link {
  padding: 13px 22px;
  background: var(--bu-wine);
  border-radius: 4px;
  color: #fff;
  font-size: .87rem;
  font-weight: 750;
  text-decoration: none;
  transition: background .16s ease;
}
.bu-button .wp-block-button__link:hover,
.bu-button.wp-block-button .wp-block-button__link:hover {
  background: var(--bu-wine-dark);
  color: #fff;
}
.bu-small { color: var(--bu-muted); font-size: .82rem; }

/* Front page editorial cards and right author summary. */
.bu-section { padding-top: 76px; padding-bottom: 74px; }
.bu-section h2,
.bu-about-hero h1 { letter-spacing: -.035em; }
.bu-section-title { margin: 0 0 25px; }
.bu-front-columns { gap: 45px; align-items: flex-start; }
.bu-front-main { min-width: 0; }
.bu-front-feed .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.bu-front-feed .wp-block-post { margin: 0; min-width: 0; }
.bu-front-feed .wp-block-post-featured-image { margin: 0 0 15px; }
.bu-front-feed .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
  border-radius: 4px;
}
.bu-front-feed .wp-block-post-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.33;
}
.bu-front-feed .wp-block-post-title a { color: var(--bu-ink); text-decoration: none; }
.bu-front-feed .wp-block-post-title a:hover { color: var(--bu-wine); }
.bu-front-feed .wp-block-post-excerpt {
  margin: 0;
  font-size: .89rem;
  line-height: 1.7;
  color: #645b58;
}
.bu-front-feed .wp-block-post-excerpt__more-link {
  display: block;
  margin-top: 10px;
  color: var(--bu-wine);
  font-weight: 750;
  text-decoration: none;
}
.bu-sidebar { align-self: flex-start; }
.bu-sticky { position: sticky; top: 30px; }
.bu-author-card {
  padding: 20px 0 25px;
  border-top: 3px solid var(--bu-wine);
  border-bottom: 1px solid var(--bu-line);
  margin-bottom: 25px;
}
.bu-author-card h2 { margin: 0 0 13px; font-size: 1.45rem; }
.bu-author-card p { color: #655c59; font-size: .91rem; line-height: 1.85; }
.bu-author-card a { color: var(--bu-wine); font-size: .86rem; font-weight: 750; text-decoration: none; }
.bu-author-card a:hover { text-decoration: underline; }

.bu-topic-band { background: var(--bu-cream); border-block: 1px solid #f0e9e4; }
.bu-topic-inner {
  width: min(1160px, calc(100% - 40px));
  max-width: 1160px;
  margin-inline: auto !important;
}
.bu-topic-band .bu-topic-grid {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  gap: 18px;
  align-items: stretch;
}
.bu-topic-grid > .wp-block-column { min-width: 0; }
.bu-topic-card {
  height: 100%;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid #e9ded7;
  border-radius: 4px;
}
.bu-topic-card h3 { margin: 0 0 8px; font-size: 1.04rem; line-height: 1.35; }
.bu-topic-card h3 a { text-decoration: none; }
.bu-topic-card p { margin: 0; color: var(--bu-muted); font-size: .83rem; line-height: 1.55; }

/* The existing Mailchimp form remains working until the Kit migration. */
.bu-newsletter-band {
  /* Template parts inherit a constrained width in the Site Editor.
     Make this band full-bleed regardless of the template-part wrapper. */
  width: 100vw;
  max-width: none !important;
  box-sizing: border-box;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-top: 51px;
  padding-bottom: 53px;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  background: var(--bu-wine);
  color: #fff;
}
.bu-newsletter-band h2, .bu-newsletter-band p { color: #fff; }
.bu-newsletter-band .bu-eyebrow { color: #f2d6d4; }
.bu-newsletter-band h2 { font-size: clamp(1.9rem, 2.8vw, 2.7rem); line-height: 1.2; }
.bu-newsletter-band > .wp-block-columns {
  width: min(1160px, 100%);
  max-width: 1160px !important;
  margin: 0 auto !important;
  align-items: center;
  gap: 55px;
}
.bu-newsletter-band .mc4wp-form { max-width: 550px; }
.bu-hero .mc4wp-form-fields > div,
.bu-newsletter-band .mc4wp-form-fields > div,
.bu-sidebar-form .mc4wp-form-fields > div {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 !important;
  min-height: 0;
  border: 0 !important;
  background: transparent !important;
}
.bu-hero .mc4wp-form-fields label,
.bu-newsletter-band .mc4wp-form-fields label,
.bu-sidebar-form .mc4wp-form-fields label {
  /* Keep the guide description available to assistive technology. */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.bu-hero .mc4wp-form input[type=email],
.bu-newsletter-band .mc4wp-form input[type=email],
.bu-sidebar-form .mc4wp-form input[type=email] {
  float: none !important;
  flex: 1 1 185px;
  width: auto;
  min-width: 0;
  margin: 0 !important;
  padding: 13px 12px !important;
  border: 1px solid #d7c7c4;
  border-radius: 4px;
  background: #fff;
  color: var(--bu-ink);
  font: inherit;
}
.bu-hero .mc4wp-form input[type=submit],
.bu-newsletter-band .mc4wp-form input[type=submit],
.bu-sidebar-form .mc4wp-form input[type=submit] {
  float: none !important;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 12px 17px !important;
  border: 1px solid #fff;
  border-radius: 4px;
  background: #fff;
  color: var(--bu-wine);
  font: inherit;
  font-size: .87rem;
  font-weight: 750;
  cursor: pointer;
}
.bu-newsletter-band .mc4wp-form input[type=submit]:hover { background: #faeeee; }
.bu-hero .mc4wp-form input[type=submit] {
  border-color: var(--bu-wine);
  background: var(--bu-wine);
  color: #fff;
}
.bu-hero .mc4wp-form input[type=submit]:hover { background: var(--bu-wine-dark); }
.bu-sidebar-form {
  padding: 23px 20px;
  border: 1px solid #e8dbd5;
  border-top: 3px solid var(--bu-wine);
  background: var(--bu-cream);
  border-radius: 3px;
}
.bu-sidebar-form h3 { font-size: 1.35rem; margin: 0 0 9px; }
.bu-sidebar-form p { font-size: .85rem; line-height: 1.7; color: #665c59; }
.bu-sidebar-form .mc4wp-form-fields > div { display: block !important; }
.bu-sidebar-form .mc4wp-form input[type=email] {
  width: 100%;
  margin: 0 0 9px !important;
}
.bu-sidebar-form .mc4wp-form input[type=submit] {
  width: 100%;
  background: var(--bu-wine);
  border-color: var(--bu-wine);
  color: #fff;
}

/* Articles and archive pages */
.bu-post-outer { padding-top: 50px; }
.bu-post-columns { align-items: flex-start; gap: 70px; }
.bu-post-main { min-width: 0; }
.bu-post-title {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: -.043em;
  margin: 15px 0 15px;
}
.bu-post-category { color: var(--bu-wine); font-size: .83rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; }
.bu-post-category a { text-decoration: none; }
.bu-byline { color: #7b716d; font-size: .82rem; margin: 0 0 26px; }
.bu-post-featured { margin: 0 0 30px; }
.bu-post-featured img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 4px; }
.bu-prose {
  font-size: 1.12rem;
  line-height: 1.9;
  color: #393331;
}
.bu-prose p { margin-bottom: 1.5em; }
.bu-prose h2 { font-size: 1.8rem; margin-top: 1.65em; line-height: 1.3; }
.bu-prose h3 { font-size: 1.4rem; }
.bu-prose a { color: var(--bu-wine); }
.bu-prose img { height: auto; }
.bu-prose table { width: 100%; border-collapse: collapse; }
.bu-prose th, .bu-prose td { border: 1px solid var(--bu-line); padding: 9px; }
.bu-post-cta {
  margin: 60px 0;
  padding: 30px;
  background: var(--bu-wine-soft);
  border-radius: 5px;
}
.bu-post-cta h2 { font-size: 1.4rem; margin: 0 0 10px; }
.bu-post-cta p { color: #675653; font-size: .94rem; margin-bottom: 0; }
.bu-related { border-top: 1px solid var(--bu-line); padding: 34px 0 75px; }
.bu-related .wp-block-post-template { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bu-related .wp-block-post-title { font-size: 1.06rem; line-height: 1.4; }
.bu-related .wp-block-post-title a { color: var(--bu-wine); text-decoration: none; }
.bu-archive-wrap { padding: 64px 0 85px; }
.bu-archive-wrap h1 { font-size: clamp(2.2rem, 4vw, 3.7rem); margin: 0 0 30px; }
.bu-archive-columns { align-items: flex-start; gap: 56px; }
.bu-archive-main { min-width: 0; }
.bu-archive-wrap .wp-block-post-template { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 22px; }
.bu-archive-wrap .wp-block-post-featured-image img { aspect-ratio: 1.5; object-fit: cover; }
.bu-archive-wrap .wp-block-post-title { font-size: 1.25rem; line-height: 1.4; margin: 8px 0; }
.bu-archive-wrap .wp-block-post-title a { text-decoration: none; }
.bu-archive-wrap .wp-block-post-excerpt { color: #625955; font-size: .92rem; }
.bu-archive-wrap .wp-block-query-pagination { margin-top: 42px; }

/* Standalone About page, using the editable WordPress page content. */
.bu-about-hero {
  padding: 68px 0 60px;
  background: linear-gradient(115deg,#fff,#fcf8f6);
  border-bottom: 1px solid var(--bu-line);
}
.bu-about-hero h1 {
  max-width: 800px;
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  line-height: 1.13;
  margin: 12px 0 15px;
}
.bu-about-content { padding: 62px 0 80px; }
.bu-about-content .wp-block-columns { align-items: flex-start; gap: 68px; }
.bu-about-content .bu-prose h1:first-child { display: none; }
.bu-about-content .bu-prose h3 { margin-top: 1.6em; }
.bu-about-focus { border-top: 3px solid var(--bu-wine); padding-top: 22px; }
.bu-about-focus h2 { font-size: 1.36rem; }
.bu-about-focus ul { padding-left: 1.2rem; }
.bu-about-focus li { padding: 8px 0; color: #645953; font-size: .92rem; }

/* Simple page and footer */
.bu-generic-page { padding-top: 65px; padding-bottom: 85px; }
.bu-generic-page h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.bu-generic-columns { align-items: flex-start; gap: 62px; }
.bu-generic-main { min-width: 0; }
.bu-subscribe-intro { max-width: 680px; }
.bu-subscribe-form { max-width: 560px; padding: 25px; background: var(--bu-cream); border-top: 3px solid var(--bu-wine); }
.bu-subscribe-form .mc4wp-form-fields > div { padding: 0 !important; background: transparent !important; border: 0 !important; }
.bu-subscribe-form .mc4wp-form label { color: var(--bu-ink); }
.bu-subscribe-form .mc4wp-form input[type=email] { width: 100%; max-width: 400px; padding: 12px !important; }
.bu-subscribe-form .mc4wp-form input[type=submit] { padding: 12px 20px !important; background: var(--bu-wine); color: #fff; border: 0; border-radius: 4px; cursor: pointer; }
.bu-subscribe-page .bu-sidebar-form { display: none; }
.bu-footer { padding: 26px 0; background: #fff; border-top: 1px solid var(--bu-line); }
.bu-footer p, .bu-footer a { color: #756b68; font-size: .8rem; }
.bu-footer a { text-decoration: none; }
.bu-footer a:hover { color: var(--bu-wine); }
.bu-footer-links { gap: 21px; }
.bu-footer .bu-footer-brand { color: var(--bu-wine); font-size: 1.22rem; font-weight: 800; }

@media (max-width: 1000px) {
  .bu-front-feed .wp-block-post-template { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bu-front-feed .wp-block-post:first-child { grid-column: 1 / -1; }
  .bu-front-columns,.bu-post-columns,.bu-about-content .wp-block-columns { gap: 32px; }
  .bu-hero .wp-block-columns { gap: 20px; }
}
@media (max-width: 781px) {
  .bu-header .wp-block-navigation { gap: 12px; }
  .bu-header-inner { flex-wrap: nowrap !important; }
  .bu-brand { max-width: 62%; }
  .bu-logo { max-width: 275px; }
  .bu-tagline { display: none; }
  .bu-hero { padding-top: 45px; padding-bottom: 46px; }
  .bu-ebook-visual { display: none; }
  .bu-section { padding-top: 52px; padding-bottom: 55px; }
  .bu-front-feed .wp-block-post-template { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bu-front-columns, .bu-post-columns, .bu-archive-columns, .bu-generic-columns { display: block; }
  .bu-sidebar { margin-top: 42px; }
  .bu-sticky { position: static; }
  .bu-topic-band .wp-block-columns { gap: 14px; }
  .bu-newsletter-band .wp-block-columns { gap: 17px; }
  .bu-post-title { font-size: 2.3rem; }
  .bu-post-outer { padding-top: 30px; }
  .bu-about-content { padding-top: 45px; padding-bottom: 60px; }
  .bu-about-content .wp-block-columns { display: block; }
  .bu-archive-wrap .wp-block-post-template { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bu-footer .wp-block-group { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .bu-front-feed .wp-block-post-template,
  .bu-archive-wrap .wp-block-post-template,
  .bu-related .wp-block-post-template { grid-template-columns: 1fr; }
  .bu-front-feed .wp-block-post:first-child { grid-column: auto; }
  .bu-topic-band .wp-block-columns { display: block; }
  .bu-topic-band .wp-block-column { margin-bottom: 12px; }
  .bu-post-cta { padding: 22px; }
  .bu-hero .mc4wp-form input[type=email],
  .bu-hero .mc4wp-form input[type=submit],
  .bu-newsletter-band .mc4wp-form input[type=email],
  .bu-newsletter-band .mc4wp-form input[type=submit] { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bu-button .wp-block-button__link { transition: none; }
}
