/* =====================================================================
   Modernisation pass (Jul 2026): larger, calmer typography (Inter body +
   Zen Kaku Gothic New display — deliberately distinct from Japan House
   Diary's serif look), more breathing room, and one restrained deep-pine
   accent. Structure and Bootstrap grid untouched.
   ===================================================================== */
:root {
    --jhb-ink: #111827;
    --jhb-accent: #0e6e62;        /* deep pine — links, price, focus */
    --jhb-accent-soft: #e4f2ef;   /* pale tint for pills/backgrounds */
    --jhb-font-display: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    --jhb-font-body: "Inter", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Segoe UI", sans-serif;
}

html {
    font-size: 15px;
}

@media (min-width: 768px) {
    html {
        font-size: 17px; /* generous default, matches the calmer feel */
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 0;
    font-family: var(--jhb-font-body);
    background: #f7f8fb;
    color: #1f2937;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.jhb-hero-title,
.jhb-section-title {
    font-family: var(--jhb-font-display);
    letter-spacing: -0.01em;
}

/* Dev database status */
.jhb-dev-status {
    font-size: 12px;
    padding: 4px 10px;
    text-align: center;
}

.jhb-dev-status-ok {
    background-color: #e6ffed;
    color: #0f5132;
}

.jhb-dev-status-error {
    background-color: #ffe6e6;
    color: #842029;
}

/* Navbar */
.jhb-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.jhb-nav-logo-symbol {
    height: 38px;
    width: auto;
    display: block;
}

.jhb-nav-logo-text {
    height: 30px;
    width: auto;
    display: block;
}

.jhb-nav-link {
    font-weight: 500;
    color: #374151 !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
}

    .jhb-nav-link:hover {
        color: var(--jhb-accent) !important;
    }

.jhb-admin-link {
    color: #6b7280 !important;
    font-weight: 500;
}

/* Hero */
.jhb-hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f3f6fb 100%);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.jhb-eyebrow {
    display: inline-block;
    padding: 0.45rem 0.95rem;
    background: var(--jhb-accent-soft);
    color: #0b544b;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.jhb-hero-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.15;
    font-weight: 700;
    color: #111827;
}

.jhb-hero-text {
    font-size: 1.12rem;
    color: #4b5563;
    max-width: 650px;
    line-height: 1.7;
}

.jhb-hero-visual {
    padding: 1rem;
}

.jhb-hero-logo {
    max-height: 380px;
    width: auto;
    filter: drop-shadow(0 10px 25px rgba(15, 23, 42, 0.12));
}

/* Buttons */
.jhb-btn-primary {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
    border-radius: 12px;
    padding: 0.7rem 1.25rem;
    font-weight: 600;
}

    .jhb-btn-primary:hover {
        background: #000000;
        border-color: #000000;
        color: #ffffff;
    }

.jhb-btn-secondary {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
    border-radius: 12px;
    padding: 0.7rem 1.25rem;
    font-weight: 600;
}

    .jhb-btn-secondary:hover {
        background: #f9fafb;
        color: #111827;
    }

/* Cards / sections */
.jhb-feature-card,
.jhb-content-panel {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

@media (min-width: 992px) {
    .jhb-feature-card,
    .jhb-content-panel {
        padding: 2.4rem;
    }
}

    .jhb-content-panel p:last-child {
        margin-bottom: 0;
    }

/* Softer corners on the (untouched) legal/notice blocks */
.alert {
    border-radius: 14px;
}

.jhb-feature-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.jhb-feature-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.jhb-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111827;
}

.jhb-inline-link {
    color: var(--jhb-accent);
    font-weight: 600;
    text-decoration: none;
}

    .jhb-inline-link:hover {
        text-decoration: underline;
    }

/* Property cards */
.jhb-property-card {
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .jhb-property-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12) !important;
    }

.jhb-property-card-image {
    height: 250px;
    object-fit: cover;
}

.jhb-property-card-image-placeholder {
    height: 250px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jhb-badge-dark {
    background: #111827;
    color: #ffffff;
}

.jhb-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--jhb-accent);
}

/* Footer */
.jhb-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 1.25rem 0;
}

.jhb-footer-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.jhb-footer-brand {
    font-weight: 700;
    color: #111827;
}

.jhb-footer-copy {
    color: #6b7280;
}

.jhb-footer-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
}

    .jhb-footer-link:hover {
        text-decoration: underline;
    }

/* Forms */
.form-control,
.form-select {
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    border-color: #d1d5db;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--jhb-accent);
        box-shadow: 0 0 0 0.18rem rgba(14, 110, 98, 0.12);
    }

/* Responsive */
@media (max-width: 991.98px) {
    .jhb-nav-logo-text {
        height: 24px;
    }

    .jhb-hero-section {
        padding: 2rem;
        border-radius: 20px;
    }

    .jhb-hero-logo {
        max-height: 260px;
    }
}

@media (max-width: 575.98px) {
    .jhb-nav-logo-symbol {
        height: 30px;
    }

    .jhb-nav-logo-text {
        max-width: 170px;
        height: auto;
    }

    .jhb-hero-section {
        padding: 1.5rem;
    }
}
