:root {
    --rbs-navy: #061b33;
    --rbs-navy-2: #0a2848;
    --rbs-orange: #f36a2a;
    --rbs-orange-dark: #d94f13;
    --rbs-text: #142235;
    --rbs-muted: #667386;
    --rbs-bg: #f5f7fa;
    --rbs-white: #ffffff;
    --rbs-radius: 16px;
    --rbs-shadow: 0 18px 45px rgba(7, 27, 51, 0.12);
    --rbs-shadow-soft: 0 10px 30px rgba(7, 27, 51, 0.08);
    --rbs-container: 1180px;
}

html { scroll-behavior: smooth; }
body.rb-services-design1 { margin: 0; background: #fff; color: var(--rbs-text); font-family: Inter, Arial, Helvetica, sans-serif; overflow-x: hidden; }
body.rb-services-design1.admin-bar .rbs-header { top: 32px; }
.rbs-page * { box-sizing: border-box; }
.rbs-page a { text-decoration: none; }
.rbs-page img { max-width: 100%; display: block; }
.rbs-container { width: min(var(--rbs-container), calc(100% - 40px)); margin: 0 auto; }

.rbs-debug-banner { position: fixed; z-index: 999999; left: 12px; bottom: 12px; background: #111827; color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 13px; box-shadow: 0 12px 28px rgba(0,0,0,.2); }

/* Same top bar and header look as the Design 1 homepage plugin. */
.rbs-topbar { background: var(--rbs-navy); color: rgba(255,255,255,.88); font-size: 13px; }
.rbs-topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rbs-topbar-right { display: flex; align-items: center; gap: 24px; }
.rbs-topbar a { color: #fff; font-weight: 700; }

.rbs-header { position: sticky; top: 0; z-index: 9999; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); box-shadow: 0 8px 24px rgba(7, 27, 51, .08); transition: box-shadow .25s ease, transform .25s ease; }
.rbs-header.is-scrolled { box-shadow: 0 12px 30px rgba(7, 27, 51, .14); }
.rbs-header-inner { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.rbs-logo { display: flex; align-items: center; gap: 10px; color: var(--rbs-navy); min-width: 215px; }
.rbs-logo-mark { color: var(--rbs-orange); width: 54px; height: 42px; display: inline-flex; align-items: center; justify-content: center; }
.rbs-logo-mark svg { width: 54px; height: 42px; }
.rbs-logo-text strong { display: block; font-size: 20px; letter-spacing: .02em; line-height: 1; color: #101d31; }
.rbs-logo-text small { display: block; margin-top: 4px; color: #64748b; font-size: 12px; text-transform: lowercase; }
.rbs-nav { display: flex; align-items: center; justify-content: center; gap: 28px; flex: 1; }
.rbs-nav a { position: relative; color: var(--rbs-navy); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; transition: color .2s ease; }
.rbs-nav a:hover,
.rbs-nav a.is-active { color: var(--rbs-orange); }
.rbs-nav a.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 3px; border-radius: 5px; background: var(--rbs-orange); }
.rbs-mobile-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--rbs-navy); padding: 11px; cursor: pointer; }
.rbs-mobile-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 3px; transition: transform .2s ease, opacity .2s ease; }
.rbs-mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rbs-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.rbs-mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.rbs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 24px; border-radius: 7px; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.rbs-btn:hover { transform: translateY(-2px); }
.rbs-btn-primary { background: linear-gradient(135deg, #ff7a34, var(--rbs-orange-dark)); color: #fff; box-shadow: 0 12px 26px rgba(243, 106, 42, .32); }
.rbs-btn-primary:hover { color: #fff; box-shadow: 0 16px 35px rgba(243, 106, 42, .42); }
.rbs-btn-outline { color: #fff; border: 1px solid rgba(255,255,255,.65); background: rgba(255,255,255,.08); }
.rbs-btn-outline:hover { background: rgba(255,255,255,.16); color: #fff; }
.rbs-phone { color: #fff; font-size: 28px; font-weight: 900; white-space: nowrap; }
.rbs-phone:hover { color: #fff; }

.rbs-hero { position: relative; min-height: 560px; display: flex; align-items: center; background-image: var(--rbs-hero-image); background-size: cover; background-position: center; color: #fff; overflow: hidden; }
.rbs-hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 150px; background: linear-gradient(to top, rgba(0,0,0,.28), transparent); pointer-events: none; }
.rbs-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,16,34,.94) 0%, rgba(3,16,34,.78) 40%, rgba(3,16,34,.28) 72%, rgba(3,16,34,.12) 100%); }
.rbs-hero-content { position: relative; z-index: 2; }
.rbs-hero-copy { max-width: 690px; padding: 82px 0 105px; }
.rbs-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.86); }
.rbs-orange { color: var(--rbs-orange); }
.rbs-hero h1 { margin: 0; font-size: clamp(44px, 6vw, 72px); line-height: .98; letter-spacing: -.04em; color: #fff; font-weight: 900; }
.rbs-hero-lead { max-width: 610px; margin: 22px 0 0; font-size: 20px; line-height: 1.55; color: rgba(255,255,255,.92); }
.rbs-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.rbs-trust-strip { background: var(--rbs-navy); color: #fff; padding: 30px 0; }
.rbs-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.rbs-trust-grid article { display: flex; align-items: flex-start; gap: 14px; }
.rbs-trust-grid span { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(243,106,42,.55); color: var(--rbs-orange); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 46px; font-size: 22px; }
.rbs-trust-grid h3 { margin: 2px 0 6px; font-size: 15px; color: #fff; text-transform: uppercase; }
.rbs-trust-grid p { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.74); }

.rbs-section { padding: 86px 0; }
.rbs-section-heading { text-align: center; max-width: 820px; margin: 0 auto 44px; }
.rbs-section-heading h2,
.rbs-extra-content h2,
.rbs-seo-text h2 { margin: 0; font-size: clamp(31px, 4vw, 46px); line-height: 1.09; letter-spacing: -.03em; color: var(--rbs-navy); font-weight: 900; }
.rbs-section-heading .rbs-eyebrow { color: var(--rbs-orange); margin-bottom: 8px; }
.rbs-section-heading p { color: var(--rbs-muted); line-height: 1.7; margin: 14px auto 0; }
.rbs-services-section { background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%); }
.rbs-service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.rbs-service-card { background: #fff; border: 1px solid #ecf0f5; border-radius: 14px; padding: 22px 20px 24px; box-shadow: var(--rbs-shadow-soft); transition: transform .22s ease, box-shadow .22s ease; overflow: hidden; }
.rbs-service-card:hover { transform: translateY(-7px); box-shadow: 0 22px 50px rgba(7,27,51,.15); }
.rbs-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.rbs-service-number { color: var(--rbs-orange); font-weight: 900; font-size: 16px; }
.rbs-service-icon { width: 48px; height: 48px; border-radius: 50%; background: #fff7f3; color: var(--rbs-orange); border: 1px solid #f1d7cb; display: inline-flex; align-items: center; justify-content: center; font-size: 25px; }
.rbs-service-card h3 { min-height: 50px; margin: 0 0 16px; color: var(--rbs-navy); font-size: 19px; line-height: 1.2; }
.rbs-service-card img { width: 100%; height: 158px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.rbs-service-card p { margin: 0 0 18px; min-height: 116px; color: var(--rbs-muted); line-height: 1.58; font-size: 14px; }
.rbs-service-card a { color: var(--rbs-orange); font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: .03em; }

.rbs-extra-services { background: #fff; }
.rbs-extra-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 58px; align-items: center; }
.rbs-photo-stack { position: relative; min-height: 430px; }
.rbs-photo-main { width: 86%; height: 370px; object-fit: cover; border-radius: 14px; box-shadow: var(--rbs-shadow); }
.rbs-photo-small { position: absolute; right: 0; bottom: 0; width: 44%; height: 176px; object-fit: cover; border-radius: 12px; border: 8px solid #fff; box-shadow: var(--rbs-shadow-soft); }
.rbs-years-box { position: absolute; left: 24px; bottom: 24px; width: 150px; height: 128px; border-radius: 10px; background: var(--rbs-navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--rbs-shadow); }
.rbs-years-box strong { display: block; font-size: 48px; line-height: 1; }
.rbs-years-box span { font-size: 14px; color: rgba(255,255,255,.8); }
.rbs-extra-content .rbs-eyebrow,
.rbs-seo-text .rbs-eyebrow { color: var(--rbs-orange); }
.rbs-extra-content p,
.rbs-seo-text p { color: var(--rbs-muted); line-height: 1.74; }
.rbs-check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 26px; margin-top: 26px; }
.rbs-check-grid span { position: relative; padding-left: 30px; color: #263349; font-weight: 700; font-size: 15px; }
.rbs-check-grid span::before { content: '✓'; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%; background: #fff4ee; color: var(--rbs-orange); border: 1px solid #ffd4bf; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; }

.rbs-seo-text { background: #f7f9fc; }
.rbs-seo-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }
.rbs-seo-card { background: #fff; border-radius: 16px; box-shadow: var(--rbs-shadow-soft); padding: 18px; }
.rbs-seo-card img { width: 100%; height: 260px; object-fit: cover; border-radius: 12px; margin-bottom: 18px; }
.rbs-seo-card h3 { margin: 0 0 10px; color: var(--rbs-navy); font-size: 22px; }
.rbs-seo-card p { margin: 0; color: var(--rbs-muted); line-height: 1.7; }

.rbs-process-section { background: #fff; }
.rbs-process-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-top: 18px; }
.rbs-process-grid::before { content: ''; position: absolute; top: 45px; left: 8%; right: 8%; height: 1px; border-top: 1px dashed #cbd5e1; }
.rbs-process-grid article { position: relative; z-index: 2; text-align: center; padding: 0 8px; }
.rbs-process-grid article > span { width: 34px; height: 34px; border-radius: 50%; background: var(--rbs-orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; margin-bottom: 14px; }
.rbs-process-grid i { width: 78px; height: 78px; border-radius: 50%; background: #fff; color: var(--rbs-navy); border: 1px solid #dbe4ef; box-shadow: var(--rbs-shadow-soft); display: flex; align-items: center; justify-content: center; font-size: 34px; font-style: normal; margin: 0 auto 18px; }
.rbs-process-grid h3 { margin: 0 0 10px; color: var(--rbs-navy); font-size: 18px; }
.rbs-process-grid p { margin: 0; color: var(--rbs-muted); line-height: 1.6; font-size: 14px; }

.rbs-why-section { position: relative; padding: 86px 0; background: var(--rbs-navy); color: #fff; overflow: hidden; }
.rbs-why-section::before { content: ''; position: absolute; inset: 0; background-image: var(--rbs-hero-image); background-size: cover; background-position: center; opacity: .11; }
.rbs-why-section .rbs-container { position: relative; z-index: 2; }
.rbs-invert h2 { color: #fff; }
.rbs-why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 18px; }
.rbs-why-grid article { text-align: center; padding: 18px 14px; border-right: 1px solid rgba(255,255,255,.12); }
.rbs-why-grid article:last-child { border-right: 0; }
.rbs-why-grid span { color: var(--rbs-orange); font-size: 38px; display: block; margin-bottom: 12px; }
.rbs-why-grid h3 { margin: 0 0 10px; color: #fff; font-size: 18px; }
.rbs-why-grid p { margin: 0; color: rgba(255,255,255,.73); line-height: 1.6; font-size: 14px; }

.rbs-brands-section { background: #fff; }
.rbs-brand-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px; align-items: center; }
.rbs-brand-row img { max-height: 70px; object-fit: contain; margin: 0 auto; filter: grayscale(12%); opacity: .95; }

.rbs-cta { position: relative; padding: 52px 0; color: #fff; background-image: linear-gradient(90deg, rgba(5,24,45,.93), rgba(5,24,45,.78)), var(--rbs-cta-image); background-size: cover; background-position: center; }
.rbs-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.rbs-cta h2 { max-width: 720px; margin: 0; color: #fff; font-size: clamp(28px, 4vw, 42px); line-height: 1.13; }
.rbs-cta p:not(.rbs-eyebrow) { color: rgba(255,255,255,.82); line-height: 1.6; margin: 12px 0 0; }
.rbs-cta-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }

.rbs-footer { background: #071b30; color: rgba(255,255,255,.74); padding: 58px 0 22px; }
.rbs-footer-grid { display: grid; grid-template-columns: 1.25fr .8fr .9fr 1.05fr; gap: 44px; }
.rbs-logo-footer { color: #fff; margin-bottom: 18px; }
.rbs-logo-footer .rbs-logo-text strong { color: #fff; }
.rbs-footer h3 { margin: 0 0 18px; color: #fff; font-size: 16px; text-transform: uppercase; }
.rbs-footer p { line-height: 1.7; margin: 0 0 12px; }
.rbs-footer a { display: block; color: rgba(255,255,255,.78); margin-bottom: 10px; transition: color .2s ease; }
.rbs-footer a:hover { color: #fff; }
.rbs-footer-phone { color: #fff !important; font-size: 22px; font-weight: 900; }
.rbs-copyright { border-top: 1px solid rgba(255,255,255,.10); margin-top: 36px; padding-top: 20px; font-size: 13px; color: rgba(255,255,255,.58); }

/* Safety: if theme/plugin prints leftovers outside the custom template, hide them only on this page. */
body.rb-services-design1 .site-header:not(.rbs-header),
body.rb-services-design1 header.site-header,
body.rb-services-design1 .main-header,
body.rb-services-design1 .header-area,
body.rb-services-design1 .site-footer:not(.rbs-footer),
body.rb-services-design1 footer.site-footer,
body.rb-services-design1 .footer-area {
    display: none !important;
}

@media (max-width: 1180px) {
    .rbs-service-grid { grid-template-columns: repeat(3, 1fr); }
    .rbs-why-grid { grid-template-columns: repeat(3, 1fr); }
    .rbs-header-inner { gap: 16px; }
    .rbs-nav { gap: 18px; }
    .rbs-header-cta { display: none; }
}

@media (max-width: 900px) {
    body.rb-services-design1.admin-bar .rbs-header { top: 46px; }
    .rbs-topbar-inner { flex-direction: column; justify-content: center; padding: 10px 0; }
    .rbs-topbar-right { gap: 12px; flex-wrap: wrap; justify-content: center; }
    .rbs-header-inner { height: 76px; }
    .rbs-mobile-toggle { display: block; }
    .rbs-nav { position: absolute; left: 20px; right: 20px; top: calc(100% + 10px); background: #fff; border-radius: 14px; box-shadow: var(--rbs-shadow); flex-direction: column; align-items: stretch; gap: 0; padding: 12px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
    .rbs-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .rbs-nav a { padding: 13px 14px; border-radius: 10px; }
    .rbs-nav a:hover,
    .rbs-nav a.is-active { background: #fff4ee; }
    .rbs-nav a.is-active::after { display: none; }
    .rbs-hero { min-height: 560px; }
    .rbs-hero-copy { padding: 70px 0 96px; }
    .rbs-trust-grid { grid-template-columns: repeat(2, 1fr); }
    .rbs-extra-grid,
    .rbs-seo-grid { grid-template-columns: 1fr; }
    .rbs-service-grid { grid-template-columns: repeat(2, 1fr); }
    .rbs-process-grid { grid-template-columns: repeat(2, 1fr); }
    .rbs-process-grid::before { display: none; }
    .rbs-why-grid { grid-template-columns: repeat(2, 1fr); }
    .rbs-why-grid article { border-right: 0; }
    .rbs-brand-row { grid-template-columns: repeat(3, 1fr); }
    .rbs-cta-inner { flex-direction: column; align-items: flex-start; }
    .rbs-cta-actions { justify-content: flex-start; }
    .rbs-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .rbs-container { width: min(100% - 28px, var(--rbs-container)); }
    .rbs-logo { min-width: 0; }
    .rbs-logo-text strong { font-size: 16px; }
    .rbs-logo-text small { font-size: 11px; }
    .rbs-hero { min-height: 600px; background-position: 64% center; }
    .rbs-hero-overlay { background: linear-gradient(90deg, rgba(3,16,34,.94) 0%, rgba(3,16,34,.82) 58%, rgba(3,16,34,.46) 100%); }
    .rbs-hero h1 { font-size: 40px; }
    .rbs-hero-lead { font-size: 17px; }
    .rbs-hero-actions { flex-direction: column; align-items: stretch; }
    .rbs-trust-grid { grid-template-columns: 1fr; }
    .rbs-section { padding: 62px 0; }
    .rbs-section-heading { margin-bottom: 30px; }
    .rbs-service-grid { grid-template-columns: 1fr; }
    .rbs-service-card p { min-height: auto; }
    .rbs-photo-stack { min-height: 390px; }
    .rbs-photo-main { width: 100%; height: 290px; }
    .rbs-photo-small { width: 56%; height: 140px; }
    .rbs-years-box { width: 126px; height: 104px; left: 14px; bottom: 14px; }
    .rbs-years-box strong { font-size: 38px; }
    .rbs-check-grid { grid-template-columns: 1fr; }
    .rbs-process-grid { grid-template-columns: 1fr; gap: 34px; }
    .rbs-why-grid { grid-template-columns: 1fr; }
    .rbs-brand-row { grid-template-columns: repeat(2, 1fr); }
    .rbs-phone { font-size: 24px; }
    .rbs-footer-grid { grid-template-columns: 1fr; }
}
