/* ============================================
   license.broker — Pop-Art Brokerage Billboard
   ============================================ */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.75;
    color: #2A2A2A;
    background: #FAFAFA;
    overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: #1A1A1A;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    margin-bottom: 0.5em;
}

p {
    color: #2A2A2A;
}

/* --- PALETTE UTILITIES --- */
.title-license { color: #E83030; }
.title-dot { color: #1A1A1A; }
.title-broker { color: #3070E8; }

/* --- BEN-DAY DOT BACKGROUNDS --- */
.section-halftone {
    background-color: #FAFAFA;
    background-image: radial-gradient(circle, #E0E0E0 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    position: relative;
}

.section-clean {
    background: #FAFAFA;
    position: relative;
}

/* --- GRID LINES BACKGROUND --- */
.grid-lines-bg {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(26, 26, 26, 0.06) 0px, rgba(26, 26, 26, 0.06) 1px, transparent 1px, transparent),
        repeating-linear-gradient(0deg, rgba(26, 26, 26, 0.06) 0px, rgba(26, 26, 26, 0.06) 1px, transparent 1px, transparent);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
}

/* =====================
   HALFTONE WIPE DIVIDERS
   ===================== */
.halftone-wipe {
    height: 40px;
    background:
        radial-gradient(circle, #1A1A1A 3px, transparent 3px) 0 0 / 12px 12px,
        radial-gradient(circle, #1A1A1A 2px, transparent 2px) 6px 6px / 12px 12px;
    background-color: #FAFAFA;
    opacity: 0.12;
    position: relative;
    z-index: 2;
}

/* =====================
   HERO SECTION
   ===================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #FAFAFA;
    overflow: hidden;
}

.hero-halftone-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #E0E0E0 2px, transparent 2px);
    background-size: 16px 16px;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 0;
}

.hero-halftone-bg.visible {
    opacity: 0.4;
}

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

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 1;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(-80px);
    animation: dropIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

.hero-bubble {
    opacity: 0;
    transform: scale(0.3);
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s forwards;
    margin-top: 2rem;
    display: inline-block;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    z-index: 1;
    opacity: 0;
    animation: fadeInUp 0.5s ease 2s forwards;
}

.scroll-arrow {
    animation: bobUpDown 2s ease-in-out infinite;
}

/* =====================
   SPEECH BUBBLES
   ===================== */
.speech-bubble {
    display: inline-block;
    position: relative;
    background: #FAFAFA;
    border: 3px solid #1A1A1A;
    padding: 1rem 1.8rem;
    border-radius: 20px;
}

.bubble-text {
    font-family: 'Bangers', cursive;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #1A1A1A;
    letter-spacing: 0.02em;
}

.bubble-tail {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 16px solid #1A1A1A;
}

.bubble-tail::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -11px;
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 13px solid #FAFAFA;
}

/* Colored bubbles */
.hero-bubble {
    background: #F0D030;
    border-color: #1A1A1A;
}

.hero-bubble .bubble-tail {
    border-top-color: #1A1A1A;
}

.hero-bubble .bubble-tail::after {
    border-top-color: #F0D030;
}

.info-bubble,
.teal-bubble {
    background: #30B0B0;
    border-color: #1A1A1A;
    margin-top: 1rem;
}

.info-bubble .bubble-text,
.teal-bubble .bubble-text {
    color: #FAFAFA;
}

.info-bubble .bubble-tail::after,
.teal-bubble .bubble-tail::after {
    border-top-color: #30B0B0;
}

.process-bubble {
    background: #3070E8;
    border-color: #1A1A1A;
    margin-top: 2rem;
    display: block;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.process-bubble .bubble-text {
    color: #FAFAFA;
}

.process-bubble .bubble-tail::after {
    border-top-color: #3070E8;
}

.cta-bubble {
    background: #E83030;
    border-color: #1A1A1A;
    margin-bottom: 2rem;
}

.cta-bubble .bubble-text {
    color: #FAFAFA;
}

.cta-bubble .bubble-tail::after {
    border-top-color: #E83030;
}

.red-bubble {
    background: #E83030;
    border-color: #1A1A1A;
    margin-top: 1rem;
}

.red-bubble .bubble-text {
    color: #FAFAFA;
}

.red-bubble .bubble-tail::after {
    border-top-color: #E83030;
}

.yellow-bubble {
    background: #F0D030;
    border-color: #1A1A1A;
}

.yellow-bubble .bubble-text {
    color: #1A1A1A;
}

.yellow-bubble .bubble-tail::after {
    border-top-color: #F0D030;
}

.testimonial-bubble {
    background: #FAFAFA;
    text-align: left;
    margin-bottom: 1rem;
}

.testimonial-bubble .bubble-tail {
    left: 30px;
    transform: none;
}

.testimonial-bubble .bubble-tail::after {
    left: -11px;
}

/* --- SCROLL REVEAL --- */
.scroll-reveal {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: scale(1);
}

/* =====================
   SECTION STRUCTURE
   ===================== */
section {
    padding: 5rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.section-title {
    display: inline-block;
    position: relative;
    padding-bottom: 0.3em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #E83030;
}

/* =====================
   COMIC PANEL GRID
   ===================== */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    max-width: 1200px;
    margin: 0 auto;
    background: #1A1A1A;
    padding: 4px;
    position: relative;
    z-index: 1;
}

/* --- PANELS --- */
.panel {
    background: #FAFAFA;
    border: 3px solid #1A1A1A;
    position: relative;
    overflow: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    grid-column: span 3;
    opacity: 0;
    transform: translateY(40px);
}

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

/* 3D tilt on hover handled via JS */
.panel.tilting {
    transition: transform 0.1s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.panel-wide {
    grid-column: span 4;
}

.panel-extra-wide {
    grid-column: span 6;
}

.panel-tall {
    grid-column: span 3;
}

.panel-step {
    grid-column: span 3;
}

.panel-stat {
    grid-column: span 3;
}

.panel-testimonial {
    grid-column: span 3;
}

.panel-testimonial.panel-wide {
    grid-column: span 6;
}

.panel-faq {
    grid-column: span 3;
}

.panel-faq.panel-wide {
    grid-column: span 4;
}

.panel-featured {
    grid-column: span 3;
}

.panel-featured.panel-wide {
    grid-column: span 4;
}

.panel-featured.panel-extra-wide {
    grid-column: span 6;
}

/* Panel stripes */
.panel-stripe {
    height: 6px;
    width: 100%;
}

.panel-red .panel-stripe,
.panel-stripe-red { background: #E83030; }
.panel-blue .panel-stripe,
.panel-stripe-blue { background: #3070E8; }
.panel-yellow .panel-stripe,
.panel-stripe-yellow { background: #F0D030; }
.panel-teal .panel-stripe,
.panel-stripe-teal { background: #30B0B0; }

/* Panel hover border colors */
.panel-red:hover { border-color: #E83030; box-shadow: 4px 4px 0 #E83030; }
.panel-blue:hover { border-color: #3070E8; box-shadow: 4px 4px 0 #3070E8; }
.panel-yellow:hover { border-color: #F0D030; box-shadow: 4px 4px 0 #F0D030; }
.panel-teal:hover { border-color: #30B0B0; box-shadow: 4px 4px 0 #30B0B0; }

.panel-content {
    padding: 2rem;
}

.panel-content-row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.panel-icon {
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.panel-content-row .panel-icon {
    margin-bottom: 0;
}

.panel-icon-large {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

/* Category Badges */
.category-badge {
    font-family: 'Bangers', cursive;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    padding: 0.3em 0.8em;
    display: inline-block;
    border: 3px solid #1A1A1A;
}

.badge-red { background: #E83030; color: #FAFAFA; }
.badge-blue { background: #3070E8; color: #FAFAFA; }
.badge-yellow { background: #F0D030; color: #1A1A1A; }
.badge-teal { background: #30B0B0; color: #FAFAFA; }

/* Panel stats */
.panel-stats {
    margin-top: 1rem;
    font-family: 'Bangers', cursive;
    font-size: 1.1rem;
    color: #2A2A2A;
}

/* --- STEP NUMBERS --- */
.step-number {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(3rem, 5vw, 5rem);
    color: #E0E0E0;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* --- STAT PANELS --- */
.panel-stat .panel-content {
    text-align: center;
    padding: 3rem 2rem;
}

.stat-number {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #1A1A1A;
    line-height: 1.1;
}

.stat-label {
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    color: #2A2A2A;
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

/* --- FEATURED DEALS --- */
.featured-tag {
    font-family: 'Bangers', cursive;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    padding: 0.2em 0.6em;
    display: inline-block;
    border: 2px solid #1A1A1A;
    background: #E0E0E0;
    color: #1A1A1A;
    margin-bottom: 0.8rem;
}

.panel-red .featured-tag { background: #E83030; color: #FAFAFA; border-color: #E83030; }
.panel-blue .featured-tag { background: #3070E8; color: #FAFAFA; border-color: #3070E8; }
.panel-yellow .featured-tag { background: #F0D030; color: #1A1A1A; border-color: #F0D030; }
.panel-teal .featured-tag { background: #30B0B0; color: #FAFAFA; border-color: #30B0B0; }

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.2rem;
    padding-top: 0.8rem;
    border-top: 2px solid #E0E0E0;
}

.featured-id {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #2A2A2A;
}

.featured-status {
    font-family: 'Bangers', cursive;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    padding: 0.15em 0.5em;
    border: 2px solid #1A1A1A;
}

.status-open {
    background: #30B0B0;
    color: #FAFAFA;
}

.status-negotiating {
    background: #F0D030;
    color: #1A1A1A;
}

/* --- TESTIMONIALS --- */
.testimonial-author {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #2A2A2A;
    padding-left: 1rem;
}

/* =====================
   CTA SECTION
   ===================== */
.cta-section {
    text-align: center;
    padding: 6rem 2rem;
    background:
        radial-gradient(circle, rgba(224, 224, 224, 0.3) 2px, transparent 2px),
        #FAFAFA;
    background-size: 16px 16px;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn {
    font-family: 'Bangers', cursive;
    font-size: 1.4rem;
    letter-spacing: 0.03em;
    padding: 1rem 2.5rem;
    border: 3px solid #1A1A1A;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #1A1A1A;
}

.btn:active {
    transform: translate(0, 0);
    box-shadow: none;
}

.btn-red {
    background: #E83030;
    color: #FAFAFA;
}

.btn-blue {
    background: #3070E8;
    color: #FAFAFA;
}

.btn-teal {
    background: #30B0B0;
    color: #FAFAFA;
}

.cta-subtext {
    margin-top: 1.5rem;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #2A2A2A;
}

/* =====================
   FOOTER
   ===================== */
.footer {
    background: #1A1A1A;
    color: #FAFAFA;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #30B0B0;
    text-decoration: none;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #F0D030;
}

.footer-copy p {
    color: #E0E0E0;
    font-size: 0.85rem;
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes bobUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

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

    .panel,
    .panel-wide,
    .panel-extra-wide,
    .panel-tall,
    .panel-step,
    .panel-stat,
    .panel-testimonial,
    .panel-testimonial.panel-wide,
    .panel-faq,
    .panel-faq.panel-wide,
    .panel-featured,
    .panel-featured.panel-wide,
    .panel-featured.panel-extra-wide {
        grid-column: span 1;
    }

    section {
        padding: 3rem 1rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }

    .panel-content-row {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 550px) {
    .comic-grid {
        grid-template-columns: 1fr;
    }

    .panel,
    .panel-wide,
    .panel-extra-wide,
    .panel-tall,
    .panel-step,
    .panel-stat,
    .panel-testimonial,
    .panel-testimonial.panel-wide,
    .panel-faq,
    .panel-faq.panel-wide,
    .panel-featured,
    .panel-featured.panel-wide,
    .panel-featured.panel-extra-wide {
        grid-column: span 1;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: clamp(2rem, 14vw, 4rem);
    }

    .featured-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}
