/* R. B. Plumbing & Carpentry - Main Stylesheet */
/* Color scheme: Blue and orange tones for professional plumbing/carpentry theme */

:root {
    --rb-primary-blue: #1e3a8a;
    --rb-secondary-blue: #3b82f6;
    --rb-accent-orange: #f97316;
    --rb-light-orange: #fed7aa;
    --rb-dark-gray: #374151;
    --rb-light-gray: #f9fafb;
    --rb-white: #ffffff;
    --rb-text-dark: #1f2937;
    --rb-border-light: #e5e7eb;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--rb-text-dark);
    line-height: 1.6;
}

/* Navigation Styles */
.rb-main-navigation {
    background: var(--rb-primary-blue);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.rb-brand-mark {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--rb-white) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.rb-logo-icon {
    font-size: 2rem;
    color: var(--rb-accent-orange);
}

.rb-brand-text {
    color: var(--rb-white);
}

.rb-main-navigation .navbar-item {
    color: var(--rb-white);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.rb-main-navigation .navbar-item:hover {
    background-color: var(--rb-secondary-blue);
    color: var(--rb-white);
}

.navbar-burger {
    color: var(--rb-white);
}

/* Hero Section */
.rb-hero-primary {
    background: linear-gradient(135deg, var(--rb-primary-blue) 0%, var(--rb-secondary-blue) 100%);
    color: var(--rb-white);
    padding: 2.5rem 0;
}

.rb-hero-heading {
    color: var(--rb-white);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.rb-hero-subtext {
    color: var(--rb-light-orange);
    font-weight: 400;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.rb-primary-cta {
    background-color: var(--rb-accent-orange) !important;
    border-color: var(--rb-accent-orange) !important;
    color: var(--rb-white) !important;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.rb-primary-cta:hover {
    background-color: #ea580c !important;
    border-color: #ea580c !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.rb-secondary-cta {
    background-color: var(--rb-white) !important;
    color: var(--rb-primary-blue) !important;
    border-color: var(--rb-white) !important;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.rb-secondary-cta:hover {
    background-color: var(--rb-light-gray) !important;
    transform: translateY(-2px);
}

.rb-hero-visual img {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Section Styles */
.rb-section-title {
    color: var(--rb-primary-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

.rb-section-header {
    margin-bottom: 3rem;
}

.rb-company-intro {
    padding: 4rem 0;
}

.rb-intro-text {
    font-size: 1.1rem;
    color: var(--rb-dark-gray);
}

/* Service Cards */
.rb-service-card {
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--rb-border-light);
    border-radius: 8px;
    overflow: hidden;
}

.rb-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.rb-service-card .card-content {
    padding: 1.5rem;
}

.rb-service-card .title {
    color: var(--rb-primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.rb-service-description {
    color: var(--rb-dark-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.rb-service-pricing {
    color: var(--rb-accent-orange);
    font-size: 1.1rem;
    font-weight: 700;
}

/* Advantages Section */
.rb-advantages-block {
    padding: 4rem 0;
    background: var(--rb-white);
}

.rb-advantage-item {
    padding: 2rem 1rem;
}

.rb-advantage-icon {
    color: var(--rb-accent-orange);
    margin-bottom: 1rem;
    display: block;
}

.rb-advantage-item .title {
    color: var(--rb-primary-blue);
    margin-bottom: 0.5rem;
}

/* Testimonials */
.rb-testimonial-card {
    height: 100%;
    border: 1px solid var(--rb-border-light);
    border-radius: 8px;
}

.rb-testimonial-card .title {
    color: var(--rb-primary-blue);
}

.rb-testimonial-card .content {
    color: var(--rb-dark-gray);
    font-style: italic;
}

/* Contact Preview */
.rb-contact-preview {
    padding: 4rem 0;
    background: var(--rb-light-gray);
}

.rb-contact-details {
    margin: 1.5rem 0;
}

.rb-contact-item {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--rb-dark-gray);
}

.rb-contact-item strong {
    color: var(--rb-primary-blue);
}

/* Footer */
.rb-site-footer {
    background: var(--rb-primary-blue);
    color: var(--rb-white);
    padding: 3rem 0 2rem;
}

.rb-footer-heading {
    color: var(--rb-accent-orange);
    margin-bottom: 1rem;
}

.rb-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rb-footer-links li {
    margin-bottom: 0.5rem;
}

.rb-footer-links a {
    color: var(--rb-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.rb-footer-links a:hover {
    color: var(--rb-accent-orange);
}

.rb-footer-copyright {
    border-top: 1px solid var(--rb-secondary-blue);
    padding-top: 2rem;
    margin-top: 2rem;
    color: var(--rb-light-orange);
}

/* Cookie Banner */
.rb-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--rb-primary-blue);
    color: var(--rb-white);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.rb-cookie-banner.show {
    transform: translateY(0);
}

.rb-cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.rb-cookie-message {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
}

.rb-cookie-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.rb-cookie-buttons .button {
    min-width: auto;
    font-size: 0.875rem;
}

/* Forms */
.rb-form-container {
    background: var(--rb-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--rb-border-light);
}

.field label {
    color: var(--rb-primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.input, .textarea {
    border: 2px solid var(--rb-border-light);
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.input:focus, .textarea:focus {
    border-color: var(--rb-secondary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input.is-danger, .textarea.is-danger {
    border-color: #ef4444;
}

.help.is-danger {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* FAQ Accordion */
.rb-faq-item {
    border: 1px solid var(--rb-border-light);
    border-radius: 6px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.rb-faq-question {
    background: var(--rb-light-gray);
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--rb-primary-blue);
    transition: background-color 0.3s ease;
}

.rb-faq-question:hover {
    background: #f3f4f6;
}

.rb-faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rb-faq-answer.active {
    padding: 1.25rem;
    max-height: 500px;
}

.rb-faq-icon {
    transition: transform 0.3s ease;
    color: var(--rb-accent-orange);
}

.rb-faq-icon.rotate {
    transform: rotate(180deg);
}

/* Emergency Page Styles */
.rb-emergency-hero {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: var(--rb-white);
}

.rb-emergency-contact {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.rb-emergency-phone {
    font-size: 2.5rem;
    font-weight: 800;
    color: #dc2626;
    margin: 1rem 0;
}

/* Google Maps Container */
.rb-map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.rb-map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* Policy Pages */
.rb-policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.rb-policy-content h2 {
    color: var(--rb-primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.rb-policy-content h3 {
    color: var(--rb-dark-gray);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.rb-policy-content p, .rb-policy-content li {
    color: var(--rb-dark-gray);
    line-height: 1.7;
}

.rb-policy-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .rb-hero-primary {
        padding: 1.5rem 0;
    }

    .rb-hero-heading {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .rb-hero-subtext {
        font-size: 1rem;
    }

    .rb-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .rb-hero-actions .button {
        margin-bottom: 1rem;
    }

    .rb-cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .rb-cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .rb-emergency-phone {
        font-size: 2rem;
    }

    .columns.is-multiline .column {
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .rb-brand-text {
        display: none;
    }

    .rb-logo-icon {
        font-size: 1.5rem;
    }

    .rb-hero-heading {
        font-size: 1.5rem;
    }

    .rb-emergency-phone {
        font-size: 1.75rem;
    }

    .rb-form-container {
        padding: 1rem;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states for accessibility */
.button:focus,
.input:focus,
.textarea:focus,
.navbar-item:focus {
    outline: 2px solid var(--rb-accent-orange);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .rb-service-card {
        border: 2px solid var(--rb-primary-blue);
    }

    .rb-cookie-banner {
        border-top: 2px solid var(--rb-accent-orange);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Additional styling for missing classes */
.rb-contact-card {
    padding: 2rem;
    background: var(--rb-white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--rb-border-light);
    margin-bottom: 2rem;
}

.rb-contact-methods {
    margin-top: 1.5rem;
}

.rb-contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    background: var(--rb-light-gray);
}

.rb-contact-method .icon {
    color: var(--rb-accent-orange);
    font-size: 1.25rem;
    width: 2rem;
    text-align: center;
}

.rb-benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rb-benefits-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--rb-border-light);
}

.rb-benefits-list li:last-child {
    border-bottom: none;
}

.rb-milestone {
    padding: 1.5rem 1rem;
}

.rb-milestone-year {
    display: inline-block;
    background: var(--rb-accent-orange);
    color: var(--rb-white);
    padding: 0.5rem 1rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
    line-height: 50px;
    text-align: center;
}

.rb-team-card {
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--rb-border-light);
    border-radius: 8px;
    overflow: hidden;
}

.rb-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.rb-value-item {
    padding: 2rem 1rem;
    text-align: center;
}

.rb-step-number {
    display: inline-block;
    background: var(--rb-primary-blue);
    color: var(--rb-white);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    line-height: 3rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.rb-next-steps {
    margin: 3rem 0;
}

.rb-step-item {
    padding: 2rem 1rem;
}

.rb-response-card {
    background: var(--rb-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--rb-border-light);
    height: 100%;
}

.rb-helpful-links {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.rb-helpful-links li {
    margin-bottom: 0.5rem;
}

.rb-helpful-links a {
    color: var(--rb-secondary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.rb-helpful-links a:hover {
    color: var(--rb-accent-orange);
}

.rb-contact-method-card {
    background: var(--rb-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--rb-border-light);
    height: 100%;
}

.rb-process-step {
    padding: 2rem 1rem;
}

.rb-emergency-card {
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--rb-border-light);
    border-radius: 8px;
    overflow: hidden;
}

.rb-emergency-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.rb-emergency-checklist {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.rb-emergency-checklist li {
    margin-bottom: 0.5rem;
    color: var(--rb-dark-gray);
}

.rb-tip-section {
    background: var(--rb-white);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--rb-border-light);
    height: 100%;
}

.rb-final-emergency-contact {
    background: #fef2f2;
    padding: 3rem;
    border-radius: 12px;
    border: 2px solid #fecaca;
}

.rb-tip-card {
    background: var(--rb-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--rb-border-light);
    height: 100%;
    text-align: center;
}

.rb-contact-sidebar {
    background: var(--rb-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--rb-border-light);
}

.rb-notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    max-width: 400px;
}