/*
Theme Name:   NCG Theme
Description:  Novara Consulting Group. Standalone theme — Rural Modern aesthetics & WCAG 2.2 AAA accessibility. (No parent theme required.)
Author:       Novara Consulting Group
Version:      8.0.0
*/

:root {
    /* -----------------------------------------------------------
       1. COLOR PALETTE (Rural Modern)
       High Contrast Ratios Verified.
    ----------------------------------------------------------- */
    
    /* BRAND COLORS */
    --ncg-color-primary:      #23312C; /* Deep Norwood Pine (Almost Black Green) */
    --ncg-color-secondary:    #5A6B63; /* Slate Green (Darkened for visibility) */
    --ncg-color-accent:       #C89B7B; /* Warm Clay/Copper */
    
    /* TYPOGRAPHY COLORS (High Contrast) */
    --ncg-color-heading:      #050505; /* Pure Black for Headings */
    --ncg-color-body:         #111111; /* Near Black for Body Text (Was Grey) */
    --ncg-color-muted:        #444444; /* Dark Grey (Never light grey) */
    
    /* SURFACES */
    --ncg-color-bg-paper:     #F9F8F4; /* Warm Off-White (Reduces Eye Strain) */
    --ncg-color-bg-surface:   #FFFFFF; /* Pure White */
    --ncg-color-border:       #767676; /* Mid-Grey for Accessible Borders (3:1 ratio) */
    
    /* SPACING & UI */
    --ncg-spacing-sm:         1rem;
    --ncg-spacing-md:         2rem;
    --ncg-radius-md:          8px;
    --ncg-shadow-soft:        0 4px 20px rgba(0,0,0,0.12);
    --ncg-transition:         all 0.2s ease-in-out;
}

/* -----------------------------------------------------------
   2. GLOBAL TYPOGRAPHY & RESET
   ----------------------------------------------------------- */
body {
    background-color: var(--ncg-color-bg-paper);
    color: var(--ncg-color-body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500; /* Increased weight for legibility */
    line-height: 1.6;
    font-size: 18px; /* Larger base font size for accessibility */
    -webkit-font-smoothing: antialiased;
}

/* Headings: Playfair Display (Serif) */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--ncg-color-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

/* Make links distinct and accessible */
a {
    color: var(--ncg-color-primary);
    text-decoration: underline; /* Underline is critical for color-blind users */
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: var(--ncg-transition);
}

a:hover, a:focus {
    color: var(--ncg-color-accent);
    text-decoration-thickness: 2px;
    background-color: rgba(200, 155, 123, 0.1); /* Highlight on hover */
}

/* Keyboard Focus State (Critical) */
:focus-visible {
    outline: 3px solid var(--ncg-color-accent);
    outline-offset: 2px;
}

/* Force stronger contrast on generic text containers */
p, li, span, div {
    color: var(--ncg-color-body);
}

/* -----------------------------------------------------------
   3. COMPONENT: SERVICE CARDS (High Contrast / Dark Mode)
   Priority: Accessibility (White Text on Dark Green)
   ----------------------------------------------------------- */

/* ==========================================================================
   COMPONENT: HOMEPAGE SERVICE GRID (Dark Cards)
   ========================================================================== */

/* The Grid Container */
.ncg-svc-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive */
    gap: 24px;
    width: 100%;
}

/* The Card (Clickable) */
.ncg-svc-card {
    display: flex;
    flex-direction: column;
    background-color: #2A3B35; /* Deep Pine */
    border: 1px solid #3E524B;
    border-radius: 8px;
    padding: 32px;
    text-decoration: none !important; /* Remove link underline on container */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    height: 100%; /* Equal height columns */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Hover State */
.ncg-svc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
    border-color: #C89B7B; /* Copper highlight */
    background-color: #23312C; /* Slightly darker */
}

/* Icon */
.ncg-svc-icon {
    font-size: 2rem;
    color: #C89B7B; /* Copper */
    margin-bottom: 20px;
}
.ncg-svc-icon .dashicons {
    width: auto;
    height: auto;
    font-size: 32px;
}

/* Title */
.ncg-svc-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 12px 0;
}

/* Excerpt Text */
.ncg-svc-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #E0E0E0; /* Off-White */
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

/* "Explore" Link Pseudo-Button */
.ncg-svc-link {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #C89B7B;
    transition: color 0.2s;
}

.ncg-svc-card:hover .ncg-svc-link {
    color: #FFFFFF;
}

/* ==========================================================================
   COMPONENT: SERVICE ACCORDION (High Contrast / Dark Mode)
   Priority: Rural Modern Aesthetics + WCAG AAA Accessibility
   ========================================================================== */

/* 1. THE WRAPPER */
body .ncg-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between cards */
    width: 100%;
}

/* 2. THE CARD (Default State) */
body .ncg-acc-item {
    /* Background: Deep Norwood Pine */
    background-color: #2A3B35 !important;
    
    /* Text Color: Pure White for maximum contrast */
    color: #FFFFFF !important;
    
    /* Borders */
    border: 1px solid #3E524B !important; /* Subtle framing */
    border-left: 8px solid #C89B7B !important; /* Copper Spine - The "Tab" look */
    
    /* Shape */
    border-radius: 8px !important;
    overflow: hidden;
    
    /* Transitions */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Depth */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

/* 3. HOVER STATE */
body .ncg-acc-item:hover {
    /* Lift Effect */
    transform: translateY(-4px);
    
    /* Shadow grows */
    box-shadow: 0 12px 24px rgba(0,0,0,0.2) !important;
    
    /* Background darkens slightly for focus */
    background-color: #23312C !important;
    
    /* Spine highlights to White for immediate feedback */
    border-left-color: #FFFFFF !important; 
}

/* 4. ACTIVE STATE (When Expanded) */
body .ncg-acc-item.active {
    background-color: #23312C !important;
    border-left-color: #FFFFFF !important; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

/* 5. TRIGGER BUTTON (Click Area) */
body .ncg-acc-trigger {
    width: 100%;
    padding: 24px 32px;
    background: transparent !important;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    outline: none;
}

/* Keyboard Focus (Critical for Accessibility) */
body .ncg-acc-trigger:focus-visible {
    background-color: rgba(255,255,255,0.05) !important;
    outline: 2px solid #C89B7B;
    outline-offset: -2px;
}

/* 6. TYPOGRAPHY */

/* Title */
body .ncg-acc-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF !important;
    letter-spacing: 0.02em;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Lifts text off dark bg */
}

/* Icon (+ / -) */
body .ncg-acc-icon {
    font-size: 2rem;
    line-height: 1;
    font-weight: 300;
    color: #C89B7B !important; /* Copper Icon */
    margin-left: 20px;
    transition: transform 0.3s ease;
}

/* Rotate icon on hover */
body .ncg-acc-item:hover .ncg-acc-icon {
    color: #FFFFFF !important;
    transform: scale(1.1);
}

/* 7. CONTENT PANEL (Hidden Area) */
body .ncg-acc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background-color: rgba(0,0,0,0.1); /* Slightly darker inner bay */
    border-top: 1px solid rgba(255,255,255,0.1); /* Subtle divider */
}

/* Content Padding & Text */
body .ncg-acc-content {
    padding: 30px;
    color: #E0E0E0 !important; /* Off-White for readability (reduces glare) */
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Force inner elements to respect contrast */
body .ncg-acc-content p, 
body .ncg-acc-content li, 
body .ncg-acc-content span {
    color: #E0E0E0 !important;
}

/* Links inside the card */
body .ncg-acc-content a {
    color: #C89B7B !important;
    text-decoration: underline;
    font-weight: 600;
}

body .ncg-acc-content a:hover {
    color: #FFFFFF !important;
    background-color: transparent;
}

/* 8. FOOTER (Related Resources) */
body .ncg-acc-related {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

body .ncg-acc-related h5 {
    color: #AAB7B2 !important; /* Muted Sage Green */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

body .ncg-note {
    color: #CCCCCC !important;
    font-style: italic;
    opacity: 0.8;
}

/* -----------------------------------------------------------
   4. COMPONENT: TEAM GRID (Accessible Cards)
   ----------------------------------------------------------- */
.ncg-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--ncg-spacing-md);
}

.ncg-team-card {
    background: #FFFFFF;
    /* Solid Border for low vision boundary detection */
    border: 2px solid #E0E0E0; 
    border-radius: var(--ncg-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--ncg-transition);
}

.ncg-team-card:hover {
    border-color: var(--ncg-color-primary); /* Border darkens on hover */
    box-shadow: var(--ncg-shadow-soft);
    transform: translateY(-4px);
}

.ncg-team-photo-wrap { padding: 20px 20px 0 20px; }
.ncg-team-photo {
    width: 100%; height: 260px;
    background-size: cover; background-position: center top;
    border-radius: 4px;
    /* Border around image to define it against white background */
    border: 1px solid #CCC; 
    filter: grayscale(100%);
    transition: filter 0.3s;
}
.ncg-team-card:hover .ncg-team-photo { filter: grayscale(0%); }

.ncg-team-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.ncg-team-name { font-size: 1.4rem; color: var(--ncg-color-heading); margin: 0 0 5px 0; }
.ncg-team-role { font-size: 0.9rem; text-transform: uppercase; color: var(--ncg-color-primary); font-weight: 700; margin-bottom: 15px; }
.ncg-team-bio { font-size: 1rem; color: var(--ncg-color-body); margin-bottom: 15px; }

/* Contact Block */
.ncg-team-contact-block {
    margin-top: auto;
    padding-top: 15px;
    border-top: 2px solid #F0F0F0;
    font-size: 0.9rem;
}
.ncg-contact-link { display: block; font-weight: 600; margin-bottom: 4px; }
.ncg-team-link { 
    display: inline-block; margin-top: 10px; 
    font-weight: 700; color: var(--ncg-color-primary);
}

/* -----------------------------------------------------------
   5. COMPONENT: DIRECTORY TREE (Folders)
   ----------------------------------------------------------- */
.ncg-directory-root {
    background: #fff;
    border: 2px solid var(--ncg-color-border); /* Thicker border */
    border-radius: var(--ncg-radius-md);
    padding: 20px;
}
.ncg-dir-header {
    cursor: pointer; padding: 12px;
    background: #F9F9F9;
    border-bottom: 1px solid #DDD;
    font-weight: 700; color: var(--ncg-color-primary);
    display: flex; align-items: center;
}
.ncg-dir-header:hover, .ncg-dir-header:focus { 
    background: #EFEFEF; 
    color: var(--ncg-color-accent);
}

.ncg-dir-content { display: none; padding-left: 20px; border-left: 4px solid #DDD; margin-left: 10px; }
.ncg-dir-folder.open > .ncg-dir-content { display: block; }

.ncg-dir-files { list-style: none; padding: 10px 0; margin: 0; }
.ncg-dir-files li { margin-bottom: 8px; }
.ncg-dir-files li a {
    display: block; padding: 8px;
    color: var(--ncg-color-body);
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
}
.ncg-dir-files li a:hover, .ncg-dir-files li a:focus {
    background-color: #F0F0F0;
    color: var(--ncg-color-primary);
    text-decoration: underline;
}

/* -----------------------------------------------------------
   6. COMPONENT: NEWSLETTER STRIP
   ----------------------------------------------------------- */
.ncg-subscribe-box {
    display: flex; align-items: center; justify-content: space-between;
    gap: 30px; padding: 40px 0;
    border-top: 2px solid var(--ncg-color-border);
}
.ncg-sub-text { flex: 1; }
.ncg-sub-text h4 { margin: 0 0 8px 0; font-size: 1.4rem; color: var(--ncg-color-primary); }
.ncg-sub-text p { margin: 0; color: var(--ncg-color-muted); font-size: 1rem; }

.ncg-sub-form { flex: 1; max-width: 500px; }
.ncg-input-group { display: flex; gap: 10px; }
.ncg-input-group input {
    flex: 1; padding: 14px;
    border: 2px solid #767676; /* High contrast border */
    border-radius: 4px;
    font-size: 1rem;
    color: #000;
}
.ncg-input-group input:focus { border-color: var(--ncg-color-primary); }

.ncg-input-group button {
    padding: 14px 28px;
    background: var(--ncg-color-primary);
    color: #FFF;
    border: none; border-radius: 4px;
    font-weight: 700; cursor: pointer; white-space: nowrap;
    font-size: 1rem;
}
.ncg-input-group button:hover { background: var(--ncg-color-secondary); }

@media (max-width: 768px) {
    .ncg-subscribe-box { flex-direction: column; align-items: flex-start; }
    .ncg-sub-form { width: 100%; }
}

/* -----------------------------------------------------------
   7. COMPONENT: SOCIAL GRID (3-Column)
   ----------------------------------------------------------- */
.ncg-social-grid-wrapper {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 25px; margin: 40px 0;
}
.ncg-social-card {
    background: #FFFFFF;
    border: 2px solid #E0E0E0; /* Solid border */
    border-radius: 12px;
    padding: 25px;
    display: flex; flex-direction: column;
    transition: transform 0.3s ease;
}
.ncg-social-card:hover {
    transform: translateY(-5px);
    border-color: var(--ncg-color-secondary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.ncg-social-header {
    display: flex; align-items: center;
    margin-bottom: 15px; padding-bottom: 15px;
    border-bottom: 2px solid #F0F0F0;
}
.ncg-social-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-right: 15px; flex-shrink: 0;
}
.ncg-social-meta { display: flex; flex-direction: column; font-size: 0.9rem; }
.ncg-handle { font-weight: 700; color: var(--ncg-color-primary); }
.ncg-date { color: var(--ncg-color-muted); font-size: 0.8rem; }

.ncg-social-body { flex-grow: 1; margin-bottom: 20px; }
.ncg-social-body p { font-size: 1rem; color: var(--ncg-color-body); line-height: 1.5; margin: 0; }

.ncg-social-footer a {
    font-size: 0.9rem; font-weight: 700;
    color: var(--ncg-color-accent); text-decoration: none;
}
.ncg-social-footer a:hover { color: var(--ncg-color-primary); text-decoration: underline; }

@media (max-width: 900px) {
    .ncg-social-grid-wrapper { grid-template-columns: 1fr; }
}

/* ==========================================================================
   EMERGENCY OVERRIDE: FORCE DARK SERVICE CARDS
   ========================================================================== */

/* 1. Force the Main Card Background */
body .ncg-accordion-wrapper .ncg-acc-item {
    background-color: #2A3B35 !important; /* Deep Pine */
    border: 1px solid #3E524B !important;
    border-left: 8px solid #C89B7B !important; /* Copper Spine */
}

/* 2. Force the Expanded Panel Background (often the culprit) */
body .ncg-accordion-wrapper .ncg-acc-panel {
    background-color: #2A3B35 !important; /* Match Parent */
    color: #E0E0E0 !important;
}

/* 3. Force the Inner Content Box Background */
body .ncg-accordion-wrapper .ncg-acc-content {
    background-color: transparent !important; /* Let the Pine show through */
    color: #E0E0E0 !important;
}

/* 4. Kill any white backgrounds on paragraphs inside */
body .ncg-accordion-wrapper .ncg-acc-content p,
body .ncg-accordion-wrapper .ncg-acc-content div,
body .ncg-accordion-wrapper .ncg-acc-content li {
    background-color: transparent !important;
    color: #E0E0E0 !important;
}

/* 5. Ensure the Title is White */
body .ncg-accordion-wrapper .ncg-acc-title {
    color: #FFFFFF !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ==========================================================================
   EMERGENCY FIXES: CONTACT & LAYOUTS
   ========================================================================== */

/* 1. CONTACT FORM STYLING (High Visibility) */
.ncg-web-form {
    width: 100%;
    max-width: 500px;
}

.ncg-form-group {
    margin-bottom: 20px;
}

.ncg-form-group label {
    display: block;
    font-weight: 700;
    color: #23312C; /* Dark Pine */
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ncg-form-group input,
.ncg-form-group textarea {
    width: 100%;
    padding: 15px;
    background: #FFFFFF !important; /* Force White Background */
    border: 2px solid #23312C !important; /* Solid Dark Border */
    color: #000000 !important; /* Black Text */
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.ncg-form-group input:focus,
.ncg-form-group textarea:focus {
    outline: none;
    border-color: #C89B7B !important; /* Copper Focus */
    box-shadow: 0 0 0 4px rgba(200, 155, 123, 0.2);
}

.ncg-submit-btn {
    display: inline-block;
    background: #23312C;
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
    width: 100%;
}

.ncg-submit-btn:hover {
    background: #C89B7B;
}

.ncg-alert.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 5px solid #28a745;
}

/* 2. SERVICES ACCORDION REPAIR */
/* Ensure the shortcode wrapper doesn't collapse */
.ncg-accordion-wrapper {
    display: block;
    width: 100%;
}

/* ==========================================================================
   EMERGENCY FIX: CONTACT FORM INPUTS
   Priority: Visibility & Contrast
   ========================================================================== */

.ncg-web-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.ncg-form-group {
    margin-bottom: 25px;
}

/* 1. Force Labels to be Visible (Dark Pine) */
.ncg-form-group label {
    display: block;
    font-weight: 800;
    color: #23312C !important; 
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 2. Force Inputs to be White Box with Black Text */
.ncg-form-group input,
.ncg-form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: #FFFFFF !important; /* Pure White Background */
    color: #000000 !important; /* Pure Black Text */
    border: 2px solid #ccc !important; /* Visible Grey Border */
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    box-shadow: none;
}

/* 3. Placeholder Text (Dark Grey) */
.ncg-form-group input::placeholder,
.ncg-form-group textarea::placeholder {
    color: #666 !important;
    opacity: 1;
}

/* 4. Focus State (Copper) */
.ncg-form-group input:focus,
.ncg-form-group textarea:focus {
    border-color: #C89B7B !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 155, 123, 0.2) !important;
}

/* 5. Button */
.ncg-submit-btn {
    display: block;
    width: 100%;
    background-color: #23312C !important;
    color: #ffffff !important;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 1rem;
}
.ncg-submit-btn:hover {
    background-color: #C89B7B !important;
}

/* ==========================================================================
   SITE HEADER — logo sizing + accessibility-theme reverse logo
   The logo is uploaded via Customizer → Site Identity (hello-elementor
   renders it as .custom-logo). The navy wordmark would disappear on the
   Dark / High-Contrast headers, so we swap in the reverse (white) logo and
   give the header a dark backdrop in those themes. These rules also keep the
   header legible in dark themes even before a logo is uploaded (light title
   text on a dark bar).
   ========================================================================== */

/* Cap the wide wordmark so it fits the header bar, next to the menu. */
.site-header .custom-logo-link { display: inline-flex; align-items: center; }
.site-header .custom-logo { height: 50px; width: auto; display: block; }
@media (max-width: 600px) { .site-header .custom-logo { height: 40px; } }

/* --- Dark theme --- */
html[data-ncg-theme="dark"] .site-header { background-color: #16211B; }
html[data-ncg-theme="dark"] .site-header .site-navigation .menu a,
html[data-ncg-theme="dark"] .site-footer .site-navigation .menu a,
html[data-ncg-theme="dark"] .site-header .site-title a { color: #E6E9E7; }
html[data-ncg-theme="dark"] .site-header .custom-logo { visibility: hidden; }
html[data-ncg-theme="dark"] .site-header .custom-logo-link {
    background: url('assets/img/ncg-logo-white.png') left center / contain no-repeat;
}

/* --- High-Contrast theme --- */
html[data-ncg-theme="high-contrast"] .site-header { background-color: #000; }
html[data-ncg-theme="high-contrast"] .site-header .site-navigation .menu a,
html[data-ncg-theme="high-contrast"] .site-footer .site-navigation .menu a,
html[data-ncg-theme="high-contrast"] .site-header .site-title a { color: #fff; }
html[data-ncg-theme="high-contrast"] .site-header .custom-logo { visibility: hidden; }
html[data-ncg-theme="high-contrast"] .site-header .custom-logo-link {
    background: url('assets/img/ncg-logo-white.png') left center / contain no-repeat;
}

/* ==========================================================================
   HEADER NAVIGATION — clean links (no underline) + copper hover/active
   Body links keep their underline (accessibility); this only polishes the
   header menu.
   ========================================================================== */
.site-header .site-navigation ul.menu > li > a,
.site-footer .site-navigation ul.menu > li > a {
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.site-header .site-navigation ul.menu > li > a:hover,
.site-header .site-navigation ul.menu > li > a:focus-visible,
.site-header .site-navigation ul.menu > li.current-menu-item > a,
.site-footer .site-navigation ul.menu > li > a:hover,
.site-footer .site-navigation ul.menu > li > a:focus-visible,
.site-footer .site-navigation ul.menu > li.current-menu-item > a {
    text-decoration: none;
    color: var(--ncg-color-accent, #C89B7B);
    border-bottom-color: var(--ncg-color-accent, #C89B7B);
}
/* High-Contrast: keep the hover/active indicator white for maximum contrast. */
html[data-ncg-theme="high-contrast"] .site-header .site-navigation ul.menu > li > a:hover,
html[data-ncg-theme="high-contrast"] .site-header .site-navigation ul.menu > li > a:focus-visible,
html[data-ncg-theme="high-contrast"] .site-header .site-navigation ul.menu > li.current-menu-item > a,
html[data-ncg-theme="high-contrast"] .site-footer .site-navigation ul.menu > li > a:hover,
html[data-ncg-theme="high-contrast"] .site-footer .site-navigation ul.menu > li > a:focus-visible,
html[data-ncg-theme="high-contrast"] .site-footer .site-navigation ul.menu > li.current-menu-item > a {
    color: #fff;
    border-bottom-color: #fff;
}
/* Dark theme: hover/active in a lighter copper so it stays legible on the
   dark header (#16211B) while keeping the brand accent. */
html[data-ncg-theme="dark"] .site-header .site-navigation ul.menu > li > a:hover,
html[data-ncg-theme="dark"] .site-header .site-navigation ul.menu > li > a:focus-visible,
html[data-ncg-theme="dark"] .site-header .site-navigation ul.menu > li.current-menu-item > a,
html[data-ncg-theme="dark"] .site-footer .site-navigation ul.menu > li > a:hover,
html[data-ncg-theme="dark"] .site-footer .site-navigation ul.menu > li > a:focus-visible,
html[data-ncg-theme="dark"] .site-footer .site-navigation ul.menu > li.current-menu-item > a {
    color: #E4BE97;
    border-bottom-color: #E4BE97;
}
/* Keyboard focus: an explicit, theme-aware outline (beyond the colour + underline)
   so the focused menu item is unmistakable for keyboard users — WCAG 2.4.7. */
.site-header .site-navigation ul.menu > li > a:focus-visible,
.site-footer .site-navigation ul.menu > li > a:focus-visible {
    outline: 2px solid var(--ncg-color-accent, #C89B7B);
    outline-offset: 4px;
    border-radius: 2px;
}
html[data-ncg-theme="dark"] .site-header .site-navigation ul.menu > li > a:focus-visible,
html[data-ncg-theme="dark"] .site-footer .site-navigation ul.menu > li > a:focus-visible { outline-color: #E4BE97; }
html[data-ncg-theme="high-contrast"] .site-header .site-navigation ul.menu > li > a:focus-visible,
html[data-ncg-theme="high-contrast"] .site-footer .site-navigation ul.menu > li > a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Footer legal — copyright + trademark notice. */
.site-footer-legal { width: 100%; margin-top: 12px; text-align: center; }
.site-footer-legal p { margin: 2px 0; font-size: 0.82rem; line-height: 1.5; color: var(--ncg-color-muted, #6b726e); }
html[data-ncg-theme="dark"] .site-footer-legal p { color: #9aa39d; }
html[data-ncg-theme="high-contrast"] .site-footer-legal p { color: #fff; }
.footer-legal-links { margin-top: 6px !important; }
.footer-legal-links a { color: inherit; text-decoration: none; }
.footer-legal-links a:hover,
.footer-legal-links a:focus-visible { color: var(--ncg-color-accent, #C89B7B); text-decoration: underline; }
html[data-ncg-theme="high-contrast"] .footer-legal-links a { text-decoration: underline; }

/* ==========================================================================
   Header end group — nav + the top-right Contact CTA button.
   ========================================================================== */
.site-header-end { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); flex-wrap: wrap; }
.ncg-header-cta {
    display: inline-block;
    background: var(--ncg-color-accent, #C89B7B);
    color: #fff;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}
.ncg-header-cta:hover,
.ncg-header-cta:focus-visible { background: #b08566; color: #fff; text-decoration: none; transform: translateY(-1px); }
.ncg-header-cta:focus-visible { outline: 3px solid var(--ncg-color-heading, #23312C); outline-offset: 2px; }
/* Dark: brighter copper text-contrast stays fine on the dark header. */
html[data-ncg-theme="dark"] .ncg-header-cta:focus-visible { outline-color: #E4BE97; }
/* High-Contrast: a bold white button that inverts on hover. */
html[data-ncg-theme="high-contrast"] .ncg-header-cta { background: #fff; color: #000; border: 2px solid #fff; }
html[data-ncg-theme="high-contrast"] .ncg-header-cta:hover,
html[data-ncg-theme="high-contrast"] .ncg-header-cta:focus-visible { background: #000; color: #fff; outline: 3px solid #fff; outline-offset: 2px; }

/* -----------------------------------------------------------
   FIX: dark hero / CTA sections — keep text light
   The global "h1–h6 { color: var(--ncg-color-heading) }" rule
   directly targets every heading and therefore beats the LIGHT
   color these dark sections only pass down by inheritance
   (e.g. .ncg-header-content { color:#fff }). Headings without
   their own explicit color then rendered dark-on-dark ("bleed").
   Re-assert light text inside the known dark blocks. Accent
   spans (.ncg-header-content h1 span { color: var(--c) }) are
   more specific and keep their copper color.
   ----------------------------------------------------------- */
.ncg-header-content h1, .ncg-header-content h2, .ncg-header-content h3,
.ncg-header-content h4, .ncg-header-content p,  .ncg-header-content a,
.ncg-profile-hero h1,   .ncg-profile-hero h2,   .ncg-profile-hero h3,
.ncg-engage-cta h1,     .ncg-engage-cta h2,     .ncg-engage-cta h3,
.ncg-services-cta h1,   .ncg-services-cta h2,   .ncg-services-cta h3,
.ncg-slat-cta h1,       .ncg-slat-cta h2,       .ncg-slat-cta h3 {
    color: #fff;
}
/* Sub-text/paragraphs in those dark blocks stay a soft light grey
   where the template intends it, without going pure-white. */
.ncg-header-content p { color: #e7e7e7; }
