/* === REALBUD GLOBAL === */
:root {
    --rb-dark: #1a1a1a;
    --rb-dark2: #222222;
    --rb-orange: #e8883c;
    --rb-navy: #2c3e6b;
    --rb-white: #ffffff;
    --rb-gray: #b0b0b0;
    --rb-border: #333333;
    --rb-footer: #111111;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.realbud-front {
    font-family: 'Open Sans', sans-serif;
    color: var(--rb-white);
    background: var(--rb-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

.rb-section {
    padding: 100px 0;
}

.rb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.rb-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--rb-orange);
    margin-bottom: 60px;
    text-align: center;
}

/* === STICKY NAV === */
.rb-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.3s ease, padding 0.3s ease;
}

.rb-nav.scrolled {
    background: rgba(17, 17, 17, 0.95);
    padding: 12px 0;
    backdrop-filter: blur(10px);
}

.rb-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rb-nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.rb-logo-icon--nav {
    height: 36px;
    width: auto;
}

.rb-nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.rb-nav-links a {
    color: var(--rb-white);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
    position: relative;
}

.rb-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rb-orange);
    transition: width 0.3s ease;
}

.rb-nav-links a:hover { color: var(--rb-orange); }
.rb-nav-links a:hover::after { width: 100%; }

.rb-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.rb-hamburger span {
    width: 25px;
    height: 2px;
    background: var(--rb-white);
    transition: 0.3s ease;
}

/* === HERO === */
.rb-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.rb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.rb-hero-content {
    position: relative;
    z-index: 2;
}

.rb-hero-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.rb-logo-icon--hero {
    width: 120px;
    height: auto;
    margin-bottom: 10px;
}

.rb-hero-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
}

.rb-logo-real {
    color: var(--rb-white);
}

.rb-logo-bud {
    color: var(--rb-orange);
}

.rb-hero-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--rb-white);
    margin-bottom: 40px;
}

/* === HERO CTA === */
.rb-hero-cta {
    display: inline-block;
    padding: 16px 50px;
    background: var(--rb-orange);
    color: var(--rb-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.rb-hero-cta:hover {
    background: #d47830;
    transform: translateY(-2px);
}

.rb-hero-cta:active {
    transform: scale(0.97);
}

/* === ABOUT === */
.rb-about { background: var(--rb-dark); }

.rb-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.rb-about-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--rb-gray);
    margin-top: 20px;
}

.rb-about-img {
    overflow: hidden;
    border-radius: 4px;
}

.rb-about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.6s ease;
}

.rb-about-img:hover img {
    filter: grayscale(0%);
}

/* === SERVICES === */
.rb-services { background: var(--rb-dark2); }

.rb-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.rb-service-card {
    background: var(--rb-dark);
    border: 1px solid var(--rb-border);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.rb-service-card:hover {
    transform: translateY(-8px);
    border-color: var(--rb-orange);
}

.rb-service-card-img {
    height: 200px;
    overflow: hidden;
}

.rb-service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.rb-service-card:hover .rb-service-card-img img {
    filter: grayscale(0%);
}

.rb-service-card-body {
    padding: 25px;
}

.rb-service-card-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rb-orange);
    margin-bottom: 12px;
}

.rb-service-card-body p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--rb-gray);
}

/* === PROJECTS === */
.rb-projects { background: var(--rb-dark); }

.rb-masonry {
    columns: 3;
    column-gap: 20px;
}

.rb-masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.rb-masonry-item img {
    width: 100%;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.rb-masonry-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.rb-masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.rb-masonry-item:hover .rb-masonry-overlay {
    opacity: 1;
}

.rb-masonry-overlay span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rb-orange);
}

/* === WHY US === */
.rb-whyus { background: var(--rb-dark2); }

.rb-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.rb-stat-box {
    border: 1px solid var(--rb-border);
    border-radius: 4px;
    padding: 40px 25px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.rb-stat-box:hover {
    border-color: var(--rb-orange);
}

.rb-stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--rb-orange);
    line-height: 1;
    margin-bottom: 15px;
}

.rb-stat-label {
    font-size: 0.9rem;
    color: var(--rb-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* === CONTACT === */
.rb-contact { background: var(--rb-dark); }

.rb-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.rb-contact-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rb-white);
    margin-bottom: 30px;
}

.rb-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.rb-contact-icon {
    width: 45px;
    height: 45px;
    border: 1px solid var(--rb-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--rb-orange);
    font-size: 18px;
}

.rb-contact-item-text .rb-contact-name {
    font-weight: 600;
    color: var(--rb-white);
    font-size: 0.95rem;
}

.rb-contact-item-text a {
    color: var(--rb-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.rb-contact-item-text a:hover {
    color: var(--rb-orange);
}

.rb-form input,
.rb-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--rb-dark2);
    border: 1px solid var(--rb-border);
    border-radius: 4px;
    color: var(--rb-white);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
    outline: none;
}

.rb-form input:focus,
.rb-form textarea:focus {
    border-color: var(--rb-orange);
}

.rb-form textarea {
    min-height: 140px;
    resize: vertical;
}

.rb-form input::placeholder,
.rb-form textarea::placeholder {
    color: #666;
}

.rb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.rb-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--rb-orange);
    color: var(--rb-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
    width: 100%;
}

.rb-btn:hover {
    background: #d47830;
}

.rb-btn:active {
    transform: scale(0.98);
}

.rb-form-msg {
    margin-top: 15px;
    font-size: 0.9rem;
    display: none;
}

.rb-form-msg.success { color: #4caf50; display: block; }
.rb-form-msg.error { color: #f44336; display: block; }

/* === FOOTER === */
.rb-footer {
    background: var(--rb-footer);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--rb-border);
}

.rb-footer-logo {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.rb-logo-icon--footer {
    height: 32px;
    width: auto;
    opacity: 0.7;
}

.rb-footer p {
    font-size: 0.85rem;
    color: #666;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .rb-services-grid { grid-template-columns: repeat(2, 1fr); }
    .rb-stats { grid-template-columns: repeat(2, 1fr); }
    .rb-masonry { columns: 2; }
}

@media (max-width: 768px) {
    .rb-section { padding: 70px 0; }
    .rb-section-title { font-size: 1.6rem; margin-bottom: 40px; }
    .rb-about-grid { grid-template-columns: 1fr; gap: 40px; }
    .rb-contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .rb-services-grid { grid-template-columns: 1fr; }
    .rb-stats { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .rb-masonry { columns: 1; }
    .rb-form-row { grid-template-columns: 1fr; }
    .rb-hero-logo-text { font-size: 3rem; }
    .rb-logo-icon--hero { width: 80px; }
    .rb-hero-tagline { font-size: 1rem; letter-spacing: 0.15em; }

    .rb-nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(17,17,17,0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        z-index: 999;
    }

    .rb-nav-links.open { display: flex; }

    .rb-nav-links a { font-size: 1.2rem; }

    .rb-hamburger { display: flex; z-index: 1001; }

    .rb-hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .rb-hamburger.open span:nth-child(2) { opacity: 0; }
    .rb-hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .rb-stat-box { padding: 25px 15px; }
    .rb-stat-number { font-size: 2.2rem; }
}
