/* ============================================================
   judge.bar: Judicial Chamber Aesthetic
   Font Declarations: 'Playfair Display', 'Playfair Display SC'
   Font Weights: Inter (400, 700), Lora (400, 700), Playfair Display (700, 900)
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', serif;
    background-color: #151210;
    color: #e8dcc8;
    line-height: 1.9;
    letter-spacing: 0.02em;
    overflow-x: hidden;
}

/* Color Palette Declaration */
:root {
    --primary-dark: #151210;
    --secondary-dark: #1a1510;
    --tertiary-dark: #2a2018;
    --accent-blue: #3a4a6a;
    --accent-brown: #6b5a2a;
    --accent-red: #8a3a3a;
    --accent-gray: #a09080;
    --brass: #b8952a;
    --brass-light: #d4b44c;
    --cream: #e8dcc8;
}

/* ============================================================
   TYPOGRAPHY SPECIFICATIONS
   Display / Titles: Playfair Display (700, 900)
   Body / Docket text: Lora (400, 700), Lora italic (400)
   UI / Roman numerals: Inter (400, 500, 700)
   ============================================================ */

/* ============================================================
   HERO SECTION: THE BENCH
   ============================================================ */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #151210 0%, #1a1510 50%, #151210 100%);
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(184, 149, 42, 0.03) 2px,
            rgba(184, 149, 42, 0.03) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(184, 149, 42, 0.02) 2px,
            rgba(184, 149, 42, 0.02) 4px
        );
    pointer-events: none;
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.brass-rule {
    width: 120px;
    height: 1px;
    background-color: #b8952a;
    margin: 1.5rem 0;
    box-shadow: 0 0 8px rgba(184, 149, 42, 0.4);
}

.brass-rule-top {
    animation: slideInRight 0.8s ease-out;
}

.brass-rule-bottom {
    animation: slideInLeft 0.8s ease-out;
}

.judge-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.15em;
    color: #e8dcc8;
    text-transform: uppercase;
    margin: 2rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.gavel-container {
    margin: 2rem 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.gavel-svg {
    width: 100%;
    height: 100%;
    animation: swing 2s ease-in-out infinite;
}

.subheading {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #d4b44c;
    max-width: 600px;
    margin-top: 2rem;
    font-style: italic;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* ============================================================
   DOCKET SECTION
   ============================================================ */

.docket-section {
    padding: 6rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.docket-section::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 60px;
    height: 2px;
    background-color: #b8952a;
    box-shadow: 0 0 8px rgba(184, 149, 42, 0.4);
}

.section-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #6b5a2a;
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #e8dcc8;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.docket-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #e8dcc8;
    text-align: center;
}

.docket-content p {
    margin-bottom: 1.5rem;
}

.docket-content em {
    font-style: italic;
    color: #d4b44c;
}

/* ============================================================
   SCALES SECTION
   ============================================================ */

.scales-section {
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(58, 74, 106, 0.04) 50%, transparent 100%);
}

.scales-section::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 60px;
    height: 2px;
    background-color: #b8952a;
    box-shadow: 0 0 8px rgba(184, 149, 42, 0.4);
}

.scales-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.scales-svg {
    width: 200px;
    height: 160px;
    animation: tilt 3s ease-in-out infinite;
}

.scales-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

.argument-side {
    padding: 2rem;
    border-left: 2px solid #b8952a;
    background: rgba(184, 149, 42, 0.05);
}

.argument-left {
    animation: slideInLeft 0.8s ease-out;
}

.argument-right {
    animation: slideInRight 0.8s ease-out;
    border-left: none;
    border-right: 2px solid #b8952a;
}

.side-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #d4b44c;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.argument-side p {
    font-size: 1rem;
    line-height: 1.8;
    color: #e8dcc8;
}

@media (max-width: 768px) {
    .scales-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .argument-right {
        border-left: 2px solid #b8952a;
        border-right: none;
    }
}

/* ============================================================
   RECORD SECTION
   ============================================================ */

.record-section {
    padding: 6rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.record-section::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 60px;
    height: 2px;
    background-color: #b8952a;
    box-shadow: 0 0 8px rgba(184, 149, 42, 0.4);
}

.record-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #e8dcc8;
    text-align: center;
}

.record-content p {
    margin-bottom: 2rem;
}

.evidence-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.evidence-item {
    padding: 2rem;
    border: 1px solid #6b5a2a;
    background: rgba(107, 90, 42, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.evidence-item:hover {
    border-color: #3a4a6a;
    background: rgba(58, 74, 106, 0.08);
}

.evidence-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #d4b44c;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.evidence-item p {
    font-size: 0.95rem;
    color: #c9b8a0;
    margin-bottom: 0;
}

/* ============================================================
   VERDICT SECTION
   ============================================================ */

.verdict-section {
    padding: 6rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(135deg, rgba(42, 32, 24, 0.4) 0%, rgba(138, 58, 58, 0.08) 50%, rgba(42, 32, 24, 0.4) 100%);
    margin-bottom: 4rem;
    border-left: 3px solid #8a3a3a;
    border-right: 3px solid #8a3a3a;
}

.verdict-section::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 60px;
    height: 2px;
    background-color: #b8952a;
    box-shadow: 0 0 8px rgba(184, 149, 42, 0.4);
}

.verdict-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #e8dcc8;
    text-align: center;
}

.verdict-content p {
    margin-bottom: 1.5rem;
}

.verdict-content em {
    font-style: italic;
    color: #d4b44c;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: linear-gradient(135deg, #2a2018 0%, #1a1510 50%, #2a2018 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-top: 3px solid #6b5a2a;
    margin-top: 2rem;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(138, 58, 58, 0.15);
}

.ornamental-line {
    width: 80px;
    height: 1px;
    background-color: #b8952a;
    margin: 1rem auto;
    box-shadow: 0 0 6px rgba(184, 149, 42, 0.3);
}

.footer-text {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: #a09080;
    text-transform: uppercase;
    margin: 0.5rem 0;
    font-weight: 400;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes swing {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

@keyframes tilt {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

/* ============================================================
   UTILITY: SCROLL INTERACTION
   ============================================================ */

.scroll-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
    .hero {
        padding: 1rem;
    }

    .judge-title {
        letter-spacing: 0.1em;
    }

    .gavel-container {
        width: 80px;
        height: 80px;
    }

    .docket-section,
    .scales-section,
    .record-section,
    .verdict-section {
        padding: 4rem 1.5rem;
    }

    .scales-content {
        gap: 2rem;
    }

    .evidence-list {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .judge-title {
        font-size: 1.8rem;
        letter-spacing: 0.08em;
    }

    .section-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .gavel-container {
        width: 60px;
        height: 60px;
    }

    .docket-section,
    .scales-section,
    .record-section,
    .verdict-section {
        padding: 3rem 1rem;
    }

    .evidence-list {
        grid-template-columns: 1fr;
    }
}
