/*
Theme Name: Books N Cooks Fresh
Author: Linden Table Studio
Description: A classic PHP editorial WordPress theme with dynamic menus, categories, post thumbnails, and Customizer-driven visual settings.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: bnc-theme
*/

:root {
  --bnc-accent: #4d60d5;
  --bnc-accent-soft: #cfd4f5;
  --bnc-surface: #e2e4ef;
  --bnc-surface-2: #f5f5f8;
  --bnc-dark: #0f0f10;
  --bnc-text: #0e0e0e;
  --bnc-muted: #686b76;
  --bnc-line: rgba(14, 14, 14, 0.14);
  --bnc-dark-line: rgba(255, 255, 255, 0.16);
  --bnc-radius: 10px;
  --bnc-radius-lg: 18px;
  --bnc-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bnc-base-size: 16px;
  --bnc-container: min(100% - 40px, 1185px);
}

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

html {
  scroll-behavior: smooth;
}

body.bnc-body {
  margin: 0;
  background: var(--bnc-accent);
  color: var(--bnc-text);
  font-family: var(--bnc-font-family);
  font-size: var(--bnc-base-size);
  line-height: 1.5;
  letter-spacing: 0;
}

body.bnc-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.bnc-screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bnc-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px;
  pointer-events: none;
}

.bnc-brand,
.bnc-menu-toggle,
.bnc-menu-close {
  pointer-events: auto;
}

.bnc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bnc-text);
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
}

.bnc-brand .custom-logo {
  width: auto;
  max-height: 34px;
}

.bnc-logo-mark {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 20px;
}

.bnc-logo-mark::before,
.bnc-logo-mark::after,
.bnc-logo-mark span {
  content: "";
  position: absolute;
  bottom: 0;
  width: 18px;
  height: 13px;
  background: currentColor;
  border-radius: 14px 14px 4px 4px;
  transform: skewX(-28deg);
}

.bnc-logo-mark::before {
  left: 0;
}

.bnc-logo-mark span {
  left: 10px;
  height: 18px;
}

.bnc-logo-mark::after {
  right: 0;
}

.bnc-brand-text {
  font-size: 25px;
  letter-spacing: 0;
}

.bnc-menu-toggle,
.bnc-menu-close {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 9px 15px;
  border: 0;
  border-radius: var(--bnc-radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--bnc-text);
  box-shadow: 0 8px 28px rgba(15, 15, 16, 0.08);
  cursor: pointer;
  font: 500 13px/1 var(--bnc-font-family);
  text-transform: uppercase;
}

.bnc-menu-icon,
.bnc-close-icon {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.bnc-menu-icon {
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat;
}

.bnc-menu-icon::before,
.bnc-menu-icon::after,
.bnc-close-icon::before,
.bnc-close-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 12px;
  height: 1.5px;
  background: currentColor;
}

.bnc-menu-icon::before {
  top: 2px;
}

.bnc-menu-icon::after {
  bottom: 2px;
}

.bnc-close-icon::before,
.bnc-close-icon::after {
  top: 5px;
}

.bnc-close-icon::before {
  transform: rotate(45deg);
}

.bnc-close-icon::after {
  transform: rotate(-45deg);
}

.bnc-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  min-height: 100svh;
  padding: 20px;
  overflow: auto;
  background:
    linear-gradient(115deg, rgba(226, 228, 239, 0.96), rgba(226, 228, 239, 0.76)),
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.9), transparent 28%),
    radial-gradient(circle at 95% 22%, rgba(77, 96, 213, 0.26), transparent 28%),
    radial-gradient(circle at 80% 84%, rgba(236, 117, 198, 0.22), transparent 32%),
    var(--bnc-surface);
}

.bnc-menu-panel[hidden] {
  display: none;
}

.bnc-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.bnc-menu-inner {
  display: grid;
  align-content: space-between;
  gap: clamp(56px, 10vw, 120px);
  width: min(100%, 1185px);
  margin: 0 auto;
}

.bnc-overlay-layout {
  display: grid;
  gap: 40px;
  padding-top: clamp(42px, 8vw, 92px);
}

.bnc-menu-list,
.bnc-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.bnc-overlay-nav .bnc-menu-list {
  display: grid;
  gap: 20px;
}

.bnc-menu-list a {
  color: inherit;
  text-decoration: none;
}

.bnc-overlay-nav .bnc-menu-list a {
  display: inline-block;
  font-size: clamp(34px, 11vw, 72px);
  font-weight: 700;
  line-height: 0.96;
}

.bnc-overlay-aside {
  display: grid;
  gap: 28px;
  align-content: start;
}

.bnc-small-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bnc-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.bnc-small-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 3px solid var(--bnc-accent);
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.bnc-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bnc-category-links a,
.bnc-chip,
.bnc-post-category a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--bnc-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.bnc-overlay-contact {
  display: grid;
  gap: 8px;
  color: var(--bnc-text);
}

.bnc-overlay-contact p {
  margin: 0;
}

.bnc-site-main {
  overflow: hidden;
  background: var(--bnc-surface);
}

.bnc-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 110px 20px 24px;
  isolation: isolate;
  background:
    radial-gradient(circle at 74% 48%, rgba(242, 117, 205, 0.55), transparent 22%),
    radial-gradient(circle at 82% 42%, rgba(77, 96, 213, 0.72), transparent 32%),
    linear-gradient(115deg, #dfe3f3 0%, #b7c2e8 42%, #f5c7eb 100%);
}

.bnc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(226, 228, 239, 0.5), rgba(226, 228, 239, 0.22)),
    var(--bnc-hero-image);
  background-position: center;
  background-size: cover;
  opacity: 0.78;
}

.bnc-hero::after {
  content: "";
  position: absolute;
  inset: -20% -8% -8% 36%;
  z-index: -1;
  background:
    linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.38) 21%, rgba(255, 255, 255, 0.2) 50%, transparent 51%),
    radial-gradient(ellipse at 58% 48%, rgba(77, 96, 213, 0.78), transparent 24%),
    radial-gradient(ellipse at 44% 53%, rgba(246, 129, 205, 0.62), transparent 32%);
  filter: blur(0.1px);
  opacity: 0.95;
  clip-path: ellipse(62% 72% at 54% 50%);
}

.bnc-hero-inner {
  display: grid;
  align-content: end;
  gap: clamp(64px, 18vh, 150px);
  width: var(--bnc-container);
  margin: 0 auto;
}

.bnc-hero-copy {
  max-width: 640px;
}

.bnc-hero-kicker {
  margin: 0 0 16px;
  color: rgba(14, 14, 14, 0.68);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.bnc-hero-title {
  max-width: 730px;
  margin: 0;
  color: var(--bnc-text);
  font-size: clamp(44px, 8vw, 60px);
  font-weight: 650;
  line-height: 1.1;
}

.bnc-hero-text {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--bnc-text);
  font-size: clamp(17px, 2.3vw, 18px);
  line-height: 1.4;
}

.bnc-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.bnc-button,
.bnc-button-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 14px 36px;
  border: 0;
  border-radius: var(--bnc-radius);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.bnc-button {
  background: var(--bnc-dark);
  color: #fff;
}

.bnc-button-alt {
  background: rgba(255, 255, 255, 0.92);
  color: var(--bnc-text);
}

.bnc-button-muted {
  background: rgba(255, 255, 255, 0.46);
  color: var(--bnc-text);
}

.bnc-hero-footer {
  display: grid;
  gap: 20px;
  align-items: end;
  color: var(--bnc-text);
}

.bnc-hero-note {
  max-width: 250px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.bnc-scroll-cue {
  display: none;
  align-items: end;
  justify-self: end;
  gap: 12px;
  font-size: 13px;
}

.bnc-scroll-cue span {
  display: block;
  width: 2px;
  height: 38px;
  background: var(--bnc-text);
}

.bnc-section {
  padding: clamp(72px, 10vw, 120px) 20px;
  background: var(--bnc-surface);
}

.bnc-section-inner {
  width: var(--bnc-container);
  margin: 0 auto;
}

.bnc-category-band {
  padding-top: clamp(56px, 8vw, 90px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.bnc-category-head {
  display: grid;
  gap: 24px;
  align-items: end;
  margin-bottom: 36px;
}

.bnc-category-head h2,
.bnc-intro-title,
.bnc-dark-title,
.bnc-case-title,
.bnc-cta-title,
.bnc-archive-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 44px);
  font-weight: 650;
  line-height: 1.12;
}

.bnc-category-head p,
.bnc-intro-copy,
.bnc-dark-copy,
.bnc-case-copy,
.bnc-cta-copy {
  margin: 0;
  color: var(--bnc-muted);
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.25;
}

.bnc-intro-grid {
  display: grid;
  gap: 34px;
  align-items: end;
  margin-bottom: clamp(56px, 9vw, 86px);
}

.bnc-intro-actions {
  margin-top: 34px;
}

.bnc-post-list {
  border-top: 1px solid var(--bnc-line);
}

.bnc-post-row {
  display: grid;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--bnc-line);
  color: inherit;
  text-decoration: none;
}

.bnc-post-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.bnc-post-copy {
  display: grid;
  gap: 20px;
}

.bnc-post-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 27px);
  font-weight: 650;
  line-height: 1.15;
}

.bnc-post-excerpt {
  max-width: 470px;
  margin: 0;
  color: var(--bnc-muted);
  font-size: 16px;
  line-height: 1.35;
}

.bnc-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--bnc-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.bnc-post-media {
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--bnc-radius);
  background:
    radial-gradient(circle at 24% 30%, rgba(255, 255, 255, 0.88), transparent 24%),
    radial-gradient(circle at 80% 56%, rgba(77, 96, 213, 0.32), transparent 40%),
    #cfd3e4;
}

.bnc-post-media img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  filter: saturate(0.82) contrast(0.98);
  transition: transform 220ms ease, filter 220ms ease;
}

.bnc-post-row:hover .bnc-post-media img,
.bnc-featured-link:hover img {
  transform: scale(1.03);
  filter: saturate(1) contrast(1.04);
}

.bnc-empty-state {
  margin: 0;
  padding: 34px;
  border: 1px solid var(--bnc-line);
  border-radius: var(--bnc-radius);
  color: var(--bnc-muted);
}

.bnc-metrics {
  display: grid;
  border-top: 1px solid var(--bnc-line);
  border-bottom: 1px solid var(--bnc-line);
}

.bnc-metric {
  display: grid;
  gap: 16px;
  padding: 30px 0;
  border-bottom: 1px solid var(--bnc-line);
}

.bnc-metric:last-child {
  border-bottom: 0;
}

.bnc-metric strong {
  color: rgba(14, 14, 14, 0.45);
  font-size: clamp(56px, 12vw, 86px);
  line-height: 0.9;
}

.bnc-metric span {
  max-width: 260px;
  color: var(--bnc-muted);
  font-size: 16px;
  line-height: 1.35;
}

.bnc-dark-section {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 23% 28%, rgba(77, 96, 213, 0.5), transparent 30%),
    radial-gradient(ellipse at 72% 72%, rgba(77, 96, 213, 0.25), transparent 34%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bnc-dark);
  background-size: auto, auto, 100% 7px, auto;
  color: #f7f7f8;
}

.bnc-dark-grid {
  display: grid;
  gap: clamp(40px, 7vw, 80px);
}

.bnc-dark-title {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.7);
}

.bnc-dark-title strong,
.bnc-dark-copy strong {
  color: #fff;
}

.bnc-dark-copy {
  color: rgba(255, 255, 255, 0.58);
}

.bnc-featured-panel {
  display: grid;
  gap: 22px;
}

.bnc-featured-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--bnc-dark-line);
  border-radius: var(--bnc-radius);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  text-decoration: none;
}

.bnc-featured-link img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.bnc-featured-caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  line-height: 1.45;
}

.bnc-case-section {
  display: grid;
  min-height: 720px;
  padding: 0;
  background: var(--bnc-dark);
}

.bnc-case-left {
  padding: clamp(72px, 9vw, 110px) 20px;
  background: var(--bnc-surface);
}

.bnc-case-right {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: var(--bnc-dark);
}

.bnc-case-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 15, 16, 0.3), rgba(15, 15, 16, 0.72)),
    var(--bnc-feature-image),
    radial-gradient(circle at 36% 38%, rgba(77, 96, 213, 0.42), transparent 34%),
    #171719;
  background-position: center;
  background-size: cover;
  filter: grayscale(0.35);
}

.bnc-case-floating {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: block;
  overflow: hidden;
  border-radius: var(--bnc-radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.bnc-case-floating img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.bnc-case-list {
  display: grid;
  gap: 18px;
  margin-top: 72px;
}

.bnc-case-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(14, 14, 14, 0.28);
  text-decoration: none;
  font-size: clamp(24px, 4vw, 28px);
  font-weight: 650;
  line-height: 1.1;
  transition: color 180ms ease;
}

.bnc-case-item:first-child,
.bnc-case-item:hover {
  color: var(--bnc-text);
}

.bnc-case-year {
  min-width: 58px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: rgba(14, 14, 14, 0.42);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.bnc-icon-suite {
  display: grid;
  gap: 16px;
  margin-top: 52px;
}

.bnc-icon-card {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--bnc-line);
  border-radius: var(--bnc-radius);
  background: rgba(255, 255, 255, 0.36);
  text-align: center;
}

.bnc-icon-card img {
  width: 44px;
  height: 44px;
}

.bnc-icon-card span {
  color: var(--bnc-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.bnc-cta-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 38% 18%, rgba(77, 96, 213, 0.34), transparent 35%),
    radial-gradient(ellipse at 14% 10%, rgba(235, 110, 211, 0.32), transparent 28%),
    var(--bnc-surface-2);
}

.bnc-cta-section::before {
  content: "";
  position: absolute;
  left: -12%;
  top: 5%;
  width: 62%;
  height: 38%;
  border-radius: 50%;
  border-top: 42px solid rgba(77, 96, 213, 0.72);
  transform: rotate(-8deg);
  filter: blur(2px);
}

.bnc-cta-inner {
  position: relative;
  display: grid;
  gap: 34px;
  align-items: center;
}

.bnc-cta-title {
  color: rgba(14, 14, 14, 0.55);
}

.bnc-cta-button {
  width: 100%;
  background: rgba(15, 15, 16, 0.35);
  color: #fff;
}

.bnc-footer {
  padding: 56px 20px;
  background: var(--bnc-dark);
  color: rgba(255, 255, 255, 0.72);
}

.bnc-footer-inner {
  display: grid;
  gap: 32px;
  width: var(--bnc-container);
  margin: 0 auto;
}

.bnc-footer-brand {
  display: grid;
  gap: 14px;
}

.bnc-footer-title {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.bnc-footer p {
  margin: 0;
}

.bnc-footer a {
  color: inherit;
  text-decoration: none;
}

.bnc-footer-menu {
  display: grid;
  gap: 10px;
}

.bnc-footer-meta {
  display: grid;
  gap: 18px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.bnc-archive-hero,
.bnc-single-hero {
  padding: 150px 20px 72px;
  background:
    radial-gradient(circle at 80% 30%, rgba(77, 96, 213, 0.28), transparent 30%),
    var(--bnc-surface);
}

.bnc-archive-inner,
.bnc-single-inner {
  width: min(100% - 40px, 900px);
  margin: 0 auto;
}

.bnc-archive-description {
  max-width: 620px;
  color: var(--bnc-muted);
  font-size: 18px;
}

.bnc-archive-list {
  padding-top: 0;
}

.bnc-single-title {
  margin: 0;
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 650;
  line-height: 1.05;
}

.bnc-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  color: var(--bnc-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.bnc-single-content {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 64px 0 96px;
  color: #24242a;
  font-size: 18px;
  line-height: 1.75;
}

.bnc-single-content > * {
  margin-top: 0;
  margin-bottom: 1.5em;
}

.bnc-single-content h2,
.bnc-single-content h3 {
  color: var(--bnc-text);
  line-height: 1.2;
}

.bnc-single-content a {
  color: var(--bnc-accent);
}

.bnc-single-content img {
  border-radius: var(--bnc-radius);
}

.bnc-page-links,
.bnc-post-nav {
  width: min(100% - 40px, 760px);
  margin: 0 auto 64px;
}

.bnc-post-nav {
  display: grid;
  gap: 12px;
}

.bnc-post-nav a {
  display: block;
  padding: 18px 0;
  border-top: 1px solid var(--bnc-line);
  color: var(--bnc-text);
  text-decoration: none;
}

.bnc-related {
  padding-top: 0;
}

.bnc-related-list {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.bnc-related-list a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--bnc-line);
  color: var(--bnc-text);
  text-decoration: none;
}

@media (min-width: 700px) {
  :root {
    --bnc-container: min(100% - 80px, 1185px);
  }

  .bnc-header {
    padding: 28px 40px;
  }

  .bnc-menu-panel {
    padding: 28px 40px;
  }

  .bnc-hero {
    padding-inline: 40px;
  }

  .bnc-hero-footer {
    grid-template-columns: 1fr auto;
  }

  .bnc-scroll-cue {
    display: inline-flex;
  }

  .bnc-button-row {
    flex-wrap: nowrap;
  }

  .bnc-section,
  .bnc-case-left,
  .bnc-footer,
  .bnc-archive-hero,
  .bnc-single-hero {
    padding-inline: 40px;
  }

  .bnc-category-head,
  .bnc-intro-grid,
  .bnc-dark-grid,
  .bnc-cta-inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  }

  .bnc-post-row {
    grid-template-columns: 74px minmax(0, 1fr) minmax(310px, 0.82fr);
    align-items: start;
    gap: 24px;
  }

  .bnc-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bnc-metric {
    min-height: 230px;
    padding: 36px 30px;
    border-right: 1px solid var(--bnc-line);
    border-bottom: 0;
  }

  .bnc-metric:last-child {
    border-right: 0;
  }

  .bnc-icon-suite {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bnc-footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(180px, auto) minmax(220px, auto);
    align-items: start;
  }
}

@media (min-width: 980px) {
  .bnc-overlay-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  }

  .bnc-case-section {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  }

  .bnc-case-left .bnc-section-inner {
    width: min(100%, 560px);
    margin-left: max(0px, calc((100vw - 1185px) / 2));
    margin-right: 0;
  }

  .bnc-case-floating {
    left: -52px;
    right: auto;
    bottom: 72px;
    width: min(58vw, 360px);
  }

  .bnc-cta-button {
    justify-self: end;
    width: min(100%, 548px);
  }
}

@media (max-width: 699px) {
  .bnc-brand-text {
    max-width: 180px;
    overflow-wrap: anywhere;
    font-size: 21px;
  }

  .bnc-hero-title {
    font-size: clamp(34px, 10vw, 44px);
  }

  .bnc-button-row,
  .bnc-button,
  .bnc-button-alt {
    width: 100%;
  }

  .bnc-hero {
    min-height: 100svh;
  }

  .bnc-hero::after {
    inset: 8% -42% 0 28%;
  }

  .bnc-post-media img,
  .bnc-post-media {
    min-height: 220px;
  }

  .bnc-case-item {
    align-items: flex-start;
  }
}
