/* =============================================================
   ImmoPlus — Frontend / Landing page styles
   ============================================================= */

/* CSS Custom Properties */
:root {
    --primary-color: #72A333;
    --accent-color:  #5C8429;
    --light-bg:      #f7f9fc;
    --border-color:  #e5e7eb;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ---------------------------------------------------------------
   Navigation
--------------------------------------------------------------- */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar .dropdown-menu {
    z-index: 1031;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color) !important;
    width: 15%;
    flex: 0 0 auto;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.navbar-nav .nav-item {
    flex-shrink: 0;
}

.navbar-nav .nav-link {
    color: var(--primary-color) !important;
    margin: 0 0.5rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0.3rem;
    white-space: nowrap;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-collapse {
    flex-grow: 1;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2372A333' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------------------------------------------------------------
   Buttons
--------------------------------------------------------------- */
.btn-primary-custom {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-primary-custom:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary-custom:hover {
    background-color: #4d6e1f;
    border-color: #4d6e1f;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(92, 132, 41, 0.4);
    color: white;
}

.btn-primary-custom:active {
    transform: translateY(0);
}

.btn-outline-custom {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn-outline-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-outline-custom:hover::before {
    left: 0;
}

.btn-outline-custom:hover {
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(92, 132, 41, 0.3);
}

.btn-outline-custom:active {
    transform: translateY(0);
}

.btn-outline-primary {
    --bs-btn-color:              var(--primary-color);
    --bs-btn-border-color:       var(--primary-color);
    --bs-btn-hover-color:        #fff;
    --bs-btn-hover-bg:           var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-focus-shadow-rgb:   13, 110, 253;
    --bs-btn-active-color:       #fff;
    --bs-btn-active-bg:          var(--primary-color);
    --bs-btn-active-border-color:var(--primary-color);
    --bs-btn-active-shadow:      inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color:     var(--primary-color);
    --bs-btn-disabled-bg:        transparent;
    --bs-btn-disabled-border-color: var(--primary-color);
    --bs-gradient: none;
}

.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
    color: var(--bs-btn-active-color);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Button base */
.btn {
    position: relative;
    z-index: 1;
}

.btn-lg {
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
}

/* ---------------------------------------------------------------
   Hero Section
--------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1c2e3f 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    z-index: 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .btn {
    margin: 0.5rem;
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
}

/* ---------------------------------------------------------------
   Section shared
--------------------------------------------------------------- */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: #666;
}

/* ---------------------------------------------------------------
   Features Section
--------------------------------------------------------------- */
.features-section {
    padding: 80px 0;
    background: white;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* ---------------------------------------------------------------
   How It Works Section
--------------------------------------------------------------- */
.how-it-works {
    padding: 80px 0;
    background: var(--light-bg);
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step-card h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ---------------------------------------------------------------
   Pricing Section
--------------------------------------------------------------- */
.pricing-section {
    padding: 80px 0;
    background: white;
}

.pricing-card {
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.pricing-card.featured {
    border-color: var(--accent-color);
    border-width: 3px;
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    color: var(--accent-color);
    font-weight: 700;
}

.price .amount {
    font-size: 3rem;
    color: var(--accent-color);
    font-weight: 700;
}

.price span {
    font-size: 1.5rem;
}

.billing-period {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    min-height: 2.5rem;
}

.billing-period .period-text {
    display: block;
    margin-bottom: 0.3rem;
}

.billing-period .savings-badge {
    display: none;
    font-weight: 600;
}

.price-period {
    font-size: 1rem;
    color: #666;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.features-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.features-list i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.features-list i.fa-times {
    color: #333 !important;
    margin-right: 0.5rem;
}

/* ---------------------------------------------------------------
   CTA Section
--------------------------------------------------------------- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1c2e3f 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}

footer a:hover {
    color: white;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 0.5rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
}

.copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    opacity: 0.7;
}

/* ---------------------------------------------------------------
   Responsive overrides
--------------------------------------------------------------- */

/* Desktop Navbar — Single Line */
@media (min-width: 992px) {
    .navbar-collapse {
        justify-content: flex-end;
    }

    .navbar-nav {
        flex-direction: row;
        flex-wrap: nowrap;
    }
}

/* Tighter spacing for medium-large screens */
@media (min-width: 992px) and (max-width: 1200px) {
    .navbar-nav .nav-link {
        margin: 0 0.3rem;
        padding: 0.5rem 0.2rem;
        font-size: 0.95rem;
    }

    .btn-outline-custom,
    .btn-primary-custom {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .navbar-nav {
        align-items: flex-start;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .navbar-nav .nav-link {
        margin: 0.5rem 0;
        padding: 0.5rem 0;
        width: 100%;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        margin: 0.5rem 0 !important;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 50px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .features-section,
    .how-it-works,
    .pricing-section,
    .cta-section {
        padding: 50px 0;
    }

    .feature-card,
    .step-card,
    .pricing-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.4rem;
    }

    .navbar-brand img {
        width: 100% !important;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}

/* ========================================================================
   Cookie consent banner
   ======================================================================== */
#ip-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    border-top: 2px solid var(--primary-color, #4f46e5);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    padding: 1rem 1.5rem;
    animation: slideUp 0.3s ease;
}

#ip-cookie-banner.ip-cookie-hidden {
    animation: slideDown 0.35s ease forwards;
}

.ip-cookie-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.ip-cookie-text {
    flex: 1 1 300px;
    margin: 0;
    font-size: 0.875rem;
    color: #374151;
}

.ip-cookie-link {
    margin-left: 0.25rem;
    text-decoration: underline;
}

.ip-cookie-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(100%); opacity: 0; }
}
