/*
Theme Name: Rhobyte
Theme URI: https://rhobyte.co.za
Author: Rhobyte
Description: Custom theme for Rhobyte IT & Application Development
Version: 2.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: rhobyte
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --rb-blue:        #1a7fd4;
  --rb-blue-dark:   #0f5fa3;
  --rb-blue-light:  #e8f3fc;
  --rb-blue-mid:    #2d93e8;
  --rb-sky:         #5ec3e8;
  --rb-white:       #ffffff;
  --rb-off-white:   #d8d9db;
  --rb-light-grey:  #eef2f7;
  --rb-border:      #e2e8f0;
  --rb-text-dark:   #1a2332;
  --rb-text-body:   #4a5568;
  --rb-text-muted:  #8896a4;
  --rb-text-light:  #b0bec8;
  --rb-font-heading:'Plus Jakarta Sans', sans-serif;
  --rb-font-body:   'Nunito', sans-serif;
  --rb-max-width:   1200px;
  --rb-radius-sm:   6px;
  --rb-radius-md:   12px;
  --rb-radius-lg:   20px;
  --rb-shadow-sm:   0 2px 8px rgba(26,127,212,0.08);
  --rb-shadow-md:   0 8px 30px rgba(26,127,212,0.14);
  --rb-shadow-lg:   0 20px 60px rgba(26,127,212,0.18);
  --rb-shadow-card: 0 4px 20px rgba(0,0,0,0.07);
  --rb-transition:  0.25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--rb-font-body);
  background: var(--rb-white);
  color: var(--rb-text-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rb-blue); text-decoration: none; transition: color var(--rb-transition); }
a:hover { color: var(--rb-blue-dark); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--rb-font-heading);
  color: var(--rb-text-dark);
  line-height: 1.2;
  font-weight: 700;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.rb-container {
  max-width: var(--rb-max-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.rb-topbar {
  background: var(--rb-blue);
  padding: 9px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
}
.rb-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.rb-topbar__left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.rb-topbar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.88);
  font-size: 12px;
}
.rb-topbar__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 4px 14px 4px 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.rb-topbar__social { display: flex; gap: 12px; }
.rb-topbar__social a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  transition: color var(--rb-transition);
}
.rb-topbar__social a:hover { color: #fff; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.rb-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--rb-white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.rb-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}
.rb-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.rb-logo__mark {
  width: 44px; height: 44px;
  flex-shrink: 0;
}
.rb-logo__mark img { width: 100%; height: 100%; object-fit: contain; }
.rb-logo__name {
  font-family: var(--rb-font-heading);
  font-size: 21px;
  font-weight: 800;
  color: var(--rb-text-dark);
  letter-spacing: -0.5px;
  line-height: 1;
}
.rb-logo__name span { color: var(--rb-blue); }
.rb-logo__tagline {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--rb-text-muted);
  text-transform: uppercase;
  margin-top: 3px;
  display: block;
}
.rb-nav__menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.rb-nav__menu > li > a {
  color: var(--rb-text-dark);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--rb-font-heading);
  padding: 8px 14px;
  border-radius: var(--rb-radius-sm);
  display: block;
  transition: color var(--rb-transition), background var(--rb-transition);
}
.rb-nav__menu > li > a:hover,
.rb-nav__menu > .current-menu-item > a { color: var(--rb-blue); background: var(--rb-blue-light); }
.rb-nav__cta > a {
  background: var(--rb-blue) !important;
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: var(--rb-radius-sm) !important;
}
.rb-nav__cta > a:hover { background: var(--rb-blue-dark) !important; }
.rb-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.rb-nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--rb-text-dark);
  border-radius: 2px;
  transition: all var(--rb-transition);
}
@media (max-width: 900px) {
  .rb-topbar { display: none; }
  .rb-nav__toggle { display: flex; }
  .rb-nav__menu {
    display: none;
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--rb-white);
    border-top: 2px solid var(--rb-blue-light);
    border-bottom: 1px solid var(--rb-border);
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--rb-shadow-md);
    z-index: 199;
  }
  .rb-nav__menu.is-open { display: flex; }
  .rb-nav__menu > li { width: 100%; }
  .rb-nav__menu > li > a { width: 100%; }
}

/* ============================================================
   HERO
   ============================================================ */
.rb-hero {
  position: relative;
  overflow: hidden;
  background: var(--rb-text-dark);
  min-height: clamp(460px, 58vh, 660px);
  display: flex;
  align-items: center;
}
.rb-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.32;
}
.rb-hero__bg--pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(26,127,212,0.5) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(94,195,232,0.25) 0%, transparent 50%);
  opacity: 1;
}
.rb-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,25,40,0.9) 0%, rgba(15,25,40,0.6) 60%, rgba(15,25,40,0.25) 100%);
}
.rb-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--rb-white);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 3;
}
.rb-hero__inner {
  position: relative;
  z-index: 2;
  padding: clamp(70px, 10vw, 120px) 0 clamp(100px, 12vw, 150px);
  max-width: 640px;
}
.rb-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rb-sky);
  font-family: var(--rb-font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.rb-hero__tag::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--rb-sky);
  border-radius: 2px;
}
.rb-hero__heading {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.rb-hero__heading em { color: var(--rb-sky); font-style: normal; }
.rb-hero__sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 38px;
}
.rb-hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.rb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--rb-radius-sm);
  font-family: var(--rb-font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--rb-transition);
  text-decoration: none;
  line-height: 1;
}
.rb-btn--primary { background: var(--rb-blue); color: #fff; border-color: var(--rb-blue); }
.rb-btn--primary:hover {
  background: var(--rb-blue-dark); border-color: var(--rb-blue-dark);
  color: #fff; transform: translateY(-2px); box-shadow: var(--rb-shadow-md);
}
.rb-btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.rb-btn--outline-white:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }
.rb-btn--outline { background: transparent; color: var(--rb-blue); border-color: var(--rb-blue); }
.rb-btn--outline:hover { background: var(--rb-blue); color: #fff; transform: translateY(-2px); }

/* ============================================================
   STATS BAR
   ============================================================ */
.rb-stats {
  background: var(--rb-white);
  padding: 40px 0;
  border-bottom: 1px solid var(--rb-border);
}
.rb-stats__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
}
.rb-stat {
  text-align: center;
  padding: 20px 16px;
  border-right: 1px solid var(--rb-border);
}
.rb-stat:last-child { border-right: none; }
.rb-stat__num {
  font-family: var(--rb-font-heading);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--rb-blue);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.rb-stat__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--rb-text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
}
@media (max-width: 600px) {
  .rb-stats__inner { grid-template-columns: repeat(2, 1fr); }
  .rb-stat:nth-child(2) { border-right: none; }
  .rb-stat:nth-child(1),
  .rb-stat:nth-child(2) { border-bottom: 1px solid var(--rb-border); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.rb-section { padding: clamp(64px, 10vw, 110px) 0; }
.rb-section--grey { background: var(--rb-off-white); }
.rb-section--blue { background: var(--rb-blue); }

.rb-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto clamp(40px, 6vw, 60px);
}
.rb-section-header--left { text-align: left; margin-left: 0; }

.rb-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rb-font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--rb-blue);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.rb-section__eyebrow::before,
.rb-section__eyebrow::after {
  content: ''; display: block;
  height: 2px; width: 22px;
  background: var(--rb-blue);
  border-radius: 2px; flex-shrink: 0;
}
.rb-section__eyebrow--left::after { display: none; }

.rb-section__title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--rb-text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.18;
}
.rb-section__title--white { color: #fff; }
.rb-section__sub { font-size: 16px; color: var(--rb-text-body); line-height: 1.75; }
.rb-section__sub--white { color: rgba(255,255,255,0.8); }

/* ============================================================
   SERVICES
   ============================================================ */
.rb-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.rb-service-card {
  background: var(--rb-white);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  padding: 34px 26px;
  transition: all var(--rb-transition);
  position: relative;
  overflow: hidden;
}
.rb-service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rb-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--rb-transition);
}
.rb-service-card:hover { border-color: var(--rb-blue-light); box-shadow: var(--rb-shadow-md); transform: translateY(-4px); }
.rb-service-card:hover::after { transform: scaleX(1); }
.rb-service-card__icon {
  width: 58px; height: 58px;
  background: var(--rb-blue-light);
  border-radius: var(--rb-radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  transition: background var(--rb-transition);
}
.rb-service-card:hover .rb-service-card__icon { background: var(--rb-blue); }
.rb-service-card__title {
  font-size: 17px; font-weight: 700;
  color: var(--rb-text-dark); margin-bottom: 10px; line-height: 1.3;
}
.rb-service-card__desc { font-size: 14px; color: var(--rb-text-body); line-height: 1.7; }
.rb-service-card__link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--rb-blue);
  margin-top: 16px; font-family: var(--rb-font-heading);
  transition: gap var(--rb-transition);
}
.rb-service-card:hover .rb-service-card__link { gap: 9px; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.rb-process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  position: relative;
}
.rb-process__grid::before {
  content: '';
  position: absolute;
  top: 32px; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--rb-blue-light), var(--rb-blue), var(--rb-blue-light));
  z-index: 0;
}
.rb-process__step { padding: 0 16px 0; text-align: center; position: relative; z-index: 1; }
.rb-process__step-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--rb-white);
  border: 3px solid var(--rb-blue);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  font-family: var(--rb-font-heading);
  font-size: 20px; font-weight: 800;
  color: var(--rb-blue);
  box-shadow: var(--rb-shadow-sm);
  transition: all var(--rb-transition);
}
.rb-process__step:hover .rb-process__step-circle {
  background: var(--rb-blue); color: #fff;
  transform: scale(1.08); box-shadow: var(--rb-shadow-md);
}
.rb-process__step h4 { font-size: 15px; font-weight: 700; color: var(--rb-text-dark); margin-bottom: 8px; }
.rb-process__step p { font-size: 13px; color: var(--rb-text-body); line-height: 1.6; }
@media (max-width: 700px) { .rb-process__grid::before { display: none; } }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.rb-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}
.rb-project-card {
  border-radius: var(--rb-radius-lg);
  overflow: hidden;
  box-shadow: var(--rb-shadow-card);
  background: var(--rb-white);
  border: 1px solid var(--rb-border);
  transition: all var(--rb-transition);
}
.rb-project-card:hover { transform: translateY(-6px); box-shadow: var(--rb-shadow-lg); }
.rb-project-card__thumb {
  position: relative; height: 220px; overflow: hidden;
}
.rb-project-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.rb-project-card:hover .rb-project-card__thumb img { transform: scale(1.06); }
.rb-project-card__thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--rb-blue-light) 0%, #c8e4f8 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--rb-font-heading);
  font-size: 48px; font-weight: 800;
  color: var(--rb-blue); letter-spacing: -2px; opacity: 0.7;
}
.rb-project-card__cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--rb-blue); color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; padding: 4px 12px;
  border-radius: 20px; font-family: var(--rb-font-heading);
}
.rb-project-card__body { padding: 22px 24px; }
.rb-project-card__title {
  font-size: 17px; font-weight: 700;
  color: var(--rb-text-dark); margin-bottom: 8px; line-height: 1.3;
}
.rb-project-card__desc { font-size: 13px; color: var(--rb-text-body); line-height: 1.65; }

/* ============================================================
   CONTACT
   ============================================================ */
.rb-contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
@media (max-width: 768px) { .rb-contact__inner { grid-template-columns: 1fr; } }

.rb-contact__info-title { font-size: 24px; font-weight: 700; color: var(--rb-text-dark); margin-bottom: 12px; }
.rb-contact__info-sub { font-size: 15px; color: var(--rb-text-body); line-height: 1.7; margin-bottom: 32px; }
.rb-contact__item { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.rb-contact__item-icon {
  width: 44px; height: 44px; border-radius: var(--rb-radius-md);
  background: var(--rb-blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.rb-contact__item-text { font-size: 14px; color: var(--rb-text-body); line-height: 1.6; padding-top: 2px; }
.rb-contact__item-text strong {
  color: var(--rb-text-dark); font-weight: 700; font-family: var(--rb-font-heading);
  font-size: 13px; display: block; margin-bottom: 2px;
}
.rb-contact-form {
  background: var(--rb-white); border-radius: var(--rb-radius-lg);
  padding: 36px; box-shadow: var(--rb-shadow-card);
  border: 1px solid var(--rb-border);
  display: flex; flex-direction: column; gap: 14px;
}
.rb-contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) {
  .rb-contact-form .form-row { grid-template-columns: 1fr; }
  .rb-contact-form { padding: 24px; }
}
.rb-contact-form input,
.rb-contact-form textarea,
.rb-contact-form select {
  width: 100%;
  background: var(--rb-white);
  border: 2px solid #b8cfe8;
  border-radius: var(--rb-radius-sm);
  padding: 13px 16px;
  color: var(--rb-text-dark);
  font-family: var(--rb-font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--rb-transition), box-shadow var(--rb-transition);
  -webkit-appearance: none;
}
.rb-contact-form input::placeholder,
.rb-contact-form textarea::placeholder { color: var(--rb-text-light); }
.rb-contact-form input:focus,
.rb-contact-form textarea:focus,
.rb-contact-form select:focus {
  border-color: var(--rb-blue);
  box-shadow: 0 0 0 3px rgba(26,127,212,0.12);
  background: #f0f7ff;
}
.rb-contact-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a7fd4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: var(--rb-white);
  padding-right: 36px;
}
.rb-contact-form textarea { height: 120px; resize: vertical; }
.rb-contact-form .rb-btn { justify-content: center; }
.rb-form-success, .rb-form-error {
  display: none; padding: 12px 16px;
  border-radius: var(--rb-radius-sm);
  font-size: 13px; font-weight: 600;
}
.rb-form-success { background: #f0faf0; border: 1.5px solid #68c272; color: #2d7a35; }
.rb-form-error   { background: #fff0f0; border: 1.5px solid #e57373; color: #c62828; }

/* ============================================================
   CTA BAND
   ============================================================ */
.rb-cta-band {
  background: linear-gradient(135deg, var(--rb-blue) 0%, var(--rb-blue-dark) 100%);
  padding: clamp(50px, 8vw, 80px) 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.rb-cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%);
}
.rb-cta-band__inner { position: relative; z-index: 1; }
.rb-cta-band h2 { font-size: clamp(22px, 3.5vw, 36px); font-weight: 800; color: #fff; margin-bottom: 14px; }
.rb-cta-band p { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 520px; margin-inline: auto; line-height: 1.7; }

/* ============================================================
   FOOTER
   ============================================================ */
.rb-footer {
  background: var(--rb-text-dark);
  padding: clamp(48px, 8vw, 80px) 0 0;
}
.rb-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) { .rb-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .rb-footer__grid { grid-template-columns: 1fr; } }
.rb-footer__brand p { font-size: 14px; line-height: 1.75; margin-top: 14px; color: rgba(255,255,255,0.5); }
.rb-footer__logo-name { font-family: var(--rb-font-heading); font-size: 22px; font-weight: 800; color: #fff; }
.rb-footer__logo-name span { color: var(--rb-sky); }
.rb-footer__col-title {
  font-family: var(--rb-font-heading); font-size: 14px; font-weight: 700;
  color: #fff; margin-bottom: 18px; letter-spacing: 0.5px;
}
.rb-footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rb-footer__links a {
  font-size: 14px; color: rgba(255,255,255,0.5);
  transition: color var(--rb-transition);
  display: flex; align-items: center; gap: 6px;
}
.rb-footer__links a::before { content: '›'; color: var(--rb-sky); font-size: 16px; }
.rb-footer__links a:hover { color: var(--rb-sky); }
.rb-footer__contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px; font-size: 14px; color: rgba(255,255,255,0.5);
}
.rb-footer__bottom {
  padding: 22px 0;
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.35);
}
.rb-footer__bottom-links { display: flex; gap: 20px; list-style: none; }
.rb-footer__bottom-links a { font-size: 13px; color: rgba(255,255,255,0.35); transition: color var(--rb-transition); }
.rb-footer__bottom-links a:hover { color: var(--rb-sky); }

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
.rb-page-banner {
  background: linear-gradient(135deg, var(--rb-text-dark) 0%, #1a3a5c 100%);
  padding: clamp(56px, 8vw, 90px) 0 clamp(44px, 6vw, 70px);
  position: relative; overflow: hidden;
}
.rb-page-banner::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 50px;
  background: var(--rb-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.rb-page-banner__inner { position: relative; z-index: 1; }
.rb-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 18px;
}
.rb-breadcrumb a { color: var(--rb-sky); }
.rb-page-banner__title { font-size: clamp(28px, 4vw, 46px); font-weight: 800; color: #fff; max-width: 700px; margin-bottom: 14px; }
.rb-page-banner__sub { font-size: 16px; color: rgba(255,255,255,0.7); max-width: 560px; line-height: 1.7; }

/* ============================================================
   PAGE / POST CONTENT
   ============================================================ */
.rb-page-content, .rb-post-content {
  color: var(--rb-text-body); font-size: 16px; line-height: 1.85; max-width: 760px;
}
.rb-page-content h2, .rb-post-content h2 { font-size: clamp(22px,2.5vw,28px); color: var(--rb-text-dark); margin: 2.4rem 0 1rem; }
.rb-page-content h3, .rb-post-content h3 { font-size: clamp(18px,2vw,22px); color: var(--rb-text-dark); margin: 2rem 0 0.8rem; }
.rb-page-content p, .rb-post-content p { margin-bottom: 1.4rem; }
.rb-page-content ul, .rb-page-content ol,
.rb-post-content ul, .rb-post-content ol { margin: 0 0 1.4rem 1.4rem; }
.rb-page-content li, .rb-post-content li { margin-bottom: 0.4rem; }
.rb-page-content blockquote, .rb-post-content blockquote {
  border-left: 4px solid var(--rb-blue); margin: 2rem 0; padding: 1rem 1.5rem;
  background: var(--rb-blue-light); border-radius: 0 var(--rb-radius-sm) var(--rb-radius-sm) 0;
  font-style: italic;
}
.rb-page-content code, .rb-post-content code {
  font-family: 'Courier New', monospace; font-size: 13px;
  background: var(--rb-blue-light); padding: 2px 8px; border-radius: 4px; color: var(--rb-blue-dark);
}
.rb-page-content a, .rb-post-content a { color: var(--rb-blue); text-decoration: underline; text-underline-offset: 3px; }
.rb-page-content strong, .rb-post-content strong { color: var(--rb-text-dark); font-weight: 700; }

/* ============================================================
   BLOG
   ============================================================ */
.rb-blog-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 28px; }
.rb-blog-card {
  background: var(--rb-white); border-radius: var(--rb-radius-lg); overflow: hidden;
  box-shadow: var(--rb-shadow-card); border: 1px solid var(--rb-border);
  transition: all var(--rb-transition);
}
.rb-blog-card:hover { transform: translateY(-5px); box-shadow: var(--rb-shadow-md); }
.rb-blog-card__thumb { display: block; overflow: hidden; height: 200px; }
.rb-blog-card__thumb img { width:100%;height:100%;object-fit:cover;transition:transform 0.4s ease; }
.rb-blog-card:hover .rb-blog-card__thumb img { transform: scale(1.04); }
.rb-blog-card__body { padding: 24px 26px; }
.rb-blog-card__title { font-family: var(--rb-font-heading); font-size: 18px; font-weight: 700; color: var(--rb-text-dark); margin-bottom: 10px; line-height: 1.3; }
.rb-blog-card__title a { color: inherit; transition: color var(--rb-transition); }
.rb-blog-card__title a:hover { color: var(--rb-blue); }
.rb-blog-card__excerpt { font-size: 14px; color: var(--rb-text-body); line-height: 1.65; margin-bottom: 16px; }
.rb-blog-card__read { font-size: 13px; font-weight: 700; color: var(--rb-blue); font-family: var(--rb-font-heading); }
.rb-post-meta { display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;margin-bottom:14px; }
.rb-post-meta__cat { background:var(--rb-blue);color:#fff;border-radius:20px;padding:3px 12px;font-size:10px;font-weight:700;letter-spacing:1px;font-family:var(--rb-font-heading); }
.rb-post-meta__date, .rb-post-meta__read { color: var(--rb-text-muted); }
.rb-tag { display:inline-block;background:var(--rb-blue-light);color:var(--rb-blue);border-radius:20px;padding:4px 14px;font-size:12px;font-weight:600;margin:4px 4px 0 0; }

/* ============================================================
   PAGINATION & POST NAV
   ============================================================ */
.rb-pagination .nav-links { display:flex;gap:8px;justify-content:center;flex-wrap:wrap; }
.rb-pagination .page-numbers {
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:var(--rb-radius-sm);
  font-size:14px;font-weight:600;color:var(--rb-text-body);
  border:1.5px solid var(--rb-border);text-decoration:none;
  transition:all var(--rb-transition);font-family:var(--rb-font-heading);
}
.rb-pagination .page-numbers:hover,
.rb-pagination .page-numbers.current { background:var(--rb-blue);color:#fff;border-color:var(--rb-blue); }
.rb-pagination .prev, .rb-pagination .next { width:auto;padding:0 16px; }
.rb-post-nav { display:flex;justify-content:space-between;gap:16px;margin-top:3rem;padding-top:2rem;border-top:1px solid var(--rb-border);flex-wrap:wrap; }
.rb-post-nav__link { display:flex;flex-direction:column;gap:4px;max-width:48%;text-decoration:none; }
.rb-post-nav__link--next { margin-left:auto;text-align:right; }
.rb-post-nav__dir { font-size:11px;color:var(--rb-blue);font-weight:700;letter-spacing:1px;font-family:var(--rb-font-heading); }
.rb-post-nav__title { font-family:var(--rb-font-heading);font-size:15px;font-weight:600;color:var(--rb-text-dark);line-height:1.4;transition:color var(--rb-transition); }
.rb-post-nav__link:hover .rb-post-nav__title { color:var(--rb-blue); }

/* ============================================================
   404
   ============================================================ */
.rb-404-num {
  font-family: var(--rb-font-heading); font-size: clamp(80px,15vw,160px);
  font-weight: 800; color: var(--rb-blue-light); line-height: 1;
  margin-bottom: 16px; letter-spacing: -4px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.rb-animate { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rb-animate.is-visible { opacity: 1; transform: translateY(0); }
.rb-animate[data-delay="1"] { transition-delay: 0.1s; }
.rb-animate[data-delay="2"] { transition-delay: 0.2s; }
.rb-animate[data-delay="3"] { transition-delay: 0.3s; }
.rb-animate[data-delay="4"] { transition-delay: 0.4s; }
.rb-animate[data-delay="5"] { transition-delay: 0.5s; }
.rb-animate[data-delay="6"] { transition-delay: 0.6s; }

/* ============================================================
   ADMIN BAR OFFSET
   ============================================================ */
.admin-bar .rb-nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .rb-nav { top: 46px; } }

/* ============================================================
   SERVICE CARD — FEATURED IMAGE
   ============================================================ */
.rb-service-card__image {
  width: calc(100% + 52px);
  margin: -34px -26px 22px;
  height: 180px;
  overflow: hidden;
  border-radius: var(--rb-radius-lg) var(--rb-radius-lg) 0 0;
}

.rb-service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rb-service-card:hover .rb-service-card__image img {
  transform: scale(1.04);
}

/* ============================================================
   PORTFOLIO — VISIT SITE BADGE
   ============================================================ */
.rb-project-card__visit {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(26,127,212,0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--rb-font-heading);
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transition: opacity var(--rb-transition);
  letter-spacing: 0.5px;
}

.rb-project-card:hover .rb-project-card__visit {
  opacity: 1;
}

/* Screenshot image fills thumb correctly */
.rb-project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

/* ============================================================
   SERVICE PAGE BANNER — with featured image on right
   ============================================================ */
.rb-service-banner {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  background: var(--rb-text-dark);
}

.rb-service-banner__image {
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  overflow: hidden;
}

.rb-service-banner__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Dark-to-image gradient overlay */
.rb-service-banner__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--rb-text-dark) 0%, transparent 60%);
  z-index: 1;
}

/* Bottom curve */
.rb-service-banner::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 50px;
  background: var(--rb-white);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 3;
}

.rb-service-banner__content {
  position: relative;
  z-index: 2;
  padding: clamp(56px, 8vw, 90px) 0 clamp(44px, 6vw, 70px);
  width: 55%;
}

/* Fallback when no featured image — use standard banner gradient */
.rb-service-banner--no-image {
  background: linear-gradient(135deg, var(--rb-text-dark) 0%, #1a3a5c 100%);
}

.rb-service-banner--no-image .rb-service-banner__content {
  width: 100%;
}

@media (max-width: 768px) {
  .rb-service-banner__image { width: 100%; opacity: 0.25; }
  .rb-service-banner__image::before { background: var(--rb-text-dark); opacity: 0.7; }
  .rb-service-banner__content { width: 100%; }
}

/* ============================================================
   NAV — highlight Services when on a service page
   ============================================================ */
.rb-service-page .rb-nav__menu a[href*="#services"],
.rb-service-page .rb-nav__menu a[href*="services"] {
  color: var(--rb-blue);
  background: var(--rb-blue-light);
}

/* ============================================================
   LEGAL PAGES (Privacy Policy, Terms & Conditions)
   ============================================================ */
.rb-legal, .rb-policy {
  max-width: 820px;
  font-family: var(--rb-font-body);
  color: var(--rb-text-body);
  line-height: 1.8;
}
.rb-legal h2, .rb-policy h2 {
  font-family: var(--rb-font-heading);
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--rb-text-dark);
  margin: 2em 0 0.4em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--rb-blue-light);
  font-weight: 700;
}
.rb-legal h3, .rb-policy h3 {
  font-family: var(--rb-font-heading);
  font-size: 16px;
  color: var(--rb-blue);
  margin: 1.5em 0 0.4em;
  font-weight: 700;
}
.rb-legal p, .rb-policy p  { margin: 0 0 1em; }
.rb-legal ul, .rb-policy ul { margin: 0 0 1em 1.4em; }
.rb-legal li, .rb-policy li { margin-bottom: 0.4em; }
.rb-legal a,  .rb-policy a  { color: var(--rb-blue); }
.rb-legal strong, .rb-policy strong { color: var(--rb-text-dark); }
.rb-legal-meta, .rb-policy-meta {
  font-size: 13px;
  color: var(--rb-text-muted);
  font-style: italic;
  margin-bottom: 2em;
  border-left: 3px solid var(--rb-blue);
  padding-left: 12px;
  line-height: 1.6;
}


/* ============================================================
   GUTENBERG BUTTON BLOCK — reset default WP styles first
   ============================================================ */
.wp-block-button.rb-btn--primary .wp-block-button__link,
.wp-block-button.rb-btn--outline .wp-block-button__link {
    background-color: var(--rb-blue) !important;
    border-radius: var(--rb-radius-sm) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    outline: none !important;
    /* Override WP default dark pill */
    color: #fff !important;
}
/* ============================================================
   GUTENBERG BUTTON BLOCK — Rhobyte class overrides
   When rb-btn classes are added to a Button block, the class
   lands on the wp-block-button wrapper. These rules pass the
   styling through to the inner <a> element.
   ============================================================ */
.wp-block-button.rb-btn--primary .wp-block-button__link,
.wp-block-button.rb-btn.rb-btn--primary .wp-block-button__link {
    background: var(--rb-blue) !important;
    color: #fff !important;
    border: 2px solid var(--rb-blue) !important;
    border-radius: var(--rb-radius-sm) !important;
    font-family: var(--rb-font-heading) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 13px 30px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all var(--rb-transition) !important;
    box-shadow: none !important;
}

.wp-block-button.rb-btn--primary .wp-block-button__link:hover,
.wp-block-button.rb-btn.rb-btn--primary .wp-block-button__link:hover {
    background: var(--rb-blue-dark) !important;
    border-color: var(--rb-blue-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--rb-shadow-md) !important;
}

.wp-block-button.rb-btn--outline .wp-block-button__link,
.wp-block-button.rb-btn.rb-btn--outline .wp-block-button__link {
    background: transparent !important;
    color: var(--rb-blue) !important;
    border: 2px solid var(--rb-blue) !important;
    border-radius: var(--rb-radius-sm) !important;
    font-family: var(--rb-font-heading) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 13px 30px !important;
    text-decoration: none !important;
    transition: all var(--rb-transition) !important;
    box-shadow: none !important;
}

.wp-block-button.rb-btn--outline .wp-block-button__link:hover,
.wp-block-button.rb-btn.rb-btn--outline .wp-block-button__link:hover {
    background: var(--rb-blue) !important;
    color: #fff !important;
}

/* Remove the blue wrapper box that Gutenberg adds */
.wp-block-button.rb-btn,
.wp-block-button.rb-btn--primary,
.wp-block-button.rb-btn--outline {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-block !important;
}

/* ============================================================
   GUTENBERG BUTTON BLOCK — full override of WP defaults
   ============================================================ */

/* Strip ALL default WordPress button styling from the wrapper */
.wp-block-button.rb-btn--primary,
.wp-block-button.rb-btn--outline,
.wp-block-button.rb-btn--outline-white {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-block !important;
}

/* Strip the default dark pill from the inner link */
.wp-block-button.rb-btn--primary .wp-block-button__link,
.wp-block-button.rb-btn--outline .wp-block-button__link,
.wp-block-button.rb-btn--outline-white .wp-block-button__link {
    /* Reset WP defaults */
    background-color: transparent !important;
    border-radius: var(--rb-radius-sm) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    /* Reset the dark pill colour WP adds */
    background: var(--rb-blue) !important;
}

/* PRIMARY — solid blue */
.wp-block-button.rb-btn--primary .wp-block-button__link {
    background: var(--rb-blue) !important;
    color: #fff !important;
    border: 2px solid var(--rb-blue) !important;
    border-radius: var(--rb-radius-sm) !important;
    font-family: var(--rb-font-heading) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 13px 30px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.25s ease !important;
    line-height: 1 !important;
}
.wp-block-button.rb-btn--primary .wp-block-button__link:hover {
    background: var(--rb-blue-dark) !important;
    border-color: var(--rb-blue-dark) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

/* OUTLINE — transparent with blue border */
.wp-block-button.rb-btn--outline .wp-block-button__link {
    background: transparent !important;
    color: var(--rb-blue) !important;
    border: 2px solid var(--rb-blue) !important;
    border-radius: var(--rb-radius-sm) !important;
    font-family: var(--rb-font-heading) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 13px 30px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.25s ease !important;
    line-height: 1 !important;
}
.wp-block-button.rb-btn--outline .wp-block-button__link:hover {
    background: var(--rb-blue) !important;
    color: #fff !important;
}

/* OUTLINE WHITE — for dark backgrounds */
.wp-block-button.rb-btn--outline-white .wp-block-button__link {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.6) !important;
    border-radius: var(--rb-radius-sm) !important;
    font-family: var(--rb-font-heading) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 13px 30px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    line-height: 1 !important;
}
.wp-block-button.rb-btn--outline-white .wp-block-button__link:hover {
    background: rgba(255,255,255,0.12) !important;
    border-color: #fff !important;
}