﻿/**
 * ZanCo. ltd Theme Styles
 * A luxury real estate and investment advisory block theme
 *
 * @package ZanCo
 * @since 1.0.0
 */

/* ==========================================================================
   CSS Custom Properties / Design Tokens
   ========================================================================== */

:root {
    /* Colors — ZANCO print ad: navy, champagne gold, warm cream */
    --zanco-dark: #1b2d4a;
    --zanco-steel-blue: #364f6c;
    --zanco-ivory: #f4efe6;
    --zanco-taupe: #c9b27c;
    --zanco-gold: #c9b27c;
    --zanco-gold-hover: #b09868;
    --zanco-black: #121d30;
    --zanco-white: #ffffff;
    --zanco-gray: #e3ddd0;
    --zanco-cream-surface: #faf7f1;
    --zanco-footer-text: #aab6c9;
    --zanco-footer-border: #2c3f5c;
    
    /* Typography */
    --zanco-font-serif: 'Playfair Display', Georgia, serif;
    --zanco-font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --zanco-spacing-xs: 8px;
    --zanco-spacing-sm: 16px;
    --zanco-spacing-md: 24px;
    --zanco-spacing-lg: 32px;
    --zanco-spacing-xl: 48px;
    --zanco-spacing-2xl: 64px;
    --zanco-spacing-3xl: 80px;
    --zanco-spacing-section: 128px;
    
    /* Container */
    --zanco-container: 1440px;
    --zanco-wide: 1920px;

    /*
     * Breakpoint reference (px) — match existing @media usage; not usable inside @media queries in all browsers.
     * xs: 480 | sm: 600 | md: 768 | adminToolbar: 782 | lg: 992 | xl: 1024 | 2xl: 1200
     */
    --zanco-bp-xs: 480px;
    --zanco-bp-sm: 600px;
    --zanco-bp-md: 768px;
    --zanco-bp-admin: 782px;
    --zanco-bp-lg: 992px;
    --zanco-bp-xl: 1024px;
    --zanco-bp-2xl: 1200px;
    
    /* Transitions */
    --zanco-transition-fast: 150ms ease;
    --zanco-transition-normal: 300ms ease;
    --zanco-transition-slow: 500ms ease;
    
    /* Shadows (navy-tinted, soft) */
    --zanco-shadow-sm: 0 1px 2px 0 rgba(27, 45, 74, 0.06);
    --zanco-shadow-md: 0 4px 6px -1px rgba(27, 45, 74, 0.08), 0 2px 4px -1px rgba(27, 45, 74, 0.05);
    --zanco-shadow-lg: 0 10px 15px -3px rgba(27, 45, 74, 0.1), 0 4px 6px -2px rgba(27, 45, 74, 0.06);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--zanco-font-sans);
    background-color: var(--zanco-ivory);
    background-image: linear-gradient(
        180deg,
        #ebe4d7 0%,
        var(--zanco-ivory) 18%,
        var(--zanco-ivory) 82%,
        #ebe4d7 100%
    );
    background-attachment: fixed;
    color: var(--zanco-dark);
    line-height: 1.6;
    font-weight: 300;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--zanco-ivory);
}

::-webkit-scrollbar-thumb {
    background: var(--zanco-gold);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--zanco-dark);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--zanco-font-serif);
    font-weight: 300;
    line-height: 1.2;
    color: var(--zanco-dark);
}

h1 {
    font-size: clamp(36px, 6vw, 96px);
    line-height: 1.1;
}

h2 {
    font-size: clamp(32px, 4.5vw, 60px);
    line-height: 1.15;
}

h3 {
    font-size: clamp(22px, 2.5vw, 36px);
    line-height: 1.25;
}

h4 {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.3;
}

/**
 * Block headings: brand navy, not inherited layout “contrast” black.
 * Headings with explicit palette colors (.has-text-color) stay as set in the editor.
 */
.wp-block-heading:not(.has-text-color),
.wp-block-query-title:not(.has-text-color),
.wp-block-post-title:not(.has-text-color),
.wp-block-post-title:not(.has-text-color) a {
    color: var(--zanco-dark);
}

/* Dark / hero surfaces: do not force navy (patterns often omit .has-text-color here). */
.wp-block-cover .wp-block-heading:not(.has-text-color),
.has-dark-background-color .wp-block-heading:not(.has-text-color),
.has-black-background-color .wp-block-heading:not(.has-text-color) {
    color: var(--zanco-ivory);
}

.has-gold-background-color .wp-block-heading:not(.has-text-color) {
    color: var(--zanco-dark);
}

/* Legacy slug from patterns (journal, etc.) */
.has-brand-dark-color {
    color: var(--wp--preset--color--brand-dark, var(--wp--preset--color--dark, #1b2d4a));
}

.has-brand-white-background-color {
    background-color: var(--wp--preset--color--brand-white, var(--wp--preset--color--white, #ffffff));
}

p {
    font-weight: 300;
    line-height: 1.7;
}

a {
    color: var(--zanco-dark);
    text-decoration: none;
    transition: color var(--zanco-transition-normal);
}

a:hover {
    color: var(--zanco-gold);
}

/* ==========================================================================
   Global Navigation Block Styles
   ========================================================================== */

/* Force Montserrat on all navigation blocks site-wide */
.wp-block-navigation,
.wp-block-navigation *,
.wp-block-navigation .wp-block-navigation-item,
.wp-block-navigation .wp-block-navigation-item a,
.wp-block-navigation .wp-block-navigation-link,
.wp-block-navigation .wp-block-navigation-link a,
.wp-block-navigation a.wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation__container,
.wp-block-navigation .wp-block-navigation__responsive-container-content {
    font-family: var(--zanco-font-sans) !important;
}

/* Navigation link styles matching home_2.html */
.wp-block-navigation .wp-block-navigation-item a,
.wp-block-navigation .wp-block-navigation-link a,
.wp-block-navigation a.wp-block-navigation-item__content {
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: var(--zanco-dark) !important;
    transition: color 300ms ease;
}

.wp-block-navigation .wp-block-navigation-item a:hover,
.wp-block-navigation .wp-block-navigation-link a:hover,
.wp-block-navigation a.wp-block-navigation-item__content:hover {
    color: var(--zanco-gold) !important;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: none;
    overflow: visible;
}

/* Editor / palette background wins via .has-*-background-color. Fallback if none set. */
.site-header:not(.has-background) {
    background: rgba(250, 247, 241, 0.92);
}

/* Blur when no “Header: blur …” block style is selected (back-compat). */
.site-header:not([class*="is-style-zanco-header-glass-"]) {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Middle shell (1440px): logo | menu | language + CTA. alignfull parent must not stretch this to full viewport. */
.site-header .header-content.is-layout-constrained {
    --wp--style--global--content-size: 1440px;
    max-width: 1440px !important;
    width: min(100%, 1440px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 0;
    border-bottom: none !important;
}

/* Core Navigation adds vertical padding / min-height; strip in header row so the bar stays compact. */
.site-header .header-content .main-navigation.wp-block-navigation {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}

.site-header .header-content .main-navigation .wp-block-navigation__responsive-container,
.site-header .header-content .main-navigation .wp-block-navigation__container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}

@media (min-width: 1025px) {
    .site-header .header-content .main-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
        height: auto !important;
        min-height: 0 !important;
        position: relative !important;
    }
}

.site-header .header-content .wp-block-group.header-branding {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Legacy header parts still using a nested .header-inner row. */
.site-header .header-inner {
    border-bottom: none !important;
    min-height: 0;
    width: 100%;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.header-branding .wp-block-site-title a,
.header-branding .site-title-text {
    font-family: var(--zanco-font-serif);
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--zanco-dark);
}

.header-branding .wp-block-site-title a:hover,
.header-branding .site-title-text:hover {
    color: var(--zanco-gold);
}

/* Custom Logo Styles */
.header-branding .wp-block-site-logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.header-branding .custom-logo-link {
    display: inline-block;
}

.header-branding .custom-logo,
.header-logo {
    max-height: 48px;
    width: auto;
}

.footer-logo-wrapper .custom-logo-link {
    display: inline-block;
}

.footer-logo-wrapper .custom-logo,
.footer-logo {
    max-height: 48px;
    width: auto;
}

.footer-logo-wrapper .site-title-text {
    font-family: var(--zanco-font-serif);
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--zanco-ivory);
}

/* Navigation */
.main-navigation {
    gap: 48px;
}

/* Force Montserrat font on all navigation elements */
.main-navigation,
.main-navigation *,
.main-navigation .wp-block-navigation-item,
.main-navigation .wp-block-navigation-item a,
.main-navigation .wp-block-navigation-link,
.main-navigation .wp-block-navigation-link a,
.main-navigation a.wp-block-navigation-item__content,
.main-navigation .wp-block-navigation__container {
    font-family: var(--zanco-font-sans) !important;
}

.main-navigation .wp-block-navigation-item,
.main-navigation .wp-block-navigation-item a,
.main-navigation .wp-block-navigation-link a,
.main-navigation a.wp-block-navigation-item__content {
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: var(--zanco-dark) !important;
    transition: color var(--zanco-transition-normal);
    position: relative;
    line-height: 1.25 !important;
    padding-top: 0.2em !important;
    padding-bottom: 0.2em !important;
}

.main-navigation .wp-block-navigation-item a:hover,
.main-navigation .wp-block-navigation-item.current-menu-item a,
.main-navigation .wp-block-navigation-link a:hover,
.main-navigation a.wp-block-navigation-item__content:hover {
    color: var(--zanco-gold) !important;
}

.main-navigation .wp-block-navigation-item a::after,
.main-navigation .wp-block-navigation-link a::after,
.main-navigation a.wp-block-navigation-item__content::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    display: block;
    width: 0;
    height: 2px;
    background-color: var(--zanco-gold);
    transition: width var(--zanco-transition-normal);
}

.main-navigation .wp-block-navigation-item a:hover::after,
.main-navigation .wp-block-navigation-item.current-menu-item a::after,
.main-navigation .wp-block-navigation-link a:hover::after,
.main-navigation a.wp-block-navigation-item__content:hover::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    gap: 32px;
    align-items: center;
}

.language-switcher {
    cursor: pointer;
    position: relative;
}

.contact-btn .wp-block-button__link {
    border: 1px solid var(--zanco-dark);
    background: transparent;
    color: var(--zanco-dark);
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all var(--zanco-transition-normal);
}

.contact-btn .wp-block-button__link:hover {
    background: var(--zanco-dark) !important;
    color: var(--zanco-white) !important;
    border-color: var(--zanco-dark) !important;
}

/* Mobile Navigation (overlay only — do not pad desktop horizontal nav) */
.wp-block-navigation__responsive-container.is-menu-open {
    background-color: var(--zanco-ivory);
}

@media (max-width: 1024px) {
    /*
     * Overlay-style padding only when the responsive menu is actually open.
     * Primary header uses compact dropdown rules in .site-header … below.
     */
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
        padding: 80px 32px;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
        margin: 16px 0;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item a {
        font-size: 24px;
        font-family: var(--zanco-font-serif);
        letter-spacing: 0.05em;
    }
}

@media (min-width: 1025px) {
    .wp-block-navigation__responsive-container-content {
        padding: 0 !important;
    }
}

/* Header: strip any residual padding on the responsive menu wrapper (desktop) */
.site-header .header-content .wp-block-navigation__responsive-container-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/*
 * Mobile: block navigation opens as a dropdown under the header bar (not full-viewport overlay).
 */
@media (max-width: 1024px) {
    /* See zanco-front-layer.css: CB for the open panel must be .header-content, not the nav. */
    .site-header .header-content,
    .site-header .header-inner {
        position: relative;
    }

    .site-header .header-content .main-navigation.wp-block-navigation {
        position: static;
        z-index: auto;
    }

    .site-header .header-content .main-navigation .wp-block-navigation__responsive-container.is-menu-open {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: min(75vh, 22rem) !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border-top: 1px solid var(--zanco-gray);
        box-shadow: 0 16px 40px rgba(15, 15, 15, 0.12);
        z-index: 60;
        border-radius: 0 0 4px 4px;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
    }

    .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
        padding: 0.5rem 1.25rem 1rem !important;
        padding-top: 2.25rem !important;
    }

    .site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
        margin: 0 !important;
    }

    .site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item a {
        font-size: 0.8125rem !important;
        font-family: var(--zanco-font-sans) !important;
        letter-spacing: 0.12em !important;
        text-transform: uppercase !important;
        padding: 0.55rem 0 !important;
        border-bottom: 1px solid rgba(229, 229, 229, 0.8);
        display: block;
    }

    .site-header .wp-block-navigation__responsive-container-close {
        position: absolute !important;
        top: 0.35rem !important;
        right: 0.75rem !important;
        left: auto !important;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.zanco-hero .wp-block-cover {
    min-height: 900px;
}

.zanco-hero .wp-block-cover__inner-container {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    margin-bottom: var(--zanco-spacing-xl);
}

/* ==========================================================================
   Hero Carousel Styles
   ========================================================================== */

.zanco-hero-carousel {
    position: relative;
    overflow: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0;
    margin-bottom: 0;
}

.hero-carousel-container {
    position: relative;
    width: 100%;
    height: 900px;
    overflow: hidden;
}

/* Cover block: fill slide; image must be absolute + object-fit (carousel layout bypasses core cover defaults). */
.zanco-hero-carousel .wp-block-cover.hero-slide {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 100%;
    box-sizing: border-box;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0;
    margin-bottom: 0;
}

.zanco-hero-carousel .wp-block-cover__image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

/* Core Cover overlay: must sit above the image so opacity / gradient / color from block settings apply. */
.zanco-hero-carousel .wp-block-cover__background {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Hero: full-bleed image; copy in a 1440px row, text block max-w-4xl like home_2.html */
.hero-slide .wp-block-cover__inner-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    padding-top: clamp(2.5rem, 8vh, 5rem) !important;
    padding-bottom: clamp(5.5rem, 14vh, 9rem) !important;
    padding-left: max(32px, env(safe-area-inset-left));
    padding-right: max(32px, env(safe-area-inset-right));
    box-sizing: border-box;
}

.hero-slide .wp-block-cover__inner-container > .wp-block-group,
.zanco-hero-carousel .wp-block-cover__inner-container > .wp-block-group {
    max-width: 1440px !important;
    width: 100%;
    min-width: 0;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

.hero-carousel-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide slides by default, show only active */
.hero-carousel-wrapper .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.hero-carousel-wrapper .hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    align-self: stretch;
    flex: 1 0 100%;
    height: 100%;
    min-height: 100%;
}

/* Slide Overlay - Custom gradient for proper RTL support */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(15, 15, 15, 0.6) 0%,
        rgba(15, 15, 15, 0.4) 50%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Slide content: Tailwind max-w-4xl (56rem) — headline + body not full viewport width */
.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 56rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.hero-slide-content .wp-block-heading {
    max-width: 100%;
    box-sizing: border-box;
}

/* Subcopy: max-w-2xl (42rem) per home_2.html */
.hero-slide-content .wp-block-paragraph.has-taupe-color {
    max-width: 42rem;
}

.hero-slide-content .wp-block-paragraph {
    font-weight: 300;
}

/* Carousel Navigation Buttons */
.hero-carousel-navigation {
    position: absolute;
    bottom: clamp(1.75rem, 4.5vw, 3.25rem);
    right: clamp(1.25rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    gap: clamp(0.625rem, 2vw, 1rem);
    z-index: 10;
}

.hero-carousel-prev,
.hero-carousel-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    min-width: 3.25rem;
    min-height: 3.25rem;
    background: rgba(248, 246, 240, 0.14);
    border: 1px solid rgba(248, 246, 240, 0.85);
    border-radius: 2px;
    color: var(--zanco-ivory);
    cursor: pointer;
    transition: background var(--zanco-transition-normal), color var(--zanco-transition-normal), border-color var(--zanco-transition-normal), transform var(--zanco-transition-fast);
    padding: 0;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(15, 15, 15, 0.18);
}

.hero-carousel-prev:hover,
.hero-carousel-next:hover {
    background: var(--zanco-ivory);
    color: var(--zanco-dark);
    border-color: var(--zanco-ivory);
    transform: translateY(-1px);
}

.hero-carousel-prev:focus-visible,
.hero-carousel-next:focus-visible {
    outline: 2px solid var(--zanco-gold);
    outline-offset: 3px;
}

.hero-carousel-prev:active,
.hero-carousel-next:active {
    transform: translateY(0);
}

.hero-carousel-prev svg,
.hero-carousel-next svg {
    width: 1.375rem;
    height: 1.375rem;
    flex-shrink: 0;
}

/* Carousel Dots/Indicators */
.hero-carousel-dots {
    position: absolute;
    bottom: clamp(1.75rem, 4.5vw, 3.25rem);
    left: clamp(1.25rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    gap: clamp(0.625rem, 2vw, 0.875rem);
    z-index: 10;
}

.hero-carousel-dot {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform var(--zanco-transition-fast);
}

.hero-carousel-dot::after {
    content: "";
    display: block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 246, 240, 0.9);
    background-color: transparent;
    box-shadow: 0 1px 4px rgba(15, 15, 15, 0.2);
    transition: background-color var(--zanco-transition-normal), border-color var(--zanco-transition-normal), transform var(--zanco-transition-fast);
    box-sizing: border-box;
}

.hero-carousel-dot:hover::after {
    border-color: var(--zanco-gold);
    transform: scale(1.08);
}

.hero-carousel-dot.active::after {
    background-color: var(--zanco-gold);
    border-color: var(--zanco-gold);
}

.hero-carousel-dot:focus {
    outline: none;
}

.hero-carousel-dot:focus-visible {
    outline: 2px solid var(--zanco-gold);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Progress Bar */
.hero-carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.hero-carousel-progress-bar {
    height: 100%;
    background: var(--zanco-gold);
    width: 0;
    transition: width 0.1s linear;
}

.hero-carousel-progress-bar.animating {
    animation: progressFill 6s linear forwards;
}

@keyframes progressFill {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Pause on hover */
.hero-carousel-container:hover .hero-carousel-progress-bar {
    animation-play-state: paused;
}

/* Outline button style for carousel */
.is-style-outline-white .wp-block-button__link {
    background: transparent;
    border: 1px solid var(--zanco-ivory);
    color: var(--zanco-ivory);
}

.is-style-outline-white .wp-block-button__link:hover {
    background: var(--zanco-ivory);
    color: var(--zanco-dark);
}

/* Hero carousel: block color classes (e.g. has-ivory-color) can beat generic outline hover — use near-black on fill. */
.zanco-hero-carousel .hero-slide-content .is-style-outline-white .wp-block-button__link:hover,
.zanco-hero-carousel .hero-slide-content .is-style-outline-white .wp-block-button__link:focus-visible {
    background: var(--zanco-ivory);
    color: var(--zanco-black) !important;
}

.zanco-hero-carousel .hero-slide-content .is-style-outline-white .wp-block-button__link:active {
    color: var(--zanco-black) !important;
}

/* ==========================================================================
   Article Card Styles
   ========================================================================== */

.zanco-article-card {
    transition: all var(--zanco-transition-normal);
}

.zanco-article-card:hover {
    transform: translateY(-4px);
}

.article-image-wrapper {
    overflow: hidden;
}

.article-image-wrapper img {
    transition: transform var(--zanco-transition-slow);
}

.zanco-article-card:hover .article-image-wrapper img {
    transform: scale(1.05);
}

.article-meta {
    align-items: center;
}

.article-meta .read-time {
    opacity: 0.7;
}

.zanco-article-card .wp-block-post-title a {
    color: var(--zanco-dark);
    transition: color var(--zanco-transition-normal);
}

.zanco-article-card:hover .wp-block-post-title a {
    color: var(--zanco-gold);
}

.article-link a {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--zanco-dark);
    display: inline-flex;
    align-items: center;
    transition: color var(--zanco-transition-normal);
}

.article-link a:hover {
    color: var(--zanco-gold);
}

.article-link .link-arrow {
    margin-left: 12px;
    transition: transform var(--zanco-transition-normal);
}

.article-link a:hover .link-arrow {
    transform: translateX(8px);
}

/* ==========================================================================
   Zanco CTA buttons (1px borders; use on wp-block-button wrapper className)
   -----------------------------------------------------------------------------
   zanco-btn-var-1 — White text & white border → gold background, white text hover
   zanco-btn-var-2 — Black text & border → gold background, black text hover
   zanco-btn-var-3 — Gold background & white text → black background, gold text hover
   ========================================================================== */

/* Wrapper only: core + block color classes often add border here; keep stroke on .wp-block-button__link */
.wp-block-button.zanco-btn-var-1,
.wp-block-button.zanco-btn-var-2,
.wp-block-button.zanco-btn-var-3 {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Core applies `border: 2px solid` to outline buttons — override with full `border` shorthand + !important */

.wp-block-button.zanco-btn-var-1 .wp-block-button__link,
.wp-block-button.zanco-btn-var-1.is-style-outline > .wp-block-button__link,
a.zanco-btn-var-1.wp-element-button,
a.zanco-btn-var-1 {
    box-sizing: border-box;
    box-shadow: none !important;
    border: 1px solid var(--zanco-white) !important;
    background-color: transparent !important;
    color: var(--zanco-white) !important;
    transition:
        background-color var(--zanco-transition-normal),
        color var(--zanco-transition-normal),
        border var(--zanco-transition-normal);
}

.wp-block-button.zanco-btn-var-1 .wp-block-button__link:hover,
.wp-block-button.zanco-btn-var-1 .wp-block-button__link:focus,
.wp-block-button.zanco-btn-var-1.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.zanco-btn-var-1.is-style-outline > .wp-block-button__link:focus,
a.zanco-btn-var-1.wp-element-button:hover,
a.zanco-btn-var-1.wp-element-button:focus,
a.zanco-btn-var-1:hover,
a.zanco-btn-var-1:focus {
    background-color: var(--zanco-gold) !important;
    color: var(--zanco-white) !important;
    border: 1px solid var(--zanco-gold) !important;
}

.wp-block-button.zanco-btn-var-2 .wp-block-button__link,
.wp-block-button.zanco-btn-var-2.is-style-outline > .wp-block-button__link,
a.zanco-btn-var-2.wp-element-button,
a.zanco-btn-var-2 {
    box-sizing: border-box;
    box-shadow: none !important;
    border: 1px solid var(--zanco-dark) !important;
    background-color: transparent !important;
    color: var(--zanco-dark) !important;
    transition:
        background-color var(--zanco-transition-normal),
        color var(--zanco-transition-normal),
        border var(--zanco-transition-normal);
}

.wp-block-button.zanco-btn-var-2 .wp-block-button__link:hover,
.wp-block-button.zanco-btn-var-2 .wp-block-button__link:focus,
.wp-block-button.zanco-btn-var-2.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.zanco-btn-var-2.is-style-outline > .wp-block-button__link:focus,
a.zanco-btn-var-2.wp-element-button:hover,
a.zanco-btn-var-2.wp-element-button:focus,
a.zanco-btn-var-2:hover,
a.zanco-btn-var-2:focus {
    background-color: var(--zanco-gold) !important;
    color: var(--zanco-dark) !important;
    border: 1px solid var(--zanco-gold) !important;
}

.wp-block-button.zanco-btn-var-3 .wp-block-button__link,
.wp-block-button.zanco-btn-var-3.is-style-outline > .wp-block-button__link,
a.zanco-btn-var-3.wp-element-button,
a.zanco-btn-var-3 {
    box-sizing: border-box;
    box-shadow: none !important;
    border: 1px solid var(--zanco-gold) !important;
    background-color: var(--zanco-gold) !important;
    color: var(--zanco-white) !important;
    transition:
        background-color var(--zanco-transition-normal),
        color var(--zanco-transition-normal),
        border var(--zanco-transition-normal);
}

.wp-block-button.zanco-btn-var-3 .wp-block-button__link:hover,
.wp-block-button.zanco-btn-var-3 .wp-block-button__link:focus,
.wp-block-button.zanco-btn-var-3.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.zanco-btn-var-3.is-style-outline > .wp-block-button__link:focus,
a.zanco-btn-var-3.wp-element-button:hover,
a.zanco-btn-var-3.wp-element-button:focus,
a.zanco-btn-var-3:hover,
a.zanco-btn-var-3:focus {
    background-color: var(--zanco-black) !important;
    color: var(--zanco-gold) !important;
    border: 1px solid var(--zanco-black) !important;
}

/* ==========================================================================
   Property Card Styles
   ========================================================================== */

.zanco-property-card {
    transition: all var(--zanco-transition-normal);
    cursor: pointer;
}

.zanco-property-card:hover {
    box-shadow: var(--zanco-shadow-lg);
}

.featured-properties-section .zanco-property-card:hover {
    box-shadow: none;
}

.zanco-property-card:hover .property-title {
    color: var(--zanco-gold);
}

/* Featured listings cards — align with html/home_2.html */
.featured-properties-section .wp-block-post-template > .wp-block-post,
.featured-properties-section .wp-block-post-template > li {
    padding: 0;
    margin: 0;
    list-style: none;
}

.featured-properties-section .zanco-property-card.has-ivory-background-color {
    background-color: var(--zanco-cream-surface);
    border: 1px solid rgba(201, 178, 124, 0.35);
}

/*
 * Core block theme.css adds :where(.wp-block-group.has-background){ padding: 1.25em 2.375em }
 * which inset the image — remove it; .property-content keeps its own padding.
 */
.featured-properties-section .zanco-property-card.wp-block-group.has-background {
    padding: 0;
}

/* Image edge-to-edge: no block / layout padding on the media row */
.featured-properties-section .zanco-property-card > .property-image-wrapper {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: none;
}

.featured-properties-section .zanco-property-card .property-image-wrapper .wp-block-post-featured-image,
.featured-properties-section .zanco-property-card .property-image-wrapper figure.wp-block-post-featured-image {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
}

.featured-properties-section .zanco-property-card .property-image-wrapper .wp-block-post-featured-image a {
    display: block;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.featured-properties-section .zanco-property-card .property-image-wrapper .wp-block-post-featured-image img,
.featured-properties-section .zanco-property-card .property-image-wrapper .wp-block-post-featured-image__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-properties-section .zanco-property-card .property-content {
    /* Match html/home_2.html (px-6 py-8); !important wins over older saved blocks with padding:0 inline */
    padding: 2rem 1.5rem !important;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .featured-properties-section .property-image-wrapper {
        height: 380px;
    }
}

.featured-properties-section .property-image-wrapper {
    height: 320px;
}

.featured-properties-section .property-badge {
    top: 1.25rem;
    left: 1.25rem;
    font-weight: 500;
}

.featured-properties-section .property-location--card {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    color: rgba(27, 45, 74, 0.62);
    opacity: 1;
    font-size: 0.875rem;
}

.featured-properties-section .property-location--card > .wp-block-html {
    flex-shrink: 0;
    line-height: 0;
    margin: 0;
}

.featured-properties-section .property-location__pin {
    display: inline-flex;
    color: var(--zanco-gold);
}

.featured-properties-section .property-location__pin svg {
    display: block;
    flex-shrink: 0;
}

.featured-properties-section .property-location--card .property-location__text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: rgba(27, 45, 74, 0.62);
}

.featured-properties-section .property-card-excerpt,
.featured-properties-section .wp-block-post-excerpt.property-card-excerpt {
    color: rgba(27, 45, 74, 0.76);
    font-size: 0.875rem;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

.featured-properties-section .property-card-excerpt .wp-block-post-excerpt__excerpt {
    margin: 0;
    font-size: inherit;
    font-weight: 300;
    line-height: 1.625;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.featured-properties-section .zanco-property-card .wp-block-post-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.featured-properties-section .zanco-property-card .wp-block-post-title a {
    font-family: var(--zanco-font-serif);
    font-weight: 400;
    line-height: 1.2;
    font-size: clamp(1.5rem, 1.25rem + 0.85vw, 1.875rem);
    color: var(--zanco-dark);
    text-decoration: none;
    transition: color var(--zanco-transition-normal);
}

.featured-properties-section .zanco-property-card .wp-block-post-title a:hover {
    color: var(--zanco-gold);
}

.featured-properties-section .property-meta {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
    border-top: 1px solid rgba(201, 178, 124, 0.35);
    padding-top: 1.25rem;
    margin-top: 0;
}

.featured-properties-section .property-meta .property-specs {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 12.5rem;
    flex-wrap: nowrap;
    gap: 1.25rem;
}

.featured-properties-section .property-meta .property-price {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

.featured-properties-section .property-specs .spec-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: rgba(27, 45, 74, 0.82);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 300;
    min-height: 1.25em;
}

/* Do not hide empty spec cells: bindings can briefly fail or use legacy meta, and :empty removed the FA icons too */

.featured-properties-section .property-specs .spec-item::before {
    color: var(--zanco-gold);
    margin-right: 0;
}

.featured-properties-section .property-meta .property-price,
.featured-properties-section .property-price {
    font-family: var(--zanco-font-sans);
    margin: 0;
    text-align: right;
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: normal;
    color: var(--zanco-dark);
    line-height: 1.25;
}

.featured-properties-section .property-meta .property-price.has-dark-color {
    color: var(--zanco-dark);
}

.featured-properties-section .zanco-property-card .wp-block-read-more {
    display: inline-block;
    margin-top: 1.5rem;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--zanco-dark);
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--zanco-dark);
    transition: color var(--zanco-transition-normal), border-color var(--zanco-transition-normal);
}

.featured-properties-section .zanco-property-card .wp-block-read-more:hover {
    color: var(--zanco-gold);
    border-bottom-color: var(--zanco-gold);
}

.property-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.property-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.zanco-property-card:hover .property-image-wrapper img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--zanco-white);
    padding: 8px 16px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    z-index: 2;
}

.property-title {
    transition: color var(--zanco-transition-normal);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
}

.property-location .location-icon {
    font-size: 12px;
    flex-shrink: 0;
}

.property-description {
    opacity: 0.7;
}

.property-meta {
    align-items: center;
}

.property-specs {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.spec-item::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--zanco-taupe);
    font-size: 12px;
}

.spec-beds::before {
    content: "\f236";
    margin-right: 4px;
}

.spec-baths::before {
    content: "\f2cd";
    margin-right: 4px;
}

.spec-sqft::before {
    content: "\f545";
    margin-right: 4px;
}

.property-specs .spec-icon {
    color: var(--zanco-taupe);
    font-size: 12px;
}

.property-price {
    font-size: 20px;
    font-weight: 300;
    white-space: nowrap;
}

/* ==========================================================================
   Featured Properties Section
   ========================================================================== */

.featured-properties-section {
    padding-top: 128px;
    padding-bottom: 128px;
}

.featured-properties-section .section-header {
    margin-bottom: 80px;
    text-align: start;
}

.featured-properties-section .section-label {
    margin-bottom: 16px;
    text-align: start;
}

.featured-properties-section .section-title {
    margin-bottom: 24px;
    text-align: start;
}

.featured-properties-section .section-description {
    max-width: 768px;
    margin-inline-start: 0;
    margin-inline-end: auto;
    text-align: start;
    opacity: 0.7;
}

/* Override core layout rules on older header markup still using is-layout-constrained */
.featured-properties-section .section-header.is-layout-constrained .section-description {
    margin-inline-start: 0 !important;
    margin-inline-end: auto !important;
}

.properties-grid-wrapper {
    padding-left: 32px;
    padding-right: 32px;
}

/* Query Loop grid layout for dynamic property listings */
.properties-grid-wrapper .wp-block-query .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 1024px) {
    .properties-grid-wrapper .wp-block-query .wp-block-post-template {
        gap: 48px;
    }
}

@media (max-width: 1024px) {
    .properties-grid-wrapper .wp-block-query .wp-block-post-template {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .properties-grid-wrapper .wp-block-query .wp-block-post-template {
        grid-template-columns: 1fr;
    }
}

/* Hide empty property badge */
.zanco-property-card .property-badge:empty {
    display: none;
}

.properties-grid {
    gap: 48px;
    display: flex;
    flex-wrap: wrap;
}

.property-column {
    /* Equal width columns */
    flex-basis: 0;
    flex-grow: 1;
    min-width: 0; /* Prevent flex items from overflowing */
}

/* Ensure equal column widths */
.properties-grid > .wp-block-column {
    flex-basis: calc(33.333% - 32px);
    flex-grow: 0;
    flex-shrink: 0;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .properties-grid {
        gap: 40px;
    }
    
    .properties-grid > .wp-block-column {
        flex-basis: calc(33.333% - 27px);
    }
}

@media (max-width: 1024px) {
    .properties-grid {
        gap: 32px;
        flex-wrap: wrap;
    }
    
    .properties-grid > .wp-block-column {
        flex-basis: calc(50% - 16px);
    }
    
    .property-column:last-child,
    .properties-grid > .wp-block-column:last-child {
        display: none;
    }
    
    .featured-properties-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .featured-properties-section .section-header {
        margin-bottom: 48px;
    }
}

@media (max-width: 768px) {
    .properties-grid {
        flex-direction: column;
        gap: 40px;
    }
    
    .properties-grid > .wp-block-column {
        flex-basis: 100%;
    }
    
    .property-column:last-child,
    .properties-grid > .wp-block-column:last-child {
        display: block;
    }
    
    .property-image-wrapper {
        height: 280px;
    }
    
    .featured-properties-section {
        padding-top: 64px;
        padding-bottom: 64px;
    }
    
    .featured-properties-section .section-header {
        margin-bottom: 32px;
    }
    
    .properties-grid-wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }

    /*
     * Home (post-template.properties-grid) + featured (.properties-grid-wrapper):
     * Core outputs <ul class="wp-block-post-template …"> — browser default ul padding
     * shifts cards right; constrained cards can sit off-center. Reset and fill the row.
     */
    .wp-block-query ul.wp-block-post-template.properties-grid,
    .wp-block-query .wp-block-post-template.properties-grid.is-layout-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        flex-direction: unset !important;
        flex-wrap: unset !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        justify-items: stretch !important;
    }

    .properties-grid-wrapper .wp-block-query .wp-block-post-template {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-inline: 0 !important;
        justify-items: stretch !important;
    }

    .wp-block-query .wp-block-post-template.properties-grid > li,
    .wp-block-query .wp-block-post-template.properties-grid > .wp-block-post,
    .properties-grid-wrapper .wp-block-post-template > li,
    .properties-grid-wrapper .wp-block-post-template > .wp-block-post {
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: 0 !important;
        padding-inline: 0 !important;
        justify-self: stretch !important;
    }

    .wp-block-query .wp-block-post-template.properties-grid .zanco-property-card,
    .properties-grid-wrapper .zanco-property-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .wp-block-post-template.properties-grid .zanco-property-card.is-layout-constrained,
    .properties-grid-wrapper .zanco-property-card.is-layout-constrained {
        max-width: none !important;
    }

    /* Inner copy aligned to the card center on small screens */
    .wp-block-post-template.properties-grid .zanco-property-card .property-content,
    .properties-grid-wrapper .zanco-property-card .property-content {
        text-align: center !important;
    }

    .wp-block-post-template.properties-grid .zanco-property-card .property-meta,
    .properties-grid-wrapper .zanco-property-card .property-meta {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 1rem !important;
    }

    .wp-block-post-template.properties-grid .zanco-property-card .property-specs,
    .properties-grid-wrapper .zanco-property-card .property-specs {
        justify-content: center !important;
    }

    .featured-properties-section .property-location--card {
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .property-image-wrapper {
        height: 220px;
    }
    
    .properties-grid {
        gap: 32px;
    }
}

/* ==========================================================================
   Service Card Styles
   ========================================================================== */

/* Matches html/home_2.html: border border-brand-gray/50, hover:shadow-md, duration-500 */
.zanco-service-card {
    --zanco-service-gold: #ba9e6e;
    --zanco-service-card-border: rgba(201, 178, 124, 0.45);
    box-sizing: border-box;
    cursor: pointer;
    border: 1px solid var(--zanco-service-card-border) !important;
    transition:
        box-shadow 500ms ease,
        border-color var(--zanco-transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.zanco-service-card:hover {
    box-shadow: var(--zanco-shadow-md);
}

/* Icon frame: Text + Border from editor (Group). Glyph follows Text colour via currentColor. */
.zanco-service-card .zanco-service-card__icon,
.zanco-service-card .wp-block-group.zanco-service-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    color: var(--zanco-service-gold);
    transition:
        color var(--zanco-transition-normal),
        border-color var(--zanco-transition-normal);
}

/* Card hover: title + icon frame (glyph uses currentColor on the <i>) */
.zanco-service-card:hover .zanco-service-card__icon {
    color: var(--zanco-service-gold) !important;
    border-color: var(--zanco-service-gold) !important;
}

.zanco-service-card:hover .service-icon-wrapper {
    border-color: var(--zanco-service-gold) !important;
}

.zanco-service-card:hover .service-icon.has-text-color,
.zanco-service-card:hover .service-icon-wrapper .service-icon {
    color: var(--zanco-service-gold) !important;
}

/* Fixed glyph size only (block Typography must not blow up Font Awesome) */
.zanco-service-card .zanco-service-card__icon i {
    font-size: 1.25rem !important;
    color: currentColor !important;
    line-height: 1 !important;
}

/* Paragraph + icon cards (legacy service-card pattern): same visual weight */
.zanco-service-card .service-icon-wrapper .service-icon,
.zanco-service-card .service-icon-wrapper .service-icon i[class*='fa-'] {
    font-size: 1.25rem !important;
    line-height: 1 !important;
}

.zanco-service-card p.service-icon i[class*='fa-'],
.zanco-service-card p i[class*='fa-']:only-child {
    font-size: 1.25rem !important;
    color: currentColor !important;
}

/* Core separator adds large vertical margins — home_2 is title (mb-5) → thin rule (mb-8) → excerpt */
.zanco-service-card hr.wp-block-separator {
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding: 0 !important;
    width: 64px !important;
    max-width: 64px !important;
    height: 0 !important;
    min-height: 0 !important;
    border: none !important;
    border-top: 1px solid var(--zanco-service-gold) !important;
    background: none !important;
    background-color: transparent !important;
    opacity: 1 !important;
}

.zanco-service-card h3.wp-block-heading,
.zanco-service-card > .wp-block-heading {
    margin-top: 0 !important;
    margin-bottom: 1.25rem !important;
}

.zanco-service-card__excerpt {
    opacity: 0.7;
}

.service-icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zanco-service-card .wp-block-heading {
    transition: color var(--zanco-transition-normal);
}

.zanco-service-card:hover .wp-block-heading,
.zanco-service-card:hover h3.wp-block-heading {
    color: var(--zanco-service-gold) !important;
}

.service-link a {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--zanco-dark);
    transition: color var(--zanco-transition-normal);
}

.service-link a:hover {
    color: var(--zanco-gold);
}

.service-link .link-arrow,
.service-link .arrow {
    margin-left: 16px;
    transition: transform var(--zanco-transition-normal);
}

.service-link a:hover .link-arrow,
.service-link a:hover .arrow {
    transform: translateX(8px);
}

/* Editor sometimes leaves blank <p></p> blocks (e.g. after Separator) */
.zanco-service-card > p:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
}

.zanco-service-card:hover .service-link a {
    color: var(--zanco-service-gold);
}

.zanco-service-card:hover .link-arrow,
.zanco-service-card:hover .arrow {
    transform: translateX(8px);
}

/* ==========================================================================
   Services Overview Section
   ========================================================================== */

.zanco-services-overview {
    padding-top: 128px;
    padding-bottom: 128px;
    border-top: 1px solid rgba(229, 229, 229, 0.55);
}

.zanco-services-overview .services-container {
    padding-left: 48px;
    padding-right: 48px;
}

.zanco-services-overview .section-header {
    margin-bottom: 80px;
    margin-inline: auto;
    max-width: 56rem;
    text-align: center;
}

.zanco-services-overview .section-header .section-title {
    max-width: none;
}

.zanco-services-overview .section-intro {
    margin-inline: auto;
    max-width: 42rem;
    opacity: 0.7;
}

.zanco-services-overview .section-header p:first-child {
    margin-top: 0;
}

/* Services Grid - 3 columns */
.zanco-services-overview .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.zanco-services-overview .services-grid .wp-block-group {
    margin-bottom: 0;
}

/* Service cards within wp-block-columns */
.zanco-services-overview .wp-block-columns,
.services-grid-section .wp-block-columns {
    gap: 40px;
}

.zanco-services-overview .wp-block-columns .wp-block-column,
.services-grid-section .wp-block-columns .wp-block-column {
    margin-bottom: 0;
}

/* Legacy .service-card rows: fill column height */
.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Responsive Services Grid */
@media (max-width: 1200px) {
    .zanco-services-overview .services-grid {
        gap: 32px;
    }
    
    .zanco-services-overview .wp-block-columns,
    .services-grid-section .wp-block-columns {
        gap: 32px;
    }
}

@media (max-width: 1024px) {
    .zanco-services-overview .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    /* Two-column layout for wp-block-columns */
    .zanco-services-overview .wp-block-columns,
    .services-grid-section .wp-block-columns {
        flex-wrap: wrap;
        gap: 32px;
    }
    
    .zanco-services-overview .wp-block-columns .wp-block-column,
    .services-grid-section .wp-block-columns .wp-block-column {
        flex-basis: calc(50% - 16px);
        flex-grow: 0;
    }
    
    /* Hide 5th and 6th cards on tablet */
    .zanco-services-overview .wp-block-columns .wp-block-column:nth-child(n+5),
    .services-grid-section .wp-block-columns .wp-block-column:nth-child(n+5) {
        display: none;
    }
    
    .zanco-services-overview {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .zanco-services-overview .section-header {
        margin-bottom: 48px;
    }
    
    .zanco-services-overview .services-container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (max-width: 768px) {
    .zanco-services-overview .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Single column for wp-block-columns on mobile */
    .zanco-services-overview .wp-block-columns,
    .services-grid-section .wp-block-columns {
        flex-direction: column;
        gap: 24px;
    }
    
    .zanco-services-overview .wp-block-columns .wp-block-column,
    .services-grid-section .wp-block-columns .wp-block-column {
        flex-basis: 100%;
    }
    
    /* Show all cards on mobile */
    .zanco-services-overview .wp-block-columns .wp-block-column:nth-child(n+5),
    .services-grid-section .wp-block-columns .wp-block-column:nth-child(n+5) {
        display: block;
    }
    
    .zanco-services-overview {
        padding-top: 64px;
        padding-bottom: 64px;
    }
    
    .zanco-services-overview .section-header {
        margin-bottom: 32px;
    }
    
    .zanco-services-overview .services-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ==========================================================================
   Stats Section Styles
   ========================================================================== */

.zanco-stats-section .wp-block-column {
    text-align: center;
}

/* ==========================================================================
   Footer Styles (matches html/home_1.html #footer)
   ========================================================================== */

.site-footer.alignfull {
    background-color: var(--zanco-black);
    background-image: linear-gradient(
            180deg,
            rgba(201, 178, 124, 0.15) 0%,
            rgba(201, 178, 124, 0.045) 22%,
            transparent 46%
        ),
        linear-gradient(
            180deg,
            #131d31 0%,
            var(--zanco-black) 52%,
            #0e1726 100%
        );
    background-repeat: no-repeat;
    padding-top: 5rem;
    padding-bottom: 2.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 1024px) {
    .site-footer.alignfull {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/*
 * Dark “home_1” footer only (.alignfull, not ivory home2).
 * Avoid forcing gray/ivory links onto template-parts/site-footer.php (light home2).
 */
.site-footer.alignfull:not(.site-footer--home2) a {
    color: var(--zanco-footer-text);
    transition: color var(--zanco-transition-normal);
}

.site-footer.alignfull:not(.site-footer--home2) a:hover {
    color: var(--zanco-ivory);
}

.zanco-footer-brand {
    margin-bottom: 1.5rem;
}

.zanco-footer-brand__lockup {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.zanco-footer-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--zanco-white);
    color: var(--zanco-dark);
    font-family: var(--zanco-font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.zanco-footer-brand__name {
    font-family: var(--zanco-font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.2;
}

.zanco-footer-tagline {
    max-width: 20rem;
    margin-top: 0;
    margin-bottom: 2rem;
}

.zanco-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.zanco-footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--zanco-footer-border);
    border-radius: 9999px;
    color: var(--zanco-footer-text);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.zanco-footer-social__link:hover {
    color: #ffffff;
    border-color: #ffffff;
}

.zanco-footer-social__link i {
    font-size: 0.875rem;
    line-height: 1;
}

.footer-column-title {
    font-family: var(--zanco-font-serif);
    color: #ffffff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 0;
}

.footer-links li + li {
    margin-top: 1rem;
}

/* Legacy square social blocks (older footers) */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--zanco-footer-border);
    transition: all var(--zanco-transition-normal);
}

.social-link:hover {
    border-color: var(--zanco-ivory);
}

.social-link a {
    color: var(--zanco-footer-text);
    font-size: 14px;
}

.social-link:hover a {
    color: var(--zanco-ivory);
}

.zanco-footer-newsletter-intro {
    margin-top: 0;
}

.newsletter-input input {
    background: transparent;
    border: none;
    color: #ffffff;
    width: 100%;
    outline: none;
    font-size: 0.875rem;
}

.newsletter-input input::placeholder {
    color: var(--zanco-footer-text);
    opacity: 1;
}

.newsletter-input--home1 {
    background-color: rgba(27, 45, 74, 0.35) !important;
    border-color: transparent !important;
}

.newsletter-input--home1:focus-within {
    border-color: var(--zanco-gold) !important;
}

.site-footer .newsletter-form .wp-block-button__link {
    background-color: var(--zanco-dark) !important;
    color: var(--zanco-white) !important;
    border: none;
    border-radius: 0;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.875rem;
    font-weight: 500;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.site-footer .newsletter-form .wp-block-button__link:hover,
.site-footer .newsletter-form .wp-block-button__link:focus {
    background-color: #243554 !important;
    color: var(--zanco-white) !important;
}

.footer-bottom {
    border-top: 1px solid var(--zanco-footer-border);
    align-items: center;
    row-gap: 1rem;
}

.footer-copyright {
    margin: 0;
    color: var(--zanco-footer-text) !important;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.footer-legal-links.is-layout-flex {
    gap: 1.5rem;
}

.footer-legal-link {
    margin: 0 !important;
}

.footer-legal-link a {
    color: var(--zanco-footer-text);
    font-size: 0.75rem;
}

.footer-legal-link a:hover {
    color: var(--zanco-ivory);
}

@media (max-width: 768px) {
    .footer-bottom.is-layout-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }

    .footer-copyright {
        text-align: center;
    }
}

/* Legacy grouped legal + language row */
.footer-legal {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

.wp-block-button__link {
    font-family: var(--zanco-font-sans);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 20px 40px;
    border-radius: 0;
    transition: all var(--zanco-transition-normal);
}

.wp-block-button__link.has-gold-background-color {
    background-color: var(--zanco-gold);
    color: var(--zanco-white) !important;
}

.wp-block-button__link.has-gold-background-color:hover,
.wp-block-button__link.has-gold-background-color:focus-visible {
    background-color: var(--zanco-dark);
    color: var(--zanco-white) !important;
}

.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 1px solid var(--zanco-dark);
    color: var(--zanco-dark);
}

.is-style-outline .wp-block-button__link:hover {
    background: var(--zanco-dark);
    color: var(--zanco-ivory);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .site-content {
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Desktop to Tablet Transition (1200px - 1024px) */
@media (max-width: 1200px) {
    .main-navigation {
        gap: 32px;
    }
    
    .header-actions {
        gap: 24px;
    }
}

/* Tablet Styles (1024px and below) */
@media (max-width: 1024px) {
    .site-header .header-content,
    .site-header .header-inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    /*
     * FSE block navigation: keep .main-navigation visible so the overlay “mobile”
     * menu open button remains available (display:none previously hid the entire block).
     * DOM is branding | nav | actions — reorder so the hamburger sits on the far right.
     */
    .site-header .header-content > .header-branding,
    .site-header .header-inner > .header-branding {
        order: 1;
    }

    .site-header .header-content > .header-actions,
    .site-header .header-inner > .header-actions {
        order: 2;
    }

    .site-header .header-content > .main-navigation.wp-block-navigation,
    .site-header .header-inner > .main-navigation.wp-block-navigation {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        order: 3;
        flex: 0 0 auto;
        min-width: 0;
    }

    .header-actions .language-switcher {
        display: none;
    }
    
    .hero-content h1 {
        font-size: clamp(32px, 5vw, 64px);
    }
    
    .zanco-stats-section .wp-block-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Section padding adjustments for tablet */
    .seo-intro-section,
    [data-name="SEO Intro"] {
        padding-top: 80px;
        padding-bottom: 0;
    }
    
    .cta-consultation-section,
    [data-name="CTA Consultation"] {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

/* Small Tablet / Large Phone (768px and below) */
@media (max-width: 768px) {
    .site-header .header-content,
    .site-header .header-inner {
        min-height: 0;
        padding-left: 16px;
        padding-right: 16px;
    }

    .zanco-hero .wp-block-cover {
        min-height: 500px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content .wp-block-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 16px;
    }
    
    .hero-content .wp-block-buttons .wp-block-button {
        width: 100%;
    }
    
    .hero-content .wp-block-buttons .wp-block-button__link {
        width: 100%;
        text-align: center;
    }
    
    /* Hero Carousel Responsive */
    .hero-carousel-container {
        height: min(72vh, 560px);
        min-height: 480px;
    }

    /*
     * Slides ship with inline min-height:900px; the mobile frame is shorter, so the cover
     * was taller than the visible area and “center” was in the wrong band. Pin slide height
     * to the carousel and fill it with the inner container for real vertical centering.
     */
    .zanco-hero-carousel .hero-carousel-wrapper .hero-slide.wp-block-cover {
        height: 100% !important;
        min-height: 100% !important;
        max-height: 100% !important;
    }

    .zanco-hero-carousel .hero-slide .wp-block-cover__inner-container {
        position: absolute !important;
        inset: 0 !important;
        z-index: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding-top: max(1.25rem, calc(env(safe-area-inset-top, 0px) + clamp(3.25rem, 10vw, 4.75rem))) !important;
        padding-bottom: 7.5rem !important;
        padding-left: max(1rem, env(safe-area-inset-left)) !important;
        padding-right: max(1rem, env(safe-area-inset-right)) !important;
    }
    
    .hero-slide-content {
        text-align: center;
        max-width: 100%;
    }

    /* Title only: hide kicker (first taupe line) and lead paragraph under the heading */
    .zanco-hero-carousel .hero-slide-content > p.has-taupe-color:first-of-type {
        display: none !important;
    }

    .zanco-hero-carousel .hero-slide-content > :is(h1, h2) + p.has-taupe-color {
        display: none !important;
    }

    .hero-slide-content > .wp-block-heading,
    .hero-slide-content > h1,
    .hero-slide-content > h2 {
        font-size: clamp(1.625rem, 6.8vw, 2.35rem) !important;
        line-height: 1.12 !important;
        margin-top: 0 !important;
        margin-bottom: 1rem !important;
    }

    /* Two CTAs in one row directly under the title */
    .zanco-hero-carousel .hero-slide-content .wp-block-buttons {
        justify-content: center;
        align-items: stretch;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.625rem;
        margin-top: 0;
    }

    .zanco-hero-carousel .hero-slide-content .wp-block-buttons .wp-block-button {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }

    .zanco-hero-carousel .hero-slide-content .wp-block-buttons .wp-block-button__link {
        box-sizing: border-box;
        width: 100%;
        text-align: center;
        padding: 0.875rem 0.65rem !important;
        font-size: 10px !important;
        letter-spacing: 0.2em !important;
        line-height: 1.25 !important;
    }

    /* Drop nested 32px side padding from pattern so copy can use full width */
    .zanco-hero-carousel .hero-slide .wp-block-cover__inner-container .wp-block-group.alignwide {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .hero-carousel-navigation {
        bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
        right: max(0.65rem, env(safe-area-inset-right));
    }
    
    .hero-carousel-prev,
    .hero-carousel-next {
        width: 3rem;
        height: 3rem;
        min-width: 3rem;
        min-height: 3rem;
    }

    .hero-carousel-prev svg,
    .hero-carousel-next svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .hero-carousel-dots {
        bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
        left: max(0.65rem, env(safe-area-inset-left));
        gap: 0.375rem;
    }

    .hero-carousel-dot {
        width: 2.5rem;
        height: 2.5rem;
    }

    .hero-carousel-dot::after {
        width: 0.625rem;
        height: 0.625rem;
    }
    
    .property-specs {
        gap: 16px;
    }
    
    .footer-legal,
    .footer-legal-links.is-layout-flex {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .hidden-mobile {
        display: none !important;
    }
    /* Mobile button improvements */
    .wp-block-button__link {
        padding: 16px 32px;
        font-size: 11px;
    }
}

/* Small Phone (480px and below) */
@media (max-width: 480px) {
    .zanco-stats-section .wp-block-columns {
        grid-template-columns: 1fr;
    }
    
    .zanco-stats-section .wp-block-column {
        margin-bottom: 32px;
    }
    
    /* Hero minimum height on very small screens */
    .zanco-hero .wp-block-cover {
        min-height: 400px;
    }
    
    .hero-carousel-container {
        height: min(70vh, 520px);
        min-height: 440px;
    }

    .zanco-hero-carousel .hero-slide .wp-block-cover__inner-container {
        padding-bottom: 7.25rem !important;
    }

    .hero-slide-content > .wp-block-heading,
    .hero-slide-content > h1,
    .hero-slide-content > h2 {
        font-size: clamp(1.45rem, 6.5vw, 2rem) !important;
    }
    
    /* Typography adjustments for small screens */
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    /* Section padding for small screens */
    .featured-properties-section,
    .zanco-services-overview,
    .seo-intro-section,
    .cta-consultation-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }
    
    /* Button full width on small mobile */
    .wp-block-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .wp-block-button {
        width: 100%;
    }
    
    .wp-block-button__link {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }

    /* Hero carousel: keep title + side-by-side CTAs (don’t stack full-width) */
    .zanco-hero-carousel .hero-slide-content .wp-block-buttons {
        flex-direction: row !important;
        gap: 0.5rem;
    }

    .zanco-hero-carousel .hero-slide-content .wp-block-button {
        width: auto !important;
        flex: 1 1 0;
        min-width: 0;
    }

    .zanco-hero-carousel .hero-slide-content .wp-block-buttons .wp-block-button__link {
        padding: 0.8rem 0.5rem !important;
        font-size: 9px !important;
        letter-spacing: 0.16em !important;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-gold {
    color: var(--zanco-gold);
}

.bg-ivory {
    background-color: var(--zanco-ivory);
}

.bg-dark {
    background-color: var(--zanco-dark);
}

.font-serif {
    font-family: var(--zanco-font-serif);
}

.font-sans {
    font-family: var(--zanco-font-sans);
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.2em;
}

.tracking-wider {
    letter-spacing: 0.3em;
}

/* Animation Classes */
.fade-in {
    /* --zanco-transition-slow is already "500ms ease"; do not add a second `ease` */
    animation: fadeIn var(--zanco-transition-slow) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.hover-lift {
    transition: transform var(--zanco-transition-normal), box-shadow var(--zanco-transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--zanco-shadow-lg);
}

/* Image Hover Zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform var(--zanco-transition-slow);
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   Search Entry Styles
   ========================================================================== */

.search-entry-container {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-entry-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 40px;
}

/* Search Tabs */
.search-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
}

.search-tab,
.search-tab-active {
    cursor: pointer;
    transition: all var(--zanco-transition-normal);
}

.search-tab:hover {
    color: var(--zanco-dark);
}

.search-tab-active {
    border-bottom: 2px solid var(--zanco-gold);
    padding-bottom: 12px;
    font-weight: 500;
}

/* Search Fields */
.search-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex: 1;
}

.search-field {
    flex: 1;
    min-width: 200px;
}

.search-field label,
.search-field p {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--zanco-dark);
}

/* Search Input Styles */
.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    background: var(--zanco-ivory);
    border: 1px solid var(--zanco-gray);
    padding: 16px 20px;
    font-size: 14px;
    color: var(--zanco-dark);
    outline: none;
    transition: border-color var(--zanco-transition-normal);
    font-family: var(--zanco-font-sans);
}

.search-input:focus {
    border-color: var(--zanco-gold);
}

.search-input::placeholder {
    color: rgba(27, 45, 74, 0.45);
}

/* Search Select Styles */
.search-select-wrapper {
    position: relative;
}

.search-select {
    width: 100%;
    background: var(--zanco-ivory);
    border: 1px solid var(--zanco-gray);
    padding: 16px 40px 16px 20px;
    font-size: 14px;
    color: var(--zanco-dark);
    outline: none;
    transition: border-color var(--zanco-transition-normal);
    appearance: none;
    cursor: pointer;
    font-family: var(--zanco-font-sans);
}

.search-select:focus {
    border-color: var(--zanco-gold);
}

/* Custom dropdown arrow for select */
.search-select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--zanco-taupe);
    pointer-events: none;
}

/* Search Button */
.search-button {
    white-space: nowrap;
}

/* Responsive Search Entry */
@media (max-width: 1024px) {
    .search-entry-inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-tabs {
        justify-content: flex-start;
        margin-bottom: 24px;
    }
    
    .search-fields {
        flex-direction: column;
    }
    
    .search-field {
        min-width: 100%;
    }
    
    .search-entry-inner .wp-block-buttons {
        margin-top: 24px;
    }
}

@media (max-width: 768px) {
    .search-entry-container {
        padding: 32px 24px;
    }
    
    .search-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }
    
    .search-fields {
        flex-direction: column;
    }
}

/* ==========================================================================
   Trust Statistics Section
   ========================================================================== */

.zanco-stats-section,
[data-name="Trust & Statistics"] {
    text-align: center;
}

/*
 * Trust stats grid: uniform stat row + aligned rules.
 * Do not use `hr + p` — whitespace between </hr> and <p> breaks the adjacent-sibling combinator.
 */
/* Core block layout (`wp-container-core-columns-is-layout-*`) adds `> * + * { margin-block-start: blockGap }`,
   which pushes every column after the first downward — breaks row alignment. Gap is already on the parent. */
.zanco-trust-stats-columns > * + *,
section#trust-authority-extended > .wp-block-group + .wp-block-columns > * + * {
    margin-block-start: 0 !important;
}

.zanco-trust-stats-columns .wp-block-column > .wp-block-group > p:first-of-type,
section#trust-authority-extended > .wp-block-group + .wp-block-columns .wp-block-column > .wp-block-group > p:first-of-type,
[data-name="Trust & Statistics"] .wp-block-columns .wp-block-column > .wp-block-group > p:first-of-type {
    min-height: 1.25em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 0;
}

.zanco-trust-stats-columns .wp-block-column > .wp-block-group > hr.wp-block-separator,
section#trust-authority-extended > .wp-block-group + .wp-block-columns .wp-block-column > .wp-block-group > hr.wp-block-separator,
[data-name="Trust & Statistics"] .wp-block-columns .wp-block-column > .wp-block-group > hr.wp-block-separator {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 64px !important;
    max-width: 64px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 2nd <p> = label (stat is 1st p; hr is not counted by nth-of-type) */
.zanco-trust-stats-columns .wp-block-column > .wp-block-group > p:nth-of-type(2),
section#trust-authority-extended > .wp-block-group + .wp-block-columns .wp-block-column > .wp-block-group > p:nth-of-type(2),
[data-name="Trust & Statistics"] .wp-block-columns .wp-block-column > .wp-block-group > p:nth-of-type(2) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.zanco-trust-stats-columns .wp-block-column > .wp-block-group > p:nth-of-type(3),
section#trust-authority-extended > .wp-block-group + .wp-block-columns .wp-block-column > .wp-block-group > p:nth-of-type(3),
[data-name="Trust & Statistics"] .wp-block-columns .wp-block-column > .wp-block-group > p:nth-of-type(3) {
    margin-top: 0;
    margin-bottom: 0;
}

.zanco-stats-section .wp-block-column > p:first-of-type {
    min-height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 0;
}

.zanco-stats-section .wp-block-column > .wp-block-separator {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 64px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--zanco-font-serif);
    font-size: 60px;
    font-weight: 300;
    color: var(--zanco-gold);
    line-height: 1;
    margin-bottom: 24px;
}

.stat-divider {
    width: 64px;
    height: 1px;
    background: var(--zanco-gold);
    margin: 0 auto 20px;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--zanco-dark);
    margin-bottom: 12px;
}

.stat-description {
    font-size: 14px;
    font-weight: 300;
    color: var(--zanco-dark);
    opacity: 0.6;
/* Trust Logos */
.trust-logos-wrapper {
    background: var(--zanco-ivory);
    padding: 64px 80px;
    margin-top: 96px;
}

/* ==========================================================================
   Global Footer Margin Reset
   ========================================================================== */

/* Remove any top margin from footer across all templates */
.site-footer,
footer.site-footer,
footer[id="footer"],
.site-footer--home2,
.wp-block-template-part:has(.site-footer),
.wp-block-template-part > footer {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

/* Remove block gap spacing before footer template part */
.is-layout-flow > .wp-block-template-part:has(.site-footer),
.is-layout-constrained > .wp-block-template-part:has(.site-footer) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.trust-logos-intro {
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    color: var(--zanco-dark);
    opacity: 0.7;
    margin-bottom: 32px;
}

.trust-logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
    align-items: center;
}

.trust-logo-item {
    flex: 0 0 auto;
    text-align: center;
    opacity: 0.4;
}

.trust-logo-item p {
    font-family: var(--zanco-font-serif);
    font-size: 24px;
    font-weight: 300;
    color: var(--zanco-dark);
}

.trust-logos-footer {
    text-align: center;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--zanco-dark);
    opacity: 0.6;
    margin-top: 48px;
}

/* Responsive Trust Statistics */
@media (max-width: 1200px) {
    .stats-grid {
        gap: 48px;
    }
    
    .stat-number {
        font-size: 52px;
    }
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    .stat-divider {
        width: 48px;
    }
    
    .trust-logos-wrapper {
        padding: 48px 48px;
        margin-top: 64px;
    }
    
    .trust-logos-grid {
        gap: 32px;
    }
    
    .trust-logo-item p {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .stat-number {
        font-size: 40px;
        margin-bottom: 16px;
    }
    
    .stat-divider {
        width: 40px;
        margin-bottom: 16px;
    }
    
    .stat-label {
        font-size: 11px;
        letter-spacing: 0.2em;
        margin-bottom: 8px;
    }
    
    .stat-description {
        font-size: 13px;
    }
    
    .trust-logos-wrapper {
        padding: 40px 24px;
        margin-top: 48px;
    }
    
    .trust-logos-intro {
        font-size: 13px;
        margin-bottom: 24px;
    }
    
    .trust-logos-grid {
        gap: 24px;
    }
    
    .trust-logo-item p {
        font-size: 18px;
    }
    
    .trust-logos-footer {
        font-size: 11px;
        margin-top: 32px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .stat-divider {
        width: 32px;
        margin-bottom: 12px;
    }
    
    .stat-label {
        font-size: 10px;
        letter-spacing: 0.15em;
    }
    
    .stat-description {
        font-size: 12px;
    }
    
    .trust-logos-grid {
        gap: 16px;
    }
    
    .trust-logo-item p {
        font-size: 14px;
    }
}

/* ==========================================================================
   Investment Advisory Section
   ========================================================================== */

.investment-advisory-section,
[data-name="Investment & Commercial"],
.zanco-investment-section {
    position: relative;
    overflow: hidden;
}

/* Full-bleed investment band: same layering as hero carousel (image + overlay + content). */
.zanco-investment-cover.wp-block-cover {
    position: relative;
    overflow: hidden;
    min-height: 720px;
}

.zanco-investment-cover .wp-block-cover__image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.zanco-investment-cover .wp-block-cover__background {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.zanco-investment-cover .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    box-sizing: border-box;
}

.investment-advisory-section .background-overlay,
[data-name="Investment & Commercial"] .background-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.05;
}

.investment-advisory-section .background-overlay img,
[data-name="Investment & Commercial"] .background-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.investment-content {
    position: relative;
    z-index: 1;
}

/* Checkmarks List */
.checkmarks-list {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
}

.checkmarks-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    color: var(--zanco-ivory);
    font-weight: 300;
}

.checkmarks-list li svg {
    margin-right: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.checkmarks-list li span {
    flex: 1;
}

/*
 * Investment cover: core often outputs list-item children as text first, HTML (SVG) second.
 * Without fixing order, the checkmark sits at the end of the line; margin/gap also stacks huge.
 */
.zanco-investment-section .checkmarks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.zanco-investment-section .checkmarks-list > * + *,
.zanco-investment-section .checkmarks-list .wp-block-list-item + .wp-block-list-item {
    margin-block-start: 0 !important;
}

.zanco-investment-section .checkmarks-list li,
.zanco-investment-section .checkmarks-list .wp-block-list-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    column-gap: 1.25rem;
    row-gap: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0;
}

.zanco-investment-section .checkmarks-list li > span,
.zanco-investment-section .checkmarks-list .wp-block-list-item > span {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.zanco-investment-section .checkmarks-list li svg,
.zanco-investment-section .checkmarks-list .wp-block-list-item svg {
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-top: 0.35rem;
    flex-shrink: 0;
}

/* Pull icon (or HTML wrapper) before text regardless of block order */
.zanco-investment-section .checkmarks-list li > svg,
.zanco-investment-section .checkmarks-list .wp-block-list-item > svg,
.zanco-investment-section .checkmarks-list li > .wp-block-html,
.zanco-investment-section .checkmarks-list .wp-block-list-item > .wp-block-html {
    order: -1;
}

/* Investment Image */
.investment-image {
    min-height: 600px;
}

.investment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Investment Advisory */
@media (max-width: 1024px) {
    .investment-image {
        min-height: 400px;
    }
    
    .checkmarks-list li {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .investment-image {
        min-height: 300px;
        margin-top: 48px;
    }

    .zanco-investment-cover.wp-block-cover {
        min-height: 560px;
    }
}

/* ==========================================================================
   Student Services Section (matches html/home_2.html #student-services)
   ========================================================================== */

.student-services-section,
[data-name="Student Services"] {
    /* Section shell */
}

/* grid gap-20 items-center; mobile: intro first, image below (home_2 order) */
.student-services-section .zanco-student-services-columns {
    align-items: center;
}

@media (min-width: 1024px) {
    .student-services-section .zanco-student-services-columns {
        column-gap: 128px;
        row-gap: 48px;
    }
}

@media (max-width: 1023px) {
    .student-services-section .zanco-student-services-columns {
        flex-direction: column;
    }

    .student-services-section .zanco-student-services-columns > .wp-block-column:first-child {
        order: 2;
    }

    .student-services-section .zanco-student-services-columns > .wp-block-column:nth-child(2) {
        order: 1;
    }
}

@media (min-width: 1024px) {
    .student-services-section .zanco-student-services-columns > .wp-block-column {
        order: unset;
    }
}

/* h-[500px] image column */
.student-services-section .student-services-image,
.student-services-image {
    height: 500px;
    overflow: hidden;
    margin: 0;
}

.student-services-section .student-services-image img,
.student-services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* h2: font-serif ~text-3xl md:text-4xl lg:text-[2.75rem] mb-6 leading-snug */
.student-services-section .zanco-student-services-heading,
.student-services-section h2.zanco-student-services-heading {
    font-family: var(--zanco-font-serif);
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 300;
    line-height: 1.375;
    color: var(--zanco-dark);
    margin: 0 0 24px;
}

/* Intro: text-base/md:text-lg opacity-75 mb-8 */
.student-services-section .zanco-student-services-intro {
    margin: 0 0 32px;
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 300;
    line-height: 1.625;
    color: var(--zanco-dark);
    opacity: 0.75;
}

/* space-y-6 mb-12 */
.student-services-section .zanco-student-service-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

/*
 * Core block CSS: .is-layout-constrained > * gets margin-left/right: auto !important.
 * Here that applies to each service row (and body innards), which breaks flex alignment
 * so later rows / icons no longer line up.
 */
.student-services-section .zanco-student-service-list.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
[data-name="Student Services"] .zanco-student-service-list.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.student-services-section .zanco-student-service-row .zanco-student-service-body.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
[data-name="Student Services"] .zanco-student-service-row .zanco-student-service-body.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* flex items-start; icon mr-5 mt-1 text-2xl text-gold */
.student-services-section .zanco-student-service-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
}

.student-services-section .zanco-student-service-row.is-layout-flex {
    gap: 0 !important;
}

/* Core layout adds margin-block-start to flex siblings; neutralize so icons align on every row */
.student-services-section .zanco-student-service-list > * + *,
.student-services-section .zanco-student-service-row > * + * {
    margin-block-start: 0 !important;
}

.student-services-section .zanco-student-service-row .zanco-student-service-body {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.student-services-section .zanco-student-service-row .zanco-student-service-icon {
    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
    margin: 4px 20px 0 0 !important;
    padding: 0;
    line-height: 1;
    font-size: 1.5rem;
    color: var(--zanco-gold);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
}

.student-services-section .zanco-student-service-row .zanco-student-service-icon i {
    display: block;
    width: 1.25em;
    text-align: center;
}

/* h4: font-medium sans text-lg text-dark mb-2 */
.student-services-section .zanco-student-service-row .zanco-student-service-body h4 {
    font-family: var(--zanco-font-sans);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--zanco-dark);
    margin: 0 0 8px;
}

.student-services-section .zanco-student-service-row .zanco-student-service-body p {
    margin: 0;
    font-family: var(--zanco-font-sans);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--zanco-dark);
    opacity: 0.6;
}

.student-services-section .zanco-student-services-cta {
    margin: 0 !important;
}

.student-services-section .zanco-student-services-cta .wp-block-button__link {
    font-family: var(--zanco-font-sans);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/*
 * Beat block “text / dark” utilities (has-dark-color) on hover so label stays light on dark fill,
 * matching .is-style-outline and Journal “View All Articles”.
 */
.student-services-section .zanco-student-services-cta .wp-block-button.is-style-outline .wp-block-button__link:hover,
.student-services-section .zanco-student-services-cta .wp-block-button.is-style-outline .wp-block-button__link:focus,
.student-services-section .zanco-student-services-cta .wp-block-button.is-style-outline .wp-block-button__link:focus-visible,
[data-name="Student Services"] .zanco-student-services-cta .wp-block-button.is-style-outline .wp-block-button__link:hover,
[data-name="Student Services"] .zanco-student-services-cta .wp-block-button.is-style-outline .wp-block-button__link:focus,
[data-name="Student Services"] .zanco-student-services-cta .wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
    background-color: var(--zanco-dark) !important;
    color: var(--zanco-ivory) !important;
    border-color: var(--zanco-dark) !important;
}

/* Legacy / alternate markup */
.service-feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.service-feature-icon {
    color: var(--zanco-gold);
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 4px;
}

.service-feature-content h4 {
    font-size: 18px;
    font-weight: 500;
    color: var(--zanco-dark);
    margin-bottom: 8px;
}

.service-feature-content p {
    font-size: 16px;
    font-weight: 300;
    color: var(--zanco-dark);
    opacity: 0.6;
}

/* Responsive Student Services */
@media (max-width: 1024px) {
    .student-services-section .student-services-image,
    .student-services-image {
        height: 400px;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .student-services-section .student-services-image,
    .student-services-image {
        height: 300px;
    }

    .service-feature {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .service-feature-icon {
        margin-top: 0;
        margin-bottom: 16px;
    }
}

/* ==========================================================================
   Journal Grid Section
   ========================================================================== */

.journal-grid-section,
[data-name="Journal Grid"] {
    /* Section styles */
}

/*
 * Journal: core block layout adds `> * + * { margin-block-start: … }` for blockGap,
 * which drops columns 2–3 (and grid items 2–3) below row — same as trust stats.
 * Horizontal/vertical spacing comes from column gap or grid `gap` in theme rules.
 */
.journal-grid-section .wp-block-post-template > * + *,
[data-name="Journal Grid"] .wp-block-post-template > * + *,
.zanco-journal-articles-columns > * + *,
/* Legacy: article row = second columns block under section (before class existed) */
.journal-grid-section > .wp-block-columns + .wp-block-columns > * + *,
[data-name="Journal Grid"] > .wp-block-columns + .wp-block-columns > * + *,
.zanco-journal-post-template > * + *,
.wp-block-post-template.articles-grid > * + * {
    margin-block-start: 0 !important;
}

.journal-grid-section .section-header,
[data-name="Journal Grid"] .wp-block-columns:first-child {
    margin-bottom: 80px;
}

/* “View all” lives below the post grid in updated patterns */
.journal-grid-section .zanco-journal-view-all,
[data-name="Journal Grid"] .zanco-journal-view-all {
    justify-content: center;
    width: 100%;
}

/* Query Loop grid layout for dynamic journal listings */
.journal-grid-section .wp-block-query .wp-block-post-template,
[data-name="Journal Grid"] .wp-block-query .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 1024px) {
    .journal-grid-section .wp-block-query .wp-block-post-template,
    [data-name="Journal Grid"] .wp-block-query .wp-block-post-template {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .journal-grid-section .wp-block-query .wp-block-post-template,
    [data-name="Journal Grid"] .wp-block-query .wp-block-post-template {
        grid-template-columns: 1fr;
    }
}

/*
 * Core Post Template may use is-layout-flex / is-layout-flow (single column).
 * Force CSS grid so home Journal and saved pattern markup stay multi-column on desktop.
 */
.journal-grid-section .wp-block-query ul.wp-block-post-template,
.journal-grid-section .wp-block-query .wp-block-post-template.is-layout-flex,
.journal-grid-section .wp-block-query .wp-block-post-template.is-layout-flow,
[data-name="Journal Grid"] .wp-block-query ul.wp-block-post-template,
#journal-insights .wp-block-query .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 48px;
}

@media (max-width: 1024px) {
    .journal-grid-section .wp-block-query ul.wp-block-post-template,
    .journal-grid-section .wp-block-query .wp-block-post-template.is-layout-flex,
    .journal-grid-section .wp-block-query .wp-block-post-template.is-layout-flow,
    [data-name="Journal Grid"] .wp-block-query ul.wp-block-post-template,
    #journal-insights .wp-block-query .wp-block-post-template {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .journal-grid-section .wp-block-query ul.wp-block-post-template,
    .journal-grid-section .wp-block-query .wp-block-post-template.is-layout-flex,
    .journal-grid-section .wp-block-query .wp-block-post-template.is-layout-flow,
    [data-name="Journal Grid"] .wp-block-query ul.wp-block-post-template,
    #journal-insights .wp-block-query .wp-block-post-template {
        grid-template-columns: 1fr !important;
    }
}

/* Static journal pattern (wp-block-columns): keep three columns on desktop */
.journal-grid-section .zanco-journal-articles-columns.wp-block-columns {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 48px;
}

@media (max-width: 781px) {
    .journal-grid-section .zanco-journal-articles-columns.wp-block-columns {
        flex-direction: column;
        flex-wrap: wrap;
    }
}

@media (min-width: 782px) {
    .journal-grid-section .zanco-journal-articles-columns > .wp-block-column {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* Article Card Styles */
.article-card,
.zanco-article-card {
    cursor: pointer;
    transition: all var(--zanco-transition-normal);
}

.article-card:hover,
.zanco-article-card:hover {
    /* Hover effects */
}

.article-card:hover h3,
.zanco-article-card:hover h3 {
    color: var(--zanco-gold);
}

.article-card .article-image,
.zanco-article-card .wp-block-post-featured-image {
    height: 350px;
    overflow: hidden;
    margin-bottom: 32px;
}

.article-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

/* Journal / Query Loop: featured image sits in .wp-block-post-featured-image (not .article-image-wrapper) */
.zanco-article-card .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.zanco-article-card:hover .wp-block-post-featured-image img {
    transform: scale(1.05);
}

/* Static pattern cards: core image block */
.article-card figure.wp-block-image {
    overflow: hidden;
}

.article-card figure.wp-block-image img {
    transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover figure.wp-block-image img {
    transform: scale(1.05);
}

.article-card .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

.article-card .article-category {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--zanco-gold);
}

.article-card .article-separator {
    color: var(--zanco-taupe);
    font-size: 12px;
}

.article-card .article-read-time {
    font-size: 12px;
    font-weight: 300;
    color: var(--zanco-taupe);
}

.article-card h3 {
    font-family: var(--zanco-font-serif);
    font-size: 30px;
    font-weight: 300;
    line-height: 1.2;
    color: var(--zanco-dark);
    transition: color var(--zanco-transition-normal);
    margin-bottom: 16px;
}

.article-card .article-excerpt {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--zanco-dark);
    opacity: 0.7;
    margin-bottom: 20px;
}

.article-card .article-link {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--zanco-dark);
    transition: color var(--zanco-transition-normal);
}

.article-card:hover .article-link {
    color: var(--zanco-gold);
}

.article-card .article-link i {
    margin-left: 12px;
    transition: transform var(--zanco-transition-normal);
}

.article-card:hover .article-link i {
    transform: translateX(8px);
}

/* Mobile View All Button */
.mobile-view-all {
    text-align: center;
    margin-top: 64px;
}

/* Responsive Journal Grid */
@media (max-width: 1024px) {
    .article-card h3 {
        font-size: 24px;
    }
    
    .article-card .article-image {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .journal-grid-section .section-header,
    [data-name="Journal Grid"] .wp-block-columns:first-child {
        margin-bottom: 48px;
        text-align: center;
    }
    
    .article-card .article-image {
        height: 220px;
    }
    
    .article-card h3 {
        font-size: 22px;
    }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.zanco-faq-section,
.zanco-faq-item {
    /* Base styles */
}

.zanco-faq-item {
    background: var(--zanco-white);
    padding: 32px 40px;
    margin-bottom: 24px;
    transition: box-shadow var(--zanco-transition-normal);
}

.zanco-faq-item:hover {
    box-shadow: var(--zanco-shadow-md);
}

.zanco-faq-item h3 {
    font-family: var(--zanco-font-serif);
    font-size: 24px;
    font-weight: 300;
    color: var(--zanco-dark);
    margin-bottom: 16px;
}

/* Shortcode accordion: heading sits in a flex row with the toggle — block margin reads as “extra” padding when closed */
.zanco-faq-item h3.zanco-faq-title {
    margin-bottom: 0;
}

/* Accordion shortcode layout (matches inline FAQ styles — row header, no extra column height when closed) */
.zanco-faq-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.zanco-faq-list > .zanco-faq-item {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
}

.zanco-faq-list .zanco-faq-question {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.zanco-faq-list .zanco-faq-title {
    flex: 1 1 auto;
    min-width: 0;
}

.zanco-faq-list .zanco-faq-toggle {
    flex-shrink: 0;
    align-self: center;
    line-height: 1;
    padding: 0 0 0 8px;
}

/* If wpautop still wrapped the toggle in <p>, flatten it for flex layout */
.zanco-faq-list .zanco-faq-question p:has(.zanco-faq-toggle) {
    margin: 0;
    padding: 0;
    display: contents;
}

.zanco-faq-list .zanco-faq-item > p:empty,
.zanco-faq-list .zanco-faq-answer > p:empty,
.zanco-faq-list .zanco-faq-content p:empty {
    display: none;
}

.zanco-faq-list .zanco-faq-item > .zanco-faq-answer {
    display: none;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.zanco-faq-list .zanco-faq-item.active > .zanco-faq-answer {
    display: block;
    padding-top: 16px;
}

.zanco-faq-item p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--zanco-dark);
    opacity: 0.7;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .zanco-faq-item {
        padding: 24px;
    }
    
    .zanco-faq-item h3 {
        font-size: 20px;
    }
    
    .zanco-faq-item p {
        font-size: 15px;
    }
}

/* ==========================================================================
   CTA Consultation Section
   ========================================================================== */

.cta-consultation-section,
[data-name="CTA Consultation"] {
    text-align: center;
}

.cta-consultation-section h2,
[data-name="CTA Consultation"] h2 {
    font-family: var(--zanco-font-serif);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 300;
    line-height: 1.1;
    color: var(--zanco-dark);
    margin-bottom: 32px;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

.cta-consultation-section p,
[data-name="CTA Consultation"] p {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--zanco-dark);
    opacity: 0.7;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
}

/* Responsive CTA */
@media (max-width: 768px) {
    .cta-consultation-section h2,
    [data-name="CTA Consultation"] h2 {
        font-size: 32px;
    }
    
    .cta-consultation-section p,
    [data-name="CTA Consultation"] p {
        font-size: 18px;
    }
}

/* ==========================================================================
   SEO Intro Section
   ========================================================================== */

.seo-intro-section,
[data-name="SEO Intro"] {
    text-align: center;
    padding-top: 96px;
    padding-bottom: 0;
}

.seo-intro-section h2,
[data-name="SEO Intro"] h2 {
    font-family: var(--zanco-font-serif);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 300;
    line-height: 1.1;
    color: var(--zanco-dark);
    margin-bottom: 32px;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

.seo-intro-section p,
[data-name="SEO Intro"] p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--zanco-dark);
    opacity: 0.8;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive SEO Intro */
@media (max-width: 768px) {
    .seo-intro-section,
    [data-name="SEO Intro"] {
        padding-top: 64px;
        padding-bottom: 0;
    }
    
    .seo-intro-section h2,
    [data-name="SEO Intro"] h2 {
        font-size: 32px;
    }
    
    .seo-intro-section p,
    [data-name="SEO Intro"] p {
        font-size: 16px;
    }
}

/* ==========================================================================
   Partner Logos Strip
   ========================================================================== */

.partner-logos-section {
    text-align: center;
}

.partner-logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
    align-items: center;
}

.partner-logo {
    opacity: 0.4;
    transition: opacity var(--zanco-transition-normal);
}

.partner-logo:hover {
    opacity: 0.7;
}

.partner-logo p {
    font-family: var(--zanco-font-serif);
    font-size: 24px;
    font-weight: 300;
    color: var(--zanco-dark);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.opacity-40 {
    opacity: 0.4;
}

.opacity-60 {
    opacity: 0.6;
}

.opacity-70 {
    opacity: 0.7;
}

.opacity-80 {
    opacity: 0.8;
}

/* ==========================================================================
   Single Post Template Styles
   ========================================================================== */

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.post-meta .wp-block-group {
    display: flex;
    align-items: center;
}

.post-tags {
    margin-top: 64px;
}

.post-tags .wp-block-post-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.post-tags .wp-block-post-terms a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--zanco-ivory);
    border: 1px solid var(--zanco-gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--zanco-dark);
    transition: all var(--zanco-transition-normal);
}

.post-tags .wp-block-post-terms a:hover {
    border-color: var(--zanco-gold);
    color: var(--zanco-gold);
}

/* Post Share Section */
.post-share {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--zanco-gray);
}

.post-share .wp-block-social-links {
    display: flex;
    gap: 16px;
}

.post-share .wp-social-link {
    width: 44px;
    height: 44px;
    border: 1px solid var(--zanco-gray);
    border-radius: 0;
    background: transparent;
    color: var(--zanco-dark);
    transition: all var(--zanco-transition-normal);
}

.post-share .wp-social-link:hover {
    border-color: var(--zanco-gold);
    color: var(--zanco-gold);
}

/* Post Navigation */
.post-navigation {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--zanco-gray);
}

.post-navigation .wp-block-columns {
    gap: 32px;
}

.post-navigation .wp-block-post-navigation-link {
    display: flex;
    flex-direction: column;
}

.post-navigation .wp-block-post-navigation-link a {
    color: var(--zanco-dark);
    text-decoration: none;
    transition: color var(--zanco-transition-normal);
}

.post-navigation .wp-block-post-navigation-link a:hover {
    color: var(--zanco-gold);
}

.post-navigation .post-navigation-link__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--zanco-taupe);
    margin-bottom: 8px;
}

.post-navigation .post-navigation-link__title {
    font-family: var(--zanco-font-serif);
    font-size: 18px;
    font-weight: 400;
}

/* Author Box */
.author-box {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--zanco-gray);
}

.author-box .wp-block-columns {
    align-items: flex-start;
    gap: 24px;
}

.author-box .wp-block-post-author-avatar img {
    border-radius: 50%;
}

.author-box .wp-block-post-author-name {
    font-family: var(--zanco-font-serif);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 8px;
}

.author-box .wp-block-post-author-biography {
    font-size: 14px;
    line-height: 1.7;
    color: var(--zanco-taupe);
}

/* Related Posts */
.related-posts {
    margin-top: 80px;
}

.related-posts h2 {
    font-family: var(--zanco-font-serif);
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 48px;
}

/* Responsive Single Post */
@media (max-width: 1024px) {
    .post-navigation .wp-block-columns {
        flex-direction: column;
        gap: 24px;
    }
    
    .post-navigation .wp-block-column {
        text-align: left;
    }
    
    .post-navigation .wp-block-column:last-child {
        text-align: right;
    }
}

@media (max-width: 768px) {
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-navigation .wp-block-column,
    .post-navigation .wp-block-column:last-child {
        text-align: center;
    }
    
    .author-box .wp-block-columns {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .related-posts h2 {
        font-size: 28px;
        text-align: center;
    }
}

/* ==========================================================================
   Page Template Styles
   ========================================================================== */

.has-page-content {
    max-width: 800px;
    margin: 0 auto;
}

.has-page-content .wp-block-post-title {
    text-align: left;
    margin-bottom: 48px;
}

/* Page Featured Image */
.wp-block-post-featured-image {
    margin-bottom: 80px;
}

.wp-block-post-featured-image img {
    width: 100%;
    height: auto;
}

/* Responsive Page Template */
@media (max-width: 768px) {
    .has-page-content {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .has-page-content .wp-block-post-title {
        text-align: center;
    }
}

/* ==========================================================================
   Archive Template Styles
   ========================================================================== */

.archive-header {
    margin-bottom: 64px;
}

.archive-header .wp-block-query-title {
    font-family: var(--zanco-font-serif);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 300;
    line-height: 1.2;
    color: var(--zanco-dark);
}

.archive-header .wp-block-term-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--zanco-taupe);
    margin-top: 24px;
}

/* Archive Posts Grid */
.wp-block-query .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

/*
 * Services CPT archive: core may output is-layout-flex / inline layout that beats the rule above.
 * Body class is always present even if Site Editor strips .zanco-services-archive from <main>.
 */
body.post-type-archive-service .wp-block-query .wp-block-post-template,
body.post-type-archive-service .wp-block-query ul.wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: clamp(1.5rem, 3vw, 2rem) !important;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: unset !important;
    flex-wrap: unset !important;
}

body.post-type-archive-service .wp-block-post-template > .wp-block-post,
body.post-type-archive-service .wp-block-post-template > li {
	/* Do not set width: auto — it breaks core flex columns-3 and can confuse grid tracks. */
	min-width: 0 !important;
}

/* Archive Pagination */
.wp-block-query-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 80px;
}

.wp-block-query-pagination a,
.wp-block-query-pagination span {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--zanco-dark);
    text-decoration: none;
    transition: all var(--zanco-transition-normal);
}

.wp-block-query-pagination a:hover {
    color: var(--zanco-gold);
}

.wp-block-query-pagination .current {
    background: var(--zanco-ivory);
    border: 1px solid var(--zanco-gold);
    color: var(--zanco-gold);
}

.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Archive No Results */
.wp-block-query-no-results {
    text-align: center;
    padding: 80px 0;
}

.wp-block-query-no-results p {
    font-size: 18px;
    color: var(--zanco-taupe);
}

/* Responsive Archive */
@media (max-width: 1024px) {
    .wp-block-query .wp-block-post-template {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Services index: stay 3-up on typical laptop/tablet widths (only stack on small screens below). */
    body.post-type-archive-service .wp-block-query .wp-block-post-template,
    body.post-type-archive-service .wp-block-query ul.wp-block-post-template {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .archive-header {
        text-align: center;
    }
    
    .archive-header .wp-block-query-title {
        font-size: 32px;
    }
    
    .wp-block-query .wp-block-post-template {
        grid-template-columns: 1fr;
    }

    body.post-type-archive-service .wp-block-query .wp-block-post-template,
    body.post-type-archive-service .wp-block-query ul.wp-block-post-template {
        grid-template-columns: 1fr !important;
    }
    
    .wp-block-query-pagination {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   General Post Content Styles
   ========================================================================== */

.entry-content {
    font-size: 16px;
    line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: var(--zanco-font-serif);
    font-weight: 400;
    margin-top: 48px;
    margin-bottom: 24px;
}

.entry-content h1 {
    font-size: 48px;
}

.entry-content h2 {
    font-size: 36px;
}

.entry-content h3 {
    font-size: 28px;
}

.entry-content h4 {
    font-size: 24px;
}

.entry-content p {
    margin-bottom: 24px;
}

.entry-content ul,
.entry-content ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content blockquote {
    border-left: 4px solid var(--zanco-gold);
    padding-left: 24px;
    margin: 48px 0;
    font-family: var(--zanco-font-serif);
    font-size: 24px;
    font-style: italic;
    color: var(--zanco-dark);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 32px 0;
}

.entry-content .alignleft {
    float: left;
    margin-right: 24px;
    margin-bottom: 24px;
}

.entry-content .alignright {
    float: right;
    margin-left: 24px;
    margin-bottom: 24px;
}

.entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.entry-content .alignwide {
    max-width: 1200px;
    margin-left: -200px;
    margin-right: -200px;
}

.entry-content .alignfull {
    max-width: none;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Tables in Content */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
}

.entry-content th,
.entry-content td {
    padding: 16px;
    border: 1px solid var(--zanco-gray);
    text-align: left;
}

.entry-content th {
    background: var(--zanco-ivory);
    font-weight: 500;
}

/* Code Blocks */
.entry-content pre,
.entry-content code {
    font-family: 'Monaco', 'Consolas', monospace;
    background: var(--zanco-ivory);
    padding: 16px;
    font-size: 14px;
    overflow-x: auto;
}

.entry-content code {
    padding: 4px 8px;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.breadcrumbs a {
    color: var(--zanco-taupe);
    text-decoration: none;
    transition: color var(--zanco-transition-normal);
}

.breadcrumbs a:hover {
    color: var(--zanco-gold);
}

.breadcrumbs .separator {
    color: var(--zanco-gray);
}

.breadcrumbs .current {
    color: var(--zanco-dark);
}

/* ==========================================================================
   Comments Styles
   ========================================================================== */

.comments-area {
    margin-top: 80px;
    padding-top: 64px;
    border-top: 1px solid var(--zanco-gray);
}

.comments-title {
    font-family: var(--zanco-font-serif);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 48px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .children {
    list-style: none;
    padding-left: 32px;
}

.comment {
    margin-bottom: 32px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-family: var(--zanco-font-serif);
    font-size: 18px;
    font-weight: 400;
}

.comment-metadata {
    font-size: 12px;
    color: var(--zanco-taupe);
    margin-bottom: 16px;
}

.comment-content {
    font-size: 14px;
    line-height: 1.7;
}

.reply {
    margin-top: 16px;
}

.comment-reply-link {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--zanco-gold);
    text-decoration: none;
    transition: color var(--zanco-transition-normal);
}

.comment-reply-link:hover {
    color: var(--zanco-dark);
}

/* Comment Form */
.comment-respond {
    margin-top: 64px;
}

.comment-reply-title {
    font-family: var(--zanco-font-serif);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 32px;
}

.comment-form label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    color: var(--zanco-dark);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--zanco-gray);
    background: var(--zanco-white);
    font-family: var(--zanco-font-sans);
    font-size: 14px;
    margin-bottom: 24px;
    transition: border-color var(--zanco-transition-normal);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--zanco-gold);
}

.comment-form .submit {
    background: var(--zanco-gold);
    color: var(--zanco-white);
    border: none;
    padding: 16px 32px;
    font-family: var(--zanco-font-sans);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    cursor: pointer;
    transition: background var(--zanco-transition-normal);
}

.comment-form .submit:hover {
    background: var(--zanco-dark);
}

/* ==========================================================================
   Sidebar Widget Styles
   ========================================================================== */

.widget {
    margin-bottom: 48px;
}

.widget-title {
    font-family: var(--zanco-font-serif);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--zanco-gray);
}

.widget ul,
.widget ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 12px 0;
    border-bottom: 1px solid var(--zanco-gray);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--zanco-dark);
    text-decoration: none;
    transition: color var(--zanco-transition-normal);
}

.widget a:hover {
    color: var(--zanco-gold);
}

/* Search Widget */
.widget_search .search-form {
    display: flex;
    gap: 8px;
}

.widget_search .search-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--zanco-gray);
    background: var(--zanco-white);
    font-size: 14px;
}

.widget_search .search-submit {
    background: var(--zanco-gold);
    color: var(--zanco-white);
    border: none;
    padding: 12px 24px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background var(--zanco-transition-normal);
}

.widget_search .search-submit:hover {
    background: var(--zanco-dark);
}

/* Property archive / single (aligns with html/Properties_index.html & Property_details.html) */

.zanco-property-archive .zanco-property-filter-card {
    position: sticky;
    top: calc(var(--wp--preset--spacing--section, 128px) * 0.35);
}

@media (max-width: 781px) {
    .zanco-property-archive .zanco-property-archive__sidebar {
        flex-basis: 100% !important;
    }
}

.zanco-property-single__featured img,
.zanco-property-single__featured .wp-block-post-featured-image__image {
    width: 100%;
    display: block;
    min-height: min(60vh, 720px);
    object-fit: cover;
}

/* ==========================================================================
   Search & 404 (PHP templates)
   ========================================================================== */

.zanco-search-page,
.zanco-error-page {
    padding-inline: clamp(1rem, 4vw, 1.5rem);
    padding-block: clamp(2rem, 6vw, 4rem);
}

.zanco-search-page .zanco-section-title,
.zanco-error-page .zanco-section-title {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    word-break: break-word;
    hyphens: auto;
    margin-bottom: 1.25rem;
}

.zanco-search-page article {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--zanco-gray);
}

.zanco-search-page article:last-of-type {
    border-bottom: none;
}

.zanco-search-page article h2 {
    font-size: clamp(1.15rem, 3.5vw, 1.35rem);
    margin: 0 0 0.35rem;
}

.zanco-search-page article h2 a {
    color: var(--zanco-dark);
    text-decoration: none;
    padding: 0.25rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.zanco-search-page article h2 a:hover,
.zanco-search-page article h2 a:focus-visible {
    color: var(--zanco-gold);
}

.zanco-search-page .navigation.pagination {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.zanco-search-page .navigation.pagination a,
.zanco-search-page .navigation.pagination span {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
}

.zanco-error-page .zanco-btn {
    min-height: 48px;
    padding-inline: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Scroll to top — shares .hero-carousel-next; darker icon for light-page contrast (pin: scripts.js)
   ========================================================================== */

.zanco-scroll-top.hero-carousel-next {
    box-sizing: border-box;
    margin: 0;
    /* Global styles / theme.json can tie carousel ivory to .hero-carousel-next — force dark glyph. */
    color: var(--zanco-dark, #1b2d4a) !important;
    border-color: var(--zanco-dark, #1b2d4a) !important;
    transition: background var(--zanco-transition-normal), color var(--zanco-transition-normal), border-color var(--zanco-transition-normal), transform var(--zanco-transition-fast), opacity 0.28s ease, visibility 0.28s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
}

.zanco-scroll-top.hero-carousel-next svg,
.zanco-scroll-top.hero-carousel-next svg polyline {
    color: var(--zanco-dark, #1b2d4a) !important;
    stroke: var(--zanco-dark, #1b2d4a) !important;
}

.zanco-scroll-top.hero-carousel-next:hover {
    border-color: var(--zanco-dark, #1b2d4a) !important;
}

.zanco-scroll-top.hero-carousel-next:hover svg,
.zanco-scroll-top.hero-carousel-next:hover svg polyline {
    color: var(--zanco-dark, #1b2d4a) !important;
    stroke: var(--zanco-dark, #1b2d4a) !important;
}

.zanco-scroll-top.hero-carousel-next.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.zanco-scroll-top.hero-carousel-next.is-visible:hover {
    transform: translateY(-1px);
}

.zanco-scroll-top.hero-carousel-next.is-visible:active {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .zanco-scroll-top.hero-carousel-next {
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .zanco-scroll-top.hero-carousel-next.is-visible:hover {
        transform: none;
    }
}
