/*
 * Custom styles for homepage only
 * Based on the provided color specifications
 */

:root {
    --primary-green: #3CB44B; /* CMYK: 65, 0, 100, 0 */
    --white: #FFFFFF; /* CMYK: 0, 0, 0, 0 */
    --black: #0A0C14; /* RGB: 10, 12, 20 - Updated dark blue/black */
    --dark-gray: #131A24; /* CMYK: 70, 60, 60, 80 - Dark gray with blue tone */
    --light-gray: #CCCCCC; /* CMYK: 0, 0, 0, 20 - Light gray/white */
    --light-gray-text: #B3B3B3; /* CMYK: 0, 0, 0, 30 - Light gray for text */
    --light-green-gray: #A6CCA6; /* CMYK: 20, 0, 20, 20 - Light gray with green tint */
}

/* Force override background colors for homepage */
html, body {
    background-color: var(--black) !important;
}

/* No need for bottom padding since footer is not fixed anymore */
body {
    padding-bottom: 0 !important;
}

/* Hero section with background image */
.hero-section {
    position: relative !important;
    overflow: hidden !important;
    background-size: cover !important;
    background-position: center !important;
    filter: brightness(1.2) !important; /* Make the hero image brighter */
}

/* Overlay for better text readability */
.hero-section .overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.05) 100%) !important;
    z-index: 1 !important;
}

/* Navigation styles */
.navbar {
    background-color: transparent !important;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)) !important;
    backdrop-filter: blur(5px) !important;
    position: relative !important;
    z-index: 1000 !important;
}

/* Ensure navbar is above hero section */
.navbar-dark.fixed-top {
    position: fixed !important;
    z-index: 1050 !important;
}

/* Ensure navbar-dark is transparent */
.navbar-dark {
    background-color: transparent !important;
    background-image: none !important;
}

/* Make navbar completely transparent on solutions and about pages */
body:has(.solutions-hero) .navbar,
.navbar + .solutions-hero,
.solutions-hero ~ .navbar,
body:has(.about-hero) .navbar,
.navbar + .about-hero,
.about-hero ~ .navbar,
.navbar-dark.fixed-top {
    background-color: transparent !important;
    background-image: none !important;
    backdrop-filter: blur(5px) !important;
}

/* Override for about page navbar */
.navbar-dark.fixed-top {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Force override for navbar-dark on about page */
body:has(.about-hero) .navbar-dark {
    background-color: transparent !important;
    background-image: none !important;
    backdrop-filter: blur(5px) !important;
    border-bottom: none !important;
}

/* Specific style for the about page navbar */
body:has(.about-hero) .navbar-dark.fixed-top {
    background: transparent !important;
    box-shadow: none !important;
}

/* Ensure navbar stays transparent even when scrolled on solutions and about pages */
body:has(.solutions-hero) .navbar.scrolled,
.navbar.scrolled + .solutions-hero,
.solutions-hero ~ .navbar.scrolled,
body:has(.about-hero) .navbar.scrolled,
.navbar.scrolled + .about-hero,
.about-hero ~ .navbar.scrolled,
.navbar-transparent,
.navbar-transparent.scrolled {
    background-color: transparent !important;
    background-image: none !important;
}

/* Specific style for the about page navbar when scrolled */
body:has(.about-hero) .navbar-dark.fixed-top.scrolled {
    background: transparent !important;
    box-shadow: none !important;
}

/* Logo styling */
.navbar-brand {
    /* Removed color override to allow text-white class to work */
}

.navbar-brand img,
.navbar-brand svg,
#navbar .smartPPA-logo,
.navbar-brand img {
    height: 40px !important; /* 100px*/
    width: auto !important;
    max-height: none !important;
    display: block;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500 !important;
}

.btn-success {
    background-color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
    color: var(--white) !important;
    border-radius: 50rem !important; /* Pill form */
    font-weight: 500 !important;
}

.btn-outline-success {
    color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
}

.btn-outline-success:hover {
    background-color: var(--primary-green) !important;
    color: var(--white) !important;
}

/* Make all buttons pill-shaped */
.btn {
    border-radius: 50rem !important; /* Pill form for all buttons */
}

/* Solutions section background */
#solutions-preview {
    background-color: var(--black) !important;
}

/* Solution cards with darker background */
.solution-card {
    background-color: var(--dark-gray) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.solution-card:hover {
    border-color: var(--primary-green) !important;
}

.solution-card .icon-wrapper {
    background-color: transparent !important;
    color: var(--primary-green) !important;
    margin-bottom: 1rem !important;
    font-size: 2rem !important;
}

/* Make about-card icons match solution-card icons */
.about-card .icon-wrapper {
    background-color: transparent !important;
    color: var(--primary-green) !important;
    margin-bottom: 1rem !important;
    font-size: 2rem !important;
}

.about-card:hover .icon-wrapper {
    color: var(--primary-green) !important;
}

.solution-card h3 {
    color: var(--white) !important;
    font-size: 1.3rem !important;
    margin-bottom: 1rem !important;
    font-weight: 600 !important;
}

.solution-card ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.solution-card li {
    color: var(--light-gray-text) !important;
    position: relative !important;
    padding-left: 1.5rem !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}

.solution-card li::before {
    content: "•" !important;
    position: absolute !important;
    left: 0 !important;
    color: var(--light-green-gray) !important;
    font-size: 1.2rem !important;
}

/* About section background */
#uber-uns {
    background-color: var(--black) !important;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Clean design for Über Uns section */
.about-clean {
    padding: 0 1rem !important;
    height: 100% !important;
}

/* Icon styling */
.about-clean .icon-wrapper {
    background-color: transparent !important;
    color: var(--primary-green) !important;
    margin-bottom: 1rem !important;
    font-size: 2rem !important;
}

.about-clean:hover .icon-wrapper {
    color: var(--primary-green) !important;
}

/* Heading styling */
.about-clean h3 {
    color: var(--white) !important;
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 600 !important;
    position: relative !important;
}

.about-clean h3::after {
    content: '' !important;
    position: absolute !important;
    bottom: -10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 50px !important;
    height: 2px !important;
    background-color: var(--primary-green) !important;
    opacity: 0.8 !important;
}

/* Clean list styling */
.clean-list {
    list-style: none !important;
    padding-left: 0 !important;
    text-align: center !important;
}

.clean-list li {
    color: var(--light-gray-text) !important;
    margin-bottom: 0.8rem !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

/* Section heading styling */
#uber-uns .section-heading {
    position: relative !important;
    margin-bottom: 2rem !important;
    font-weight: 700 !important;
    font-size: 2.2rem !important;
}

#uber-uns .section-heading::after {
    content: '' !important;
    position: absolute !important;
    bottom: -15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80px !important;
    height: 3px !important;
    background-color: var(--primary-green) !important;
    opacity: 0.8 !important;
    box-shadow: 0 0 5px rgba(24, 230, 77, 0.3) !important;
}

#uber-uns .lead {
    margin-bottom: 3rem !important;
    font-size: 1.1rem !important;
}

/* Footer styles for homepage */
footer {
    position: relative !important;
    width: 100% !important;
    background-color: transparent !important;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 100 !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
}

/* Footer brand styling */
.footer-brand {
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

.footer-brand img {
    height: 40px !important;
    width: auto !important;
    max-height: none !important;
    display: block;
}

/* Footer links styling */
footer a.text-white-50 {
    text-decoration: none !important;
    font-size: 0.9rem !important;
    transition: color 0.3s ease !important;
    font-weight: 500 !important;
    font-family: 'Montserrat', 'Arial', sans-serif !important;
}

footer a.text-white-50:hover {
    color: var(--white) !important;
}

/* Footer icons should be green */
footer .icon-wrapper i,
footer .fas {
    color: var(--primary-green) !important;
}

/* Override gradient backgrounds */
.bg-gradient {
    background: #0A0C14 !important;
    background-image: none !important;
}

/* Override dark background */
.bg-dark {
    background-color: #0A0C14 !important;
}

/* Override for footer with bg-dark class to ensure transparency */
footer.bg-dark {
    background-color: transparent !important;
}

/* Text colors */
.lead {
    color: var(--light-gray) !important;
}

/* Hero section headline specific styling */
.hero-section h1 {
    color: var(--white) !important;
    font-weight: 700 !important;
    font-size: 3.5rem !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
}

.hero-section p.lead {
    color: var(--white) !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7) !important;
}

/* CTA Button in hero section */
.hero-section .btn-success {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding-right: 1.5rem !important;
}

.hero-section .btn-success::after {
    content: '→' !important;
    font-size: 1.2rem !important;
    transition: transform 0.3s ease !important;
}

.hero-section .btn-success:hover::after {
    transform: translateX(5px) !important;
}


h1, h2, h3, h4, h5, h6, .section-heading {
    color: var(--white) !important;
}

/* Remove any background gradients or patterns */
#about-preview::before {
    display: none !important;
}

/* Override any other background colors */
section {
    background-color: #0A0C14 !important;
}

/* Ensure cookie consent banner appears above the footer */
#cookieConsent {
    z-index: 1050 !important;
}

/* Solutions page hero section */
.solutions-hero {
    position: relative !important;
    height: 30vh !important; /* Reduced height to make image smaller from bottom to top */
    min-height: 250px !important;
    background-image: url('../assets/HeroOMG.avif') !important;
    background-size: 140% auto !important; /* Further increased size to zoom in more on the image */
    background-position: center center !important; /* Centered both horizontally and vertically */
    filter: brightness(1.1) saturate(1.8) sepia(0.4) hue-rotate(355deg) !important; /* Enhanced orange/red tones */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.solutions-hero .overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(5, 10, 20, 0.6)) !important; /* Further reduced opacity to show more of the sky color */
    z-index: 1 !important;
}

.solutions-hero .container {
    position: relative !important;
    z-index: 2 !important;
}

.solutions-hero h1 {
    color: var(--white) !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
}

.solutions-hero p.lead {
    color: var(--white) !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7) !important;
}

/* About page hero section */
.about-hero {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 600px !important;
    background-image: url('../assets/HeroOMG.avif') !important;
    background-size: cover !important;
    background-position: center center !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    z-index: 0 !important;
    filter: brightness(1.1) saturate(1.8) sepia(0.4) hue-rotate(355deg) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.about-hero .overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(5, 10, 20, 0.6)) !important;
    z-index: 1 !important;
}

.about-hero .container {
    position: relative !important;
    z-index: 2 !important;
}

/* Consultation page hero section */
.consultation-hero {
    position: relative !important;
    height: 30vh !important;
    min-height: 250px !important;
    background-image: url('../assets/HeroOMG.avif') !important;
    background-size: 140% auto !important;
    background-position: center center !important;
    filter: brightness(1.1) saturate(1.8) sepia(0.4) hue-rotate(355deg) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.consultation-hero .overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(5, 10, 20, 0.6)) !important;
    z-index: 1 !important;
}

.consultation-hero .container {
    position: relative !important;
    z-index: 2 !important;
}

/* Request page hero section */
.request-hero {
    position: relative !important;
    height: 30vh !important;
    min-height: 250px !important;
    background-image: url('../assets/HeroOMG.avif') !important;
    background-size: 140% auto !important;
    background-position: center center !important;
    filter: brightness(1.1) saturate(1.8) sepia(0.4) hue-rotate(355deg) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.request-hero .overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(5, 10, 20, 0.6)) !important;
    z-index: 1 !important;
}

.request-hero .container {
    position: relative !important;
    z-index: 2 !important;
}

/* Imprint page hero section */
.imprint-hero {
    position: relative !important;
    height: 30vh !important;
    min-height: 250px !important;
    background-image: url('../assets/HeroOMG.avif') !important;
    background-size: 140% auto !important;
    background-position: center center !important;
    filter: brightness(1.1) saturate(1.8) sepia(0.4) hue-rotate(355deg) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.imprint-hero .overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(5, 10, 20, 0.6)) !important;
    z-index: 1 !important;
}

.imprint-hero .container {
    position: relative !important;
    z-index: 2 !important;
}

/* Privacy page hero section */
.privacy-hero {
    position: relative !important;
    height: 30vh !important;
    min-height: 250px !important;
    background-image: url('../assets/HeroOMG.avif') !important;
    background-size: 140% auto !important;
    background-position: center center !important;
    filter: brightness(1.1) saturate(1.8) sepia(0.4) hue-rotate(355deg) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.privacy-hero .overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(5, 10, 20, 0.6)) !important;
    z-index: 1 !important;
}

.privacy-hero .container {
    position: relative !important;
    z-index: 2 !important;
}

/* Terms page hero section */
.terms-hero {
    position: relative !important;
    height: 30vh !important;
    min-height: 250px !important;
    background-image: url('../assets/HeroOMG.avif') !important;
    background-size: 140% auto !important;
    background-position: center center !important;
    filter: brightness(1.1) saturate(1.8) sepia(0.4) hue-rotate(355deg) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.terms-hero .overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(5, 10, 20, 0.6)) !important;
    z-index: 1 !important;
}

.terms-hero .container {
    position: relative !important;
    z-index: 2 !important;
}