/**
 * Regenfly brand palette
 * Primary #2E7D32 | Hover #4CAF50
 * Backgrounds #F5F5F5 / #FFFFFF | Text #1A1A1A
 */
:root {
    --rf-primary: #2E7D32;
    --rf-primary-hover: #4CAF50;
    --rf-dark: #0b221c;
    --rf-bg-light: #f5f5f5;
    --rf-white: #ffffff;
    --rf-text: #1a1a1a;
    --rf-on-dark: #f5f5f5;
}

html body {
    color: var(--rf-text) !important;
    background: var(--rf-bg-light) !important;
}

/* ----- Header ----- */
header {
    background: var(--rf-white) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

header .logo-img {
    height: 80px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}

header nav a {
    color: var(--rf-text) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

header nav a:hover {
    color: var(--rf-primary) !important;
}

header nav a.active {
    color: var(--rf-primary) !important;
}

header .menu-toggle span {
    background: var(--rf-text) !important;
}

@media (max-width: 968px) {
    header nav {
        background: var(--rf-white) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    }

    header nav a {
        color: var(--rf-text) !important;
    }

    header nav a:hover,
    header nav a.active {
        color: var(--rf-primary) !important;
    }

    header .menu-toggle span {
        background: var(--rf-text) !important;
    }
}

@media (max-width: 768px) {
    header nav {
        background: var(--rf-white) !important;
    }

    header nav#mainNav {
        top: 100px !important;
    }

    header nav a {
        color: var(--rf-text) !important;
    }

    header nav a:hover,
    header nav a.active {
        color: var(--rf-primary) !important;
    }

    header .menu-toggle span {
        background: var(--rf-text) !important;
    }
}

/* ----- Hero sections (all pages) ----- */
section.hero {
    background: linear-gradient(165deg, #0b221c 0%, #143d32 40%, #2e7d32 100%) !important;
}

.hero h3 {
    color: var(--rf-primary-hover) !important;
}

.hero-text .bsfl {
    color: var(--rf-primary-hover) !important;
}

.slide::before {
    background: rgba(11, 34, 28, 0.42) !important;
}

.hero::after {
    background: var(--rf-bg-light) !important;
}

.hero h1 {
    color: rgba(245, 245, 245, 0.98) !important;
}

/* ----- Buttons & CTAs ----- */
.btn-primary,
.explore-btn,
.submit-btn,
.btn-buy,
.newsletter button,
.footer-links button {
    background: var(--rf-primary) !important;
    color: #fff !important;
}

.btn-primary:hover,
.explore-btn:hover,
.submit-btn:hover,
.btn-buy:hover,
.newsletter button:hover {
    background: var(--rf-primary-hover) !important;
    color: #fff !important;
}

.btn-secondary {
    background: rgba(245, 245, 245, 0.12) !important;
    color: #fff !important;
    border: 2px solid rgba(245, 245, 245, 0.85) !important;
}

.btn-secondary:hover {
    background: rgba(76, 175, 80, 0.35) !important;
    border-color: var(--rf-primary-hover) !important;
    color: #fff !important;
}

/* ----- Home ----- */
.info-section {
    background: linear-gradient(180deg, #2e7d32 0%, #1b5e20 100%) !important;
    color: #fff !important;
}

.info-section h2,
.info-section p {
    color: rgba(255, 255, 255, 0.95) !important;
}

.home-story {
    background: var(--rf-white) !important;
}

.home-story h2 {
    color: var(--rf-primary) !important;
}

.home-story .lead {
    color: var(--rf-text) !important;
}

.home-columns p {
    color: rgba(26, 26, 26, 0.82) !important;
}

.home-columns {
    border-top-color: rgba(46, 125, 50, 0.28) !important;
}

.home-market-tag {
    background: rgba(46, 125, 50, 0.14) !important;
    color: #14532c !important;
}

/* ----- Products ----- */
.products-section {
    background: var(--rf-white) !important;
}

.product-details h2 {
    color: var(--rf-primary) !important;
}

.product-description,
.benefits-list li {
    color: rgba(26, 26, 26, 0.82) !important;
}

.benefits-title,
.detail-block h4,
.product-specs h4,
.contact-section h4 {
    color: var(--rf-primary) !important;
}

.benefits-list li::before {
    color: var(--rf-primary) !important;
}

.product-item:nth-child(even) {
    background: var(--rf-bg-light) !important;
    box-shadow: inset 0 0 0 1px rgba(46, 125, 50, 0.12) !important;
}

.product-badge-star {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 50%, #1b5e20 100%) !important;
}

.variant-card {
    background: #fff !important;
    border-color: rgba(46, 125, 50, 0.22) !important;
}

.variant-card strong {
    color: var(--rf-text) !important;
}

.contact-section {
    background: #e8f5e9 !important;
}

.product-specs {
    background: rgba(46, 125, 50, 0.06) !important;
}

.hero-label-icon {
    background: var(--rf-primary-hover) !important;
}

/* ----- Footer (all pages) ----- */
footer {
    background: var(--rf-bg-light) !important;
    background-image: none !important;
    color: var(--rf-text) !important;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06) !important;
}

footer .footer-tagline,
footer .footer-company p,
footer .footer-bottom {
    color: rgba(26, 26, 26, 0.82) !important;
}

footer .footer-links h4,
footer .newsletter h4 {
    color: var(--rf-text) !important;
}

footer .footer-links a {
    color: var(--rf-primary) !important;
    opacity: 1 !important;
}

footer .footer-links a:hover {
    color: var(--rf-primary-hover) !important;
}

footer .newsletter input {
    background: var(--rf-white) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: var(--rf-text) !important;
}

footer .newsletter input::placeholder {
    color: rgba(26, 26, 26, 0.45) !important;
}

footer .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}

/* ----- About page ----- */
.about-main {
    background: var(--rf-white) !important;
}

.bsfl-section {
    background: var(--rf-bg-light) !important;
}

.about-main p,
.bsfl-text p {
    color: rgba(26, 26, 26, 0.9) !important;
}

.bsfl-title,
.supported-title,
.awards-title,
.news-title,
.about-main .bsfl-title {
    color: var(--rf-primary) !important;
}

.journey-content .journey-title {
    color: rgba(245, 245, 245, 0.95) !important;
}

.bsfl-text h4 {
    color: var(--rf-primary) !important;
}

.journey-section {
    background: linear-gradient(180deg, #e8f5e9 0%, #2e7d32 55%, #0b221c 100%) !important;
}

.journey-section .journey-text p,
.journey-section .journey-full-text p {
    color: rgba(255, 255, 255, 0.95) !important;
}

.wave-divider {
    background: linear-gradient(180deg, #0b221c 0%, #2e7d32 100%) !important;
}

.supported-section {
    background: var(--rf-white) !important;
}

.awards-section {
    background: var(--rf-bg-light) !important;
}

.news-section {
    background: var(--rf-white) !important;
}

.supported-title,
.awards-title,
.news-title {
    color: var(--rf-text) !important;
}

.news-item a {
    color: var(--rf-primary) !important;
}

.news-item a:hover {
    color: var(--rf-primary-hover) !important;
}

/* ----- Contact page ----- */
.office-section {
    background: linear-gradient(180deg, #2e7d32 0%, var(--rf-bg-light) 42%, var(--rf-bg-light) 100%) !important;
}

.office-details h2 {
    color: var(--rf-primary) !important;
}

.office-details h3,
.info-block h4 {
    color: rgba(26, 26, 26, 0.72) !important;
}

.info-block p {
    color: var(--rf-text) !important;
}

.form-alert.success {
    background: rgba(76, 175, 80, 0.22) !important;
    border-color: rgba(46, 125, 50, 0.45) !important;
    color: #c8e6c9 !important;
}

.form-alert.error {
    background: rgba(211, 47, 47, 0.2) !important;
    border-color: rgba(211, 47, 47, 0.45) !important;
    color: #ffcdd2 !important;
}

.form-container label,
.form-container .label-like,
.form-container .radio-option,
.form-container .checkbox-option {
    color: rgba(245, 245, 245, 0.88) !important;
}
