
:root {
    --primary-color: #0052d6; --bg-color: #f3f4f6; --text-color: #111111;
    --header-bg: rgba(255, 255, 255, 0.5); --mobile-nav-bg: rgba(248, 250, 252, 0.7);
    --dropdown-bg: #0052d6; --dropdown-text: #ffffff; --footer-bg: #1a202c; --footer-text: #e2e8f0; 
    --hamburger-color: #3278e5;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; margin: 0; background-color: var(--bg-color); color: var(--text-color); overflow-x: hidden; font-weight: 500; }
.site-container { min-height: 100vh; transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1); background-color: var(--bg-color); }
.mobile-nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.2); z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
body.nav-open .mobile-nav-overlay { opacity: 1; visibility: visible; }
body.nav-open .site-container { transform: scale(0.9); border-radius: 10px; box-shadow: 0 0 30px rgba(0,0,0,0.2); overflow: hidden; }
html.nav-open, body.nav-open { overflow: hidden; }
.site-header-wrapper { padding: 0.75rem; z-index: 10; position: relative; }
@media (min-width: 992px) { .site-header-wrapper { position: sticky; top: 0; } }
.site-header { max-width: 1200px; margin: 0 auto; background-color: var(--header-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(128,128,128,0.2); border-radius: 9999px; padding: 0.5rem; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.logo { font-size: 1.5rem; font-weight: 700; text-decoration: none; color: var(--primary-color); padding: 0 0.5rem; white-space: nowrap; flex-shrink: 0; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link { display: block; padding: 8px 12px; text-decoration: none; color: inherit; cursor: pointer; border-radius: 6px; transition: background-color 0.2s, color 0.2s; white-space: nowrap; font-weight: 600; }
.main-nav .dropdown-toggle { display: none; }

.desktop-nav { display: none; }
@media (min-width: 992px) {
    .desktop-nav { display: block; margin-left: auto; }
    .desktop-nav .nav-list { display: flex; align-items: center; gap: 0.5rem; }
    .desktop-nav .nav-link:hover { background-color: rgba(128,128,128,0.1); }
    .desktop-nav .nav-link.active { background-color: transparent; color: var(--primary-color); }
    .desktop-nav .dropdown { list-style: none; padding: 0.5rem; margin-top: 10px; background-color: var(--dropdown-bg); min-width: 220px; border-radius: 8px; z-index: 10; box-shadow: 0 10px 20px rgba(0,0,0,0.1); position: absolute; top: 100%; left: 0; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
    .desktop-nav .has-dropdown:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
    .desktop-nav .dropdown .nav-link { color: var(--dropdown-text); }
    .desktop-nav .dropdown .nav-link:hover { background-color: rgba(255,255,255,0.1); }
    .desktop-nav .dropdown .nav-link.active { background-color: rgba(255,255,255,0.2); }
}

.hamburger-menu { display: block; background: none; border: none; cursor: pointer; padding: 0; z-index: 1002; width: 44px; height: 44px; position: relative; flex-shrink: 0; }
@media (min-width: 992px) { .hamburger-menu { display: none; } }
.hamburger-menu span { display: block; width: 24px; height: 3px; background-color: var(--hamburger-color); transition: all 0.3s; border-radius: 3px; position: absolute; left: 10px; }
.hamburger-menu span:nth-of-type(1) { top: 13px; }
.hamburger-menu span:nth-of-type(2) { top: 20px; }
.hamburger-menu span:nth-of-type(3) { top: 27px; }

.mobile-nav { display: none; }
@media (max-width: 991px) {
    .main-nav .dropdown-toggle { display: flex; }
    .mobile-nav .nav-link { font-weight: 500; }
    .mobile-nav .nav-link.active { background-color: var(--primary-color); color: var(--dropdown-text) !important; }
    .mobile-nav .dropdown .nav-link.active { background-color: transparent; color: var(--primary-color) !important; }
    .mobile-nav { display: flex; flex-direction: column; position: fixed; top: 0; right: 0; width: 85%; max-width: 340px; height: 100vh; background-color: var(--mobile-nav-bg); backdrop-filter: blur(32px) saturate(180%); -webkit-backdrop-filter: blur(32px) saturate(180%); transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1); z-index: 1001; border-left: 1px solid rgba(128,128,128,0.2); }
    body.nav-open .mobile-nav { transform: translateX(0); }
    .mobile-nav-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0.75rem; flex-shrink: 0; }
    .mobile-nav-header p { margin: 0 0 0 0.25rem; font-weight: 600; }
    .mobile-nav-close-btn { background: none; border: none; cursor: pointer; font-size: 2.5rem; color: var(--text-color); opacity: 0.7; padding: 0 .75rem; line-height: 1; }
    .mobile-nav .search-container { padding: 0.5rem 1rem; }
    .mobile-nav .nav-list { flex-direction: column; padding: 1rem; gap: 0.25rem; flex-grow: 1; overflow-y: auto; border-top: 1px solid #e2e8f0; }
    .mobile-nav .nav-item { display: flex; flex-wrap: wrap; align-items: center; }
    .mobile-nav .nav-link { flex-grow: 1; }
    .mobile-nav .dropdown-toggle { align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; background: transparent; border: none; cursor: pointer; color: var(--text-color); margin-left: auto; }
    .mobile-nav .dropdown-toggle::after { content: '▾'; font-size: 1.5rem; transition: transform 0.3s ease; }
    .mobile-nav .nav-item.is-open > .dropdown-toggle::after { transform: rotate(180deg); }
    .mobile-nav .dropdown { list-style: none; background: transparent; padding-left: 1rem; margin: 0; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; flex-basis: 100%; }
    .mobile-nav .nav-item.is-open > .dropdown { max-height: 1000px; }
    .mobile-nav .mobile-nav-watermark { display: block; padding: 1.5rem 1rem; text-align: center; font-size: 0.8rem; opacity: 0.7; }
}

@keyframes pulse-ai { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary-color) 30%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ai-assistant-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--primary-color); border-radius: 50%; background-color: color-mix(in srgb, var(--primary-color) 10%, transparent); text-decoration: none; font-size: 0.9rem; font-weight: 700; transition: background-color 0.2s; animation: pulse-ai 2s infinite; }
.ai-assistant-link:hover { background-color: color-mix(in srgb, var(--primary-color) 20%, transparent); animation-play-state: paused; }
@media (max-width: 991px) { .desktop-nav, .desktop-search { display: none; } }

.search-container { position: relative; }
.search-results { display: none; position: absolute; top: calc(100% + 10px); right: 0; background-color: #fff; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); border: 1px solid #eee; z-index: 1010; max-height: 400px; overflow-y: auto; width: 320px; padding: .5rem; }
.search-results.visible { display: block; }
.search-result-item { display: block; padding: 0.75rem 1rem; text-decoration: none; color: var(--text-color); border-bottom: 1px solid #f0f0f0; transition: background-color 0.2s; border-radius: 6px; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background-color: #f7f7f7; }
.search-result-item strong { color: var(--primary-color); font-weight: 600; }
.no-results-container { padding: 1rem; text-align: center; }
.no-results-container .request-link { display: inline-block; margin-top: 1rem; padding: .6rem 1.2rem; background-color: var(--primary-color); color: white; text-decoration: none; border-radius: 999px; font-weight: 500; transition: opacity 0.2s; }
.no-results-container .request-link:hover { opacity: 0.9; }
.desktop-search { display: none; }
@media (min-width: 992px) { .desktop-search { display: flex; align-items: center; } }
.desktop-search .search-button { position: absolute; right: 0; top: 0; bottom: 0; background: transparent; border: none; cursor: pointer; padding: 0 12px; color: var(--text-color); opacity: 0.7; z-index: 2; }
.desktop-search input[type="search"] { color: transparent; width: 44px; height: 44px; background-color: #eee; border: 1px solid #eee; border-radius: 9999px; padding-left: 16px; font-size: 0.9rem; transition: all 0.3s ease; outline: none; -webkit-appearance: none; cursor: pointer; }
.desktop-search.is-active input[type="search"] { width: 250px; padding-right: 40px; cursor: text; color: var(--text-color); }
.desktop-search input[type="search"]:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent); }
.mobile-search input[type="search"] { width: 100%; padding: 0.75rem 1rem 0.75rem 2.75rem; font-size: 1rem; border-radius: 9999px; border: 1px solid #ddd; background-color: #fff; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%230052d6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z' /%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 1rem center; background-size: 1.25rem; }
.mobile-search input[type="search"]:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent); outline: none; }
.mobile-search .search-results { width: auto; left: 1rem; right: 1rem; }

.page-transition-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-color); z-index: 9999; transform: translateY(0); display: flex; align-items: center; justify-content: center; transition: transform 1.4s cubic-bezier(0.83, 0, 0.17, 1); }
body.is-loaded .page-transition-overlay { transform: translateY(-100%); }
.transition-brand { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); opacity: 1; transition: opacity .5s ease; }
body.is-loaded .transition-brand { opacity: 0; }
body.is-leaving .page-transition-overlay { transform: translateY(0); transition-duration: 1.4s; }
body.is-leaving .transition-brand { opacity: 1; transition-delay: .5s; }
main.page-content { padding: 1rem; max-width: 1100px; margin: 1rem auto; opacity: 0; transition: opacity 0.5s ease; }
body.is-loaded main.page-content { opacity: 1; transition-delay: .8s; }
body.is-leaving main.page-content { opacity: 0; transition: opacity .3s ease; }
.back-to-top { position: fixed; bottom: 20px; right: 20px; background: var(--primary-color); color: #fff; width: 50px; height: 50px; border-radius: 50%; opacity: 0; visibility: hidden; z-index: 2000; display: flex; align-items: center; justify-content: center; border: none; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transform: translateY(100px); transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.3s ease; }
.back-to-top svg { width: 24px; height: 24px; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.site-footer { padding: 2rem 1rem; margin-top: 2rem; background-color: var(--footer-bg); color: var(--footer-text); text-align: center; }
