@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,700&family=JetBrains+Mono&display=swap');

:root {
    /* Oceanic Color Palette */
    --deep-sea: #003366;
    --deep-sea-hover: #002244;
    --coral-reef: #FF7F50;
    --coral-reef-hover: #E66B40;
    --beach-sand: #C2B280;
    --ocean-mist: #F0F8FF;
    --bone-white: #FFFFFF;
    --smoke-white: #F8F9FA;
    --text-main: #1A202C;
    --text-muted: #4A5568;
    --border-light: #E2E8F0;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --header-shadow: 0 4px 20px rgba(0,0,0,0.05);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Source Serif 4', serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Layout */
    --max-width: 1100px;
    --section-spacing: 60px;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bone-white);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--deep-sea);
    line-height: 1.2;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.8rem; font-weight: 700; letter-spacing: -1px; }
h2 { font-size: 2rem; font-weight: 700; border-bottom: 2px solid var(--ocean-mist); padding-bottom: 10px; }
h3 { font-size: 1.5rem; font-weight: 700; }

a {
    color: var(--coral-reef);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--coral-reef-hover);
}

/* Global Navigation Styles */
.top-utility-bar {
    background-color: var(--deep-sea);
    color: rgba(255,255,255,0.7);
    font-family: var(--font-heading);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-utility-bar a {
    color: rgba(255,255,255,0.8);
    margin-right: 15px;
    text-decoration: none;
}

.top-utility-bar a:hover {
    color: white;
}

.main-authority-header {
    background-color: var(--bone-white);
    padding-top: 40px;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.container-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.brand-identity {
    flex: 1;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--deep-sea);
    text-decoration: none;
    letter-spacing: -1.5px;
    display: block;
    line-height: 0.9;
    background: linear-gradient(135deg, var(--deep-sea) 0%, #336699 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tagline {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
    margin: 10px 0 0 0;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    opacity: 0.8;
}

.main-nav-strip {
    background: white;
    margin-top: 35px;
    border-top: 1px solid var(--border-light);
    border-bottom: 2px solid var(--deep-sea);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--header-shadow);
}

.nav-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search-input {
    background-color: var(--smoke-white);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-size: 14px;
    width: 250px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.nav-search-input:focus {
    width: 300px;
    background-color: white;
    border-color: var(--coral-reef);
    box-shadow: 0 0 0 4px rgba(255, 127, 80, 0.1);
}

#search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-light);
    z-index: 2000;
    display: none;
    overflow: hidden;
    animation: searchReveal 0.2s ease-out;
}

@keyframes searchReveal {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    transition: background 0.2s ease;
    text-align: left;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: var(--smoke-white);
}

.search-result-title {
    display: block;
    color: var(--deep-sea);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.search-result-desc {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

.primary-navigation {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.primary-navigation a {
    font-family: var(--font-heading);
    color: var(--deep-sea);
    font-weight: 700;
    padding: 20px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    text-decoration: none;
    display: inline-block;
}

.primary-navigation a:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--coral-reef);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-navigation a:hover {
    color: var(--coral-reef);
}

.primary-navigation a:hover:after {
    width: 100%;
}

/* Base Components */
.button, a.button {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--coral-reef);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 127, 80, 0.2);
}

.button:hover, a.button:hover {
    background-color: var(--coral-reef-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 127, 80, 0.3);
    color: white;
}

.card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 30px;
    margin: 24px 0;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

/* Utils */
.quick-answer {
    background-color: var(--ocean-mist);
    border-left: 5px solid var(--deep-sea);
    padding: 24px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.quick-answer > strong {
    color: var(--deep-sea);
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

/* Footer */
footer {
    background-color: var(--deep-sea);
    color: rgba(255,255,255,0.7);
    padding: 80px 20px;
    margin-top: var(--section-spacing);
    font-family: var(--font-heading);
}

footer .container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

footer h4 {
    color: white;
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.25rem;
}

footer a {
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: 12px;
}

footer a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .container-nav { flex-direction: column; align-items: center; text-align: center; }
    .brand-identity { margin-bottom: 20px; }
}
