/* judge.bar - Art Deco Legal Chambers */

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

body {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
    line-height: 1.85;
    color: #F0E8D8;
    background: #1A1410;
    overflow-x: hidden;
}

/* Navigation */
#top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2.5rem;
    z-index: 100;
    transition: backdrop-filter 0.3s;
}

#top-nav.scrolled {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(26, 20, 16, 0.6);
}

.nav-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.12em;
    color: #C8A050;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-links a {
    font-family: 'Playfair Display SC', serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.15em;
    color: #A09888;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #E8C070;
}

.diamond {
    width: 6px;
    height: 6px;
    background: #C8A050;
    transform: rotate(45deg);
    opacity: 0.5;
}

/* Brass Rail */
#brass-rail {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #C8A050;
    opacity: 0.4;
    z-index: 100;
    transition: opacity 0.3s, box-shadow 0.3s;
}

#brass-rail.bright {
    opacity: 0.7;
    background: #E8C070;
    box-shadow: 0 0 8px rgba(200, 160, 80, 0.3);
}

/* Section Labels */
.section-label {
    font-family: 'Playfair Display SC', serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.15em;
    color: #A09888;
    margin-bottom: 1rem;
}

/* =============================================
   SECTION 1: The Chambers Hero
   ============================================= */

#chambers {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1A1410;
    position: relative;
    overflow: hidden;
}

#sunburst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vmax;
    height: 100vmax;
    transform: translate(-50%, -50%);
    animation: sunburst-rotate 300s linear infinite;
}

@keyframes sunburst-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.sunburst-ray {
    stroke: #C8A050;
    stroke-width: 2;
    opacity: 0.1;
    transform-origin: 400px 400px;
    transform: scaleY(0);
    transition: transform 1.2s ease;
}

.sunburst-ray.visible {
    transform: scaleY(1);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

#hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.2em;
    color: #C8A050;
    background: linear-gradient(90deg, #A08040, #C8A050, #E8C070, #C8A050, #A08040);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#hero-title.visible {
    opacity: 1;
    animation: shimmer 1.5s ease forwards;
}

@keyframes shimmer {
    0% { background-position: -100% 50%; }
    100% { background-position: 100% 50%; }
}

.hero-tagline {
    font-family: 'Playfair Display SC', serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.15em;
    color: #A09888;
    margin-top: 1.5rem;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-tagline.visible {
    opacity: 1;
}

/* =============================================
   Chevron Dividers
   ============================================= */

.chevron-divider {
    width: 100%;
    padding: 0.5rem 0;
    background: #1A1410;
}

.chevron-divider svg {
    width: 100%;
    height: 40px;
}

/* =============================================
   Panel Sections
   ============================================= */

.panel-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    position: relative;
    background: #2A2018;
}

.frame-corners {
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 48px;
    height: 48px;
    opacity: 0.4;
}

.corner path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.2s ease;
}

.corner.drawn path {
    stroke-dashoffset: 0;
}

.corner.top-left { top: 0; left: 0; }
.corner.top-right { top: 0; right: 0; }
.corner.bottom-left { bottom: 0; left: 0; }
.corner.bottom-right { bottom: 0; right: 0; }

.section-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
}

.section-content h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    letter-spacing: 0.08em;
    color: #C8A050;
    margin-bottom: 1rem;
}

.section-content p {
    margin-bottom: 1.2rem;
    color: #F0E8D8;
}

.brass-rule {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, #C8A050 20%, #E8C070 50%, #C8A050 80%, transparent);
    margin-bottom: 2rem;
}

.pull-quote {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1.15rem;
    color: #E8C070;
    padding-left: 1.5rem;
    border-left: 2px solid #C8A050;
    margin: 2rem 0;
}

/* Fade Up Animation */
.fade-up {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* =============================================
   Footer
   ============================================= */

#site-footer {
    padding: 4rem 2rem;
    text-align: center;
    background: #1A1410;
}

.footer-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    color: #C8A050;
    margin-bottom: 0.5rem;
}

.footer-sub {
    font-family: 'Playfair Display SC', serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.15em;
    color: #A09888;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 768px) {
    .nav-links .diamond { display: none; }
    .frame-corners { top: 1rem; left: 1rem; right: 1rem; bottom: 1rem; }
}
