/* ==========================================================================
   FONT IMPORT
   Defines the PT Sans Narrow typeface used throughout the theme.
   ========================================================================== */
@font-face {
    font-family: 'PT Sans Narrow';
    src: url('../fonts/PT_Sans_Narrow/PTSansNarrow-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* ==========================================================================
   NBS COLOR SYSTEM v2.1
   CSS variables defining core Nature-Based Solutions color palettes.
   Each landscape type wrapper redefines these values.
   ========================================================================== */

/* Default fallback colors used if no wrapper class is applied. */
:root {
	--cc-main: #5F888E;
	--cc-second: #85B7A9;
	--cc-third: #0C9E7C;
	--cc-fourth: #64A092;
}

/* Normalize strong/bold text weight across browsers. */
b,
strong {
    font-weight: 500; 
}

/* --------------------------------------------------------------------------
   LANDSCAPE COLOR PALETTES
   Each .nbs-cc-wrapper-* class overrides the default color variables.
   -------------------------------------------------------------------------- */
.nbs-cc-wrapper-riverine {
	--cc-main: #5F888E;
	--cc-second: #85B7A9;
	--cc-third: #0C9E7C;
	--cc-fourth: #64A092;
}

.nbs-cc-wrapper-urban {
	--cc-main: #7A5C8D;
	--cc-second: #9E73B1;
	--cc-third: #D6A7E0;
	--cc-fourth: #BBACC9;
}

/* ...other landscape wrappers follow the same structure... */

/* --------------------------------------------------------------------------
   BASE COLOR APPLICATION
   Applies the defined color variables to elements inside .single-nbs-practice
   using simple helper classes (.nbs-cc-main, .nbs-cc-second, etc.).
   -------------------------------------------------------------------------- */
.single-nbs-practice .nbs-cc-main   { background-color: var(--cc-main); }
.single-nbs-practice .nbs-cc-second { background-color: var(--cc-second); }
.single-nbs-practice .nbs-cc-third  { background-color: var(--cc-third); }
.single-nbs-practice .nbs-cc-fourth { background-color: var(--cc-fourth); }

/* ==========================================================================
   IMAGE HOVER EFFECTS
   Adds a “spotlight” hover animation with brightness and scaling.
   ========================================================================== */
.nbs-hover-image {
    position: relative;
    overflow: hidden;
}

.nbs-hover-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.1);
    transition:
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, filter;
}

/* Creates the faint circular light gradient that fades on hover. */
.nbs-hover-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Hover interactions: slightly scales image and brightens it. */
.nbs-hover-image:hover img {
    transform: scale(1.04);
    filter: brightness(1.1) contrast(1.2);
}

.nbs-hover-image:hover::after {
    opacity: 1;
}

/* ==========================================================================
   NMS LOAD MORE GRID SYSTEM v2.1
   Responsive grid layout for WordPress post lists with load-more behavior.
   ========================================================================== */
.nms-loadmore-grid {
    /* Theme variables */
    --primary-green: #4a7c59;
    --green-light: #e8f0e8;
    --green-darker: #3a5f48;
    --accent-green: #6ba68a;
    --shadow-green: rgba(74, 124, 89, 0.15);
    --border-color: #d1e3d4;
    --text-muted: white;
    --gap: 2rem;
    --radius: 12px;
    --shadow: 0 4px 12px var(--shadow-green);
    --shadow-hover: 0 8px 24px var(--shadow-green);

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

/* Hide posts that aren’t flagged as visible. */
.nms-loadmore-grid li.wp-block-post:not(.nms-show, .nms-loadmore, .nms-show-prep) {
    display: none !important;
}

/* Transitional states for reveal animations. */
.nms-show-prep {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nms-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Load more button spans the full grid width. */
.nms-loadmore-grid li.nms-loadmore {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2.5rem;
    padding-bottom: 1rem;
    min-height: 80px;
    text-align: center;
}

/* Layout and reset for the load more block. */
.nms-loadmore {
    list-style: none;
    background: transparent;
    border: none;
    flex-direction: column !important;
    gap: 0.25rem;
}

/* Counter label below/above the button. */
.nms-loadmore-counter {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
}

/* Primary button styling: subtle gradient, rounded corners, shadow. */
.nms-loadmore .btn-primary {
    background: linear-gradient(135deg, var(--green-light) 0%, #f5fbf5 100%);
    color: var(--primary-green);
    border-color: var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-green);
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 52px;
    margin-top: 12px;
}

/* Hover: invert colors and lift the button visually. */
.nms-loadmore .btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-green) 100%);
    color: white;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Hide button when loading completes. */
.nms-loadmore .btn-primary[aria-disabled="true"] {
	display:none;
}

/* Displays the total number of available items (e.g. “12 of 24 items”). */
.nms-loadmore-grid li.nms-total-counter {
    grid-column: 1 / -1;
    order: -1; 
}

/* Styling for total counter text, matching the load more counter. */
.nms-loadmore-grid .nms-total-counter-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
    padding: 1rem 0;
}

/* ==========================================================================
   TWO-COLUMN TEXT BLOCK
   Makes text flow into two columns on large screens (one on mobile).
   ========================================================================== */
.nms-two-column-txt {
    column-count: 2;
    column-gap: 1.5rem;
    padding: 0;
}

@media (max-width: 768px) {
  .nms-two-column-txt {
    column-count: 1;
	padding: 30px;
  }
}