/* ========================================
   HOME PAGE PREMIUM STYLES
   Aesthetic: Modern Naturalism (High-End)
   ======================================== */

/* ========== 1. Header & Navigation ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand .brand-text {
    font-weight: 800;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(45, 90, 39, 0.06);
}

.btn-nz-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 10px rgba(45, 90, 39, 0.22);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-nz-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 90, 39, 0.3);
    color: white;
}

.btn-outline-nz-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 0.5rem 1.4rem;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-nz-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ========== 2. Hero Section (Immersive) ========== */
.hero-section {
    position: relative;
    background-image:
        linear-gradient(135deg, rgba(45, 90, 39, 0.92) 0%, rgba(0, 27, 94, 0.92) 100%),
        url('/assets/hero-auckland.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    padding-top: 18px;
    padding-bottom: 22px;
}

/* Decorative background elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.16) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(51, 90, 166, 0.22) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-main {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 12px;
}

.hero-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInDown 0.8s ease-out;
}

.hero-main h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-main .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Search Box in Hero */
.hero-main .search-box {
    background: white;
    padding: 6px;
    border-radius: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    border: 4px solid rgba(255, 255, 255, 0.1);
    background-clip: padding-box;
}

.hero-main .search-box:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.hero-main .search-box .form-control {
    border: none;
    box-shadow: none;
    padding: 10px 18px;
    font-size: 1.05rem;
    background: transparent;
    min-height: 46px;
}

.hero-main .search-box .search-btn {
    padding: 10px 22px;
    font-size: 1.05rem;
    border-radius: 40px;
    margin-left: 8px;
}

/* Hot Tags */
.hot-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    animation: fadeInUp 0.8s ease-out 0.35s backwards;
}

.hot-tag {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
    transition: all 0.2s;
}

.hot-tag:hover {
    color: white;
    border-bottom-color: white;
}

/* Floating Grid (Overlapping Cards) */
.hero-floating {
    margin-top: 12px;
    margin-bottom: 18px;
    position: relative;
    z-index: 3;
}

.floating-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 1080px;
    margin: 0 auto;
}

.floating-card {
    background: white;
    padding: 18px 14px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    /* Deep soft shadow */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.floating-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.floating-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary-color);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.floating-card:hover .floating-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color);
    color: white;
}

.floating-card h6 {
    font-weight: 700;
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.floating-card:hover h6 {
    color: var(--text-primary) !important;
}

.floating-accent .floating-icon {
    background: #FFF4E6;
    color: #E2761B;
}

.floating-card:hover .floating-accent .floating-icon {
    background: #E2761B;
    color: white;
}

.floating-warn .floating-icon {
    background: #FFF9E6;
    color: #F59E0B;
}

.floating-card:hover .floating-warn .floating-icon {
    background: #F59E0B;
    color: white;
}

.floating-info .floating-icon {
    background: #E6F7FF;
    color: #0288D1;
}

.floating-card:hover .floating-info .floating-icon {
    background: #0288D1;
    color: white;
}

/* ========== 3. Main Content Sections ========== */
.section-spacing {
    padding: 48px 0;
}

.section-offset {
    padding-top: 14px;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

/* Service Cards (Grid) */
.service-card {
    border: none;
    background: white;
    border-radius: 18px;
    padding: 22px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2.6rem;
    margin-bottom: 1.1rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card .card-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Demand Cards */
.demand-card {
    border: none;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.demand-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-soft);
}

.demand-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.demand-card:hover::before {
    opacity: 1;
}

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* ========== 4. Footer ========== */
.footer {
    background: #111827;
    /* Very dark */
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
    font-size: 0.9rem;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s;
}

.footer a:hover {
    color: white;
    text-decoration: none;
    padding-left: 4px;
    /* subtle slide */
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .hero-main h1 {
        font-size: 2.5rem;
    }

    .floating-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .floating-card {
        padding: 16px 12px;
    }
}

@media (max-width: 576px) {
    .hero-main h1 {
        font-size: 2rem;
    }

    .floating-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
        padding-bottom: 28px;
    }

    .hero-floating {
        margin-top: 0;
        margin-bottom: 14px;
    }
}
