/* ════════════════════════════════════════════════════
   COMPONENTS.CSS — RohitBhatt SEO Pro v1.1.0
   All fixes applied inline with comments
════════════════════════════════════════════════════ */

/* ── NAVBAR ── */
.rb-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  transition: background .4s, box-shadow .4s;
}
.rb-nav.scrolled {
  background: rgba(8,11,24,.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,.5);
}
.rb-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 4vw;
  height: 72px; display: flex; align-items: center;
  justify-content: space-between; gap: 2rem;
}
.rb-nav-brand {
  display: flex; align-items: center; gap: .75rem;
  flex-shrink: 0; text-decoration: none;
}
/* FIX 1: Logo image styles */
.rb-nav-logo-img {
  height: 44px; width: auto; max-width: 180px;
  object-fit: contain; display: block;
}
.rb-nav-logo-wp { display: flex; align-items: center; }
.rb-nav-logo-wp img { height: 44px; width: auto; max-width: 180px; object-fit: contain; }
.rb-nav-monogram {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--grad-gold); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; color: var(--midnight); letter-spacing: -.02em;
}
.rb-nav-brand-text { line-height: 1.25; }
.rb-nav-name { display: block; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--ivory); }
.rb-nav-sub  { display: block; font-size: .65rem; color: var(--gold-dim); letter-spacing: .06em; text-transform: uppercase; }
.rb-nav-menu-wrap { flex: 1; display: flex; justify-content: center; }
.rb-nav-menu { display: flex; align-items: center; gap: .1rem; list-style: none; }
.rb-nav-menu a {
  display: block; padding: .45rem .85rem;
  font-size: .82rem; font-weight: 500; color: var(--ivory-muted);
  border-radius: 8px; transition: all .2s; white-space: nowrap;
}
.rb-nav-menu a:hover,
.rb-nav-menu .current-menu-item > a { color: var(--gold); background: rgba(201,168,76,.08); }
.rb-nav-actions { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.rb-nav-cta { white-space: nowrap; }
.btn-sm { padding: .5rem 1.2rem !important; font-size: .82rem !important; }

/* ── HAMBURGER ── */
.rb-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: .4rem; cursor: pointer;
}
.rb-ham-line {
  width: 22px; height: 2px; background: var(--ivory);
  border-radius: 2px; transition: all .3s ease; display: block;
}
.rb-hamburger[aria-expanded="true"] .rb-ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rb-hamburger[aria-expanded="true"] .rb-ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.rb-hamburger[aria-expanded="true"] .rb-ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════
   FIX 7: REDESIGNED PREMIUM MOBILE MENU
══════════════════════════════════════ */
/* ── MOBILE MENU: hidden on desktop entirely ── */
.rb-mobile-menu {
  display: none;           /* off by default on ALL screen sizes */
  pointer-events: none;    /* belt-and-suspenders: never block desktop interaction */
}

/* Only engage the full-screen panel on mobile */
@media (max-width: 768px) {
  .rb-mobile-menu {
    /* Reset display so we can control it via JS hidden attr */
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    position: fixed;
    /* Sit BELOW the navbar. Use a CSS var so it auto-matches the nav height */
    top: var(--rb-nav-h, 70px);
    left: 0; right: 0;
    /* height: calc instead of bottom:0 — avoids iOS viewport height bugs */
    height: calc(100dvh - var(--rb-nav-h, 70px));
    background: rgba(5, 8, 16, 0.99);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 799;
    padding: 0;
    /* Slide-in animation */
    transform: translateY(-10px);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    /* Keep hidden when [hidden] attr present */
    visibility: hidden;
  }
  /* [hidden] is set by JS — override browser default display:none
     so our CSS transition still plays */
  .rb-mobile-menu[hidden] {
    display: flex !important;
    visibility: hidden;
    pointer-events: none;
  }
  .rb-mobile-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* Profile header block */
.rb-mm-header {
  padding: 1.8rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(201,168,76,.06), transparent);
}
.rb-mm-profile { display: flex; align-items: center; gap: 1rem; }
.rb-mm-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--gold);
  flex-shrink: 0;
}
.rb-mm-avatar-fallback {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.4rem; color: var(--midnight);
  flex-shrink: 0; border: 2px solid var(--gold);
}
.rb-mm-name { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--ivory); }
.rb-mm-role { font-size: .75rem; color: var(--gold-dim); margin-top: .15rem; }
.rb-mm-avail {
  display: flex; align-items: center; gap: .4rem;
  font-size: .72rem; color: var(--green); margin-top: .35rem; font-weight: 500;
}
.rb-mm-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; flex-shrink: 0; animation: pulse 2s infinite; }

/* Nav links */
.rb-mm-nav { padding: 1rem 1rem; border-bottom: 1px solid var(--border); }
.rb-mm-list { list-style: none; display: flex; flex-direction: column; gap: .15rem; }
.rb-mm-list li a {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem; color: var(--ivory-muted);
  font-size: .95rem; font-weight: 500; border-radius: 10px;
  transition: all .2s; text-decoration: none;
}
.rb-mm-list li a:hover { color: var(--ivory); background: rgba(201,168,76,.1); padding-left: 1.3rem; }
.rb-mm-list .current-menu-item a { color: var(--gold); background: rgba(201,168,76,.08); }

/* Quick contact */
.rb-mm-contact { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); }
.rb-mm-contact-label {
  font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ivory-soft); margin-bottom: .8rem;
}
.rb-mm-contact-items { display: flex; flex-direction: column; gap: .5rem; }
.rb-mm-ci {
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem .9rem; background: rgba(255,255,255,.04);
  border: 1px solid var(--border2); border-radius: 9px;
  color: var(--ivory-muted); font-size: .84rem; text-decoration: none;
  transition: all .2s;
}
.rb-mm-ci:hover { border-color: var(--border); color: var(--ivory); background: rgba(201,168,76,.06); }
.rb-mm-ci-icon { font-size: .95rem; flex-shrink: 0; }

/* CTA buttons */
.rb-mm-ctas {
  padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .7rem;
}
.rb-mm-btn { width: 100%; justify-content: center; font-size: .9rem; }

/* Social */
.rb-mm-social {
  padding: 1.2rem 1.5rem;
  display: flex; gap: .8rem;
  margin-top: auto;
}
.rb-mm-social-btn {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem 1.1rem;
  background: rgba(255,255,255,.05); border: 1px solid var(--border2);
  border-radius: 9px; color: var(--ivory-muted);
  font-size: .82rem; text-decoration: none; font-weight: 500;
  transition: all .2s; flex: 1; justify-content: center;
}
.rb-mm-social-btn:hover { background: rgba(201,168,76,.1); border-color: var(--border); color: var(--gold); }

/* ── HERO ── */
.rb-hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 8rem 0 5rem; position: relative; overflow: hidden;
}
.rb-hero-bg { position: absolute; inset: -25%; background: var(--grad-hero); will-change: transform; }
.rb-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(201,168,76,.04) 1px,transparent 1px), linear-gradient(90deg,rgba(201,168,76,.04) 1px,transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 50%,black 20%,transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 30% 50%,black 20%,transparent 70%);
}
.rb-hero-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px); }
.rb-hero-orb--1 { width: 500px; height: 500px; background: rgba(201,168,76,.07); top: 10%; right: 5%; }
.rb-hero-orb--2 { width: 300px; height: 300px; background: rgba(45,212,191,.04); bottom: 15%; left: 10%; }
.rb-hero-layout { display: grid; grid-template-columns: 1fr 420px; gap: 4rem; align-items: center; position: relative; z-index: 2; }
.rb-hero-name { font-family: var(--font-display); font-size: clamp(4rem,9vw,8rem); font-weight: 700; line-height: .9; letter-spacing: -.03em; margin: 1rem 0 .5rem; color: var(--ivory); }
.rb-hero-name-acc { color: var(--gold); font-style: italic; }
.rb-hero-role { font-family: var(--font-head); font-size: clamp(1rem,2vw,1.4rem); font-weight: 600; color: var(--ivory-muted); margin-bottom: 1.5rem; min-height: 1.8em; }
.rb-hero-desc { font-size: clamp(.9rem,1.3vw,1.05rem); color: var(--ivory-muted); max-width: 520px; line-height: 1.8; margin-bottom: 2.5rem; }
.rb-hero-desc strong { color: var(--ivory); font-weight: 600; }
.rb-hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.rb-hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.rb-hero-stat-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.rb-hero-stat-lbl { font-size: .72rem; color: var(--ivory-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: .2rem; }
.rb-hero-photo-wrap { position: relative; animation: fadeUp .9s .15s ease both; }
.rb-hero-photo-float-badge { position: absolute; top: -18px; right: -18px; z-index: 2; background: var(--night); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.2rem; text-align: center; box-shadow: var(--shadow); animation: float 4s ease-in-out infinite; }
.rb-hpfb-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--gold); line-height: 1; }
.rb-hpfb-txt { font-size: .7rem; color: var(--ivory-muted); margin-top: .2rem; }
.rb-hero-photo-frame { border-radius: 24px; overflow: hidden; aspect-ratio: 3/4; border: 1px solid var(--border); position: relative; }
.rb-hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.rb-hero-photo-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top,rgba(8,11,24,.95),transparent); padding: 1.5rem; display: flex; justify-content: space-between; align-items: flex-end; }
.rb-hpi-name { font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.rb-hpi-role { font-size: .72rem; color: var(--gold); margin-top: .15rem; }
.rb-avail-indicator { display: flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--green); flex-shrink: 0; }
.rb-avail-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
.rb-hero-photo-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,rgba(201,168,76,.12),rgba(201,168,76,.04)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center; }
.rb-php-monogram { font-family: var(--font-display); font-size: 5rem; font-weight: 700; color: var(--gold); opacity: .5; }
.rb-php-hint { color: var(--ivory-muted); font-size: .82rem; line-height: 1.6; }
.rb-scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .4rem; color: var(--ivory-soft); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.rb-scroll-line { width: 1px; height: 36px; background: linear-gradient(var(--gold),transparent); animation: scrollLine 2s infinite; }

/* ── MARQUEE ── */
.rb-marquee-wrap { overflow: hidden; padding: .8rem 0; background: var(--night); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; }
.rb-marquee-wrap::before,.rb-marquee-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; }
.rb-marquee-wrap::before { left: 0; background: linear-gradient(to right,var(--night),transparent); }
.rb-marquee-wrap::after  { right: 0; background: linear-gradient(to left,var(--night),transparent); }
.rb-marquee-track { display: flex; gap: .8rem; width: max-content; animation: marquee 35s linear infinite; }
.rb-mtool { display: flex; align-items: center; gap: .5rem; background: rgba(201,168,76,.06); border: 1px solid var(--border); border-radius: 100px; padding: .45rem 1.1rem; white-space: nowrap; font-size: .8rem; color: var(--ivory-muted); }
.rb-mtool-icon { font-size: .95rem; }

/* ── ABOUT ── */
.rb-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.rb-about-photos { display: flex; flex-direction: column; gap: 1rem; position: relative; }
.rb-about-photo-main { border-radius: 20px; overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--border); }
.rb-about-photo-main img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.rb-about-photo-main:hover img { transform: scale(1.04); }

/* FIX: About secondary photo — position correctly without overlapping facts */
.rb-about-photo-thumb {
  position: absolute;
  bottom: calc(100% - 340px); /* sits beside the main photo, not floating over text */
  right: -20px;
  width: 140px; height: 140px; border-radius: 16px;
  overflow: hidden; border: 3px solid var(--midnight);
  box-shadow: var(--shadow);
}
.rb-about-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }

.rb-about-facts-card { background: var(--night); border: 1px solid var(--border); border-radius: var(--r2); padding: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.rb-fact { background: rgba(201,168,76,.06); border: 1px solid var(--border); border-radius: var(--r); padding: .9rem; text-align: center; }
.rb-fact-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--gold); line-height: 1; }
.rb-fact-lbl { font-size: .72rem; color: var(--ivory-muted); margin-top: .2rem; }
.rb-about-text h2 { margin: 1rem 0 .5rem; }
.rb-about-text p { margin-bottom: 1.2rem; }
.rb-about-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; }
.rb-photo-placeholder { width: 100%; aspect-ratio: 4/5; background: rgba(201,168,76,.05); display: flex; align-items: center; justify-content: center; color: var(--ivory-muted); font-size: .82rem; text-align: center; padding: 2rem; border: 2px dashed var(--border); border-radius: 20px; }

/* ── SERVICES ── */
.rb-services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.rb-svc-card { display: flex; flex-direction: column; }
.rb-svc-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.rb-svc-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.rb-svc-desc { color: var(--ivory-muted); font-size: .88rem; line-height: 1.7; flex: 1; }
.rb-svc-more { color: var(--gold); font-size: .82rem; font-weight: 600; margin-top: 1.2rem; display: inline-flex; align-items: center; gap: .3rem; transition: gap .2s; text-decoration: none; }
.rb-svc-card:hover .rb-svc-more { gap: .6rem; }

/* ── RESULTS ── */
.rb-results-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1.5rem; padding: 2.5rem; background: var(--night); border: 1px solid var(--border); border-radius: var(--r2); text-align: center; margin-bottom: 3rem; }
.rb-result-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--gold); line-height: 1; }
.rb-result-lbl { color: var(--ivory-muted); font-size: .8rem; margin-top: .4rem; }
.rb-skills-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }

/* ══════════════════════════════════════
   FIX 2: CASE STUDIES SECTION
══════════════════════════════════════ */
.rb-casestudies { background: var(--bg2); }
.rb-cs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.rb-cs-card {
  background: var(--night); border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden;
  transition: all .35s; position: relative;
}
.rb-cs-card:hover { transform: translateY(-6px); border-color: rgba(201,168,76,.35); box-shadow: 0 20px 50px rgba(0,0,0,.4), 0 0 40px rgba(201,168,76,.1); }
.rb-cs-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad-gold); opacity: 0; transition: opacity .35s; }
.rb-cs-card:hover::after { opacity: 1; }
.rb-cs-thumb {
  height: 140px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(201,168,76,.12), rgba(201,168,76,.04));
  position: relative;
}
.rb-cs-icon { font-size: 3.2rem; }
.rb-cs-cat {
  position: absolute; bottom: .75rem; right: .75rem;
  background: rgba(201,168,76,.9); color: var(--midnight);
  font-size: .68rem; font-weight: 700; padding: .2rem .6rem;
  border-radius: 4px; text-transform: uppercase; letter-spacing: .05em;
}
.rb-cs-body { padding: 1.6rem; }
.rb-cs-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.35; }
.rb-cs-metrics { display: flex; gap: .8rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.rb-cs-metric { background: rgba(201,168,76,.08); border: 1px solid rgba(201,168,76,.2); border-radius: 8px; padding: .6rem .9rem; text-align: center; flex: 1; min-width: 70px; }
.rb-cs-metric-num { display: block; font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: 1.2rem; line-height: 1; }
.rb-cs-metric-lbl { display: block; font-size: .68rem; color: var(--ivory-muted); margin-top: .2rem; white-space: nowrap; }
.rb-cs-detail { margin-bottom: .9rem; }
.rb-cs-section-label { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: .3rem; }
.rb-cs-text { color: var(--ivory-muted); font-size: .85rem; line-height: 1.6; }

/* ── TESTIMONIALS ── */
.rb-testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.rb-testi-card { background: var(--night); border: 1px solid var(--border); border-radius: var(--r2); padding: 2rem; position: relative; overflow: hidden; transition: var(--transition); }
.rb-testi-card::before { content: '"'; position: absolute; top: .5rem; right: 1.2rem; font-family: var(--font-display); font-size: 5rem; color: rgba(201,168,76,.1); line-height: 1; }
.rb-testi-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad-gold); opacity: 0; transition: opacity .35s; }
.rb-testi-card:hover { border-color: rgba(201,168,76,.3); transform: translateY(-4px); }
.rb-testi-card:hover::after { opacity: 1; }
.rb-testi-stars { color: var(--gold); font-size: .85rem; letter-spacing: .06em; margin-bottom: .9rem; }
.rb-testi-text { color: var(--ivory-muted); font-size: .88rem; font-style: italic; line-height: 1.75; margin-bottom: 1.5rem; }
.rb-testi-person { display: flex; align-items: center; gap: .8rem; }
.rb-testi-av {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .88rem; color: var(--midnight);
}
/* FIX 5: Real photo for testimonial */
.rb-testi-photo {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--gold);
}
.rb-testi-name { display: block; font-weight: 600; font-size: .9rem; color: var(--ivory); font-style: normal; }
.rb-testi-role { font-size: .75rem; color: var(--ivory-muted); }

/* ── CONTACT ── */
.rb-contact { position: relative; overflow: hidden; }
.rb-contact-glow { position: absolute; bottom: -30%; left: -10%; width: 600px; height: 600px; background: radial-gradient(circle,rgba(201,168,76,.06),transparent 65%); pointer-events: none; }
.rb-contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.rb-contact-items { display: flex; flex-direction: column; gap: .8rem; margin-top: 2rem; }
.rb-ci { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; background: var(--night); border: 1px solid var(--border); border-radius: 12px; transition: var(--transition); text-decoration: none; color: var(--ivory); }
.rb-ci:hover { border-color: rgba(201,168,76,.35); transform: translateX(4px); color: var(--ivory); }
.rb-ci-icon { width: 38px; height: 38px; background: rgba(201,168,76,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.rb-ci small { display: block; color: var(--ivory-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.rb-ci span { font-size: .88rem; font-weight: 500; }
.rb-avail-strip { display: flex; align-items: center; gap: .6rem; margin-top: 1.5rem; padding: .8rem 1rem; background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.2); border-radius: 10px; font-size: .82rem; color: var(--green); font-weight: 500; }

/* ══════════════════════════════════════
   FIX 6: DROPDOWN SELECT — Force dark bg
   Browsers override dark-theme select with
   system light colors. We lock it down.
══════════════════════════════════════ */
.rb-form-card { background: var(--night); border: 1px solid var(--border); border-radius: var(--r2); padding: 2.5rem; }
.rb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rb-fg { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .8rem; }
.rb-fg label { font-size: .74rem; color: var(--ivory-muted); letter-spacing: .07em; text-transform: uppercase; font-weight: 500; }
.rb-fg span[aria-hidden] { color: var(--gold); }

/* All form elements */
.rb-fg input,
.rb-fg textarea {
  background: rgba(255,255,255,.04);
  border: 1.5px solid var(--border);
  border-radius: 9px; padding: .8rem 1rem;
  color: var(--ivory); font-family: var(--font-body);
  font-size: .9rem; outline: none;
  transition: all .2s; resize: vertical;
}
.rb-fg input::placeholder,
.rb-fg textarea::placeholder { color: var(--ivory-soft); }
.rb-fg input:focus,
.rb-fg textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.12); }
.rb-fg textarea { min-height: 130px; }

/* SELECT — the fix: force dark background on the element AND its native popup */
.rb-fg select,
.rb-select {
  /* Reset browser defaults first */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Force dark colors that stay dark even in light-mode OS */
  background-color: #111628 !important;  /* same as --card2 */
  color: #F5F0E8 !important;              /* --ivory */

  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: .8rem 2.8rem .8rem 1rem;
  font-family: var(--font-body);
  font-size: .9rem;
  outline: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;

  /* Custom dropdown arrow in gold */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 16px;
}

/* Force dark on focus */
.rb-fg select:focus,
.rb-select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
  background-color: #111628 !important;
  color: #F5F0E8 !important;
  outline: none;
}

/* Option elements (native dropdown popup) */
.rb-fg select option,
.rb-select option {
  background-color: #111628 !important;
  color: #F5F0E8 !important;
  padding: .5rem 1rem;
  font-size: .9rem;
}
.rb-fg select option:checked,
.rb-select option:checked {
  background-color: #C9A84C !important;
  color: #080B18 !important;
  font-weight: 600;
}
.rb-fg select option:hover,
.rb-select option:hover {
  background-color: #1C2540 !important;
  color: #E8C97A !important;
}

/* Webkit-specific: force option colors in Chrome/Safari */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .rb-fg select, .rb-select {
    background-color: #111628 !important;
    color: #F5F0E8 !important;
  }
}

.rb-form-msg { margin-top: 1rem; padding: .8rem 1rem; border-radius: 8px; font-size: .85rem; display: none; }
.rb-form-msg.success { background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.25); color: var(--green); display: block; }
.rb-form-msg.error   { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.25); color: var(--red); display: block; }

/* ── FOOTER ── */
.rb-footer { background: var(--night); border-top: 1px solid var(--border); padding: 5rem 0 2rem; position: relative; overflow: hidden; }
.rb-footer-glow { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 300px; background: radial-gradient(ellipse,rgba(201,168,76,.06),transparent 65%); pointer-events: none; }
.rb-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.rb-footer-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: .8rem; }
.rb-footer-name  { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.rb-footer-title { font-size: .72rem; color: var(--gold-dim); margin-top: .1rem; }
.rb-footer-desc  { color: var(--ivory-muted); font-size: .85rem; line-height: 1.7; margin-bottom: 1.5rem; }
.rb-footer-social { display: flex; gap: .5rem; }
.rb-social-btn { width: 38px; height: 38px; background: rgba(255,255,255,.05); border: 1px solid var(--border2); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--ivory-muted); font-size: .75rem; transition: var(--transition); }
.rb-social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--midnight); transform: translateY(-2px); }
.rb-footer-col-title { font-family: var(--font-head); font-weight: 600; font-size: .88rem; margin-bottom: 1.2rem; color: var(--ivory); }
.rb-footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.rb-footer-links a { color: var(--ivory-muted); font-size: .85rem; transition: color .2s; }
.rb-footer-links a:hover { color: var(--gold); }
.rb-footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.rb-footer-copy { color: var(--ivory-muted); font-size: .8rem; }
.rb-footer-copy a { color: var(--ivory-muted); transition: color .2s; }
.rb-footer-copy a:hover { color: var(--gold); }
.rb-footer-sep { opacity: .4; margin: 0 .4rem; }
.rb-footer-made { color: var(--ivory-soft); font-size: .78rem; }

/* ── BLOG ── */
.rb-posts-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 1.5rem; }
.rb-post-card { background: var(--night); border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; transition: var(--transition); }
.rb-post-card:hover { transform: translateY(-5px); border-color: rgba(201,168,76,.3); box-shadow: var(--shadow2); }
.rb-post-thumb { height: 200px; overflow: hidden; }
.rb-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rb-post-card:hover .rb-post-thumb img { transform: scale(1.05); }
.rb-post-body { padding: 1.5rem; }
.rb-post-meta { display: flex; gap: .8rem; align-items: center; margin-bottom: .7rem; font-size: .75rem; color: var(--ivory-soft); }
.rb-post-cat { background: rgba(201,168,76,.1); color: var(--gold-light); padding: .18rem .55rem; border-radius: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .68rem; }
.rb-post-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: .6rem; line-height: 1.4; }
.rb-post-excerpt { color: var(--ivory-muted); font-size: .85rem; line-height: 1.65; }
.rb-post-more { color: var(--gold); font-size: .8rem; font-weight: 600; margin-top: 1rem; display: inline-flex; align-items: center; gap: .3rem; }
.rb-single { padding: 9rem 4vw 5rem; }
.rb-single-inner { max-width: 780px; margin: 0 auto; }
.rb-single h1 { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); margin-bottom: 1.5rem; }
.rb-single-content { font-size: 1.05rem; line-height: 1.9; color: var(--ivory-muted); }
.rb-single-content h2 { color: var(--ivory); font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.rb-single-content h3 { color: var(--ivory); font-size: 1.3rem; margin: 2rem 0 .8rem; }
.rb-single-content p { margin-bottom: 1.5rem; }
.rb-single-content a { color: var(--gold); text-decoration: underline; }
.rb-single-content ul,.rb-single-content ol { margin: 1rem 0 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; }
.rb-single-content li { color: var(--ivory-muted); }
.rb-single-content blockquote { border-left: 3px solid var(--gold); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: var(--ivory-soft); font-size: 1.1rem; }
.rb-single-content code { background: var(--slate); padding: .1rem .4rem; border-radius: 4px; font-family: var(--font-mono); font-size: .85em; color: var(--teal); }
.rb-single-content pre { background: var(--slate); padding: 1.5rem; border-radius: var(--r); overflow-x: auto; margin: 1.5rem 0; }
.rb-single-content pre code { background: none; padding: 0; color: var(--ivory); }
.rb-single-content img { border-radius: var(--r); margin: 2rem 0; }
.rb-404 { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8rem 4vw; }
.rb-404-num { font-family: var(--font-display); font-size: 8rem; font-weight: 700; color: var(--gold); opacity: .3; line-height: 1; }
.rb-404-title { font-family: var(--font-head); font-size: 2rem; margin: 1rem 0; }
.rb-404-desc { color: var(--ivory-muted); max-width: 400px; margin: 0 auto 2rem; }

/* ── TOOL IMAGE IN MARQUEE ── */
.rb-mtool-img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }

/* ════════════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE DESIGN
   Base styles = mobile, then scale up via min-width
════════════════════════════════════════════════════ */

/* ── BASE (Mobile ≤ 480px) ── */
/* Hero: full-width single column */
.rb-hero { padding: 5.5rem 0 3rem; min-height: 100svh; }
.rb-hero-layout { grid-template-columns: 1fr; gap: 2rem; }
.rb-hero-photo-wrap { display: none; } /* hidden on mobile */
.rb-hero-name { font-size: clamp(3rem, 12vw, 5rem); line-height: .9; }
.rb-hero-role { font-size: clamp(.9rem, 4vw, 1.2rem); }
.rb-hero-desc { font-size: .92rem; }
.rb-hero-actions { flex-direction: column; gap: .7rem; }
.rb-hero-actions .btn { width: 100%; justify-content: center; font-size: .88rem; padding: .85rem 1.2rem; }
.rb-hero-stats { gap: 1.2rem; padding-top: 1.5rem; margin-top: 2rem; }
.rb-hero-stat-num { font-size: 1.7rem; }
.rb-hero-stat-lbl { font-size: .68rem; }

/* Nav mobile */
.rb-nav-inner { height: 62px; padding: 0 4vw; }
.rb-nav-menu-wrap { display: none; }
.rb-hamburger { display: flex; }

/* About: stack on mobile */
.rb-about-grid { grid-template-columns: 1fr; gap: 2rem; }
.rb-about-photo-main { aspect-ratio: 4/3; }
.rb-about-photo-thumb { display: none; }
.rb-about-facts-card { grid-template-columns: 1fr 1fr; }

/* Services: 1 column mobile */
.rb-services-grid { grid-template-columns: 1fr; gap: 1rem; }

/* Results: 2 col mobile */
.rb-results-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1.5rem; }
.rb-result-num { font-size: 2rem; }

/* Case Studies: 1 col mobile */
.rb-cs-grid { grid-template-columns: 1fr; }

/* Skills: 1 col mobile */
.rb-skills-preview { grid-template-columns: 1fr; gap: 1.5rem; }

/* Testimonials: 1 col mobile */
.rb-testi-grid { grid-template-columns: 1fr; }

/* Contact: 1 col mobile */
.rb-contact-grid { grid-template-columns: 1fr; gap: 2rem; }
.rb-form-row { grid-template-columns: 1fr; }
.rb-form-card { padding: 1.5rem; }

/* Footer: 1 col mobile */
.rb-footer-grid { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.rb-footer { padding: 3rem 0 2rem; }

/* Mobile menu: better sizing */
.rb-mobile-menu { top: 62px; }
.rb-mm-ctas { flex-direction: column; }

/* Section padding mobile */
.section { padding: 3.5rem 0; }
.section-sm { padding: 2.5rem 0; }

/* Container padding */
.container { padding: 0 5vw; }

/* ── SMALL TABLET (≥ 480px) ── */
@media (min-width: 480px) {
  .rb-hero-actions { flex-direction: row; flex-wrap: wrap; }
  .rb-hero-actions .btn { width: auto; }
  .rb-results-grid { grid-template-columns: repeat(3, 1fr); }
  .rb-mm-ctas { flex-direction: row; }
}

/* ── TABLET (≥ 640px) ── */
@media (min-width: 640px) {
  .rb-hero { padding: 6.5rem 0 4rem; }
  .rb-hero-name { font-size: clamp(3.5rem, 9vw, 6rem); }
  .rb-nav-inner { height: 70px; }
  .rb-mobile-menu { top: 70px; }
  .rb-services-grid { grid-template-columns: repeat(2, 1fr); }
  .rb-testi-grid { grid-template-columns: repeat(2, 1fr); }
  .rb-cs-grid { grid-template-columns: repeat(2, 1fr); }
  .rb-about-photo-main { aspect-ratio: 4/5; }
  .rb-footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .section { padding: 4.5rem 0; }
}

/* ── LARGE TABLET (≥ 768px) ── */
@media (min-width: 768px) {
  .rb-hero-layout { grid-template-columns: 1fr; }
  .rb-hero-name { font-size: clamp(4rem, 8vw, 7rem); }
  .rb-hero-desc { font-size: 1rem; max-width: 600px; }
  .rb-hero-stats { gap: 2rem; }
  .rb-hero-stat-num { font-size: 2rem; }
  .rb-services-grid { grid-template-columns: repeat(3, 1fr); }
  .rb-results-grid { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
  .rb-about-grid { grid-template-columns: 1fr; }
  .rb-skills-preview { grid-template-columns: 1fr 1fr; }
  .rb-contact-grid { grid-template-columns: 1fr; }
  .rb-form-row { grid-template-columns: 1fr 1fr; }
  .rb-form-card { padding: 2rem; }
  .rb-cs-grid { grid-template-columns: repeat(3, 1fr); }
  .rb-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .section { padding: 5rem 0; }
}

/* ── DESKTOP (≥ 1024px) ── */
@media (min-width: 1024px) {
  .rb-nav-menu-wrap { display: flex; }
  .rb-hamburger { display: none; }
  .rb-hero { padding: 8rem 0 5rem; }
  .rb-hero-layout { grid-template-columns: 1fr 420px; gap: 4rem; }
  .rb-hero-photo-wrap { display: block; }
  .rb-hero-name { font-size: clamp(4.5rem, 8vw, 8rem); }
  .rb-hero-stat-num { font-size: 2.2rem; }
  .rb-about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .rb-about-photo-thumb { display: block; }
  .rb-contact-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
  .rb-results-grid { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; padding: 2.5rem; }
  .rb-testi-grid { grid-template-columns: repeat(3, 1fr); }
  .rb-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; }
  .section { padding: 6rem 0; }
  .container { padding: 0 4vw; }
}

/* ── WIDE DESKTOP (≥ 1280px) ── */
@media (min-width: 1280px) {
  .rb-hero-name { font-size: 8rem; }
  .rb-hero { padding: 9rem 0 6rem; }
}

/* Mobile menu open state */
.rb-mobile-menu.is-open {
  transform: translateY(0) !important;
  opacity: 1 !important;
}


/* ════════════════════════════════════════════════════
   MOBILE UX POLISH — Touch targets, tap highlights, etc.
════════════════════════════════════════════════════ */

/* Minimum 44px tap targets on mobile */
.btn, .rb-nav-menu a, .rb-mm-list li a,
.rb-ci, .rb-svc-more, .rb-footer-links a,
.rb-social-btn, .rb-hamburger { min-height: 44px; }
.btn { display: inline-flex; align-items: center; }

/* Remove tap highlight on iOS */
a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

/* Smooth scrolling + overscroll containment */
html { scroll-behavior: smooth; overscroll-behavior-y: none; }

/* Prevent horizontal scroll bleed */
.rb-hero, .rb-marquee-wrap, .rb-mobile-menu { max-width: 100vw; overflow-x: hidden; }

/* Touch-friendly form inputs on iOS */
.rb-fg input, .rb-fg textarea, .rb-fg select, .rb-select {
  font-size: 16px; /* prevents iOS zoom on focus */
}

/* Better mobile card touch feedback */
@media (hover: none) and (pointer: coarse) {
  .card:hover, .rb-svc-card:hover, .rb-testi-card:hover,
  .rb-cs-card:hover, .rb-ci:hover { transform: none; }
  .rb-svc-card:active { transform: scale(.98); }
  .btn:active { transform: scale(.97); }
}

/* Mobile section padding fine-tune */
@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  .rb-form-card { padding: 1.25rem; border-radius: 14px; }
  .rb-cs-body { padding: 1.25rem; }
  .rb-testi-card { padding: 1.4rem; }
  .card { padding: 1.4rem; }
  .sec-header { margin-bottom: 2rem; }
  .rb-hero-stats { gap: 1rem; }
  .rb-hero-stat-num { font-size: 1.5rem; }
  .rb-hero-stat-lbl { font-size: .65rem; }
  .rb-results-grid { gap: .8rem; padding: 1.2rem; }
  .rb-result-num { font-size: 1.8rem; }
}

/* Safe area insets for notch phones */
.rb-nav { padding-left: max(4vw, env(safe-area-inset-left)); padding-right: max(4vw, env(safe-area-inset-right)); }
.container { padding-left: max(5vw, env(safe-area-inset-left)); padding-right: max(5vw, env(safe-area-inset-right)); }
.rb-mobile-menu { padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
