/* ============================================================
   Marck v. Partin – Custom stylesheet (no frameworks)
   ============================================================ */

/* Variables */
:root {
    --navy:        #0d1b2a;
    --blue:        #1a56db;
    --blue-dark:   #1040b0;
    --blue-light:  #eff6ff;
    --purple:      #763ac7;
    --cyan:        #009dea;
    --gray-50:     #f8fafc;
    --gray-100:    #f1f5f9;
    --gray-200:    #e2e8f0;
    --gray-300:    #cbd5e1;
    --gray-400:    #94a3b8;
    --gray-500:    #64748b;
    --gray-700:    #334155;
    --white:       #ffffff;
    --radius:      0.5rem;
    --radius-sm:   0.3125rem;
    --shadow-sm:   0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow:      0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md:   0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg:   0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    color: var(--gray-700);
    background: var(--gray-50);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   Header / Navigation
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--navy);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-brand:hover { color: var(--blue); }
.nav-brand svg  { flex-shrink: 0; transition: transform 0.2s; }
.nav-brand:hover svg { transform: scale(1.08); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--gray-700);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--blue-light);
    color: var(--blue);
}

.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0.4375rem;
    color: var(--gray-700);
    transition: background 0.15s;
    flex-shrink: 0;
}

.hamburger:hover { background: var(--gray-100); }

/* ============================================================
   Main & Footer
   ============================================================ */

main { flex: 1; }

.site-footer {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* ============================================================
   Hero (Index page)
   ============================================================ */

.hero {
    background: linear-gradient(150deg, var(--navy) 0%, #1a3560 60%, #1a4f8b 100%);
    color: var(--white);
    padding: 4.5rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative ring */
.hero::before {
    content: "";
    position: absolute;
    right: -180px;
    top: -180px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.03);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.025);
    pointer-events: none;
}

.hero-inner {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgb(255 255 255 / 0.12);
    border: 1px solid rgb(255 255 255 / 0.2);
    color: rgb(255 255 255 / 0.9);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3125rem 0.875rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(1.625rem, 4.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 1.125rem;
}

.hero p {
    font-size: 1.0625rem;
    color: rgb(255 255 255 / 0.8);
    line-height: 1.75;
    margin-bottom: 2rem;
}

/* ============================================================
   Page Hero (Documents / Error pages – lighter variant)
   ============================================================ */

.page-hero {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.page-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(1.375rem, 3.5vw, 1.875rem);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 0.625rem;
}

.page-hero p {
    color: var(--gray-500);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6875rem 1.375rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
    line-height: 1.4;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgb(26 86 219 / 0.35);
}

.btn-white {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--blue-light);
    border-color: var(--blue-light);
    color: var(--blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}

.btn-outline:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(26 86 219 / 0.25);
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    gap: 0.375rem;
}

/* ============================================================
   Notices Section (Index page)
   ============================================================ */

.notices-section {
    padding: 3rem 1.5rem 4rem;
}

.notices-inner {
    max-width: 820px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* Numbered list */
.notice-list {
    list-style: none;
    counter-reset: notice-counter;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.notice-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-bottom: none;
    padding: 1.25rem 1.375rem 1.25rem 4rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--gray-700);
    transition: background 0.15s;
}

.notice-item:first-child  { border-radius: var(--radius) var(--radius) 0 0; }
.notice-item:last-child   { border-bottom: 1px solid var(--gray-200); border-radius: 0 0 var(--radius) var(--radius); }
.notice-item:only-child   { border-radius: var(--radius); border-bottom: 1px solid var(--gray-200); }
.notice-item:hover        { background: var(--gray-50); }

/* Gradient diamond marker — matches Dinsmore brand palette */
.notice-item::before {
    content: "";
    position: absolute;
    left: 1.375rem;
    top: 1.625rem;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    transform: rotate(45deg);
    background: linear-gradient(
        to bottom,
        #0051BB 0%,
        #0051BB 45%,
        #763AC7 45%,
        #763AC7 72%,
        #009DEA 72%,
        #009DEA 100%
    );
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgb(0 81 187 / 0.3);
}

/* Number badge */
.notice-badge {
    position: absolute;
    left: 2.375rem;
    top: 1.5rem;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 50%;
}

.notice-address {
    font-style: normal;
    margin-top: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-left: 3px solid var(--blue-light);
    color: var(--gray-500);
    font-size: 0.9375rem;
    line-height: 1.6;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.inline-link {
    color: var(--blue);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.inline-link:hover { color: var(--blue-dark); }

/* ============================================================
   Documents Section
   ============================================================ */

.documents-section {
    padding: 2.5rem 1.5rem 4rem;
}

.documents-inner {
    max-width: 820px;
    margin: 0 auto;
}

.doc-count {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
    font-weight: 500;
}

.document-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.document-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.875rem 1.125rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.document-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--blue);
    transform: translateY(-1px);
}

.document-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--navy);
    font-size: 0.9375rem;
    min-width: 0;
}

.document-name svg {
    color: var(--gray-300);
    flex-shrink: 0;
}

.document-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-400);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 2rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.back-link:hover { border-bottom-color: var(--blue); }

/* ============================================================
   Focus / Accessibility
   ============================================================ */

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
    border-radius: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
}

/* ============================================================
   Responsive – mobile nav
   ============================================================ */

@media (max-width: 600px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem;
        box-shadow: var(--shadow-lg);
        gap: 0.125rem;
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        padding: 0.625rem 0.875rem;
        border-radius: var(--radius-sm);
    }

    .hero { padding: 3rem 1.25rem 3.5rem; }

    .notice-item {
        padding-left: 3.5rem;
    }

    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .document-item .btn-sm {
        align-self: flex-end;
    }
}

@media (max-width: 400px) {
    .nav-brand span { display: none; }
}
