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

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

.rb-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); }

.rb-topbar { background: var(--rb-navy); color: rgba(255,255,255,.88); font-size: 13px; }
.rb-topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rb-topbar-right { display: flex; align-items: center; gap: 24px; }
.rb-topbar a { color: #fff; font-weight: 700; }

.rb-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; }
.rb-header.is-scrolled { box-shadow: 0 12px 30px rgba(7, 27, 51, .14); }
.rb-header-inner { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.rb-logo { display: flex; align-items: center; gap: 10px; color: var(--rb-navy); min-width: 215px; }
.rb-logo-mark { color: var(--rb-orange); width: 54px; height: 42px; display: inline-flex; align-items: center; justify-content: center; }
.rb-logo-mark svg { width: 54px; height: 42px; }
.rb-logo-text strong { display: block; font-size: 20px; letter-spacing: .02em; line-height: 1; color: #101d31; }
.rb-logo-text small { display: block; margin-top: 4px; color: #64748b; font-size: 12px; text-transform: lowercase; }
.rb-nav { display: flex; align-items: center; justify-content: center; gap: 28px; flex: 1; }
.rb-nav a { color: var(--rb-navy); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; transition: color .2s ease; }
.rb-nav a:hover { color: var(--rb-orange); }
.rb-mobile-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--rb-navy); padding: 11px; cursor: pointer; }
.rb-mobile-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 3px; transition: transform .2s ease, opacity .2s ease; }
.rb-mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rb-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.rb-mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.rb-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; }
.rb-btn:hover { transform: translateY(-2px); }
.rb-btn-primary { background: linear-gradient(135deg, #ff7a34, var(--rb-orange-dark)); color: #fff; box-shadow: 0 12px 26px rgba(243, 106, 42, .32); }
.rb-btn-primary:hover { color: #fff; box-shadow: 0 16px 35px rgba(243, 106, 42, .42); }
.rb-btn-outline { color: #fff; border: 1px solid rgba(255,255,255,.65); background: rgba(255,255,255,.08); }
.rb-btn-outline:hover { background: rgba(255,255,255,.16); color: #fff; }
.rb-btn-dark { color: #fff; background: var(--rb-navy); box-shadow: var(--rb-shadow-soft); }
.rb-btn-dark:hover { color: #fff; background: #0f3157; }

.rb-hero { position: relative; min-height: 660px; display: flex; align-items: center; background-image: var(--rb-hero-image); background-size: cover; background-position: center; color: #fff; overflow: hidden; }
.rb-hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 180px; background: linear-gradient(to top, rgba(0,0,0,.30), transparent); pointer-events: none; }
.rb-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,16,34,.92) 0%, rgba(3,16,34,.73) 34%, rgba(3,16,34,.28) 64%, rgba(3,16,34,.14) 100%); }
.rb-hero-content { position: relative; z-index: 2; }
.rb-hero-copy { max-width: 690px; padding: 92px 0 126px; }
.rb-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.86); }
.rb-orange { color: var(--rb-orange); }
.rb-hero h1 { margin: 0; font-size: clamp(44px, 6vw, 72px); line-height: .98; letter-spacing: -.04em; color: #fff; font-weight: 900; }
.rb-hero-lead { max-width: 560px; margin: 22px 0 0; font-size: 20px; line-height: 1.55; color: rgba(255,255,255,.92); }
.rb-hero-badges { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 30px 0 34px; }
.rb-hero-badges span { position: relative; padding-left: 24px; font-weight: 800; font-size: 14px; color: #fff; }
.rb-hero-badges span::before { content: '✓'; position: absolute; left: 0; top: -1px; width: 17px; height: 17px; border-radius: 50%; background: var(--rb-orange); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.rb-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.rb-features { position: relative; z-index: 3; margin-top: -58px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: 14px; box-shadow: var(--rb-shadow); overflow: hidden; }
.rb-feature-card { min-height: 190px; padding: 35px 26px; text-align: center; border-right: 1px solid #edf1f5; }
.rb-feature-card:last-child { border-right: 0; }
.rb-icon { width: 58px; height: 58px; border: 1px solid #f1d7cb; color: var(--rb-orange); background: #fff7f3; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }
.rb-feature-card h3 { margin: 0 0 10px; font-size: 18px; color: var(--rb-navy); }
.rb-feature-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--rb-muted); }

.rb-section { padding: 88px 0; }
.rb-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.rb-section-text h2, .rb-section-heading h2 { margin: 0; font-size: clamp(32px, 4vw, 46px); line-height: 1.08; letter-spacing: -.03em; color: var(--rb-navy); font-weight: 900; }
.rb-section-text p, .rb-section-heading p { color: var(--rb-muted); line-height: 1.68; }
.rb-large { font-size: 18px; color: #243246 !important; }
.rb-section-heading { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.rb-section-heading .rb-eyebrow { color: var(--rb-orange); margin-bottom: 8px; }
.rb-section-heading p { margin: 14px auto 0; }
.rb-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rb-gallery-grid img { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; box-shadow: var(--rb-shadow-soft); transition: transform .25s ease; }
.rb-gallery-grid img:hover { transform: translateY(-4px) scale(1.015); }

.rb-services { background: linear-gradient(180deg, #f7f9fc 0%, #fff 100%); }
.rb-service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.rb-service-card { background: #fff; border-radius: 14px; box-shadow: var(--rb-shadow-soft); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.rb-service-card:hover { transform: translateY(-7px); box-shadow: 0 22px 50px rgba(7,27,51,.15); }
.rb-service-card img { width: 100%; height: 170px; object-fit: cover; }
.rb-service-body { position: relative; padding: 42px 22px 24px; min-height: 230px; }
.rb-service-icon { position: absolute; left: 22px; top: -30px; width: 58px; height: 58px; border-radius: 50%; background: var(--rb-orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 14px 26px rgba(243,106,42,.30); }
.rb-service-body h3 { margin: 0 0 10px; font-size: 18px; color: var(--rb-navy); }
.rb-service-body p { margin: 0 0 18px; color: var(--rb-muted); font-size: 14px; line-height: 1.58; }
.rb-service-body a { color: var(--rb-orange); font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: .03em; }

.rb-process { position: relative; padding: 92px 0; background: var(--rb-navy); color: #fff; overflow: hidden; }
.rb-process::before { content: ''; position: absolute; inset: 0; background-image: var(--rb-hero-image); background-size: cover; background-position: center; opacity: .12; }
.rb-process .rb-container { position: relative; z-index: 2; }
.rb-invert h2 { color: #fff; }
.rb-invert p:not(.rb-eyebrow) { color: rgba(255,255,255,.72); }
.rb-process-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 48px; }
.rb-process-grid::before { content: ''; position: absolute; top: 38px; left: 8%; right: 8%; height: 1px; border-top: 1px dashed rgba(255,255,255,.28); }
.rb-process-step { position: relative; text-align: center; padding: 0 12px; }
.rb-process-step span { position: relative; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: var(--rb-orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; margin-bottom: 18px; }
.rb-process-step i { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 34px; font-style: normal; }
.rb-process-step h3 { margin: 0 0 10px; font-size: 18px; color: #fff; }
.rb-process-step p { margin: 0; color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.6; }

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

.rb-testimonials { background: #f7f9fc; }
.rb-testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rb-testimonial { background: #fff; border-radius: 14px; padding: 32px; box-shadow: var(--rb-shadow-soft); }
.rb-testimonial span { color: var(--rb-orange); font-size: 54px; line-height: .8; font-family: Georgia, serif; }
.rb-testimonial p { color: #374256; line-height: 1.7; margin: 8px 0 20px; }
.rb-testimonial strong { display: block; color: var(--rb-navy); font-size: 16px; }
.rb-testimonial small { display: block; color: var(--rb-muted); margin-top: 4px; }

.rb-cta { position: relative; padding: 52px 0; color: #fff; background-image: linear-gradient(90deg, rgba(5,24,45,.92), rgba(5,24,45,.78)), var(--rb-cta-image); background-size: cover; background-position: center; }
.rb-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.rb-cta h2 { max-width: 720px; margin: 0; color: #fff; font-size: clamp(28px, 4vw, 42px); line-height: 1.13; }
.rb-cta-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.rb-phone { color: #fff; font-size: 28px; font-weight: 900; white-space: nowrap; }
.rb-phone:hover { color: #fff; }

.rb-footer { background: #071b30; color: rgba(255,255,255,.74); padding: 58px 0 22px; }
.rb-footer-grid { display: grid; grid-template-columns: 1.25fr .8fr .9fr 1.05fr; gap: 44px; }
.rb-logo-footer { color: #fff; margin-bottom: 18px; }
.rb-logo-footer .rb-logo-text strong { color: #fff; }
.rb-footer h3 { margin: 0 0 18px; color: #fff; font-size: 16px; text-transform: uppercase; }
.rb-footer p { line-height: 1.7; margin: 0 0 12px; }
.rb-footer a { display: block; color: rgba(255,255,255,.78); margin-bottom: 10px; transition: color .2s ease; }
.rb-footer a:hover { color: #fff; }
.rb-footer-phone { color: #fff !important; font-size: 22px; font-weight: 900; }
.rb-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); }

/* Hide old theme footer/header leftovers only if some plugin tries to print them on the custom home template. */
body.rb-design1-home .site-header:not(.rb-header),
body.rb-design1-home header.site-header,
body.rb-design1-home .main-header,
body.rb-design1-home .header-area,
body.rb-design1-home .site-footer:not(.rb-footer),
body.rb-design1-home footer.site-footer,
body.rb-design1-home .footer-area {
    display: none !important;
}

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

@media (max-width: 900px) {
    body.rb-design1-home.admin-bar .rb-header { top: 46px; }
    .rb-topbar-inner { flex-direction: column; justify-content: center; padding: 10px 0; }
    .rb-topbar-right { gap: 12px; flex-wrap: wrap; justify-content: center; }
    .rb-header-inner { height: 76px; }
    .rb-mobile-toggle { display: block; }
    .rb-nav { position: absolute; left: 20px; right: 20px; top: calc(100% + 10px); background: #fff; border-radius: 14px; box-shadow: var(--rb-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; }
    .rb-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .rb-nav a { padding: 13px 14px; border-radius: 10px; }
    .rb-nav a:hover { background: #fff4ee; }
    .rb-hero { min-height: 590px; }
    .rb-hero-copy { padding: 70px 0 110px; }
    .rb-features { grid-template-columns: repeat(2, 1fr); }
    .rb-feature-card:nth-child(2) { border-right: 0; }
    .rb-feature-card:nth-child(-n+2) { border-bottom: 1px solid #edf1f5; }
    .rb-split { grid-template-columns: 1fr; }
    .rb-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .rb-process-grid { grid-template-columns: repeat(2, 1fr); }
    .rb-process-grid::before { display: none; }
    .rb-brand-row { grid-template-columns: repeat(3, 1fr); }
    .rb-testimonial-grid { grid-template-columns: 1fr; }
    .rb-cta-inner { flex-direction: column; align-items: flex-start; }
    .rb-cta-actions { justify-content: flex-start; }
    .rb-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .rb-container { width: min(100% - 28px, var(--rb-container)); }
    .rb-logo { min-width: 0; }
    .rb-logo-text strong { font-size: 16px; }
    .rb-logo-text small { font-size: 11px; }
    .rb-hero { min-height: 600px; background-position: 65% center; }
    .rb-hero-overlay { background: linear-gradient(90deg, rgba(3,16,34,.94) 0%, rgba(3,16,34,.82) 55%, rgba(3,16,34,.46) 100%); }
    .rb-hero h1 { font-size: 40px; }
    .rb-hero-lead { font-size: 17px; }
    .rb-hero-badges { flex-direction: column; gap: 12px; }
    .rb-hero-actions { flex-direction: column; align-items: stretch; }
    .rb-features { grid-template-columns: 1fr; margin-top: -34px; }
    .rb-feature-card { border-right: 0; border-bottom: 1px solid #edf1f5; }
    .rb-feature-card:last-child { border-bottom: 0; }
    .rb-section { padding: 64px 0; }
    .rb-gallery-grid, .rb-service-grid, .rb-process-grid, .rb-brand-row, .rb-footer-grid { grid-template-columns: 1fr; }
    .rb-gallery-grid img { height: 210px; }
    .rb-service-card img { height: 210px; }
    .rb-phone { font-size: 24px; }
}


/* Gallery fixed page additions - keeps the same Design 1 header/footer/hero as home page. */
body.rb-design1-home.rb-design1-gallery-fixed .rb-nav a.is-active { color: var(--rb-orange); }
body.rb-design1-home.rb-design1-gallery-fixed .rb-nav a.is-active::after { content: ''; display: block; height: 2px; background: var(--rb-orange); margin-top: 8px; border-radius: 2px; }
body.rb-design1-home.rb-design1-gallery-fixed .rb-hero { min-height: 660px; background-position: center; }
body.rb-design1-home.rb-design1-gallery-fixed .rb-hero-copy { max-width: 720px; }
body.rb-design1-home.rb-design1-gallery-fixed .rb-hero h1 { color: #fff !important; }

.rbg-fixed-intro { padding: 72px 0 20px; background: #fff; }
.rbg-fixed-intro .rb-container { max-width: 980px; text-align: center; }
.rbg-fixed-intro p { margin: 0 auto; color: #374256; font-size: 20px; line-height: 1.72; }
.rbg-fixed-count { display: inline-flex; align-items: center; justify-content: center; margin-top: 22px; min-height: 38px; padding: 8px 16px; border-radius: 999px; background: #fff4ee; color: var(--rb-orange); font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.rbg-fixed-gallery-section { padding: 44px 0 86px; background: #fff; }
.rbg-fixed-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rbg-fixed-gallery-item { margin: 0; }
.rbg-fixed-gallery-open { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #edf1f5; box-shadow: var(--rb-shadow-soft); cursor: pointer; }
.rbg-fixed-gallery-open img { width: 100%; height: 210px; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.rbg-fixed-gallery-open:hover img { transform: scale(1.055); filter: brightness(.86); }
.rbg-fixed-zoom { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.96); color: var(--rb-navy); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; box-shadow: 0 10px 22px rgba(0,0,0,.22); transition: transform .2s ease, color .2s ease; }
.rbg-fixed-gallery-open:hover .rbg-fixed-zoom { transform: scale(1.08); color: var(--rb-orange); }
.rbg-fixed-empty-gallery { text-align: center; padding: 50px 20px; background: #fff; border: 1px solid #e6ebf1; border-radius: 16px; box-shadow: var(--rb-shadow-soft); }
.rbg-fixed-empty-gallery h2 { margin: 0 0 10px; color: var(--rb-navy); }
.rbg-fixed-empty-gallery p { margin: 0; color: var(--rb-muted); }

.rbg-fixed-lightbox { position: fixed; inset: 0; z-index: 999999; display: none; align-items: center; justify-content: center; background: rgba(2,12,25,.92); padding: 54px 76px; }
.rbg-fixed-lightbox.is-open { display: flex; }
.rbg-fixed-lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 125px); object-fit: contain; border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.rbg-fixed-lightbox button { position: absolute; border: 0; color: #fff; background: rgba(255,255,255,.12); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.rbg-fixed-lightbox button:hover { background: var(--rb-orange); transform: translateY(-1px); }
.rbg-fixed-lightbox-close { top: 22px; right: 24px; width: 44px; height: 44px; border-radius: 50%; font-size: 32px; line-height: 1; }
.rbg-fixed-lightbox-prev, .rbg-fixed-lightbox-next { top: 50%; width: 48px; height: 68px; border-radius: 12px; transform: translateY(-50%); font-size: 46px; line-height: 1; }
.rbg-fixed-lightbox-prev:hover, .rbg-fixed-lightbox-next:hover { transform: translateY(-50%); }
.rbg-fixed-lightbox-prev { left: 22px; }
.rbg-fixed-lightbox-next { right: 22px; }
.rbg-fixed-lightbox-counter { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); color: rgba(255,255,255,.82); font-size: 14px; font-weight: 800; }

body.rb-design1-gallery-fixed .site-header:not(.rb-header),
body.rb-design1-gallery-fixed header.site-header,
body.rb-design1-gallery-fixed .main-header,
body.rb-design1-gallery-fixed .header-area,
body.rb-design1-gallery-fixed .site-footer:not(.rb-footer),
body.rb-design1-gallery-fixed footer.site-footer,
body.rb-design1-gallery-fixed .footer-area {
    display: none !important;
}

@media (max-width: 1180px) {
    .rbg-fixed-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    body.rb-design1-home.rb-design1-gallery-fixed .rb-nav a.is-active::after { display: none; }
    .rbg-fixed-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .rbg-fixed-intro { padding: 52px 0 14px; }
    .rbg-fixed-intro p { font-size: 18px; }
}
@media (max-width: 640px) {
    .rbg-fixed-gallery-section { padding: 28px 0 60px; }
    .rbg-fixed-gallery-grid { grid-template-columns: 1fr; gap: 16px; }
    .rbg-fixed-gallery-open img { height: 250px; }
    .rbg-fixed-lightbox { padding: 70px 14px 54px; }
    .rbg-fixed-lightbox-prev, .rbg-fixed-lightbox-next { width: 42px; height: 54px; font-size: 34px; }
    .rbg-fixed-lightbox-prev { left: 10px; }
    .rbg-fixed-lightbox-next { right: 10px; }
}
