@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* =========================================================
   ROOT VARIABLES
========================================================= */
:root {
  --body-bg: #ededed;
  --text-main: #292929;
  --text-muted: #b4b3b1;
  --dark: #111827;
  --dark-2: #292929;
  --white: #fff;
  --accent: #3DDBC6;
  --section-dark: #333333;
  --section-dark-2: #262626;
  --line: #e7e7e7;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
}

/* =========================================================
   RESET / BASE
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: var(--text-main);
}

body {
  background-color: var(--body-bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* =========================================================
   LAYOUT / WRAPPERS
========================================================= */
#site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#content {
  flex: 1;
  margin-top: -130px;
}

/* Global container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.container-full {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

/* =========================================================
   HEADER
========================================================= */
.hb-header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 130px;
  min-height: 130px;
  max-height: 130px;
  z-index: 99;
}

.hb-header-inner {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.hb-logo {
  width: 130px;
}

.hb-logo img {
  max-width: 130px;
  height: auto;
}

/* =========================================================
   Legal Pages
========================================================= */
.legal-page{
 position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  padding: 40px 0;
  background-image:
    linear-gradient(to top, #ededed 30%, rgba(239,239,239,0) 70%),
    url('https://www.qubix.co.za/wp-content/uploads/2026/02/65761cbdb9d7afd78bb7a288_Hero-pattern-dots.svg');
  background-size: 100px;
  background-position: center;
      padding-top: 150px;
}
.legal-page .container{
  max-width: 800px;
}
/* =========================================================
   HERO SECTION
========================================================= */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 40px 0;
  background-image:
    linear-gradient(to top, #ededed 30%, rgba(239,239,239,0) 70%),
    url('https://www.qubix.co.za/wp-content/uploads/2026/02/65761cbdb9d7afd78bb7a288_Hero-pattern-dots.svg');
  background-size: 100px;
  background-position: center;
}

.hero.contact {
  text-align: left;
}

.hero.contact .container {
  max-width: 800px;
}

.hero.contact .hero__title span {
  opacity: .6;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 150px;
  padding-bottom: 100px;
}

.hero__title {
  font-size: 59px;
  line-height: 1.2;
  margin: 0 0 20px;
}

.hero__subtitle {
  font-size: 18px;
  margin: 0 0 30px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 99px;
  font-size: 22px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  background-image: url('https://www.qubix.co.za/wp-content/uploads/2026/03/btn-battern.svg');
  background-size: cover;
}

/* Hero responsive */
@media (max-width: 991px) {
  .hero__content {
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .hero__title {
    font-size: 44px;
  }

  .hero__subtitle {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 20px 0;
    min-height: auto;
  }

  .hero__content {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero__title {
    font-size: 34px;
    line-height: 1.25;
  }

  .hero__subtitle {
    font-size: 15px;
    line-height: 1.6;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 14px;
  }
}

/* =========================================================
   CLIENT LOGO MARQUEE
========================================================= */
.qb-marquee {
  padding: 48px 0;
}

.qb-marquee-viewport {
  width: 100%;
  overflow: hidden;
  outline: none;
}

.qb-marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: qb-marquee linear infinite;
  animation-duration: var(--marquee-duration, 28s);
  animation-play-state: running;
  padding-block: 24px;
}

@keyframes qb-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--marquee-distance)), 0, 0); }
}

.qb-marquee-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qb-logo-card {
  background: #e3e3e3;
  width: 180px;
  height: 180px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms, background-color 220ms;
  will-change: transform;
}

.qb-logo-card img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: .95;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}

.qb-logo-card:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.02);
}

.qb-marquee-item:nth-child(odd) .qb-logo-card {
  transform: rotate(-5deg);
}

.qb-marquee-item:nth-child(even) .qb-logo-card {
  transform: rotate(5deg);
}

.qb-logo-card:hover {
  transform: rotate(0deg) scale(1.03) !important;
  background-color: var(--accent);
}

.qb-marquee-viewport:hover .qb-marquee-track,
.qb-marquee-viewport:focus .qb-marquee-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .qb-marquee-track {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 1024px) {
  .qb-logo-card {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 600px) {
  .qb-logo-card {
    width: 96px;
    height: 96px;
  }

  .qb-marquee-track {
    gap: 16px;
  }
}

/* =========================================================
   ABOUT SECTION
========================================================= */

.about .container {
  max-width: 950px;
}

.about h2 {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 400;
}

.about p {
  font-size: 42px; /* FIXED: was way too big */
  line-height: 1.5;
}

/* TABLET */
@media (max-width: 991px) {
  .about h2 {
    font-size: 36px;
  }

  .about p {
    font-size: 20px;
  }
}

/* MOBILE */
@media (max-width: 767px) {
  .about h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .about p {
    font-size: 18px;
    line-height: 1.6;
  }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
  .about h2 {
    font-size: 24px;
  }

  .about p {
    font-size: 16px;
  }
}

/* =========================================================
   PROCESS SECTION
========================================================= */
:root {
  --process-bg: #292929;
  --process-accent: #fff;
  --process-muted: #efefef;
  --process-gap: 20px;
  --tab-width: 220px;
}

.process_layout {
  width: 100%;
  margin-block: 100px;
  padding: 10px;
  background-color: #dbdbdb;
  border-radius: 20px;
}

.process_border {
  padding: 36px;
  background: var(--process-bg);
  border-radius: 14px;
}

.process_bento_wrap {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.process_top_master {
  width: 50%;
}

.process_tag_wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.process_tag_txt {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--process-accent);
}

.process_header_wrap {
  margin-bottom: 18px;
}

.process_header_txt {
  font-size: 1.75rem;
  line-height: 1.05;
  margin: 0;
  color: var(--process-accent);
}

.process_header_opacity_span {
  opacity: .65;
  display: block;
}

.process_tabs_wrap {
  display: flex;
  gap: 12px;
  width: 100%;
  flex: 0 0 var(--tab-width);
}

.process_tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 12px;
  padding: 18px;
  background-color: var(--section-dark);
  border-radius: 10px;
  border: 1px solid rgba(10, 10, 10, 0.04);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  min-height: 250px;
  transition: transform .28s ease, box-shadow .28s ease, background .18s ease;
  color: var(--process-accent);
  -webkit-tap-highlight-color: transparent;
}

.process_tab:focus {
  outline: 2px solid rgba(0,0,0,0.08);
  outline-offset: 2px;
}

.process_tab:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(12,12,12,0.06);
}

.process_tab.is-active {
  position: relative;
  color: #fff;
  box-shadow: 0 14px 40px rgba(10,10,10,0.14);
  transform: none;
  background-color: var(--accent);
  overflow: hidden;
}

.process_tab.is-active::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://www.qubix.co.za/wp-content/uploads/2026/03/cubes-bg-1-scaled.png');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
  mix-blend-mode: multiply;
}

.process_tab.is-active > * {
  position: relative;
  z-index: 1;
}

.process_number {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  z-index: 2;
}

.process_name_txt {
  font-size: 1rem;
  font-weight: 600;
  z-index: 2;
}

.process_pattern {
  position: absolute;
  right: -8px;
  top: -8px;
  bottom: -8px;
  width: 70%;
  opacity: .12;
  z-index: 1;
  pointer-events: none;
  transform: translateX(0) rotate(0deg);
  mix-blend-mode: normal;
}

.process_timeline_master {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  min-width: 170px;
}

.process_time_wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--process-accent);
  opacity: .9;
  font-weight: 600;
}

.process_timeline_img {
  width: 140px;
  height: auto;
}

.process_pane_wrap {
  flex: 1;
}

.process_pane {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .28s ease, transform .28s ease;
}

.process_pane[aria-hidden="false"] {
  display: block;
  opacity: 1;
  transform: none;
}

.pane_header_txt {
  font-size: 1.25rem;
  margin-bottom: 18px;
  color: var(--process-accent);
}

.process_points_wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.process_point_wrap:first-child {
  border-top: 1px solid #515151;
}

.process_point_wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #515151;
  padding-block: 10px;
}

.process_icon_wrap {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--process-accent);
  margin-top: 4px;
}

.process_point_richtxt {
  font-size: 1rem;
  color: #fff;
}

.process_point_richtxt strong {
  color: var(--accent);
}

@media (max-width: 880px) {
  .process_bento_wrap {
    flex-direction: column;
    gap: 20px;
  }

  .process_tabs_wrap {
    flex-direction: row;
    width: 100%;
    padding-bottom: 4px;
  }

  .process_tab {
    min-width: 50px;
    min-height: 150px;
    flex: 1;
    border-radius: 8px;
  }

  .process_timeline_master {
    display: none;
  }
  .process_pane_wrap,
  .process_top_master {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .process_header_txt {
    font-size: 1.25rem;
  }

  .process_number {
    font-size: 1.25rem;
  }

  .process_tab {
    padding: 12px;
    min-height: 60px;
  }
}

/* =========================================================
   PORTFOLIO SLIDER
========================================================= */
.portfolio {
  overflow: hidden;
  padding-bottom: 100px;
}

.portfolio h2 {
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  color: #292929;
}

.portfolio-swiper {
  overflow: revert !important;
}

.portfolio-slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.portfolio-slide-image-wrap {
  border-radius: 24px;
  overflow: hidden;
}

.portfolio-slide-image {
  width: 100%;
  height: 680px;
  background-size: cover;
  background-position: left;
  transition: transform 0.5s ease;
  transform: scale(1);
  will-change: transform;
}

.portfolio-slide-link:hover .portfolio-slide-image {
  transform: scale(1.06);
}

.portfolio-slide-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.portfolio-slide-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
}

.portfolio-slide-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

@media (max-width: 880px) {
  .portfolio-slide-image {
    height: 480px;
  }
}

@media (max-width: 480px) {
  .portfolio-slide-image {
    height: 300px;
  }
}
/* =========================================================
   COMPARISON SECTION
========================================================= */
.qb-comparison {
  padding-block: 80px;
  background-color: #eaeaea;
  background-image: url('https://www.qubix.co.za/wp-content/uploads/2026/03/cube-bg.png');
  background-size: cover;
  background-position: center center;
}

.qb-comparison h2 {
  font-size: 48px;
  line-height: 1;
  font-weight: 400;
}

.compare_company_logo {
  max-width: 100px;
}

.compare_chart_wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0;
  padding: 2rem;
  background-color: #fff;
  border-radius: 22px;
  overflow: hidden;
}

.compare_item_wrap {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
}

.compare_company_wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: clamp(2.375rem, 2.053rem + 1.61vw, 3.5rem);
}

.compare_company_svg {
  width: 80px;
  height: auto;
}

.compare_company_txt {
  font-size: 1.125rem;
  font-weight: 700;
}

.compare_list_wrap {
  display: flex;
  flex-direction: column;
}

.compare_list_item {
  display: flex;
  align-items: center;
  min-height: clamp(2.5rem, 2.072rem + 2.14vw, 4rem);
  border-top: 1px solid #e7e7e7;
  gap: clamp(1.25rem, 1.116rem + 0.67vw, 1.72rem);
}

.compare_symbol_wrap {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
}

.compare_symbol_svg {
  width: 100%;
  height: 100%;
  display: none;
  color: #27ae60;
}

.compare_symbol_svg.is-check {
  color: var(--accent);
}

.compare_symbol_svg.is-cross {
  color: #000;
}

.compare_list_item[data-wf--compare-item--variant="checked"] .compare_symbol_svg.is-check {
  display: block;
}

.compare_list_item[data-wf--compare-item--variant="cross"] .compare_symbol_svg.is-cross {
  display: block;
}

.compare_point_wrap {
  flex: 1;
}

.compare_point_txt {
  font-size: 1rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .compare_chart_wrap {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   TEAM SECTION
========================================================= */
.team {
  padding: 80px 0;
}

.team-container {
  border: 1px solid #dedddd;
  border-radius: 42px;
}

.team_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.team_header .left {
  display: flex;
  align-items: center;
  gap: 5px;
}

.team_title {
  font-size: 16px;
  background-color: var(--accent);
  color: #fff;
  border-radius: 99px;
  padding: 5px 10px;
  font-weight: 600;
}

.team_count {
  font-size: 14px;
  display: flex;
  align-items: center;
  color: #fff;
  gap: 5px;
  background-color: #2a2828;
  border-radius: 99px;
  padding: 5px 10px;
}

.swipe-indicator {
  font-size: 14px;
  display: flex;
  align-items: center;
  color: #222;
  gap: 5px;
}

.swipe-indicator span {
  font-weight: 600;
  color: var(--text-muted);
}

.swipe-indicator svg,
.team_count svg {
  width: 16px;
  height: 16px;
}

.team_slider {
  overflow: visible;
  padding: 20px !important;
}

.team_card {
  width: 280px;
}

.team_card_inner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #e7e7e7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.swiper-slide-active .team_card_inner {
  background: var(--accent);
  color: #fff;
}

.swiper-slide-active .team_card_inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://www.qubix.co.za/wp-content/uploads/2026/03/cubes-bg-1-scaled.png');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
  mix-blend-mode: multiply;
}

.team_info {
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.team_role {
  font-size: 12px;
  font-weight: 700;
  border-radius: 99px;
  color: #fff;
  padding: 5px 10px;
  background-color: #a3a3a340;
  display: flex;
  width: fit-content;
  margin-bottom: 10px;
}

.team_name {
  font-size: 18px;
  font-weight: 700;
  margin-top: 6px;
}

.team_image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70%;
  margin: 0 auto;
}

.team_image img {
  width: 100%;
  object-fit: contain;
}

.team_nav {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.team_prev,
.team_next {
  padding: 8px 16px;
  border: none;
  background: #000;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .team_card {
    width: 220px;
  }
}

/* =========================================================
   TESTIMONIALS
========================================================= */
.testimonials_wrap {
  width: 100%;
  overflow: hidden;
  padding-block: 20px 80px;
}

.testimonials_top_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.testimonials_slider_component {
  position: relative;
}

.swiper.is-testimonial {
  overflow: visible;
}

.swiper-slide.is-testimonial {
  width: 420px;
  min-height: 350px;
  padding: 32px;
  background: #f5f5f5;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.swiper-slide.is-testimonial.swiper-slide-active {
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.testimonials_slider_quote_txt {
  font-size: 22px;
  line-height: 1.4;
}

.testimonials_slider_credits_wrap {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonials_slider_img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 16px;
}
.testimonials_arrows_group{
  display: flex;
  gap: 5px;
}
.testimonial_arrow_wrap {
  width: 44px;
  height: 44px;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  border-radius: 99px;
}

.testimonial_arrow_wrap.is-disabled {
  background: #e5e5e5;
  opacity: 0.6;
  cursor: default;
}

.testimonial_slider_bg_pattern {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.swiper-slide-active .testimonial_slider_bg_pattern {
  opacity: 0.08;
}

.testimonials_wrap h2 {
  font-size: 48px;
  line-height: 1;
  font-weight: 400;
  color: var(--text-muted);
}

.testimonials_wrap h2 b {
  color: var(--text-main);
}

@media (max-width: 768px) {
  .swiper-slide.is-testimonial {
    width: 85%;
    padding: 24px;
  }
  .testimonials_wrap h2 {
    font-size: 32px;
  }

  .testimonials_slider_quote_txt {
    font-size: 18px;
  }
  .testimonials_arrows_group{
    flex-direction: column;
  }
}

/* =========================================================
   FAQ
========================================================= */
.faq {
  padding: 80px 0;
}

.faq-header {
  margin-bottom: 40px;
}

.faq-header h2 {
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  color: var(--text-main);
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  outline: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: #000;
  transition: 0.3s;
}

.faq-icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-icon::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.faq-item.active .faq-icon::after {
  transform: translateX(-50%) scaleY(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 300px;
}

@media (max-width: 768px) {
  .faq-list {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
  padding-block: 80px 150px;
  background: #ededed;
  color: #111;
}

.footer .container {
  max-width: 1100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
}

.footer-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 22px;
  text-decoration: none;
  color: #111;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s;
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  position: relative;
  min-height: 350px;
}

.footer-card:hover {
  background-color: var(--section-dark-2);
  color: #fff;
}

.footer-card-large {
  background: var(--accent);
  color: #fff;
  justify-content: space-between;
}

.footer-card-large::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://www.qubix.co.za/wp-content/uploads/2026/03/cubes-bg-1-scaled.png');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
  mix-blend-mode: multiply;
}

.footer-card-large-contact {
  color: #fff;
  justify-content: space-between;
}

.footer-card-large-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://www.qubix.co.za/wp-content/uploads/2026/02/original-dc722a5a461174d1253be0abd1d7d626.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.footer-card .tag {
  font-size: 14px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.footer-card h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.footer-card p {
  font-size: 16px;
  color: #262626;
  font-weight: bold;
  letter-spacing: -0.05em;
}

.footer-card:hover p {
  color: #fff;
}

.footer-card .footer-card-cta {
  font-size: 38px;
  font-weight: bold;
}

.footer-bottom {
  display: flex;
  width: 95%;
  margin: 0 auto;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 10px;
}

.footer-links a {
  margin-right: 15px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
}

.footer-links a:hover {
  color: #000;
}

.footer-copy {
  font-size: 14px;
  color: #777;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   FLOATING BOTTOM NAV
========================================================= */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: fit-content;
  max-width: calc(100vw - 24px);
  z-index: 9999;
  pointer-events: none;
}

.bottom-nav__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(237, 237, 237, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #111;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
  outline: none;
}

.nav-link--cta {
  background: var(--accent);
  color: #0d1513;
}

.nav-link--cta:hover,
.nav-link--cta:focus-visible {
  background: #2fcdb8;
}

.nav-link--button {
  font: inherit;
}

.nav-caret {
  font-size: 12px;
  line-height: 1;
  opacity: 0.75;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-dropdown.is-open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.dropdown-panel a:hover,
.dropdown-panel a:focus-visible {
  background: rgba(61, 219, 198, 0.18);
  transform: translateX(2px);
  outline: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    bottom: 14px;
    max-width: calc(100vw - 16px);
  }

  .bottom-nav__inner {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 24px;
    padding: 10px;
  }

  .dropdown-panel {
    left: 50%;
    min-width: min(300px, calc(100vw - 48px));
  }
}

/* =========================================================
   WEB DEVELOPMENT / OUTCOMES
========================================================= */
.outcomes {
  padding: 80px 20px;
}

.outcomes .container {
  max-width: 1100px;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.outcome-card {
  padding: 32px;
  border-radius: 16px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.pill {
  background-color: var(--accent);
  display: inline-block;
  font-size: 12px;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.outcome-card h3 {
  font-size: 34px;
  margin-bottom: 12px;
}

.outcome-card p {
  font-size: 18px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .outcomes-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   CONTACT FORM
========================================================= */
.contact_form_wrap,
.contact_form_group,
.contact_form_title_wrap,
.contact_form_text_field_wrap,
.contact_checkboxes_wrap,
.contact_services_list,
.contact_budget_list,
.contact_form_text_field_wrap .wpcf7-form-control-wrap {
  width: 100%;
}

.contact_form_label_txt {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
  color: #111827;
}

.contact_form_subtxt {
  opacity: 0.7;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #111827;
}

.contact_services_list,
.contact_budget_list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.contact_checkboxes_wrap .wpcf7-list-item {
  margin: 0;
}

.contact_checkboxes_wrap input[type="checkbox"],
.contact_checkboxes_wrap input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact_checkboxes_wrap .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  border-radius: 999px;
  overflow: hidden;
}

.contact_checkboxes_wrap .wpcf7-list-item .wpcf7-list-item-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #111827;
  transition: 0.25s ease;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.contact_checkboxes_wrap .wpcf7-list-item label:hover .wpcf7-list-item-label {
  border-color: rgba(17, 24, 39, 0.22);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.contact_checkboxes_wrap input[type="checkbox"]:checked + .wpcf7-list-item-label,
.contact_checkboxes_wrap input[type="radio"]:checked + .wpcf7-list-item-label {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.contact_form_text_field {
  width: 100%;
  display: block;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: #111827;
  border-radius: 18px;
  padding: 16px 18px;
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
  transition: 0.25s ease;
}

.contact_form_text_field::placeholder {
  color: rgba(17, 24, 39, 0.45);
}

.contact_form_text_field:hover {
  border-color: rgba(17, 24, 39, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.contact_form_text_field:focus {
  border-color: rgba(17, 24, 39, 0.35);
  background: #fff;
}

.contact_form_text_field.requirments {
  min-height: 160px;
  resize: vertical;
}

.cf7-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cf7-field {
  width: 100%;
}

.contact_btn_wrap {
  margin-top: 28px;
}

.contact_submit_btn,
.wpcf7 input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  background: #111827;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.contact_submit_btn:hover,
.wpcf7 input[type="submit"]:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.wpcf7-not-valid-tip {
  margin-top: 8px;
  font-size: 0.875rem;
}

.wpcf7-response-output {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
}

.whatsapp-wrap {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 16px;
    padding: 20px;
    margin-top: 50px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.whatsapp-wrap p {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
    font-weight: 500;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.whatsapp-button:hover {
    background: #1fb85a;
    transform: translateY(-1px);
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
  .cf7-field-row {
    grid-template-columns: 1fr;
  }

  .contact_checkboxes_wrap .wpcf7-list-item .wpcf7-list-item-label {
    min-height: 46px;
    padding: 12px 16px;
  }

  .contact_form_text_field {
    padding: 14px 16px;
  }
}

/* =========================================================
   PORTFOLIO SINGLE
========================================================= */

.portfolio-single {
  padding: 40px 0;
  background-image:
    linear-gradient(to top, #ededed 30%, rgba(239,239,239,0) 70%),
    url('https://www.qubix.co.za/wp-content/uploads/2026/02/65761cbdb9d7afd78bb7a288_Hero-pattern-dots.svg');
  background-size: 100px;
  background-position: center;
      padding-top: 80px;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.container--narrow {
  width: min(860px, calc(100% - 2rem));
}

/* =========================================================
   HERO
========================================================= */

.portfolio-hero {
  padding-top: 170px;

}

.portfolio-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3rem;
  align-items: end;
}

.portfolio-hero__label {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.portfolio-hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.portfolio-hero__intro {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.75;
  opacity: 0.9;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.portfolio-tags__item {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   MEDIA
========================================================= */

.portfolio-featured,
.portfolio-gallery,
.portfolio-last-image {
  padding: 1rem 0 4rem;
}

.portfolio-media {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  background: #f3f3f3;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.portfolio-media img {
  display: block;
  width: 100%;
  height: auto;
}

.portfolio-media--featured {
  aspect-ratio: 16 / 9;
}

.portfolio-media--featured img,
.portfolio-media--last img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-media--last {
  aspect-ratio: 16 / 9;
}

/* =========================================================
   TESTIMONIAL
========================================================= */

.portfolio-testimonial {
  padding: 2rem 0 4rem;
}

.testimonial {
  margin: 0;
  padding: 2.5rem;
  border-radius: 1.75rem;
  background: #f7f7f7;
  text-align: center;
}

.testimonial__quote {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.testimonial__footer {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial__avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.testimonial__meta {
  text-align: left;
}

.testimonial__name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.testimonial__role {
  display: block;
  font-size: 0.95rem;
  opacity: 0.72;
  margin-top: 0.15rem;
}

/* =========================================================
   GALLERY
========================================================= */

.portfolio-gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.portfolio-gallery__item {
  grid-column: span 12;
  margin: 0;
  overflow: hidden;
  border-radius: 1.75rem;
  background: #f3f3f3;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.portfolio-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-gallery__item--full {
  min-height: 420px;
}

.portfolio-gallery__item--half {
  min-height: 320px;
}

/* 2-column alternating layout on larger screens */
@media (min-width: 860px) {
  .portfolio-gallery__item--full {
    grid-column: span 12;
  }

  .portfolio-gallery__item--half {
    grid-column: span 6;
  }
}

/* =========================================================
   OUTRO
========================================================= */

.portfolio-outro {
  padding: 0 0 4rem;
}

.portfolio-richtext {
  font-size: 1.1rem;
  line-height: 1.85;
}

.portfolio-richtext p {
  margin: 0 0 1.25rem;
}

.portfolio-richtext p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1024px) {
  .portfolio-hero__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-hero {
    padding-top: 4rem;
  }
}

@media (max-width: 768px) {
  .portfolio-hero {
    padding: 3rem 0 2rem;
  }

  .testimonial {
    padding: 1.75rem;
    text-align: left;
  }

  .testimonial__footer {
    display: flex;
  }

  .portfolio-gallery__grid {
    gap: 1rem;
  }

  .portfolio-gallery__item--full,
  .portfolio-gallery__item--half {
    min-height: 280px;
  }
}

@media (max-width: 520px) {
  .container,
  .container--narrow {
    width: min(100% - 1.2rem, 100%);
  }

  .portfolio-tags {
    gap: 0.5rem;
  }

  .portfolio-tags__item {
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
  }

  .portfolio-gallery__item--full,
  .portfolio-gallery__item--half {
    min-height: 220px;
  }

  .testimonial__quote {
    font-size: 1.35rem;
  }
}


/* =========================================================
   THANK YOU PAGE
========================================================= */
.thankyou-page_wrap {
    position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  padding: 40px 0;
  background-image:
    linear-gradient(to top, #ededed 30%, rgba(239,239,239,0) 70%),
    url('https://www.qubix.co.za/wp-content/uploads/2026/02/65761cbdb9d7afd78bb7a288_Hero-pattern-dots.svg');
  background-size: 100px;
  background-position: center;
      padding-top: 150px;
}

.thankyou-page_wrap .container {
    max-width: 700px;
}

.thankyou_header_wrap {
    margin-bottom: 40px;
}

.thankyou_header_txt {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
}

.thankyou_subtxt {
    font-size: 20px;
    color: #555;
}

.thankyou_body_wrap p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

.thankyou_body_wrap a {
    color: #0070f3;
    font-weight: 500;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .thankyou-header_txt {
        font-size: 36px;
    }
    .thankyou_subtxt {
        font-size: 18px;
    }
    .thankyou_body_wrap p {
        font-size: 16px;
    }
}