/* ===== HEADER ===== */
.d14-header {
    position: fixed;
    top: var(--d14-topbar-offset, 0px);
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.d14-header-bg {
    position: absolute;
    inset: 0;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}
.d14-header.scrolled .d14-header-bg {
    background: rgba(255, 251, 245, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    left: 2.5%;
    right: 2.5%;
    border-radius: 0 0 20px 28px;
    box-shadow: 0 6px 32px rgba(139, 90, 43, 0.1);
}
.d14-header.scrolled .d14-header-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(232,115,74,0.3), rgba(249,115,22,0.4), rgba(232,115,74,0.3), transparent);
    border-radius: 2px;
}
.d14-header.hidden { transform: translateY(-110%); }
.d14-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    height: 76px;
    transition: height 0.4s ease, padding 0.4s ease;
}
.d14-header.scrolled .d14-header-inner { height: 64px; }
.d14-header-logo { display: flex; align-items: center; flex-shrink: 0; z-index: 2; }
.d14-header-logo img { height: 42px; width: auto; transition: height 0.35s ease; }
.d14-header.scrolled .d14-header-logo img { height: 38px; }
.d14-nav { display: flex; align-items: center; gap: 2px; }
.d14-nav-item { position: relative; }
.d14-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.d14-nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.d14-header.scrolled .d14-nav-link { color: #2d3436; }
.d14-header.scrolled .d14-nav-link:hover { color: #e8734a; background: rgba(232, 115, 74, 0.07); }
.d14-nav-link .fa-chevron-down { font-size: 0.58rem; margin-left: 2px; transition: transform 0.3s ease; opacity: 0.5; }
.d14-nav-dropdown:hover .d14-nav-link .fa-chevron-down { transform: rotate(180deg); opacity: 1; }
.d14-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #fffbf5;
    border-radius: 14px 14px 18px 18px;
    box-shadow: 0 12px 44px rgba(139, 90, 43, 0.13), 0 0 0 1px rgba(232, 115, 74, 0.05);
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}
.d14-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, #e8734a, #f97316);
    border-radius: 3px;
}
.d14-nav-dropdown:hover .d14-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.d14-dropdown-menu li a {
    display: block;
    padding: 9px 14px;
    font-size: 0.87rem;
    font-weight: 500;
    color: #3d3d3d;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.d14-dropdown-menu li a:hover { background: rgba(232, 115, 74, 0.07); color: #e8734a; padding-left: 18px; }
.d14-header-cta { flex-shrink: 0; z-index: 2; }
.d14-header-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 26px;
    background: linear-gradient(135deg, #e8734a, #c2693d);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.87rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.35s ease;
    box-shadow: 0 4px 16px rgba(232, 115, 74, 0.28);
    white-space: nowrap;
}
.d14-header-cta a:hover { background: linear-gradient(135deg, #c2693d, #a8563a); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(232, 115, 74, 0.4); }

/* Mobile Toggle */
.d14-mobile-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.2s ease;
    z-index: 1001;
    padding: 8px;
}
.d14-mobile-toggle:hover { background: rgba(255, 255, 255, 0.1); }
.d14-header.scrolled .d14-mobile-toggle:hover { background: rgba(232, 115, 74, 0.06); }
.d14-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.d14-header.scrolled .d14-mobile-toggle span { background: #2d3436; }
.d14-mobile-toggle.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.d14-mobile-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.d14-mobile-toggle.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Mobile Backdrop */
.d14-mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(45, 52, 54, 0.25);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.35s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.d14-mobile-backdrop.active { opacity: 1; }

/* Mobile Side Panel */
.d14-mobile-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100dvh;
    background: #fffbf5;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 28px 0 0 28px;
    box-shadow: -8px 0 40px rgba(45, 52, 54, 0.1);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.d14-mobile-panel.active { transform: translateX(0); }
.d14-mobile-panel-inner { padding: 88px 20px 40px; }
.d14-mobile-nav-list { display: flex; flex-direction: column; gap: 2px; }
.d14-mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #2d3436;
    border-radius: 12px;
    transition: all 0.25s ease;
}
.d14-mobile-nav-link:hover { background: rgba(232, 115, 74, 0.06); color: #e8734a; }
.d14-mobile-nav-link i { font-size: 0.7rem; color: #aaa; transition: all 0.3s ease; }
.d14-mobile-dropdown.active > .d14-mobile-nav-link i { transform: rotate(180deg); color: #e8734a; }
.d14-mobile-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 12px;
}
.d14-mobile-dropdown.active .d14-mobile-sub { max-height: 400px; }
.d14-mobile-sub li a {
    display: block;
    padding: 10px 16px;
    font-size: 0.92rem;
    color: #666;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.d14-mobile-sub li a:hover { background: rgba(232, 115, 74, 0.06); color: #e8734a; }
.d14-mobile-cta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(232, 115, 74, 0.1);
}
.d14-mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #e8734a, #c2693d);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(232, 115, 74, 0.25);
    transition: all 0.3s ease;
}
.d14-mobile-cta a:hover { background: linear-gradient(135deg, #c2693d, #a8563a); }

/* Push content below fixed header */
.site-main {
  padding-top: 76px;
}

/* Homepage hero extends behind transparent header */
.home-hero {
  margin-top: -76px;
}
