/*
Theme Name: Envera Child
Theme URI: https://enveraconsulting.com
Description: Custom child theme for Envera Consulting - California Air Quality & Energy Compliance
Author: Envera Consulting
Author URI: https://enveraconsulting.com
Template: genesis
Version: 2.17.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: envera-child
*/

/* ==========================================================================
   ENVERA CONSULTING - DESIGN SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --envera-green: #76A642;
    --envera-green-dark: #5e8c32;
    --envera-green-light: #8ab856;
    --envera-green-bright: #9ed45a;
    --envera-green-dim: rgba(118, 166, 66, 0.15);
    
    /* Energy Practice Colors */
    --amber: #C4780A;
    --amber-dark: #9a5d07;
    --amber-light: #E8960C;
    --amber-dim: rgba(196, 120, 10, 0.12);
    --amber-mid: rgba(196, 120, 10, 0.22);
    --green-surface: #0d1a0a;
    --amber-surface: #1a1100;

    /* Neutrals */
    --white: #ffffff;
    --off-white: #f7f8f6;
    --gray-50: #f2f3f1;
    --gray-100: #e4e5e2;
    --gray-200: #c9cbc6;
    --gray-400: #8a8d85;
    --gray-600: #4d504a;
    --gray-800: #262822;
    --gray-900: #141612;
    
    /* Typography */
    --font-heading: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.6875rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-md: 1.0625rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
    --text-3xl: 2.5rem;
    --text-4xl: 3rem;
    --text-5xl: 4rem;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-full: 100px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-green: 0 12px 32px rgba(118, 166, 66, 0.25);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --container-max: 1400px;
    --container-padding: 48px;
    --nav-height: 88px;
}

/* --------------------------------------------------------------------------
   RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden; /* Prevent horizontal scroll - placed here instead of .site-container to not break sticky */
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.15;
    color: var(--gray-900);
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 500;
}

h4 {
    font-size: var(--text-lg);
    font-weight: 500;
}

p {
    color: var(--gray-600);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--envera-green);
}

/* --------------------------------------------------------------------------
   LAYOUT
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.site-inner {
    max-width: none;
    padding: 0;
}

.content-sidebar-wrap {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --------------------------------------------------------------------------
   NAVIGATION - Matching Prototype Exactly
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 48px;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
    background: rgba(20, 22, 18, 0.95);
    backdrop-filter: blur(20px);
}

/* Main header container - logo LEFT, nav RIGHT */
.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo area */
.site-header .title-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header .site-title {
    margin: 0;
    padding: 0;
    font-size: 0;
    line-height: 1;
}

.site-header .site-title a {
    display: block;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    text-decoration: none;
}

/* Logo image - white version for dark/transparent header */
.site-header .custom-logo,
.site-header .custom-logo-link img {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

/* Front page: sticky white nav, logo at natural colors */
body.home .site-header {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

body.home .site-header .custom-logo,
body.home .site-header .custom-logo-link img {
    height: 26px;
    filter: none;
}

body.home .site-header .site-title a {
    color: var(--gray-900);
}

body.home .site-header .nav-primary .nav-menu > li > a {
    color: var(--gray-600);
}

body.home .site-header .nav-primary .nav-menu > li > a:hover {
    color: var(--envera-green);
}

.site-header .custom-logo-link {
    display: block;
    line-height: 1;
}

/* Navigation */
.site-header .nav-primary {
    display: flex;
    align-items: center;
}

.site-header .nav-primary .nav-menu {
    display: flex;
    align-items: center;
    gap: 48px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .nav-primary .nav-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.site-header .nav-primary .nav-menu > li > a {
    display: block;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.site-header .nav-primary .nav-menu > li > a:hover {
    color: var(--envera-green-bright);
}

/* Active menu item */
.site-header .nav-primary .nav-menu > li.current-menu-item > a,
.site-header .nav-primary .nav-menu > li.current-menu-ancestor > a {
    color: var(--envera-green-bright);
}

/* CTA Button - Last menu item "Get in Touch" */
.site-header .nav-primary .nav-menu > li:last-child > a {
    padding: 14px 32px;
    background: var(--envera-green);
    color: var(--white) !important;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.site-header .nav-primary .nav-menu > li:last-child > a:hover {
    background: var(--envera-green-light);
    transform: translateY(-2px);
}

/* Dropdown Menus */
.site-header .nav-primary .nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: -16px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 12px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
}

.site-header .nav-primary .nav-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header .nav-primary .nav-menu .sub-menu li {
    margin: 0;
}

.site-header .nav-primary .nav-menu .sub-menu a {
    display: block;
    padding: 10px 24px;
    color: var(--gray-800);
    font-size: 0.9375rem;
    font-weight: 400;
    transition: all 0.2s ease;
}

.site-header .nav-primary .nav-menu .sub-menu a:hover {
    background: var(--gray-50);
    color: var(--envera-green);
}

/* Light header for interior pages */
body.light-header .site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

body.light-header .site-header .custom-logo,
body.light-header .site-header .custom-logo-link img {
    filter: none;
}

body.light-header .site-header .site-title a {
    color: var(--gray-900);
}

body.light-header .site-header .nav-primary .nav-menu > li > a {
    color: var(--gray-800);
}

body.light-header .site-header .nav-primary .nav-menu > li > a:hover {
    color: var(--envera-green);
}

/* Mobile */
@media (max-width: 1024px) {
    .site-header {
        padding: 0 32px;
    }
    
    .site-header .nav-primary .nav-menu {
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .site-header {
        padding: 0 24px;
    }
    
    .site-header .nav-primary {
        display: none;
    }
}

/* Hide any duplicate Genesis nav outside header */
.site-container > .nav-primary,
.site-header + .nav-primary {
    display: none !important;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn,
.button,
button[type="submit"],
input[type="submit"],
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-slow);
}

.btn-primary,
.wp-block-button__link {
    background: var(--envera-green);
    color: var(--white);
}

.btn-primary:hover,
.wp-block-button__link:hover {
    background: var(--envera-green-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-800);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--envera-green);
    color: var(--envera-green);
}

.btn-white {
    background: var(--white);
    color: var(--gray-900);
}

.btn-white:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   SECTION COMPONENTS
   -------------------------------------------------------------------------- */
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--envera-green);
    margin-bottom: var(--space-lg);
}

.section-header {
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: var(--text-md);
    max-width: 600px;
}

/* --------------------------------------------------------------------------
   CARDS
   -------------------------------------------------------------------------- */
.card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: all var(--transition-slow);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.card-content {
    padding: 28px;
}

.card-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--envera-green-dim);
    color: var(--envera-green-dark);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--gray-900);
    padding: 80px 0 0;
}

.footer-widgets {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 64px;
    padding-bottom: 64px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-site-title {
    color: var(--white);
    font-size: var(--text-lg);
    font-weight: 600;
    text-decoration: none;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.9375rem;
    margin-top: var(--space-lg);
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: var(--space-xl);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: var(--radius-lg);
    color: var(--gray-400);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--envera-green);
    color: var(--white);
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 28px;
}

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

.footer-col li {
    margin-bottom: 14px;
}

.footer-col a {
    color: var(--gray-400);
    font-size: 0.9375rem;
    transition: color var(--transition-base);
}

.footer-col a:hover {
    color: var(--envera-green-light);
}

.footer-address {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-address p {
    color: var(--gray-400);
    font-size: 0.9375rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.footer-bottom p {
    color: var(--gray-600);
    font-size: var(--text-sm);
}

.footer-legal {
    display: flex;
    gap: 32px;
}

.footer-legal a {
    color: var(--gray-600);
    font-size: var(--text-sm);
}

.footer-legal a:hover {
    color: var(--gray-400);
}

/* --------------------------------------------------------------------------
   FORMS (Ninja Forms Styling)
   -------------------------------------------------------------------------- */
.nf-form-cont {
    font-family: var(--font-body);
}

.nf-form-content input[type="text"],
.nf-form-content input[type="email"],
.nf-form-content input[type="tel"],
.nf-form-content input[type="url"],
.nf-form-content textarea,
.nf-form-content select {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: var(--text-base);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--gray-800);
    transition: all var(--transition-fast);
}

.nf-form-content input:focus,
.nf-form-content textarea:focus,
.nf-form-content select:focus {
    outline: none;
    border-color: var(--envera-green);
    box-shadow: 0 0 0 3px var(--envera-green-dim);
}

.nf-form-content input::placeholder,
.nf-form-content textarea::placeholder {
    color: var(--gray-400);
}

.nf-form-content .nf-field-label label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.nf-form-content .ninja-forms-req-symbol {
    color: var(--envera-green);
}

.nf-form-content input[type="submit"],
.nf-form-content button[type="submit"] {
    width: 100%;
    padding: 18px 40px;
    background: var(--envera-green);
    color: var(--white);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-slow);
}

.nf-form-content input[type="submit"]:hover,
.nf-form-content button[type="submit"]:hover {
    background: var(--envera-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

/* --------------------------------------------------------------------------
   SINGLE ARTICLE STYLES
   -------------------------------------------------------------------------- */

/* Force full-width layout - hide sidebar */
.single-article .sidebar,
.single-article .sidebar-primary,
.single-article aside.sidebar {
    display: none !important;
}

.single-article .content-sidebar-wrap {
    display: block;
}

.single-article .content {
    width: 100%;
    max-width: 100%;
    float: none;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 88px;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--envera-green);
    z-index: 999;
    transition: width 0.1s ease;
}

/* Interior pages: precise clearance for fixed header.
   Overrides any Genesis parent padding with a known value. */
body.light-header .site-inner,
body.single-article .site-inner {
    padding-top: var(--nav-height) !important;
}

/* Article Hero — breathing room only, nav clearance handled above */
.single-article .article-hero {
    padding-top: 48px;
}

.single-article .entry-header {
    padding: 0 0 48px;   /* was 120px 0 48px — 120px was doubling the nav offset */
    max-width: 900px;
    margin: 0 auto;
}

.single-article .article-hero-inner {
    max-width: 800px;
}

.single-article .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.single-article .back-link:hover {
    color: var(--envera-green);
}

.single-article .back-link svg {
    width: 20px;
    height: 20px;
}

.single-article .article-tag {
    display: block;
    width: fit-content;
    background: var(--envera-green);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.single-article .entry-title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    margin-bottom: 32px;
    color: var(--gray-900);
}

/* Article Meta */
.single-article .article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
}

.single-article .article-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.single-article .article-author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.single-article .article-author-name {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
}

.single-article .article-author-title {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-400);
}

.single-article .article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 0.9375rem;
}

.single-article .article-meta-item svg {
    width: 18px;
    height: 18px;
}

/* Featured Image */
.single-article .article-featured-image {
    max-width: 900px;
    margin: 48px auto 0;
    padding: 0 48px;
}

.single-article .article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

/* Article Body with Sidebar Grid */
.single-article .article-body {
    padding: 80px 0;
}

.single-article .article-body-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 64px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
    align-items: start; /* Critical for sticky sidebar to work */
}

/* Note: Duplicate featured images are handled in PHP via the_content filter */

/* Article Sidebar */
.single-article .article-sidebar {
    position: -webkit-sticky; /* Safari support */
    position: sticky;
    top: 120px;
    height: fit-content;
    align-self: start; /* Ensure it aligns to top of grid cell */
}

.single-article .sidebar-section {
    margin-bottom: 40px;
}

.single-article .sidebar-section h4 {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.single-article .sidebar-toc {
    list-style: none;
    margin: 0;
    padding: 0;
}

.single-article .sidebar-toc li {
    margin-bottom: 4px;
}

.single-article .sidebar-toc a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    display: block;
    padding: 10px 0 10px 16px;
    border-left: 2px solid var(--gray-100);
    line-height: 1.4;
}

.single-article .sidebar-toc a:hover,
.single-article .sidebar-toc a.active {
    color: var(--envera-green);
    border-left-color: var(--envera-green);
    background: var(--envera-green-dim);
    border-radius: 0 8px 8px 0;
}

.single-article .sidebar-share-buttons {
    display: flex;
    gap: 10px;
}

.single-article .sidebar-share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--gray-50);
    border-radius: 10px;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
}

.single-article .sidebar-share-buttons a:hover {
    background: var(--envera-green);
    color: var(--white);
    transform: translateY(-2px);
}

.single-article .sidebar-cta {
    background: var(--gray-900);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}

.single-article .sidebar-cta p {
    color: var(--gray-400);
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

.single-article .sidebar-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.9375rem;
}

/* Article Content */
.single-article .article-content {
    max-width: 680px;
}

.single-article .article-content p {
    font-size: 1.0625rem;
    line-height: 1.9;
    margin-bottom: 24px;
    color: var(--gray-600);
}

.single-article .article-content > p:first-child {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--gray-800);
}

.single-article .article-content h2 {
    font-size: 1.75rem;
    margin: 64px 0 24px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-100);
    color: var(--gray-900);
}

.single-article .article-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.single-article .article-content h3 {
    font-size: 1.375rem;
    margin: 48px 0 16px;
    font-weight: 500;
    color: var(--gray-900);
}

.single-article .article-content ul,
.single-article .article-content ol {
    margin: 32px 0;
    padding-left: 0;
    list-style: none;
}

.single-article .article-content li {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--gray-600);
    padding-left: 32px;
    position: relative;
}

.single-article .article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background: var(--envera-green);
    border-radius: 50%;
}

.single-article .article-content blockquote {
    background: var(--envera-green-dim);
    border-left: 4px solid var(--envera-green);
    padding: 32px 40px;
    margin: 48px 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.single-article .article-content blockquote p {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    line-height: 1.5;
    color: var(--gray-800);
    margin: 0;
}

.single-article .article-content figure {
    margin: 48px 0;
}

.single-article .article-content figure img {
    width: 100%;
    border-radius: 12px;
}

.single-article .article-content figcaption {
    text-align: center;
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-top: 12px;
}

.single-article .article-content a:not(.btn) {
    color: var(--envera-green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-article .article-content a:not(.btn):hover {
    color: var(--envera-green-dark);
}

/* Ensure CTA buttons have white text */
.single-article .article-cta .btn,
.single-article .article-cta .btn-primary,
.single-article .article-content .article-cta a.btn,
.single-article .article-content .article-cta a.btn.btn-primary,
.single-article .article-content .article-cta-right a.btn,
.article-cta a.btn.btn-primary,
.article-cta a.btn,
.article-cta-right a {
    color: #ffffff !important;
    background-color: var(--envera-green) !important;
    text-decoration: none !important;
}

.single-article .article-cta a.btn:hover,
.single-article .article-content .article-cta a.btn:hover {
    color: #ffffff !important;
    background-color: var(--envera-green-dark) !important;
}

/* Callout Boxes */
.callout {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 32px 0;
    border: 1px solid var(--gray-100);
}

.callout-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
    font-size: 1rem;
}

.callout-title svg {
    flex-shrink: 0;
    color: var(--envera-green);
}

.callout-content {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.callout-content p {
    margin: 0;
}

.callout-content p + p {
    margin-top: 12px;
}

/* Callout Types */
.callout-info {
    background: var(--gray-50);
    border-color: var(--gray-200);
}

.callout-info .callout-title svg {
    color: var(--envera-green);
}

.callout-warning {
    background: #fef9e7;
    border-color: #f4d03f;
}

.callout-warning .callout-title svg {
    color: #d4a017;
}

.callout-tip {
    background: #e8f6fd;
    border-color: #5dade2;
}

.callout-tip .callout-title svg {
    color: #2e86ab;
}

.callout-success {
    background: var(--envera-green-dim);
    border-color: var(--envera-green);
}

.callout-success .callout-title svg {
    color: var(--envera-green);
}

/* Article CTA */
.single-article .article-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    margin-top: 64px;
}

.single-article .article-cta-left {
    background: var(--envera-green);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.single-article .article-cta-left h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.single-article .article-cta-left p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin: 0;
    line-height: 1.7;
}

.single-article .article-cta-right {
    background: var(--white);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.single-article .article-cta-right p {
    font-size: 0.9375rem;
    margin-bottom: 24px;
}

.single-article .article-cta-right .btn {
    width: 100%;
    justify-content: center;
}

/* Fix: Ensure CTA button text is always visible white */
.single-article .article-cta-right .btn.btn-primary,
.single-article .article-cta-right a.btn,
.single-article .article-content .article-cta .article-cta-right a.btn,
.single-article .article-content .article-cta .article-cta-right a.btn.btn-primary,
.article-cta-right a[href].btn {
    color: #ffffff !important;
    background: var(--envera-green) !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

.single-article .article-cta-right .btn.btn-primary:hover,
.single-article .article-cta-right a.btn:hover,
.single-article .article-content .article-cta .article-cta-right a.btn:hover,
.article-cta-right a[href].btn:hover {
    color: #ffffff !important;
    background: var(--envera-green-dark) !important;
}

/* Article Tags */
.single-article .article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--gray-100);
}

.single-article .article-tags-label {
    font-weight: 600;
    color: var(--gray-800);
    margin-right: 8px;
}

.single-article .article-tags a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gray-50);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
}

.single-article .article-tags a:hover {
    background: var(--envera-green-dim);
    color: var(--envera-green);
}

/* Author Bio */
.single-article .author-bio {
    display: flex;
    align-items: flex-start; /* Align to top */
    gap: 32px;
    margin-top: 64px;
    padding: 48px;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
}

.single-article .author-bio-avatar {
    flex-shrink: 0;
}

.single-article .author-bio-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.single-article .author-bio-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 16px;
    margin-top: 0; /* Ensure no top margin */
    color: var(--gray-900);
}

.single-article .author-bio-content p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.single-article .author-bio-content p:last-child {
    margin-bottom: 0;
}

.single-article .author-bio-links a {
    color: var(--envera-green);
    font-weight: 600;
    text-decoration: none;
}

.single-article .author-bio-links a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .single-article .author-bio {
        flex-direction: column;
        padding: 32px;
        gap: 24px;
    }
    
    .single-article .author-bio-image {
        width: 80px;
        height: 80px;
    }
}

/* Related Posts */
.related-section {
    background: var(--off-white);
    padding: 80px 0;
    margin-top: 80px;
}

.related-section h2 {
    text-align: center;
    margin-bottom: 48px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Article Cards (Related Posts) */
.article-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.1);
    border-color: transparent;
}

.article-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    display: block;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.article-card-content {
    padding: 28px;
}

.article-card-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--envera-green-dim);
    color: var(--envera-green-dark);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    margin-bottom: 16px;
}

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.35;
}

.article-card h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.article-card h3 a:hover {
    color: var(--envera-green);
}

.article-card-content > p {
    font-size: 0.9375rem;
    margin-bottom: 20px;
    color: var(--gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--gray-400);
    font-size: 0.8125rem;
}

/* ==========================================================================
   ARCHIVE PAGE STYLES
   ========================================================================== */

/* Archive Hero */
.archive-page .archive-hero {
    padding: 140px 0 60px;
    background: var(--white);
    text-align: center;
}

.archive-page .archive-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 16px;
}

.archive-page .archive-hero p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Tabs */
.archive-page .filter-tabs {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 32px 0;
}

.archive-page .filter-tabs-inner {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.archive-page .filter-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.archive-page .filter-btn:hover {
    border-color: var(--envera-green);
    color: var(--envera-green);
}

.archive-page .filter-btn.active {
    background: var(--envera-green);
    border-color: var(--envera-green);
    color: var(--white);
}

/* Featured Article */
.archive-page .featured-section {
    padding: 80px 0;
    background: var(--white);
}

.archive-page .featured-article {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}

.archive-page .featured-article-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/11;
}

.archive-page .featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.archive-page .featured-article:hover .featured-article-image img {
    transform: scale(1.03);
}

.archive-page .featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--envera-green-dim);
    color: var(--envera-green-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 6px;
    margin-bottom: 20px;
}

.archive-page .featured-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--envera-green);
    border-radius: 50%;
}

.archive-page .featured-article h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.archive-page .featured-article h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.archive-page .featured-article h2 a:hover {
    color: var(--envera-green);
}

.archive-page .featured-article-content > p {
    font-size: 1.0625rem;
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.8;
}

.archive-page .featured-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.archive-page .featured-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.archive-page .featured-meta-item svg {
    width: 16px;
    height: 16px;
}

/* Articles Section */
.archive-page .articles-section {
    padding: 80px 0 120px;
    background: var(--off-white);
}

.archive-page .articles-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.archive-page .articles-section-header h2 {
    font-size: 1.75rem;
}

.archive-page .articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Overlay Card Style */
.article-card-overlay {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
}

.article-card-overlay .article-card-image {
    position: absolute;
    inset: 0;
    display: block;
}

.article-card-overlay .article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* Gradient Overlay */
.article-card-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
    transition: background 0.3s ease;
}

.article-card-overlay:hover::before {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.article-card-overlay .article-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    z-index: 2;
}

.article-card-overlay .article-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--envera-green);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    margin-bottom: 16px;
}

.article-card-overlay h3 {
    font-size: 1.375rem;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-card-overlay h3 a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card-overlay h3 a:hover {
    color: var(--envera-green-light);
}

.article-card-overlay .article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Archive Pagination */
.archive-page .archive-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 60px;
}

.archive-page .archive-pagination a,
.archive-page .archive-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.archive-page .archive-pagination a:hover {
    border-color: var(--envera-green);
    color: var(--envera-green);
}

.archive-page .archive-pagination .current {
    background: var(--envera-green);
    border-color: var(--envera-green);
    color: var(--white);
}

.archive-page .archive-pagination .dots {
    border: none;
    background: none;
}

/* No Posts */
.archive-page .no-posts {
    text-align: center;
    padding: 80px 0;
}

.archive-page .no-posts h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.archive-page .no-posts p {
    color: var(--gray-600);
}

/* Placeholder Image */
.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image::after {
    content: '';
    width: 60px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8d85' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
}

/* Archive Responsive */
@media (max-width: 1024px) {
    .archive-page .featured-article {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .archive-page .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .archive-page .archive-hero {
        padding: 120px 0 40px;
    }

    .archive-page .archive-hero h1 {
        font-size: 2.25rem;
    }

    .archive-page .filter-tabs-inner {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .archive-page .filter-btn {
        white-space: nowrap;
    }

    .archive-page .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card-overlay {
        aspect-ratio: 16/10;
    }

    .archive-page .featured-section,
    .archive-page .articles-section {
        padding: 60px 0;
    }
}

/* ==========================================================================
   RESOURCES PAGE STYLES
   ========================================================================== */

/* Resources Hero */
.resources-page .resources-hero {
    position: relative;
    padding: 200px 0 140px;
    background: var(--gray-900);
    overflow: hidden;
}

.resources-page .resources-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=2400&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
}

.resources-page .resources-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,22,18,0.5) 0%, rgba(20,22,18,0.95) 100%);
}

.resources-page .resources-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.resources-page .resources-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-bottom: 32px;
}

.resources-page .resources-hero .breadcrumb a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.resources-page .resources-hero .breadcrumb a:hover {
    color: var(--envera-green-bright);
}

.resources-page .resources-hero .breadcrumb span {
    color: var(--envera-green-bright);
}

.resources-page .resources-hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    margin-bottom: 24px;
}

.resources-page .resources-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1.25rem;
    max-width: 600px;
    line-height: 1.7;
}

/* Resources Section Header */
.resources-page .resources-section-header {
    margin-bottom: 60px;
}

.resources-page .resources-section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 16px;
}

.resources-page .resources-section-header p {
    font-size: 1.125rem;
    max-width: 600px;
}

/* Industry Guides / Hubs Section */
.resources-page .resources-hubs {
    padding: 100px 0;
    background: var(--white);
}

.resources-page .hubs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.resources-page .hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-100);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.resources-page .hub-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.12);
    border-color: transparent;
}

.resources-page .hub-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.resources-page .hub-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.resources-page .hub-card:hover .hub-card-image img {
    transform: scale(1.05);
}

.resources-page .hub-card-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resources-page .hub-card-badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--envera-green-dim);
    color: var(--envera-green-dark);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    margin-bottom: 16px;
    width: fit-content;
}

.resources-page .hub-card h3 {
    font-size: 1.375rem;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.resources-page .hub-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 20px;
    flex: 1;
}

.resources-page .hub-card-meta {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.resources-page .hub-card-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--gray-400);
}

.resources-page .hub-card-meta-item svg {
    width: 16px;
    height: 16px;
}

.resources-page .hub-card-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.resources-page .hub-card:hover .hub-card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--envera-green);
}

/* Reference Materials Section */
.resources-page .resources-reference {
    padding: 100px 0;
    background: var(--off-white);
}

.resources-page .reference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.resources-page .reference-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-100);
    text-decoration: none;
    transition: all 0.3s ease;
}

.resources-page .reference-card:hover {
    border-color: var(--envera-green);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.resources-page .reference-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--envera-green);
    margin-bottom: 12px;
}

.resources-page .reference-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--gray-900);
    line-height: 1.3;
}

.resources-page .reference-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 20px;
    flex: 1;
}

.resources-page .reference-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--envera-green);
    transition: gap 0.2s ease;
}

.resources-page .reference-card:hover .reference-link {
    gap: 12px;
}

.resources-page .reference-link svg {
    transition: transform 0.2s ease;
}

.resources-page .reference-card:hover .reference-link svg {
    transform: translateX(4px);
}

/* Tools Section */
.resources-page .resources-tools {
    padding: 100px 0;
    background: var(--white);
}

.resources-page .tools-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--gray-900);
    border-radius: 20px;
    overflow: hidden;
}

.resources-page .tools-content {
    padding: 64px;
}

.resources-page .tools-content .section-label {
    color: var(--envera-green-bright);
}

.resources-page .tools-content .section-label::before {
    background: var(--envera-green-bright);
}

.resources-page .tools-content h2 {
    color: var(--white);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 20px;
}

.resources-page .tools-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.0625rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.resources-page .tools-stats {
    background: rgba(255,255,255,0.05);
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}

.resources-page .tool-stat {
    text-align: center;
}

.resources-page .tool-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--envera-green-bright);
    margin-bottom: 8px;
}

.resources-page .tool-stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

/* Resources CTA */
.resources-page .resources-cta {
    padding: 100px 0;
    background: var(--envera-green);
}

.resources-page .cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(0,0,0,0.1);
    border-radius: 16px;
    overflow: hidden;
}

.resources-page .cta-left {
    padding: 56px;
}

.resources-page .cta-left h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 16px;
}

.resources-page .cta-left p {
    color: rgba(255,255,255,0.85);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.resources-page .cta-right {
    background: var(--white);
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.resources-page .cta-right p {
    font-size: 1rem;
    margin-bottom: 24px;
}

.resources-page .cta-right .btn-full {
    width: 100%;
    justify-content: center;
}

/* Resources Responsive */
@media (max-width: 1024px) {
    .resources-page .hubs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-page .reference-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-page .tools-card {
        grid-template-columns: 1fr;
    }

    .resources-page .cta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .resources-page .resources-hero {
        padding: 160px 0 100px;
    }

    .resources-page .resources-hubs,
    .resources-page .resources-reference,
    .resources-page .resources-tools,
    .resources-page .resources-cta {
        padding: 80px 0;
    }

    .resources-page .hubs-grid,
    .resources-page .reference-grid {
        grid-template-columns: 1fr;
    }

    .resources-page .tools-content,
    .resources-page .tools-stats {
        padding: 40px;
    }

    .resources-page .tools-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .resources-page .cta-left,
    .resources-page .cta-right {
        padding: 40px;
    }
}

/* ==========================================================================
   404 ERROR PAGE STYLES
   ========================================================================== */

.error-404-page .site-inner {
    padding: 0;
    max-width: none;
}

.error-404-page .content-sidebar-wrap,
.error-404-page .content {
    width: 100%;
    max-width: none;
    padding: 0;
}

.error-404-page .error-content {
    min-height: calc(100vh - 88px - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 48px;
    background: var(--off-white);
}

.error-404-page .error-inner {
    text-align: center;
    max-width: 560px;
}

.error-404-page .error-code {
    font-family: var(--font-heading);
    font-size: clamp(8rem, 20vw, 12rem);
    font-weight: 300;
    line-height: 1;
    color: var(--envera-green);
    margin-bottom: 24px;
    letter-spacing: -0.05em;
}

.error-404-page .error-inner h1 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.error-404-page .error-inner > p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 40px;
}

.error-404-page .error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-404-page .error-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.error-404-page .error-actions .btn-secondary {
    background: transparent;
    color: var(--gray-800);
    border: 2px solid var(--gray-200);
}

.error-404-page .error-actions .btn-secondary:hover {
    border-color: var(--envera-green);
    color: var(--envera-green);
}

.error-404-page .error-links {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.error-404-page .error-links p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.error-404-page .error-links-list {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-404-page .error-links-list a {
    color: var(--gray-600);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.error-404-page .error-links-list a:hover {
    color: var(--envera-green);
}

/* 404 Responsive */
@media (max-width: 768px) {
    .error-404-page .error-content {
        padding: 80px 24px;
    }

    .error-404-page .error-actions {
        flex-direction: column;
    }

    .error-404-page .error-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .error-404-page .error-links-list {
        gap: 24px;
    }
}

/* ==========================================================================
   SERVICES PAGE STYLES
   ========================================================================== */

/* Services Hero */
.services-page .services-hero {
    position: relative;
    padding: 200px 0 140px;
    background: var(--gray-900);
    overflow: hidden;
}

.services-page .services-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1611273426858-450d8e3c9fce?auto=format&fit=crop&w=2400&q=80') center/cover;
    opacity: 0.25;
}

.services-page .services-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,22,18,0.6) 0%, rgba(20,22,18,0.95) 100%);
}

.services-page .services-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.services-page .services-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-bottom: 32px;
}

.services-page .services-hero .breadcrumb a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.services-page .services-hero .breadcrumb a:hover {
    color: var(--envera-green-bright);
}

.services-page .services-hero .breadcrumb span {
    color: var(--envera-green-bright);
}

.services-page .services-hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    margin-bottom: 24px;
}

.services-page .services-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1.25rem;
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.services-page .services-hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.services-page .btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.services-page .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

/* Services Overview Cards */
.services-page .services-overview {
    padding: 100px 0;
    background: var(--white);
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.services-page .services-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.services-page .service-overview-card {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.services-page .service-overview-card:hover {
    border-color: var(--envera-green);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.services-page .service-overview-icon {
    width: 56px;
    height: 56px;
    background: var(--envera-green-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.services-page .service-overview-icon svg {
    width: 28px;
    height: 28px;
    color: var(--envera-green);
}

.services-page .service-overview-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.services-page .service-overview-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Service Detail Sections */
.services-page .service-detail {
    padding: 100px 0;
    background: var(--white);
}

.services-page .service-detail.alt {
    background: var(--off-white);
}

.services-page .service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.services-page .service-detail-grid.reverse {
    direction: rtl;
}

.services-page .service-detail-grid.reverse > * {
    direction: ltr;
}

.services-page .service-detail-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 300;
    color: var(--envera-green);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 16px;
}

.services-page .service-detail-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 20px;
}

.services-page .service-detail-content > p {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.services-page .service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.services-page .service-features li {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.services-page .service-features li svg {
    width: 24px;
    height: 24px;
    color: var(--envera-green);
    flex-shrink: 0;
    margin-top: 2px;
}

.services-page .service-features li span {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.services-page .service-features li strong {
    color: var(--gray-800);
}

.services-page .service-detail-image {
    position: relative;
}

.services-page .service-detail-image img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.services-page .service-detail-badge {
    position: absolute;
    bottom: -20px;
    left: 32px;
    background: var(--envera-green);
    color: var(--white);
    padding: 20px 28px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(118, 166, 66, 0.3);
}

.services-page .service-detail-badge span {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 4px;
}

/* Process Section */
.services-page .process-section {
    padding: 100px 0;
    background: var(--gray-900);
}

.services-page .process-header {
    text-align: center;
    margin-bottom: 64px;
}

.services-page .process-header .section-label {
    color: var(--envera-green-bright);
}

.services-page .process-header .section-label::before {
    background: var(--envera-green-bright);
}

.services-page .process-header h2 {
    color: var(--white);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 16px;
}

.services-page .process-header p {
    color: rgba(255,255,255,0.6);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-page .process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.services-page .process-step {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}

.services-page .process-step-number {
    width: 56px;
    height: 56px;
    background: var(--envera-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 auto 24px;
}

.services-page .process-step h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.services-page .process-step p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Services CTA */
.services-page .services-cta {
    padding: 100px 0;
    background: var(--envera-green);
}

.services-page .services-cta .cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(0,0,0,0.1);
    border-radius: 16px;
    overflow: hidden;
}

.services-page .services-cta .cta-left {
    padding: 56px;
}

.services-page .services-cta .cta-left h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 16px;
}

.services-page .services-cta .cta-left p {
    color: rgba(255,255,255,0.85);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.services-page .services-cta .cta-right {
    background: var(--white);
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services-page .services-cta .cta-right p {
    font-size: 1rem;
    margin-bottom: 24px;
}

.services-page .services-cta .cta-right .btn-full {
    width: 100%;
    justify-content: center;
}

/* Industries Section */
.services-page .industries-section {
    padding: 120px 0;
    background: var(--gray-900);
}

.services-page .industries-header {
    text-align: center;
    margin-bottom: 64px;
}

.services-page .industries-header .section-label {
    color: var(--envera-green-bright);
}

.services-page .industries-header .section-label::before {
    background: var(--envera-green-bright);
}

.services-page .industries-header h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.services-page .industries-header p {
    color: rgba(255,255,255,0.6);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-page .industries-featured {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.services-page .industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.services-page .industry-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    text-decoration: none;
    display: block;
}

.services-page .industry-card.featured {
    aspect-ratio: 4/3;
}

.services-page .industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.services-page .industry-card:hover img {
    transform: scale(1.1);
}

.services-page .industry-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(20,22,18,0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}

.services-page .industry-card h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.services-page .industry-card.featured h3 {
    font-size: 1.5rem;
}

.services-page .industry-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    line-height: 1.5;
}

.services-page .industry-card-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.services-page .industry-card:hover .industry-card-icon {
    opacity: 1;
    transform: translateY(0);
}

.services-page .industry-card-icon svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

/* Services Responsive */
@media (max-width: 1024px) {
    .services-page .services-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-page .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .services-page .service-detail-grid.reverse {
        direction: ltr;
    }

    .services-page .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-page .services-cta .cta-grid {
        grid-template-columns: 1fr;
    }

    .services-page .industries-featured {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-page .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-page .services-hero {
        padding: 160px 0 100px;
    }

    .services-page .services-overview {
        padding: 60px 0;
        margin-top: -40px;
    }

    .services-page .services-overview-grid {
        grid-template-columns: 1fr;
    }

    .services-page .service-detail {
        padding: 60px 0;
    }

    .services-page .service-detail-badge {
        position: relative;
        bottom: auto;
        left: auto;
        display: inline-block;
        margin-top: 20px;
    }

    .services-page .process-section {
        padding: 60px 0;
    }

    .services-page .process-steps {
        grid-template-columns: 1fr;
    }

    .services-page .services-cta {
        padding: 60px 0;
    }

    .services-page .services-cta .cta-left,
    .services-page .services-cta .cta-right {
        padding: 40px;
    }

    .services-page .industries-section {
        padding: 60px 0;
    }

    .services-page .industries-featured,
    .services-page .industries-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   REFERENCE PAGE STYLES
   ========================================================================== */

/* Reference Hero */
.reference-page .ref-hero {
    padding: 160px 0 80px;
    background: var(--off-white);
    border-bottom: 1px solid var(--gray-100);
}

.reference-page .ref-hero-inner {
    max-width: 800px;
}

.reference-page .ref-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.reference-page .ref-hero .breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

.reference-page .ref-hero .breadcrumb a:hover {
    color: var(--envera-green);
}

.reference-page .ref-hero .breadcrumb span {
    color: var(--gray-800);
}

.reference-page .ref-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--envera-green-dim);
    color: var(--envera-green-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    margin-bottom: 20px;
}

.reference-page .ref-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.reference-page .ref-excerpt {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 24px;
}

.reference-page .ref-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.reference-page .ref-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.reference-page .ref-meta-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

/* Reference Body */
.reference-page .ref-body {
    padding: 80px 0;
}

.reference-page .ref-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 80px;
    align-items: start;
}

/* Reference Content */
.reference-page .ref-content {
    max-width: none;
}

.reference-page .ref-content h2 {
    font-size: 1.75rem;
    margin: 48px 0 20px;
    padding-top: 24px;
    color: var(--gray-900);
}

.reference-page .ref-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
}

.reference-page .ref-content h3 {
    font-size: 1.25rem;
    margin: 32px 0 16px;
    color: var(--gray-900);
}

.reference-page .ref-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.reference-page .ref-content ul,
.reference-page .ref-content ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.reference-page .ref-content li {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.reference-page .ref-content li strong {
    color: var(--gray-800);
}

.reference-page .ref-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
}

.reference-page .ref-content .wp-caption {
    max-width: 100%;
    margin: 32px 0;
}

.reference-page .ref-content .wp-caption img {
    margin: 0 0 12px;
}

.reference-page .ref-content .wp-caption-text {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-style: italic;
}

/* Info Box */
.reference-page .ref-content .info-box,
.reference-page .ref-content blockquote {
    background: var(--envera-green-dim);
    border-left: 4px solid var(--envera-green);
    padding: 24px 28px;
    border-radius: 0 12px 12px 0;
    margin: 32px 0;
}

.reference-page .ref-content .info-box p,
.reference-page .ref-content blockquote p {
    margin: 0;
    color: var(--gray-700);
}

/* Reference CTA */
.reference-page .ref-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 64px;
    border: 1px solid var(--gray-100);
}

.reference-page .ref-cta-left {
    background: var(--envera-green);
    padding: 48px;
}

.reference-page .ref-cta-left h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.reference-page .ref-cta-left p {
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.reference-page .ref-cta-right {
    background: var(--white);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reference-page .ref-cta-right p {
    font-size: 0.9375rem;
    margin-bottom: 24px;
}

/* Reference Sidebar */
.reference-page .ref-sidebar {
    position: sticky;
    top: 120px;
}

.reference-page .ref-sidebar-section {
    background: var(--off-white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.reference-page .ref-sidebar-section h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.reference-page .ref-sidebar-toc {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reference-page .ref-sidebar-toc li {
    margin-bottom: 8px;
}

.reference-page .ref-sidebar-toc a {
    display: block;
    padding: 8px 12px;
    font-size: 0.9375rem;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.reference-page .ref-sidebar-toc a:hover {
    background: var(--white);
    color: var(--gray-800);
}

.reference-page .ref-sidebar-toc a.active {
    background: var(--envera-green-dim);
    color: var(--envera-green-dark);
    font-weight: 600;
}

.reference-page .ref-sidebar-cta {
    background: var(--gray-900);
}

.reference-page .ref-sidebar-cta h4 {
    color: var(--white);
}

.reference-page .ref-sidebar-cta p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

/* Reference Responsive */
@media (max-width: 1024px) {
    .reference-page .ref-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .reference-page .ref-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .reference-page .ref-sidebar-section {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .reference-page .ref-hero {
        padding: 120px 0 60px;
    }

    .reference-page .ref-body {
        padding: 48px 0;
    }

    .reference-page .ref-sidebar {
        grid-template-columns: 1fr;
    }

    .reference-page .ref-cta {
        grid-template-columns: 1fr;
    }

    .reference-page .ref-cta-left,
    .reference-page .ref-cta-right {
        padding: 32px;
    }
}

/* Mobile adjustments for article */
@media (max-width: 900px) {
    .single-article .article-body-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 0 24px;
    }
    
    .single-article .article-sidebar {
        position: static;
        order: -1;
    }
    
    .single-article .sidebar-toc {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .single-article .sidebar-toc li {
        margin: 0;
    }
    
    .single-article .sidebar-toc a {
        padding: 8px 16px;
        border-left: none;
        background: var(--gray-50);
        border-radius: 20px;
        font-size: 0.875rem;
    }
    
    .single-article .sidebar-toc a:hover,
    .single-article .sidebar-toc a.active {
        background: var(--envera-green-dim);
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .single-article .entry-header {
        padding: 100px 24px 32px;
    }
    
    .single-article .entry-title {
        font-size: 1.75rem;
    }
    
    .single-article .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .single-article .article-featured-image {
        padding: 0 24px;
    }
    
    .single-article .article-cta {
        grid-template-columns: 1fr;
    }
    
    .single-article .article-cta-left,
    .single-article .article-cta-right {
        padding: 32px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        padding: 0 24px;
    }
    
    .article-card-content {
        padding: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --------------------------------------------------------------------------
   CONTACT MODAL
   -------------------------------------------------------------------------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 22, 18, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-split {
    width: 900px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: var(--white);
    border-radius: var(--radius-2xl);
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-base);
}

.modal-backdrop.active .modal-split {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-left {
    background: var(--envera-green);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-2xl) 0 0 var(--radius-2xl);
}

.modal-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
}

.modal-left h2 {
    color: var(--white);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
    position: relative;
}

.modal-left > p {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-md);
    margin-bottom: var(--space-2xl);
    position: relative;
}

.modal-contact-info {
    position: relative;
}

.modal-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    margin-bottom: 12px;
}

.modal-contact-item svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.modal-right {
    padding: 48px;
}

.modal-right h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
}

.modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal-form .form-group {
    margin-bottom: var(--space-md);
}

.modal-form .form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.modal-form .form-label .required {
    color: var(--envera-green);
}

.modal-form .form-input,
.modal-form .form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: var(--text-base);
    font-family: var(--font-body);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--gray-800);
    transition: all var(--transition-fast);
}

.modal-form .form-input:focus,
.modal-form .form-textarea:focus {
    outline: none;
    border-color: var(--envera-green);
    box-shadow: 0 0 0 3px var(--envera-green-dim);
}

.modal-form .form-textarea {
    min-height: 100px;
    resize: vertical;
}

.modal-form .btn-full {
    width: 100%;
}

/* Form Validation States */
.modal-form .form-input.error,
.modal-form .form-textarea.error,
.form-input.error,
.form-textarea.error {
    border-color: #dc2626;
    background-color: rgba(220, 38, 38, 0.05);
}

.modal-form .form-input.error:focus,
.modal-form .form-textarea.error:focus,
.form-input.error:focus,
.form-textarea.error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.modal-form .form-input.valid,
.modal-form .form-textarea.valid,
.form-input.valid,
.form-textarea.valid {
    border-color: var(--envera-green);
}

.error-message {
    color: #dc2626;
    font-size: 0.8125rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-message::before {
    content: '';
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
    background-size: contain;
    flex-shrink: 0;
}

/* Form group spacing for error message */
.form-group {
    position: relative;
}

/* Success state icon (optional) */
.form-input.valid,
.form-textarea.valid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2376A642' stroke-width='2'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

/* ==========================================================================
   NINJA FORMS MODAL STYLING
   ========================================================================== */

/* Hide form title and required fields note */
.modal-right .nf-form-title,
.modal-right .nf-form-cont .nf-before-form-content,
.modal-right .nf-form-cont .nf-after-form-content {
    display: none !important;
}

/* Form container */
.modal-right .nf-form-cont {
    font-family: inherit;
}

.modal-right .nf-form-content {
    padding: 0;
}

.modal-right .nf-form-fields-required {
    display: none;
}

/* Field containers - tighter spacing */
.modal-right .nf-field-container {
    margin-bottom: 16px !important;
}

/* Two-column layout for name fields */
.modal-right .nf-row {
    display: flex;
    gap: 16px;
}

.modal-right .nf-row .nf-field-container {
    flex: 1;
}

/* Force first two fields side by side if they're First/Last name */
.modal-right .nf-form-content .nf-field-container:nth-child(1),
.modal-right .nf-form-content .nf-field-container:nth-child(2) {
    display: inline-block;
    width: calc(50% - 8px);
    vertical-align: top;
}

.modal-right .nf-form-content .nf-field-container:nth-child(2) {
    margin-left: 16px;
}

/* Labels */
.modal-right .nf-field-label {
    margin-bottom: 6px !important;
}

.modal-right .nf-field-label label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--gray-800) !important;
    margin-bottom: 0 !important;
}

.modal-right .ninja-forms-req-symbol {
    color: var(--envera-green) !important;
}

/* Input fields */
.modal-right .nf-field-element input[type="text"],
.modal-right .nf-field-element input[type="email"],
.modal-right .nf-field-element input[type="tel"],
.modal-right .nf-field-element input[type="number"],
.modal-right .nf-field-element textarea,
.modal-right .ninja-forms-field {
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 0.9375rem !important;
    font-family: inherit !important;
    color: var(--gray-800) !important;
    background: var(--white) !important;
    border: 2px solid var(--gray-200) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.modal-right .nf-field-element input:focus,
.modal-right .nf-field-element textarea:focus,
.modal-right .ninja-forms-field:focus {
    outline: none !important;
    border-color: var(--envera-green) !important;
    box-shadow: 0 0 0 3px var(--envera-green-dim) !important;
}

.modal-right .nf-field-element input::placeholder,
.modal-right .nf-field-element textarea::placeholder {
    color: var(--gray-400) !important;
}

/* Textarea - shorter height */
.modal-right .nf-field-element textarea {
    min-height: 80px !important;
    max-height: 120px !important;
    resize: vertical !important;
}

/* Error states */
.modal-right .nf-error .ninja-forms-field,
.modal-right .nf-fail .ninja-forms-field {
    border-color: #dc2626 !important;
    background-color: rgba(220, 38, 38, 0.03) !important;
}

.modal-right .nf-error-msg {
    color: #dc2626 !important;
    font-size: 0.75rem !important;
    margin-top: 4px !important;
}

/* Submit button */
.modal-right .nf-field-container .submit-container,
.modal-right .nf-field-container[class*="submit"] {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}

.modal-right input[type="submit"],
.modal-right button[type="submit"],
.modal-right .ninja-forms-field[type="submit"] {
    width: 100% !important;
    padding: 14px 24px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    background: var(--envera-green) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.modal-right input[type="submit"]:hover,
.modal-right button[type="submit"]:hover {
    background: var(--envera-green-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px rgba(118, 166, 66, 0.3) !important;
}

/* Response messages */
.modal-right .nf-response-msg {
    padding: 16px !important;
    border-radius: 8px !important;
    margin-bottom: 16px !important;
    font-size: 0.9375rem !important;
}

.modal-right .nf-response-msg.nf-success-msg {
    background: var(--envera-green-dim) !important;
    color: var(--envera-green-dark) !important;
}

/* Modal right column adjustments for better fit */
.modal-right {
    padding: 40px;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-right h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--gray-900);
}

/* Left column - center content better */
.modal-left {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-left h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.modal-left > p {
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(118, 166, 66, 0.3);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    :root {
        --container-padding: 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

@media (max-width: 1024px) {
    .nav-primary .genesis-nav-menu {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 24px;
        --nav-height: 72px;
    }
    
    .nav-primary {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .modal-split {
        grid-template-columns: 1fr;
    }
    
    .modal-left {
        display: none;
    }
    
    .modal-right {
        border-radius: var(--radius-2xl);
    }
    
    .modal-close {
        background: var(--gray-100);
        color: var(--gray-600);
    }
    
    .modal-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   GENESIS OVERRIDES
   -------------------------------------------------------------------------- */
.site-container {
    /* Note: overflow-x: hidden breaks position: sticky on descendants */
    /* If horizontal overflow issues occur, handle them on specific elements instead */
}

.breadcrumb {
    padding: var(--space-md) 0;
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.archive-description {
    margin-bottom: var(--space-3xl);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-3xl);
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    color: var(--gray-600);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.pagination a:hover {
    border-color: var(--envera-green);
    color: var(--envera-green);
}

.pagination .current {
    background: var(--envera-green);
    border-color: var(--envera-green);
    color: var(--white);
}

/* Entry Styles */
.entry {
    margin-bottom: var(--space-3xl);
}

.entry-title {
    margin-bottom: var(--space-md);
}

.entry-title a {
    color: var(--gray-900);
}

.entry-title a:hover {
    color: var(--envera-green);
}

.entry-meta {
    font-size: var(--text-sm);
    color: var(--gray-400);
    margin-bottom: var(--space-lg);
}

.entry-content {
    font-size: var(--text-md);
    line-height: 1.85;
}

.entry-content h2 {
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-lg);
}

.entry-content h3 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.entry-content p {
    margin-bottom: var(--space-lg);
}

.entry-content ul,
.entry-content ol {
    margin: var(--space-xl) 0;
    padding-left: var(--space-xl);
}

.entry-content li {
    margin-bottom: var(--space-sm);
    color: var(--gray-600);
}

.entry-content blockquote {
    margin: var(--space-2xl) 0;
    padding: var(--space-2xl) var(--space-2xl);
    background: var(--envera-green-dim);
    border-left: 4px solid var(--envera-green);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

.entry-content blockquote p {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--gray-800);
    margin: 0;
    line-height: 1.6;
}

/* Sidebar */
.sidebar {
    font-size: var(--text-sm);
}

.sidebar .widget {
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
}

.sidebar .widget-title {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gray-400);
    margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   FRONT PAGE - HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-carousel {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: slowZoom 10s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 22, 18, 0.85) 0%, rgba(20, 22, 18, 0.6) 100%);
    z-index: 1;
}

.hero > .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    padding-top: var(--nav-height);
}

.hero-eyebrow {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--envera-green-bright);
    margin-bottom: var(--space-xl);
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 0;
}

/* Rotating Text */
.rotating-text {
    display: block;
    position: relative;
    height: 1.2em;
    overflow: hidden;
}

.rotating-text .word {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    color: var(--envera-green-bright);
    transform: translateY(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.rotating-text .word.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-description {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 48px;
    max-width: 560px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: var(--space-2xl);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   FRONT PAGE - SERVICES SECTION
   -------------------------------------------------------------------------- */
.services-section {
    padding: var(--space-5xl) 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-2xl);
    text-decoration: none;
    transition: all var(--transition-slow);
    overflow: hidden;
    display: block;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover .service-icon {
    background: var(--envera-green);
    color: var(--white);
}

.service-card:hover .service-link {
    color: var(--envera-green);
}

.service-number {
    position: absolute;
    top: 32px;
    right: 32px;
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 300;
    color: var(--gray-100);
    line-height: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--envera-green-dim);
    border-radius: var(--radius-xl);
    color: var(--envera-green);
    margin-bottom: var(--space-xl);
    transition: all var(--transition-base);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
}

.service-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
    color: var(--gray-900);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-400);
    transition: color var(--transition-base);
}

.service-link svg {
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    transition: transform var(--transition-base);
}

.service-card:hover .service-link svg {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   FRONT PAGE - INSIGHTS SECTION
   -------------------------------------------------------------------------- */
.insights-section {
    padding: var(--space-5xl) 0;
    background: var(--off-white);
}

.insights-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 24px;
}

.insight-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: all var(--transition-slow);
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.insight-card.featured {
    grid-row: span 3;
    display: flex;
    flex-direction: column;
}

.insight-card.featured .insight-image {
    flex: 1;
    min-height: 300px;
}

.insight-card.featured .insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insight-card.featured .insight-content {
    padding: 40px;
}

.insight-card.featured h3 {
    font-size: var(--text-2xl);
}

.insight-image {
    display: block;
    overflow: hidden;
}

.insight-image img {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

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

.insight-content {
    padding: 24px;
}

.insight-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--envera-green-dim);
    color: var(--envera-green-dark);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.insight-content h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
    line-height: 1.35;
}

.insight-content h3 a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color var(--transition-base);
}

.insight-content h3 a:hover {
    color: var(--envera-green);
}

.insight-content > p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.insight-meta {
    display: flex;
    gap: 16px;
    font-size: var(--text-sm);
    color: var(--gray-400);
}

.insights-cta {
    text-align: center;
    margin-top: var(--space-3xl);
}

/* --------------------------------------------------------------------------
   FRONT PAGE - CTA SECTION
   -------------------------------------------------------------------------- */
.cta-section {
    padding: var(--space-4xl) 0;
    background: var(--envera-green);
}

.cta-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3xl);
}

.cta-content h2 {
    color: var(--white);
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-md);
    max-width: 500px;
}

.cta-actions {
    display: flex;
    gap: 16px;
}

/* --------------------------------------------------------------------------
   HIDE GENESIS SIDEBAR ON FRONT PAGE
   -------------------------------------------------------------------------- */
.home .sidebar-primary,
.home .sidebar,
.front-page .sidebar-primary,
.front-page .sidebar,
.page-template-front-page .sidebar-primary,
.page-template-front-page .sidebar {
    display: none !important;
}

.home .content-sidebar-wrap,
.front-page .content-sidebar-wrap,
.page-template-front-page .content-sidebar-wrap {
    max-width: 100%;
    padding: 0;
}

.home .content,
.front-page .content,
.page-template-front-page .content {
    width: 100%;
    max-width: 100%;
    float: none;
}

.home .site-inner,
.front-page .site-inner,
.page-template-front-page .site-inner {
    max-width: 100%;
    padding: 0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE - FRONT PAGE
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .insight-card.featured {
        grid-row: span 1;
    }
    
    .cta-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-content p {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-content {
        padding-top: 0;
    }
    
    .hero-description {
        margin-top: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
    
    .services-section,
    .insights-section {
        padding: var(--space-3xl) 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   UTILITY CLASSES
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */

.cookie-consent {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.cookie-consent.active {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-content {
    padding: 28px;
}

.cookie-consent h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
    font-family: var(--font-body);
}

.cookie-consent p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 12px;
}

.cookie-consent p a {
    color: var(--gray-800);
    text-decoration: underline;
}

.cookie-consent p a:hover {
    color: var(--envera-green);
}

.cookie-consent .cookie-question {
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.cookie-consent-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cookie-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cookie-btn-accept {
    background: var(--gray-900);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background: var(--gray-800);
}

.cookie-btn-decline {
    background: var(--gray-100);
    color: var(--gray-800);
}

.cookie-btn-decline:hover {
    background: var(--gray-200);
}

@media (max-width: 480px) {
    .cookie-consent {
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
    }
    
    .cookie-consent-content {
        padding: 24px;
    }
}

