/* ===== EXTRACTED FROM HEADER.PHP INLINE STYLES ===== */
/* Date: December 8, 2025 */
/* Performance: Moved to external file for better caching */

/* ===== BREADCRUMB NAVIGATION (Badge Style) ===== */
.breadcrumb-badge {
    margin: 0 0 16px 0;
    display: block;
}

.breadcrumb-badge .pretitle {
    display: inline-block;
    background: rgba(1, 73, 33, 0.1);
    color: #014921;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #014921;
}

.breadcrumb-badge .pretitle a.breadcrumb-link {
    color: #014921;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.breadcrumb-badge .pretitle a.breadcrumb-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.breadcrumb-badge .pretitle .breadcrumb-current {
    color: #014921;
}

/* ===== CRITICAL MOBILE FIX - PREVENT HORIZONTAL SCROLL ===== */
/* Note: Only hide overflow on body, not html, to preserve position:fixed */
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* ===== CORE NAVIGATION FIXES ===== */

/* Hide hamburger menu on desktop (1280px and up) */
@media (min-width: 1280px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Show hamburger only on mobile/tablet (below 1280px) */
@media (max-width: 1279px) {
    .mobile-menu-toggle {
        display: flex !important;
    }

    .navbar-menu {
        display: none !important;
    }

    .navbar-actions {
        display: none !important;
    }
}

/* Desktop navigation layout (1280px and up) */
@media (min-width: 1280px) {
    .navbar .container {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .navbar-header {
        display: flex !important;
        width: auto !important;
        margin-right: 20px !important;
    }

    .navbar-menu {
        display: flex !important;
        flex: 1 !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        margin-right: 12px !important;
    }

    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .navbar-actions {
        display: flex !important;
        flex: 0 0 auto !important; /* Override global.css flex: 1 */
        flex-shrink: 0 !important;
        margin-left: auto !important;
        gap: 16px !important;
        align-items: center !important;
    }

    /* Nested buttons div inherits flex */
    .navbar-actions .buttons {
        display: flex !important;
        gap: 16px !important;
        align-items: center !important;
    }
}

/* Larger screens - more spacing */
@media (min-width: 1440px) {
    .navbar-header {
        margin-right: 30px !important;
    }

    .navbar-nav {
        gap: 12px !important;
    }

    .navbar-menu {
        margin-right: 20px !important;
    }
}

@media (min-width: 1600px) {
    .navbar-nav {
        gap: 14px !important;
    }
}

@media (min-width: 1920px) {
    .navbar-nav {
        gap: 16px !important;
    }
}

/* ===== FONT SIZES ===== */

/* Mobile navigation links */
.navbar-nav .nav-item > .nav-link {
    font-family: 'Recoleta', sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1;
}

/* Desktop navigation links - REDUCED SIZE */
@media (min-width: 1280px) {
    .navbar-nav .nav-item > .nav-link {
        font-family: 'Monument Grotesk', sans-serif !important;
        font-size: 13px !important;
        font-weight: 400 !important;
        line-height: 1.5 !important;
        padding: 8px 0 !important;
    }
}

@media (min-width: 1440px) {
    .navbar-nav .nav-item > .nav-link {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
}

@media (min-width: 1600px) {
    .navbar-nav .nav-item > .nav-link {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
}

@media (min-width: 1920px) {
    .navbar-nav .nav-item > .nav-link {
        font-size: 17px !important;
    }
}

/* ===== LOGO STYLING ===== */
/* Maximum specificity to override global.css */

header .navbar .navbar-header .navbar-brand {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    line-height: 0 !important;
    height: auto !important;
    transition: opacity 0.2s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
}

header .navbar .navbar-header .navbar-brand:hover {
    opacity: 0.8 !important;
}

/* Combined horizontal logo */
header .navbar .navbar-header .navbar-brand .navbar-brand-logo {
    display: block !important;
    height: 45px !important;
    width: auto !important;
    max-height: 45px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (min-width: 1280px) {
    header .navbar .navbar-header .navbar-brand .navbar-brand-logo {
        height: 55px !important;
        max-height: 55px !important;
    }
}

@media (min-width: 1600px) {
    header .navbar .navbar-header .navbar-brand .navbar-brand-logo {
        height: 55px !important;
        max-height: 55px !important;
    }
}

/* ===== BUTTON STYLING ===== */

.navbar-actions .btn {
    --height: 42px;
    --paddingX: 18px;
    font-size: 14px;
    white-space: nowrap;
}

@media (min-width: 1280px) {
    .navbar-actions .btn {
        --height: 42px;
        --paddingX: 16px;
        font-size: 13px;
    }
}

@media (min-width: 1440px) {
    .navbar-actions .btn {
        --height: 46px;
        --paddingX: 20px;
        font-size: 14px;
    }
}

@media (min-width: 1600px) {
    .navbar-actions .btn {
        --height: 48px;
        --paddingX: 24px;
        font-size: 15px;
    }
}

@media (min-width: 1920px) {
    .navbar-actions .btn {
        --height: 52px;
        --paddingX: 26px;
        font-size: 16px;
    }
}

.navbar .btn-white {
    background-color: #fff;
    color: #192615;
    border-color: #fff;
}

.navbar .btn-white:hover {
    background-color: #f0f8f2;
    border-color: #f0f8f2;
}

.navbar .btn-green-accent {
    background-color: #014921;
    color: #fff;
    border-color: #014921;
}

.navbar .btn-green-accent:hover {
    background-color: #013619;
    border-color: #013619;
}

/* Phone button icon */
.btn-phone svg {
    margin-right: 6px;
    width: 18px;
    height: 18px;
}

/* ===== HAMBURGER ICON ===== */

.mobile-menu-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 9999;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #192615;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== MOBILE MENU OVERLAY ===== */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9998;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 60px 20px 40px;
    gap: 24px;
    overflow-y: auto;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.mobile-menu-link {
    font-family: 'Recoleta', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #192615;
    text-decoration: none;
    line-height: 1.2;
    transition: color 0.3s ease;
    padding: 8px 0;
    display: block;
}

.mobile-menu-link:hover {
    color: #014921;
}

/* Mobile Menu Section for Resources */
.mobile-menu-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(1, 73, 33, 0.2);
    display: block;
    width: 100%;
}

.mobile-menu-section-title {
    font-family: 'Recoleta', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #014921;
    margin-bottom: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.mobile-menu-link-sub {
    font-family: 'Monument Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: #192615;
    padding: 6px 0 6px 24px;
    position: relative;
    text-align: left;
    display: block;
    text-decoration: none;
}

.mobile-menu-link-sub::before {
    content: "›";
    position: absolute;
    left: 8px;
    color: #014921;
    font-weight: 600;
    font-size: 20px;
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin-top: 20px;
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 48px;
    gap: 8px;
}

.mobile-menu-btn-phone {
    background-color: #fff;
    color: #014921;
    border: 1.5px solid #014921;
}

.mobile-menu-btn-contact {
    background-color: #fff;
    color: #014921;
    border: 1.5px solid #014921;
}

.mobile-menu-btn-consultation {
    background-color: #014921;
    color: #fff;
    border: 1.5px solid #014921;
}

.mobile-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 73, 33, 0.2);
}

.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
}

/* Mobile menu close button */
.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 9999;
}

.mobile-menu-close:before,
.mobile-menu-close:after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #192615;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* ===== Z-INDEX MANAGEMENT ===== */

header {
    z-index: 9997;
}

/* Mobile: Always show white background */
@media (max-width: 1279px) {
    header {
        background: #ffffff;
    }
}

.navbar {
    z-index: 9996;
    overflow: visible !important;
}

.navbar .container {
    overflow: visible !important;
}

.navbar-menu {
    overflow: visible !important;
}

.navbar-nav {
    overflow: visible !important;
}

.mysticky-wrap,
#mysticky-nav,
.mysticky-welcomebar-fixed {
    z-index: 999 !important;
}

/* Hide sticky bars when mobile menu is open */
@media (max-width: 1279px) {
    body.mobile-menu-open .mysticky-wrap,
    body.mobile-menu-open #mysticky-nav,
    body.mobile-menu-open .mysticky-welcomebar-fixed,
    body.mobile-menu-open .aurit-sticky-cta--top,
    body.mobile-menu-open #aurit-sticky-cta-top,
    body.mobile-menu-open .aurit-sticky-cta {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Ensure mobile menu is on top and always visible */
.mobile-menu-overlay {
    z-index: 9998;
}

.mobile-menu-overlay.active {
    z-index: 999999;
}


/* ===== NAVBAR HEIGHT ===== */

.navbar {
    min-height: 80px;
}

/* ===== RESOURCES DROPDOWN MEGA-MENU ===== */

/* Dropdown container */
.nav-item-dropdown {
    position: relative;
}

/* Dropdown button */
.nav-link-dropdown {
    font-family: 'Monument Grotesk', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    padding: 8px 0 !important;
    background: none;
    border: none;
    color: #192615;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.nav-link-dropdown:hover {
    color: #014921;
}

@media (min-width: 1440px) {
    .nav-link-dropdown {
        font-size: 15px !important;
    }
}

@media (min-width: 1600px) {
    .nav-link-dropdown {
        font-size: 16px !important;
    }
}

@media (min-width: 1920px) {
    .nav-link-dropdown {
        font-size: 17px !important;
    }
}

/* Dropdown arrow */
.dropdown-arrow {
    transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .dropdown-arrow,
.nav-item-dropdown.keyboard-active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mega menu container */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 12px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, margin-top 0.3s ease;
    z-index: 10000;
    width: 560px;
    max-width: calc(100vw - 40px);
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown.keyboard-active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 8px;
}

/* Inner padding */
.nav-dropdown-inner {
    padding: 28px;
}

.nav-dropdown-heading {
    font-family: 'Monument Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin: 0 0 20px 0;
    text-align: center;
}

/* Grid layout - 2 columns */
.nav-dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    row-gap: 4px;
}

/* Resource link styling */
.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-dropdown-link:hover {
    background-color: #f0f9f4;
    border-color: #e5e7eb;
    text-decoration: none;
}

.nav-dropdown-link-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f9f4;
    border-radius: 8px;
    color: #014921;
    transition: all 0.2s ease;
}

.nav-dropdown-link-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-dropdown-link:hover .nav-dropdown-link-icon {
    background: #014921;
    color: #ffffff;
}

.nav-dropdown-link-content {
    flex: 1;
    text-align: left;
}

.nav-dropdown-link-title {
    font-family: 'Monument Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #192615;
    margin-bottom: 2px;
    text-align: left;
}

.nav-dropdown-link-description {
    font-family: 'Monument Grotesk', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
    text-align: left;
}

/* Hide dropdown on mobile */
@media (max-width: 1279px) {
    .nav-item-dropdown .nav-dropdown-menu {
        display: none !important;
    }
}

/* Symmetric navbar spacing - REMOVED margin-right from actions */
@media (min-width: 1280px) {
    .navbar-header {
        margin-left: 20px !important;
    }

    .navbar-actions {
        margin-right: 0 !important;
    }
}

@media (min-width: 1440px) {
    .navbar-header {
        margin-left: 40px !important;
    }

    .navbar-actions {
        margin-right: 0 !important;
    }
}

/* ============================================
   UNIVERSAL BUTTON STYLES
   Round/pill-shaped buttons across all pages
   ============================================ */

/* Base button styles */
.btn,
button.btn,
a.btn,
input[type="submit"].btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 60px !important;
    font-family: 'Monument Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 48px;
    box-sizing: border-box;
}

/* Solid green button (primary) */
.btn-green,
.btn-primary,
.btn-green-accent,
button.btn-green,
button.btn-primary,
a.btn-green,
a.btn-primary {
    background: #014921;
    color: #ffffff;
    border-color: #014921;
    box-shadow: 0 4px 12px rgba(1, 73, 33, 0.25);
}

.btn-green:hover,
.btn-primary:hover,
.btn-green-accent:hover,
button.btn-green:hover,
button.btn-primary:hover,
a.btn-green:hover,
a.btn-primary:hover {
    background: #013619;
    box-shadow: 0 6px 20px rgba(1, 73, 33, 0.35);
    transform: translateY(-2px);
}

.btn-green:active,
.btn-primary:active,
.btn-green-accent:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(1, 73, 33, 0.25);
}

/* Green outline button */
.btn-outline,
.btn-outline-green,
.btn-outline-green-accent,
button.btn-outline,
button.btn-outline-green,
a.btn-outline,
a.btn-outline-green {
    background: transparent !important;
    color: #014921 !important;
    border: 2px solid #014921 !important;
    box-shadow: none !important;
}

.btn-outline:hover,
.btn-outline-green:hover,
.btn-outline-green-accent:hover,
button.btn-outline:hover,
button.btn-outline-green:hover,
a.btn-outline:hover,
a.btn-outline-green:hover {
    background: #014921;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(1, 73, 33, 0.25);
    transform: translateY(-2px);
}

.btn-outline:active,
.btn-outline-green:active,
.btn-outline-green-accent:active {
    transform: translateY(0);
}

/* White button with contrast text */
.btn-white,
button.btn-white,
a.btn-white {
    background: #ffffff;
    color: #014921;
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-white:hover,
button.btn-white:hover,
a.btn-white:hover {
    background: #f9fafb;
    color: #014921;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-white:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Phone number link - styled as clickable text, not a button */
.btn-phone,
a.btn-phone,
.mobile-menu-btn-phone {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: auto !important;
    color: #014921;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-phone:hover,
a.btn-phone:hover,
.mobile-menu-btn-phone:hover {
    color: #013619;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.btn-phone:active,
a.btn-phone:active {
    transform: none !important;
}

.btn-phone svg,
.mobile-menu-btn-phone svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Navbar white button (Contact Us) - styled as text link */
.navbar-actions .btn.btn-white:not(.btn-phone) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: auto !important;
    color: #014921;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-actions .btn.btn-white:not(.btn-phone):hover {
    color: #013619;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.navbar-actions .btn.btn-white:not(.btn-phone):active {
    transform: none !important;
}

/* Only the text inside navbar link has underline on hover */
.navbar-actions .btn.btn-white:not(.btn-phone) .btn-text {
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.navbar-actions .btn.btn-white:not(.btn-phone):hover .btn-text {
    text-decoration: underline;
}

/* Button sizing variants */
.btn-sm {
    padding: 10px 24px;
    font-size: 14px;
    min-height: 40px;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
    min-height: 56px;
}

/* Full width button */
.btn-block {
    width: 100%;
    display: flex;
}

/* Disabled state */
.btn:disabled,
.btn.disabled,
button.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button icon spacing */
.btn svg,
.btn img {
    margin-left: 8px;
}

.btn svg:first-child,
.btn img:first-child {
    margin-left: 0;
    margin-right: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn {
        padding: 12px 24px;
        font-size: 15px;
        min-height: 44px;
    }

    .btn-sm {
        padding: 8px 20px;
        font-size: 13px;
        min-height: 36px;
    }

    .btn-lg {
        padding: 14px 32px;
        font-size: 16px;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}
