/* === Custom Styling for Henry's Eiendomme === */

:root {
    --primary-color: #2d5a7b;
    --dark-color: #1a3a52;
    --light-bg: #f5f5f5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    scroll-behavior: smooth;
}

/* === Navbar === */
.navbar {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: white !important;
}

.navbar-brand h3 {
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #4db8ff !important;
}

/* === Hero Section === */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
    padding: 100px 0 !important;
    text-align: center;
}

.hero h2 {
    font-weight: 700;
    margin-bottom: 20px;
}

.hero .lead {
    font-size: 1.5rem;
    opacity: 0.95;
}

/* === About Section === */
.about {
    background-color: white;
}

.about h2,
.gallery h2,
.contact h2 {
    color: var(--dark-color);
    font-weight: 700;
}

.about h3,
.contact h3 {
    color: var(--primary-color);
}

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

.about-image {
    overflow: hidden;
}

.about-image img {
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* === Gallery Section === */
.gallery {
    background-color: var(--light-bg);
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === Contact Section === */
.contact {
    background-color: white;
}

.contact h4 {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.contact a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact a:hover {
    color: var(--dark-color);
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 123, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%) !important;
    border: none;
    padding: 12px 40px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(45, 90, 123, 0.3) !important;
}

/* === Footer === */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%) !important;
    margin-top: 80px;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

    .hero .lead {
        font-size: 1.1rem;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }

    .gallery-item {
        height: 250px;
    }

    .about h3,
    .contact h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0 !important;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .gallery-item {
        height: 200px;
    }

    .about h3,
    .contact h3 {
        font-size: 1.1rem;
    }
}

/* === Utility Classes === */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary-light {
    background-color: rgba(45, 90, 123, 0.05);
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}
