/* courts.studio -- Bauhaus Legal Design Studio */
/* Palette from DESIGN.md */
/* Canvas: #f5f5f0 | Court Red: #e63946 | Design Blue: #457b9d | Studio Yellow: #f4d35e */
/* Dark: #1d1d1d | Surface: #ffffff | Border: #e0e0dc | Muted: #6b6b6b */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    color: #1d1d1d;
    background-color: #f5f5f0;
    overflow-x: hidden;
    position: relative;
}

/* Background Grid Overlay (12-column at 3% opacity) */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background-image: repeating-linear-gradient(
        to right,
        rgba(29, 29, 29, 0.03) 0px,
        rgba(29, 29, 29, 0.03) 1px,
        transparent 1px,
        transparent calc(100% / 12)
    );
}

/* ========== HERO ========== */
.hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 4rem 2rem;
}

.hero-shapes {
    display: flex;
    gap: 48px;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.shape-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.shape-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Circle - Courts */
.shape.circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e63946;
}

/* Square - Design */
.shape.square {
    width: 100px;
    height: 100px;
    background: #457b9d;
}

/* Triangle - Studio */
.shape.triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #f4d35e;
}

.hero-title {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #1d1d1d;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.125rem;
    color: #6b6b6b;
    font-weight: 400;
}

/* ========== PROCESS BAR ========== */
.process-bar {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-top: 1px solid #e0e0dc;
    border-bottom: 1px solid #e0e0dc;
    padding: 3rem 2rem 2rem;
    overflow-x: auto;
}

.process-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.process-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #1d1d1d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.process-step.filled {
    background: #1d1d1d;
}

.process-step.filled .step-number {
    color: #ffffff;
}

.step-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1d1d1d;
    line-height: 1;
}

.connector {
    width: 60px;
    height: 2px;
    background: #1d1d1d;
    flex-shrink: 0;
}

.process-labels {
    display: flex;
    justify-content: center;
    gap: 62px;
    margin-top: 0.75rem;
}

.process-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 40px;
    text-align: center;
}

.process-step:hover {
    transform: scale(1.1);
}

/* ========== BENTO GRID ========== */
.bento-grid-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-heading {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #1d1d1d;
    margin-bottom: 2rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 200px);
    gap: 1px;
    background: #e0e0dc;
}

/* Bento cell spanning */
.bento-cell {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bento-cell.visible {
    opacity: 1;
    transform: scale(1);
}

/* Top color bars */
.cell-bar {
    height: 4px;
    width: 100%;
}

.bar-red {
    background: #e63946;
}

.bar-blue {
    background: #457b9d;
}

.bar-yellow {
    background: #f4d35e;
}

.cell-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 4px);
}

.cell-icon {
    margin-bottom: 0.5rem;
}

.cell-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1d1d1d;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.cell-desc {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.85rem;
    color: #6b6b6b;
    line-height: 1.55;
    flex: 1;
}

/* Cell spanning for visual interest */
.cell-1 {
    grid-column: span 2;
}

.cell-5 {
    grid-column: span 2;
}

.cell-9 {
    grid-column: span 2;
}

/* Cell hover */
.bento-cell:hover {
    background: #f5f5f0;
}

/* ========== ABOUT SECTION ========== */
.about-section {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-top: 1px solid #e0e0dc;
    padding: 4rem 2rem;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text h2,
.about-contact h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: #1d1d1d;
    margin-bottom: 1rem;
}

.about-text p {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    color: #6b6b6b;
    line-height: 1.65;
}

.contact-email {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    color: #1d1d1d;
    margin-bottom: 1rem;
}

.contact-shapes {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ========== FOOTER ========== */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid #e0e0dc;
    padding: 2rem;
    text-align: center;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.footer-domain {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1d1d1d;
}

.footer-sep {
    color: #e0e0dc;
}

.footer-tagline {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.85rem;
    color: #6b6b6b;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .cell-1,
    .cell-5,
    .cell-9 {
        grid-column: span 2;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-labels {
        gap: 42px;
    }
}

@media (max-width: 600px) {
    .hero-shapes {
        gap: 24px;
    }

    .shape.circle {
        width: 80px;
        height: 80px;
    }

    .shape.square {
        width: 70px;
        height: 70px;
    }

    .shape.triangle {
        border-left-width: 40px;
        border-right-width: 40px;
        border-bottom-width: 70px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .cell-1,
    .cell-5,
    .cell-9 {
        grid-column: span 1;
    }

    .bento-cell {
        min-height: 160px;
    }

    .connector {
        width: 30px;
    }

    .process-labels {
        gap: 22px;
    }

    .process-label {
        font-size: 0.6rem;
    }
}

/* ========== WATERMARK SHAPES (background) ========== */
.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.03);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 8%;
    width: 250px;
    height: 250px;
    background: rgba(69, 123, 157, 0.03);
    pointer-events: none;
}

.bento-grid-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5%;
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid rgba(244, 211, 94, 0.03);
    pointer-events: none;
    transform: translateY(-50%);
}
