/* 1. Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #f4f4f4;
    font-family: 'Open Sans', sans-serif;
    color: #333;
}

/* 2. Header & Logo */
#banner {
    width: 100%;
    background: transparent url("images/nh-logo-grey.svg") no-repeat center;
    background-origin: content-box; 
    background-size: contain;
    padding: 15px 0; 
    height: 60px; 
    margin-top: 20px;
}

/* 3. Hero Pitch */
.main-pitch {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: #1b75bc;
    text-align: center;
    padding: 10px 20px 15px 20px; 
    line-height: 1;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.main-pitch span { display: inline-block; margin: 0 5px; }

.main-pitch .dot {
    color: #b3b3b3;
    margin-left: -0.1px;
    font-weight: 600;
}

.sub-pitch-container {
    text-align: center;
    margin: 0 auto 30px; 
    position: relative;
    z-index: 100;
}

.sub-pitch {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #444;
    border-top: 2.5px solid #1b75bc; 
    padding-top: 15px;
    line-height: 1.4;
    font-weight: 600;
}

/* 4. Buttons & CTA */
.cta-area { position: relative; margin-top: 25px; }

.contact-button, .footer-email-btn {
    background: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
}

.contact-button {
    border: 2px solid #1b75bc;
    color: #1b75bc;
    padding: 14px 25px;
    font-size: 0.95rem;
}

.contact-button:hover { background: rgba(27, 117, 188, 0.05); }

.footer-email-btn {
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 20px;
    font-size: 1rem;
    margin: 0 auto 15px;
}

.footer-email-btn:hover { background: rgba(255, 255, 255, 0.1); }

.success-msg { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.95rem; }

/* 5. Masonry Grid */
#container {
    column-count: 4;
    column-gap: 25px;
    padding: 5px 20px 20px; 
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.image-block {
    display: block;
    width: 100%;
    margin-bottom: 25px;
    break-inside: avoid;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
}

.image-block img { width: 100%; height: auto; display: block; }

.card-content {
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.map-details h2 {
    font-size: 1.1rem;
    color: #111;
    margin-bottom: 2px;
}

.map-details .client {
    font-size: 0.9rem;
    color: #777; /* This grey will apply to both the plain text and the 'For' label */
    margin-top: 0px;
}

.external-link {
    color: #777;
    text-decoration: none;
    border-bottom: 1px solid transparent; /* Keeps things steady */
    transition: all 0.3s ease;
}

.external-link:hover {
    color: #1b75bc;
    text-decoration: underline;
}

/* 6. Special Cards */
.insight-card {
    background: #f0f7ff !important;
    border-top: 4px solid #1b75bc !important;
    border-bottom: 4px solid #1b75bc !important;
    padding: 20px;
}

.insight-text {
    font-family: 'Montserrat', sans-serif;
    color: #1b75bc; 
    font-size: 1.25rem; 
    font-style: italic;
    text-align: center;
    line-height: 1.4;
}

.testimonial-card {
    background: #fff9f2 !important;
    border-top: 4px solid #f39c12 !important;
    border-bottom: 4px solid #f39c12 !important;
    padding: 20px;
}

.testimonial { font-style: italic; line-height: 1.6; margin-bottom: 10px; }
.attribution { font-family: 'Montserrat', sans-serif; font-size: 0.85rem; color: #f39c12; font-weight: 700; }

/* 7. Overlay & Helpers */
#map-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 100000;
    display: none;
    overflow: auto;
}

#map-overlay.active { display: flex; align-items: center; justify-content: center; }
#map-overlay img { max-width: 95%; max-height: 95%; touch-action: pinch-zoom; }

.email-shield { direction: rtl; unicode-bidi: bidi-override; display: inline-block; }

/* 8. Responsive */
@media (max-width: 1200px) { #container { column-count: 3; } }
@media (max-width: 900px) { #container { column-count: 2; } }
@media (max-width: 600px) {
    #container { column-count: 1; }
    .main-pitch { flex-direction: column; gap: 5px; display: flex; letter-spacing: -1px; }
    .main-pitch .dot { display: none; }
    .main-pitch span { margin: 0; }
    .sub-pitch { margin: 15px 20px 10px 20px; font-size: 0.95rem; border-top: 1.5px solid #1b75bc; padding-top: 15px; }
    .sub-pitch-container {margin-bottom: 20px; }
    .cta-area { margin-top: 10px; }
}

/* 9. Footer */
#footer { text-align: center; padding: 40px 0; color: #999; font-size: 0.8rem; }

#footer p {
    line-height: 1.2; /* Increases space between the lines */
    font-size: 0.85rem;
    color: #888;
    padding: 0 20px; /* Prevents text hitting the screen edges on tiny phones */
}

@media (max-width: 600px) {
    .footer-break {
        display: block; /* Turns the span into a line break */
        font-size: 0; /* Hides the "|" character */
        margin-top: 10px;
    }
}