/* ==========================================================================
   Header Component Styles - SS Healing Rays (Bootstrap 5 Integrated)
   Layout: Left Side Menu | Center Logo | Right CTA Button
   Brand Colors:
     - #82387a : Primary Color (Amethyst Purple)
     - #ba436c : Secondary Color (Rose Magenta)
     - #111133 : Heading Text (Deep Midnight Navy)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700&family=Marcellus&family=Outfit:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700&display=swap');

:root {
    /* ==========================================================================
       Common Calling Color Tokens
       ========================================================================== */
    --primary-color: #82387a;
    --secondary-color: #ba436c;
    --heading-color: #111133;

    /* Semantic Common Calling Aliases */
    --color-primary: #82387a;
    --color-secondary: #ba436c;
    --color-heading: #111133;
    
    --brand-primary: #82387a;
    --brand-secondary: #ba436c;
    --brand-heading: #111133;

    /* RGBA Translucent Tokens */
    --primary-rgb: 130, 56, 122;
    --secondary-rgb: 186, 67, 108;
    --heading-rgb: 17, 17, 51;

    /* Typography */
    --brand-font-sans: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --brand-font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --brand-font-marcellus: 'Marcellus', Georgia, serif;
    --brand-font-btn: 'Outfit', 'Lato', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Header Dimensions */
    --header-height: 90px;
    --header-height-scrolled: 74px;
}

body {
    font-family: var(--brand-font-sans);
    color: #334155;
}

/* ==========================================================================
   Common Calling Utility Classes
   ========================================================================== */
/* Primary Color Calling */
.text-primary-color,
.text-brand-primary,
.color-primary {
    color: var(--primary-color) !important;
}

.bg-primary-color,
.bg-brand-primary {
    background-color: var(--primary-color) !important;
}

.border-primary-color,
.border-brand-primary {
    border-color: var(--primary-color) !important;
}

/* Secondary Color Calling */
.text-secondary-color,
.text-brand-secondary,
.color-secondary {
    color: var(--secondary-color) !important;
}

.bg-secondary-color,
.bg-brand-secondary {
    background-color: var(--secondary-color) !important;
}

.border-secondary-color,
.border-brand-secondary {
    border-color: var(--secondary-color) !important;
}

/* Heading Text Color Calling */
.text-heading,
.heading-text,
.heading-color {
    color: var(--heading-color) !important;
}

/* ==========================================================================
   Headings & Display Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.font-serif,
.heading-text,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--brand-font-serif);
    color: var(--heading-color);
}

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

/* Italic Typography - Playfair Display Italic */
em,
i:not([class*="bi-"]),
cite,
.fst-italic,
.italic,
.font-italic,
.italic-text {
    font-family: var(--brand-font-serif) !important;
    font-style: italic;
}

/* ==========================================================================
   Main Header & Navigation (Bootstrap 5.3 Navbar)
   ========================================================================== */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(130, 56, 122, 0.12) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1020;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px -10px rgba(17, 17, 51, 0.08), 0 1px 3px rgba(130, 56, 122, 0.15);
}

.site-header .navbar {
    min-height: var(--header-height);
    transition: min-height 0.3s ease;
}

.site-header.is-scrolled .navbar {
    min-height: var(--header-height-scrolled);
}

/* ==========================================================================
   Desktop Navigation Items & Dropdown Sub-Menus
   ========================================================================== */
.desktop-nav-menu .nav-link {
    font-family: var(--brand-font-serif);
    font-style: italic;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #475569;
    padding: 0.45rem 0.65rem !important;
    position: relative;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

@media (min-width: 1400px) {
    .desktop-nav-menu .nav-link {
        font-size: 16.5px;
        padding: 0.5rem 0.85rem !important;
    }
}

/* Nav Link Hover & Active */
.desktop-nav-menu .nav-link:hover,
.desktop-nav-menu .nav-link:focus {
    color: var(--primary-color);
    background: rgba(130, 56, 122, 0.05);
}

.desktop-nav-menu .nav-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

/* Subtle Underline Indicator */
.desktop-nav-menu .nav-link::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: transform 0.25s ease;
}

.desktop-nav-menu .nav-link:hover::before,
.desktop-nav-menu .nav-link.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* Dropdown Caret Styling: Replaced with rotating arrow */
.desktop-nav-menu .dropdown-toggle::after {
    display: none !important;
}

/* Nav Dropdown Arrow (Initial State: Pointing DOWN) */
.nav-arrow-icon {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    width: 11px;
    height: 11px;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
    transform: rotate(0deg); /* Initial state: Pointing DOWN */
    color: currentColor;
    opacity: 0.82;
}

/* Hover & Open States: Rotates 180deg to Point UP */
.desktop-nav-menu .nav-item.dropdown:hover .nav-arrow-icon,
.desktop-nav-menu .nav-item.dropdown.show .nav-arrow-icon,
.desktop-nav-menu .nav-link[aria-expanded="true"] .nav-arrow-icon {
    transform: rotate(180deg); /* Hover state: Rotates UP */
    color: var(--secondary-color, #ba436c);
    opacity: 1;
}

/* Base Desktop Dropdown Menu */
.desktop-nav-menu .dropdown-menu {
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 40px -8px rgba(17, 17, 51, 0.14), 0 0 0 1px rgba(130, 56, 122, 0.12);
    padding: 0.6rem;
    border: none;
    margin-top: 0.5rem;
    z-index: 1060;
    min-width: 240px;
}

/* Dropdown Animation */
@keyframes navDropdownFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .desktop-nav-menu .nav-item.dropdown:hover > .dropdown-menu {
        display: block !important;
        animation: navDropdownFade 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

/* Dropdown Items */
.desktop-nav-menu .dropdown-item {
    font-family: var(--brand-font-sans, 'Lato', sans-serif) !important;
    font-size: 13.5px;
    font-weight: 500;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    color: #475569;
    transition: all 0.18s ease;
    white-space: normal;
    line-height: 1.35;
    display: flex;
    align-items: center;
}

.desktop-nav-menu .dropdown-item:hover,
.desktop-nav-menu .dropdown-item:focus {
    color: var(--secondary-color, #ba436c);
    background-color: rgba(186, 67, 108, 0.08);
    transform: translateX(3px);
}

/* ==========================================================================
   Services Tree-by-Tree Menu Component (SS Healing Rays)
   Primary Sub-Menus Dropdown directly under Services nav item
   Hovering reveals hierarchical tree-structured sub-branches with trunk & branch lines
   ========================================================================== */
.services-dropdown-item {
    position: relative;
}

@media (min-width: 992px) {
    /* 1. Primary Dropdown Container - Sits directly under Services link */
    .desktop-nav-menu .dropdown-menu.services-tree-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        width: 320px;
        min-width: 320px;
        background: #ffffff;
        border-radius: 16px;
        padding: 0.65rem 0.55rem;
        border: 1px solid rgba(17, 17, 51, 0.08);
        box-shadow: 0 20px 48px -10px rgba(17, 17, 51, 0.14), 0 0 0 1px rgba(130, 56, 122, 0.04);
        margin-top: 0.5rem;
        z-index: 1060;
        font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        overflow: visible !important;
    }

    .desktop-nav-menu .services-dropdown-item:hover .services-tree-dropdown {
        display: block !important;
        animation: navDropdownFade 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    /* 2. Primary Sub-Menu Pillar Item */
    .tree-pillar-item {
        position: relative;
        list-style: none;
        margin-bottom: 4px;
    }

    .tree-pillar-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 0.95rem;
        border-radius: 12px;
        text-decoration: none;
        color: var(--heading-color, #111133);
        background: transparent;
        transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .tree-pillar-icon-box {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(186, 67, 108, 0.08);
        color: var(--secondary-color, #ba436c);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        flex-shrink: 0;
        margin-right: 12px;
        transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .tree-pillar-meta {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .tree-pillar-title {
        font-family: 'Lato', system-ui, sans-serif;
        font-size: 0.95rem;
        font-weight: 700;
        color: #1e293b;
        line-height: 1.3;
        transition: color 0.2s ease;
    }

    .tree-pillar-sub {
        font-size: 0.75rem;
        color: #64748b;
        font-weight: 500;
        line-height: 1.25;
        margin-top: 1px;
    }

    .tree-pillar-chevron {
        color: #94a3b8;
        font-size: 0.8rem;
        margin-left: 8px;
        transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
    }

    /* Hover state for Primary Pillar */
    .tree-pillar-item:hover .tree-pillar-trigger {
        background-color: #faf5f8;
    }

    .tree-pillar-item:hover .tree-pillar-icon-box {
        background-color: var(--secondary-color, #ba436c);
        color: #ffffff;
        transform: scale(1.05);
    }

    .tree-pillar-item:hover .tree-pillar-title {
        color: var(--secondary-color, #ba436c);
    }

    .tree-pillar-item:hover .tree-pillar-chevron {
        color: var(--secondary-color, #ba436c);
        transform: translateX(4px);
    }

    /* 3. Tree Structure Sub-Panel (Displays beside the hovered sub-menu) */
    .tree-subpanel-wrap {
        position: absolute;
        top: -6px;
        left: calc(100% - 6px);
        width: 390px;
        min-width: 380px;
        padding-left: 14px; /* Seamless hover bridge */
        margin-left: -8px;
        display: none;
        opacity: 0;
        transform: translateX(8px);
        transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
        z-index: 1070;
    }

    /* Workshops tree is 2-column for optimal compactness & aligned to bottom */
    .tree-pillar-item[data-pillar="workshops"] .tree-subpanel-wrap {
        width: 480px;
        min-width: 470px;
        top: auto;
        bottom: -6px;
    }

    .tree-subpanel-inner {
        background: #ffffff;
        border-radius: 16px;
        padding: 1.25rem 1.4rem 1.15rem;
        border: 1px solid rgba(17, 17, 51, 0.08);
        box-shadow: 0 24px 56px -10px rgba(17, 17, 51, 0.16), 0 0 0 1px rgba(130, 56, 122, 0.06);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(186, 67, 108, 0.25) transparent;
    }

    .tree-subpanel-inner::-webkit-scrollbar {
        width: 4px;
    }

    .tree-subpanel-inner::-webkit-scrollbar-track {
        background: transparent;
    }

    .tree-subpanel-inner::-webkit-scrollbar-thumb {
        background: rgba(186, 67, 108, 0.25);
        border-radius: 4px;
    }

    .tree-pillar-item:hover > .tree-subpanel-wrap {
        display: block !important;
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
        animation: navDropdownFade 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    /* Tree Branch Header */
    .tree-branch-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.95rem;
        padding-bottom: 0.55rem;
        border-bottom: 1.5px solid rgba(186, 67, 108, 0.14);
    }

    .tree-branch-pillar-name {
        font-family: 'Lato', system-ui, sans-serif;
        font-size: 0.82rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--secondary-color, #ba436c);
    }

    .tree-branch-count {
        font-size: 0.72rem;
        font-weight: 700;
        color: #64748b;
        background: rgba(17, 17, 51, 0.05);
        padding: 2px 8px;
        border-radius: 999px;
    }

    /* Hierarchical Tree Container with Trunk & Branches */
    .tree-branch-hierarchy {
        position: relative;
        padding-left: 6px;
    }

    .tree-trunk-stem {
        position: absolute;
        top: 14px;
        bottom: 16px;
        left: 14px;
        width: 2px;
        background: linear-gradient(
            to bottom,
            var(--secondary-color, #ba436c) 0%,
            rgba(186, 67, 108, 0.35) 85%,
            rgba(186, 67, 108, 0.08) 100%
        );
        border-radius: 2px;
    }

    .tree-nodes-list {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    /* Multi-column layout for workshops with dual-trunk branch visuals */
    .tree-branch-hierarchy.tree-multi-column .tree-nodes-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 1.25rem;
    }

    .tree-branch-hierarchy.tree-multi-column .tree-trunk-stem {
        display: none;
    }

    .tree-branch-hierarchy.tree-multi-column .tree-node-item::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 6px;
        width: 1.5px;
        background: linear-gradient(to bottom, rgba(186, 67, 108, 0.28), rgba(186, 67, 108, 0.12));
    }

    .tree-branch-hierarchy.tree-multi-column .tree-node-item:first-child::before,
    .tree-branch-hierarchy.tree-multi-column .tree-node-item:nth-child(2)::before {
        top: 50%;
    }

    .tree-branch-hierarchy.tree-multi-column .tree-node-item:last-child::before,
    .tree-branch-hierarchy.tree-multi-column .tree-node-item:nth-last-child(2)::before {
        bottom: 50%;
    }

    .tree-node-item {
        position: relative;
    }

    .tree-node-link {
        display: flex;
        align-items: center;
        text-decoration: none;
        padding: 5px 8px 5px 36px;
        border-radius: 8px;
        position: relative;
        line-height: 1.35;
        transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .tree-branch-hierarchy.tree-multi-column .tree-node-link {
        padding-left: 24px;
    }

    /* Horizontal branch connector extending from vertical trunk */
    .tree-branch-arm {
        position: absolute;
        top: 50%;
        left: 14px;
        width: 14px;
        height: 1.5px;
        background-color: rgba(186, 67, 108, 0.35);
        transition: background-color 0.2s ease, width 0.2s ease;
    }

    .tree-branch-hierarchy.tree-multi-column .tree-branch-arm {
        left: 6px;
        width: 10px;
    }

    /* Tree Node Bullet Dot */
    .tree-node-bullet {
        position: absolute;
        top: calc(50% - 3.5px);
        left: 24px;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background-color: #ffffff;
        border: 1.5px solid var(--secondary-color, #ba436c);
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 2;
    }

    .tree-branch-hierarchy.tree-multi-column .tree-node-bullet {
        left: 13px;
    }

    /* Tabular Numeral */
    .tree-node-num {
        font-family: 'Lato', system-ui, sans-serif;
        font-size: 0.74rem;
        font-weight: 700;
        color: #94a3b8;
        font-variant-numeric: tabular-nums;
        width: 22px;
        flex-shrink: 0;
        margin-right: 6px;
        transition: color 0.18s ease;
    }

    /* Title */
    .tree-node-title {
        font-family: 'Lato', system-ui, sans-serif;
        font-size: 0.85rem;
        font-weight: 400;
        color: #334155;
        line-height: 1.38;
        transition: color 0.18s ease;
    }

    /* Hover State for Tree Node */
    .tree-node-link:hover {
        background-color: #faf5f8;
        transform: translateX(3px);
    }

    .tree-node-link:hover .tree-branch-arm {
        background-color: var(--secondary-color, #ba436c);
        width: 16px;
    }

    .tree-node-link:hover .tree-node-bullet {
        background-color: var(--secondary-color, #ba436c);
        transform: scale(1.35);
        box-shadow: 0 0 8px rgba(186, 67, 108, 0.45);
    }

    .tree-node-link:hover .tree-node-num {
        color: var(--secondary-color, #ba436c);
        font-weight: 800;
    }

    .tree-node-link:hover .tree-node-title {
        color: var(--secondary-color, #ba436c);
        font-weight: 600;
    }

    /* Tree Branch Footer */
    .tree-branch-footer {
        margin-top: 0.85rem;
        padding-top: 0.65rem;
        border-top: 1px solid rgba(17, 17, 51, 0.06);
        display: flex;
        justify-content: flex-end;
    }

    .tree-branch-explore-link {
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--secondary-color, #ba436c);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        transition: all 0.2s ease;
    }

    .tree-branch-explore-link:hover {
        color: #983355;
        transform: translateX(3px);
    }

    /* Primary Dropdown Footer */
    .tree-dropdown-footer {
        margin-top: 0.65rem;
        padding: 0.65rem 0.5rem 0.2rem;
        border-top: 1px solid rgba(17, 17, 51, 0.06);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tree-footer-all-link {
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--secondary-color, #ba436c);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 12px;
        border-radius: 999px;
        transition: all 0.2s ease;
    }

    .tree-footer-all-link:hover {
        background-color: #faf5f8;
        transform: translateX(3px);
    }
}

/* ==========================================================================
   Mobile Offcanvas Services Accordion (Minimal UI)
   ========================================================================== */
.mobile-services-collapse {
    background-color: rgba(130, 56, 122, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(17, 17, 51, 0.05);
    font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.mobile-pillar-heading {
    font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color, #82387a);
    margin-bottom: 0.45rem;
    margin-top: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(130, 56, 122, 0.08);
}

.mobile-sublinks-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.mobile-sublink {
    font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 0.82rem;
    font-weight: 400;
    color: #334155;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 4px 6px;
    border-radius: 4px;
    line-height: 1.4;
    transition: all 0.18s ease;
}

.mobile-sublink .mega-num {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    width: 22px;
    min-width: 22px;
    margin-right: 10px;
    margin-top: 1.5px;
    line-height: 1.4;
    transition: color 0.18s ease;
    flex-shrink: 0;
}

.mobile-sublink .mega-text {
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.4;
    flex: 1;
    transition: color 0.18s ease;
}

.mobile-sublink:hover,
.mobile-sublink:active {
    color: var(--secondary-color, #ba436c);
    transform: translateX(4px);
    background-color: rgba(186, 67, 108, 0.04);
}

.mobile-sublink:hover .mega-num,
.mobile-sublink:hover .mega-text {
    color: var(--secondary-color, #ba436c) !important;
}

/* Mobile Drawer Rotating Arrow (Initial State: DOWN -> Hover/Open: UP) */
.mobile-nav-arrow {
    display: inline-block;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
    transform: rotate(0deg); /* Initial state: DOWN */
    color: #64748b;
}

.offcanvas-nav a[aria-expanded="true"] .mobile-nav-arrow {
    transform: rotate(180deg); /* Open state: UP */
    color: var(--secondary-color, #ba436c);
}

/* ==========================================================================
   CENTER COLUMN: Logo
   ========================================================================== */
.site-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    z-index: 1040;
    transition: transform 0.25s ease;
}

.site-logo:hover {
    transform: translateY(-2px);
}

.logo-image {
    width: 120px;
    height: 120px;
    max-height: none;
    object-fit: contain;
    border-radius: 50%;
    margin-top: 10px;
    margin-bottom: -36px; /* Elegantly overflows past header bottom border */
    filter: none !important; /* Logo shadow removed */
    position: relative;
    z-index: 1045;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-image:hover {
    transform: scale(1.05);
    filter: none !important;
}

.site-header.is-scrolled .logo-image {
    width: 90px;
    height: 90px;
    margin-top: 6px;
    margin-bottom: -22px;
}

/* ==========================================================================
   RIGHT COLUMN: CTA Button & Contacts
   ========================================================================== */
.header-phone-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-phone-link:hover {
    color: var(--primary-color);
}

.header-phone-link i {
    color: var(--secondary-color);
}

/* Brand CTA Button (extends Bootstrap .btn with Primary & Secondary gradient) */
.btn-brand-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #FFFFFF !important;
    font-family: var(--brand-font-sans);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 1.45rem;
    box-shadow: 0 4px 15px rgba(130, 56, 122, 0.35);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-brand-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.75s ease;
}

.btn-brand-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(186, 67, 108, 0.45);
    color: #FFFFFF !important;
}

.btn-brand-cta:hover::before {
    left: 170%;
}

.btn-brand-cta:active {
    transform: translateY(0);
}

/* ==========================================================================
   Bootstrap Offcanvas Mobile Menu
   ========================================================================== */
.offcanvas {
    max-width: 320px;
    border-left: 1px solid rgba(130, 56, 122, 0.15);
    border-right: none;
    box-shadow: -8px 0 32px rgba(17, 17, 51, 0.12);
}

.offcanvas-nav .nav-link {
    font-family: var(--brand-font-serif);
    font-style: italic;
    font-size: 17px;
    font-weight: 600;
    color: var(--heading-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.offcanvas-nav .nav-link:hover,
.offcanvas-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(130, 56, 122, 0.06);
    padding-left: 1.25rem;
}

/* ==========================================================================
   Responsive Breakpoints - Header & Navigation
   ========================================================================== */
@media (max-width: 991.98px) {
    .site-header {
        background: rgba(255, 255, 255, 0.98);
    }

    .site-header .navbar {
        min-height: 68px;
    }

    .site-header.is-scrolled .navbar {
        min-height: 58px;
    }

    .site-header .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Left-aligned Brand Logo on Mobile */
    .site-logo {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }

    .logo-image {
        width: 96px;
        height: 96px;
        max-height: none;
        margin-top: 6px;
        margin-bottom: -28px; /* Elegantly overflows past navbar bottom border */
        object-fit: contain;
        border-radius: 50%;
        filter: none !important;
        position: relative;
        z-index: 1045;
        transition: all 0.25s ease;
    }

    .site-header.is-scrolled .logo-image {
        width: 76px;
        height: 76px;
        max-height: none;
        margin-top: 3px;
        margin-bottom: -18px;
    }

    /* Right-aligned Hamburger Button on Mobile */
    .site-header .navbar-toggler {
        width: 42px;
        height: 42px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: transparent;
        border: 1px solid rgba(17, 17, 51, 0.08);
        transition: all 0.2s ease;
        box-shadow: none !important;
        outline: none !important;
    }

    .site-header .navbar-toggler:hover,
    .site-header .navbar-toggler:active {
        background-color: rgba(130, 56, 122, 0.08);
        transform: scale(0.96);
    }

    .site-header .navbar-toggler .navbar-toggler-icon {
        width: 22px;
        height: 22px;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23111133' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* Hide Right-side CTA button completely on mobile & tablets */
    #siteHeader .header-cta-wrapper,
    #siteHeader .Btn-Header,
    #siteHeader #headerCtaBtn {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .site-header .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .logo-image {
        width: 86px;
        height: 86px;
        max-height: none;
        margin-top: 4px;
        margin-bottom: -24px; /* Prominently overflows past navbar bottom border on phones */
    }

    .site-header.is-scrolled .logo-image {
        width: 68px;
        height: 68px;
        max-height: none;
        margin-top: 2px;
        margin-bottom: -16px;
    }

    .site-header .navbar-toggler {
        width: 40px;
        height: 40px;
    }
}

/* ==========================================================================
   Common Reusable Button Component (.Btn-Container)
   Supports dynamic custom color calling:
     --btn-bg         : Container background
     --btn-icon-bg    : Icon circle badge background
     --btn-text-color : Text label color
     --btn-icon-color : Icon color
   ========================================================================== */
/* ==========================================================================
   Common Reusable Button Component (.Btn-Container)
   Layout: Clean Text + Circular Badge Icon (Diagonal Arrow ↗)
   Matches Reference: "Explore Services ↗"
   ========================================================================== */
.Btn-Container {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: fit-content;
    height: fit-content;
    background-color: var(--btn-bg, #ffffff);
    border-radius: 50px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    padding: 3px 3px 3px 18px;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    vertical-align: middle;
    outline: none;
    user-select: none;
}

.Btn-Container:hover {
    transform: translateY(-2px);
}

.Btn-Container:hover .icon-Container .btn-arrow-svg,
.Btn-Container:hover .icon-Container i {
    transform: translate(2.5px, -2.5px);
}

.Btn-Container:active {
    transform: translateY(0) scale(0.98);
}

.Btn-Container .text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--btn-text-color, var(--heading-color, #111133));
    font-family: var(--brand-font-btn, 'Outfit', 'Lato', sans-serif);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.Btn-Container .icon-Container {
    width: 48px;
    height: 48px;
    background-color: var(--btn-icon-bg, var(--primary-color, #82387a));
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50%;
    border: none;
    color: #ffffff !important;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Icon Color: Pure White in default/base state */
.Btn-Container .icon-Container .btn-arrow-svg {
    display: block !important;
    margin: 0 auto !important;
    width: 20px;
    height: 20px;
    color: #ffffff !important;
    stroke: #ffffff !important;
    fill: none !important;
    stroke-width: 2.6;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease, stroke 0.3s ease;
}

.Btn-Container .icon-Container i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    font-size: 1.15rem;
    line-height: 1 !important;
    color: #ffffff !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

/* ==========================================================================
   Header CTA Button (.Btn-Header / #siteHeader .Btn-Container)
   Normal State (Exact match to reference design):
     - Background: Seamlessly White / Clean
     - Border: None / transparent (No bulky pill border)
     - Box-shadow: None
     - Text: var(--heading-color, #111133), 1.18rem, 600 weight
     - Icon Circle: 48px diameter, solid var(--primary-color, #82387a)
     - Arrow: Crisp White diagonal arrow (↗) centered in circle
   
   Hover State (User specification):
     - Button background: var(--primary-color, #82387a) (Primary Color)
     - Button border: var(--primary-color, #82387a)
     - Text color: #ffffff (White)
     - Icon Circle background: #ffffff (White)
     - Icon Arrow color: #000000 (Black arrow!)
     - Smooth elevation lift and diagonal arrow micro-motion
   ========================================================================== */
.Btn-Header,
#siteHeader .Btn-Container {
    background-color: #ffffff !important;
    border: 1.5px solid transparent !important;
    box-shadow: none !important;
    padding: 3px 3px 3px 18px;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.Btn-Header .text,
#siteHeader .Btn-Container .text {
    color: var(--heading-color, #111133) !important;
    font-family: var(--brand-font-btn, 'Outfit', 'Lato', sans-serif);
    font-size: 1.12rem;
    font-weight: 500 !important; /* Medium font weight */
    letter-spacing: -0.01em;
    padding-right: 0;
    transition: color 0.3s ease;
}

.Btn-Header .icon-Container,
#siteHeader .Btn-Container .icon-Container {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background-color: var(--primary-color, #82387a) !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 0 !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.Btn-Header .icon-Container .btn-arrow-svg,
.Btn-Header .icon-Container i,
#siteHeader .Btn-Container .icon-Container .btn-arrow-svg,
#siteHeader .Btn-Container .icon-Container i {
    width: 20px;
    height: 20px;
    color: #ffffff !important;
    stroke: #ffffff !important;
    fill: none !important;
    stroke-width: 2.6;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    transform: none !important; /* Perfectly centered in middle of circle */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease, stroke 0.3s ease;
}

/* Hover State */
.Btn-Header:hover,
#siteHeader .Btn-Container:hover {
    background-color: var(--primary-color, #82387a) !important;
    border-color: var(--primary-color, #82387a) !important;
    box-shadow: 0 8px 24px rgba(130, 56, 122, 0.28) !important;
    transform: translateY(-2px);
}

.Btn-Header:hover .text,
#siteHeader .Btn-Container:hover .text {
    color: #ffffff !important;
}

.Btn-Header:hover .icon-Container,
#siteHeader .Btn-Container:hover .icon-Container {
    background-color: rgba(255, 255, 255, 0.22) !important;
    transform: scale(1.04);
}

.Btn-Header:hover .icon-Container .btn-arrow-svg,
.Btn-Header:hover .icon-Container i,
#siteHeader .Btn-Container:hover .icon-Container .btn-arrow-svg,
#siteHeader .Btn-Container:hover .icon-Container i {
    color: #ffffff !important;
    stroke: #ffffff !important;
    transform: translate(1px, -1px);
}

.Btn-Header:active,
#siteHeader .Btn-Container:active {
    transform: translateY(0) scale(0.98);
}

/* ==========================================================================
   Drawer CTA Button (#drawerCtaBtn)
   ========================================================================== */
#drawerCtaBtn {
    width: 100% !important;
    padding: 3px 3px 3px 18px !important;
    gap: 16px !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border: 1.5px solid rgba(130, 56, 122, 0.2) !important;
    background-color: #ffffff !important;
}

#drawerCtaBtn .text {
    display: inline-flex !important;
    font-size: 1.05rem !important;
    color: var(--heading-color, #111133) !important;
}

#drawerCtaBtn .icon-Container {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    background-color: var(--primary-color, #82387a) !important;
    border-radius: 50% !important;
}
