/*
Theme Name: BB Web Design - Astra Child
Theme URI: https://bbwebdesign.co.uk/
Description: Astra child theme for BB Web Design, Burnley / Lancashire. Designed for editable WordPress pages and Pagelayer use.
Author: BB Web Design
Template: astra
Version: 1.1.0
Text Domain: bbwebdesign-astra-child
*/

:root {
  --bb-bg: #08110d;
  --bb-bg-2: #0e1914;
  --bb-card: #111f18;
  --bb-card-2: #162920;
  --bb-green: #49e889;
  --bb-green-2: #90ffc0;
  --bb-white: #ffffff;
  --bb-muted: #b9c8bf;
  --bb-border: rgba(73, 232, 137, 0.35);
  --bb-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bb-bg);
}

.bb-page {
  background: var(--bb-bg);
  color: var(--bb-white);
  font-family: inherit;
  overflow: hidden;
}

.bb-page * {
  box-sizing: border-box;
}

.bb-page a,
.bb-page a:visited,
.bb-page a:hover,
.bb-page a:focus {
  color: inherit;
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none;
}

.bb-page img {
  max-width: 100%;
  height: auto;
}

.bb-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.bb-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 17, 13, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bb-border);
}

.bb-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bb-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 25px;
}

.bb-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--bb-green);
  color: var(--bb-green);
  border-radius: 13px;
  transform: rotate(45deg);
  font-weight: 900;
}

.bb-brand-mark span {
  transform: rotate(-45deg);
  display: inline-block;
}

.bb-nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  font-weight: 800;
  font-size: 14px;
}

.bb-nav-links a {
  color: var(--bb-muted);
}

.bb-nav-links a:hover {
  color: var(--bb-green);
}

.bb-btn,
.bb-page .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 14px 20px;
  background: var(--bb-green);
  color: #06110c !important;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(73, 232, 137, 0.22);
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.bb-btn:hover,
.bb-page .wp-block-button__link:hover {
  transform: translateY(-2px);
  background: var(--bb-green-2);
  box-shadow: 0 18px 42px rgba(73, 232, 137, 0.32);
}

.bb-btn.is-ghost {
  background: transparent;
  border-color: var(--bb-border);
  color: var(--bb-white) !important;
  box-shadow: none;
}

.bb-btn.is-ghost:hover {
  background: rgba(73, 232, 137, 0.08);
}

.bb-hero {
  position: relative;
  padding: 98px 0 72px;
  background:
    radial-gradient(circle at 15% 15%, rgba(73, 232, 137, 0.18), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(73, 232, 137, 0.1), transparent 28%),
    linear-gradient(135deg, var(--bb-bg), #0f1815 55%, #07100c);
}

.bb-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(var(--bb-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--bb-border) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.bb-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 58px;
  align-items: center;
}

.bb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--bb-border);
  background: rgba(73, 232, 137, 0.08);
  color: var(--bb-green);
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 22px;
}

.bb-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.94;
  letter-spacing: -0.075em;
  color: var(--bb-white);
}

.bb-gradient-text {
  color: var(--bb-green);
}

.bb-lead {
  color: var(--bb-muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.58;
  max-width: 720px;
  margin: 0 0 28px;
}

.bb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin: 28px 0 28px;
}

.bb-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.bb-trust {
  padding: 17px;
  border: 1px solid var(--bb-border);
  background: rgba(255,255,255,0.035);
  border-radius: 18px;
}

.bb-trust strong {
  display: block;
  color: var(--bb-white);
  font-size: 18px;
}

.bb-trust span {
  color: var(--bb-muted);
  font-size: 13px;
}

.bb-visual {
  position: relative;
}

.bb-window {
  border: 1px solid var(--bb-border);
  border-radius: 30px;
  overflow: hidden;
  background: #07100c;
  box-shadow: var(--bb-shadow);
}

.bb-window-bar {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--bb-border);
  background: rgba(255,255,255,0.035);
}

.bb-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--bb-green);
  opacity: 0.9;
}

.bb-window-body {
  padding: 28px;
}

.bb-mini-site {
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #eef8f2);
  color: #06110c;
  overflow: hidden;
}

.bb-mini-hero {
  padding: 30px;
  background: linear-gradient(135deg, #0b1410, #1d3b2a);
  color: white;
}

.bb-mini-tag {
  width: 120px;
  height: 12px;
  background: var(--bb-green);
  border-radius: 999px;
  margin-bottom: 15px;
}

.bb-mini-title {
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 14px;
}

.bb-mini-line {
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  margin: 10px 0;
}

.bb-mini-line.short {
  width: 60%;
}

.bb-mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
}

.bb-mini-card {
  min-height: 90px;
  border-radius: 18px;
  background: #d9fce8;
  padding: 12px;
}

.bb-mini-card:before,
.bb-mini-card:after {
  content: "";
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #0a1710;
  opacity: 0.82;
  margin-bottom: 9px;
}

.bb-mini-card:after {
  width: 62%;
  opacity: 0.4;
}

.bb-offer-card {
  position: absolute;
  left: -26px;
  bottom: -34px;
  max-width: 310px;
  border: 1px solid var(--bb-border);
  background: rgba(14, 25, 20, 0.95);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--bb-shadow);
}

.bb-offer-card strong {
  display: block;
  color: var(--bb-green);
  font-size: 30px;
  letter-spacing: -0.05em;
}

.bb-offer-card span {
  color: var(--bb-white);
  font-weight: 800;
}

.bb-section {
  padding: 82px 0;
}

.bb-section.alt {
  background: var(--bb-bg-2);
}

.bb-section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: end;
  margin-bottom: 38px;
}

.bb-section h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.065em;
  color: var(--bb-white);
}

.bb-section-head p,
.bb-copy {
  color: var(--bb-muted);
  line-height: 1.7;
  font-size: 17px;
  margin: 0;
}

.bb-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bb-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--bb-border);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  min-height: 260px;
  overflow: hidden;
}

.bb-card:after {
  content: "";
  position: absolute;
  right: -45px;
  top: -45px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(73, 232, 137, 0.12);
}

.bb-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--bb-green);
  color: #06110c;
  font-size: 25px;
  margin-bottom: 26px;
}

.bb-card h3 {
  color: var(--bb-white);
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.bb-card p,
.bb-card li {
  color: var(--bb-muted);
  line-height: 1.62;
}

.bb-card ul {
  margin: 18px 0 0;
  padding-left: 19px;
}

.bb-offer-band {
  border: 1px solid var(--bb-border);
  border-radius: 34px;
  padding: 34px;
  background: linear-gradient(135deg, rgba(73,232,137,0.18), rgba(255,255,255,0.035));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.bb-offer-band h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 10px;
}

.bb-price {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.bb-price-pill {
  background: var(--bb-green);
  color: #06110c;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
}

.bb-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bb-project {
  position: relative;
  border: 1px solid var(--bb-border);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.24);
}

.bb-project.is-featured {
  grid-column: span 1;
}

.bb-project-top {
  position: relative;
  padding: 24px;
  min-height: 295px;
  background:
    radial-gradient(circle at 18% 22%, rgba(73,232,137,0.22), transparent 26%),
    linear-gradient(135deg, #0c1812, #142b20 56%, #08110d);
}

.bb-project-top.is-light {
  background:
    radial-gradient(circle at 80% 15%, rgba(73,232,137,0.35), transparent 24%),
    linear-gradient(135deg, #f7fff9, #dff9ea);
  color: #07120d;
}

.bb-browser-line {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.bb-browser-line span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
}

.bb-project-screen {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  padding: 22px;
  background: rgba(5, 11, 8, 0.68);
  color: var(--bb-white);
}

.bb-project-top.is-light .bb-project-screen {
  background: rgba(255,255,255,0.74);
  color: #07120d;
  border-color: rgba(7,18,13,0.1);
}

.bb-project-screen h3 {
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 0.95;
  letter-spacing: -0.065em;
  margin: 0 0 10px;
}

.bb-project-screen p {
  margin: 0;
  line-height: 1.55;
}

.bb-project-footer {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.bb-project-footer h3 {
  margin: 0 0 7px;
  color: var(--bb-white);
  font-size: 24px;
  letter-spacing: -0.035em;
}

.bb-project-footer p {
  margin: 0;
  color: var(--bb-muted);
  line-height: 1.58;
}

.bb-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.bb-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--bb-border);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--bb-green-2);
  background: rgba(73,232,137,0.07);
  font-size: 13px;
  font-weight: 800;
}

.bb-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(73,232,137,0.11);
  border: 1px solid var(--bb-border);
  color: var(--bb-white) !important;
  font-weight: 900;
  text-decoration: none !important;
}

.bb-inline-link:hover {
  background: var(--bb-green);
  color: #06110c !important;
}

.bb-process {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.bb-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--bb-border);
  border-radius: 24px;
  background: rgba(255,255,255,0.035);
}

.bb-step:before {
  content: counter(step);
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--bb-green);
  color: #06110c;
  font-weight: 900;
}

.bb-step h3 {
  margin: 0 0 7px;
  color: var(--bb-white);
}

.bb-step p {
  margin: 0;
  color: var(--bb-muted);
}

.bb-contact {
  position: relative;
  background:
    radial-gradient(circle at 80% 20%, rgba(73,232,137,0.16), transparent 30%),
    linear-gradient(135deg, #07100c, #0f1914);
}

.bb-contact-card {
  border: 1px solid var(--bb-border);
  border-radius: 36px;
  background: rgba(255,255,255,0.045);
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 35px;
  align-items: center;
}

.bb-contact-card h2 {
  margin-bottom: 15px;
}

.bb-contact-list {
  display: grid;
  gap: 12px;
}

.bb-contact-item {
  border: 1px solid var(--bb-border);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255,255,255,0.035);
}

.bb-contact-item span {
  display: block;
  color: var(--bb-muted);
  font-size: 13px;
}

.bb-contact-item strong {
  color: var(--bb-white);
}

.bb-footer {
  border-top: 1px solid var(--bb-border);
  padding: 34px 0;
  color: var(--bb-muted);
  background: #050b08;
}

.bb-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.bb-footer strong {
  color: var(--bb-white);
}


.bb-contact .bb-hero-actions {
  margin-bottom: 0;
}

.bb-contact-card .bb-btn,
.bb-contact-card .bb-btn:hover,
.bb-mobile-sticky a,
.bb-mobile-sticky a:hover {
  text-decoration: none !important;
}

.bb-mobile-sticky {
  display: none;
}

@media (max-width: 920px) {
  .bb-nav {
    min-height: 70px;
  }

  .bb-nav-links {
    display: none;
  }

  .bb-hero {
    padding: 64px 0 48px;
  }

  .bb-hero-grid,
  .bb-section-head,
  .bb-work-grid,
  .bb-contact-card,
  .bb-offer-band {
    grid-template-columns: 1fr;
  }

  .bb-visual {
    margin-top: 12px;
  }

  .bb-offer-card {
    position: static;
    max-width: none;
    margin-top: 16px;
  }

  .bb-trust-row,
  .bb-cards {
    grid-template-columns: 1fr;
  }

  .bb-section {
    padding: 58px 0;
  }

  .bb-shell {
    width: min(100% - 26px, 1160px);
  }

  .bb-contact-card {
    padding: 25px;
    border-radius: 26px;
  }

  .bb-project-top {
    min-height: 255px;
  }

  .bb-project-screen {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .bb-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .bb-mobile-sticky {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .bb-mobile-sticky a {
    text-align: center;
    padding: 13px 10px;
    border-radius: 999px;
    background: var(--bb-green);
    color: #06110c;
    font-weight: 900;
    box-shadow: var(--bb-shadow);
  }

  body {
    padding-bottom: 72px;
  }
}

.bbwd-full-landing .site-header,
.bbwd-full-landing .site-footer,
.bbwd-full-landing .ast-breadcrumbs-wrapper,
.bbwd-full-landing .entry-header {
  display: none !important;
}

.bbwd-full-landing .site-content,
.bbwd-full-landing .content-area,
.bbwd-full-landing .site-main,
.bbwd-full-landing .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}

.bbwd-full-landing .site-content .ast-container,
.bbwd-full-landing .ast-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
