/* ============================================
   licence.broker - Art Deco Ornate Luxury
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0D0D0D;
    color: #D4C5A0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0.02em;
    overflow-x: hidden;
}

/* --- Curtain Reveal --- */
body.curtain-active {
    overflow: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Poiret One', 'Josefin Sans', sans-serif;
    font-weight: 400;
    color: #C9A84C;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

h2.section-heading {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
}

.panel-title {
    font-size: 24px;
    margin-bottom: 12px;
}

.panel-description,
.content-text p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.75;
    color: #D4C5A0;
    letter-spacing: 0.02em;
}

/* Accent/Label font */
.panel-description {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: #D4C5A0;
}

#site-tagline,
#footer-sub {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8A7D5A;
}

/* ============================================
   Grand Entrance Header
   ============================================ */
#grand-entrance {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0D0D0D;
    overflow: hidden;
}

.gateway-arch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.gateway-arch svg {
    width: 100%;
    max-width: 800px;
    height: 100%;
}

/* SVG path drawing animation */
#arch-path-outer,
#arch-path-inner {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

#arch-keystone {
    opacity: 0;
}

#arch-sunburst line {
    opacity: 0;
}

body.arch-drawn #arch-path-outer {
    animation: drawPath 1.2s ease-out forwards;
}

body.arch-drawn #arch-path-inner {
    animation: drawPath 1.2s ease-out 0.3s forwards;
}

body.arch-drawn #arch-keystone {
    animation: fadeIn 0.4s ease-out 1.0s forwards;
}

body.arch-drawn #arch-sunburst line {
    animation: fadeIn 0.4s ease-out 1.2s forwards;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Header content */
#header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
}

body.title-revealed #header-content {
    animation: fadeReveal 0.4s ease-out forwards;
}

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

#site-title {
    font-size: 56px;
    letter-spacing: 0.2em;
    color: #C9A84C;
    margin-bottom: 16px;
}

/* Gold rule with diamond */
#gold-rule,
#footer-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.rule-line {
    display: block;
    width: 80px;
    height: 1px;
    background: #C9A84C;
    transform: scaleX(0);
}

body.rule-extended .rule-line {
    animation: extendRule 0.6s ease-out forwards;
}

@keyframes extendRule {
    to {
        transform: scaleX(1);
    }
}

.rule-diamond {
    display: block;
    width: 8px;
    height: 8px;
    background: #C9A84C;
    transform: rotate(45deg) scale(0);
}

body.rule-extended .rule-diamond {
    animation: scaleDiamond 0.3s ease-out 0.3s forwards;
}

@keyframes scaleDiamond {
    to {
        transform: rotate(45deg) scale(1);
    }
}

#site-tagline {
    margin-top: 8px;
}

/* ============================================
   Decorative Dividers
   ============================================ */
.deco-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.deco-divider.visible {
    opacity: 1;
    transform: scale(1);
}

.deco-divider svg {
    width: 200px;
    height: 60px;
}

.divider-pyramid svg {
    height: 50px;
}

/* Section ornaments */
.section-ornament {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.section-ornament.visible {
    opacity: 1;
    transform: scale(1);
}

.section-ornament svg {
    width: 80px;
    height: 30px;
}

/* ============================================
   Category Showcase - Bento Grid
   ============================================ */
#category-showcase {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

/* Bento panel base */
.bento-panel {
    background: #1A1A1A;
    border: 1px solid #C9A84C;
    position: relative;
    padding: 32px;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, border-width 0.3s ease, background 0.3s ease;
}

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

/* Double-frame: inner outline */
.bento-panel .panel-inner {
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    opacity: 0;
    transition: opacity 0.2s ease-out 0.35s;
}

.bento-panel.visible .panel-inner {
    opacity: 1;
}

/* Featured panel (center 2x2) */
.panel-featured {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-featured .panel-inner {
    justify-content: center;
}

.panel-featured .panel-title {
    font-size: 30px;
}

.panel-featured .panel-description {
    font-size: 17px;
    max-width: 380px;
}

/* Small panels */
.panel-small {
    min-height: 170px;
}

.panel-small .panel-title {
    font-size: 20px;
}

.panel-small .panel-description {
    font-size: 15px;
    color: #8A7D5A;
}

/* Hover effects */
.bento-panel:hover {
    border-width: 2px;
    background: linear-gradient(135deg, rgba(201,168,76,0.05) 0%, rgba(201,168,76,0.15) 50%, rgba(201,168,76,0.05) 100%), #1A1A1A;
    cursor: default;
}

.bento-panel:hover .licence-seal svg {
    transform: rotate(15deg);
    transition: transform 0.3s ease-out;
}

.bento-panel:hover .licence-seal svg circle,
.bento-panel:hover .licence-seal svg polygon,
.bento-panel:hover .licence-seal svg polyline {
    stroke: #E8D5A3;
    transition: stroke 0.3s ease;
}

/* 3D tilt on hover */
.bento-panel:hover {
    transform: perspective(800px) rotateY(2deg) rotateX(-1deg);
}

.bento-panel.visible:hover {
    transform: scale(1) perspective(800px) rotateY(2deg) rotateX(-1deg);
}

/* Licence seal icons */
.licence-seal {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.licence-seal svg {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease-out;
}

/* ============================================
   Content Sections
   ============================================ */
.content-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px 24px;
    text-align: center;
}

.content-text p {
    margin-bottom: 20px;
}

.content-text p:last-child {
    margin-bottom: 0;
}

/* Marble texture zones */
.marble-texture {
    position: relative;
}

.marble-texture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, rgba(201,168,76,0.02) 0px, transparent 2px, transparent 4px),
        radial-gradient(ellipse at 30% 40%, rgba(201,168,76,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(201,168,76,0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Jewel accent colors */
.panel-featured {
    border-bottom: 2px solid #6B2D5B;
}

.panel-featured .panel-inner {
    box-shadow: inset 0 -1px 0 #2C4A3E;
}

.marble-texture > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   Footer
   ============================================ */
#grand-footer {
    position: relative;
    width: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 60px;
    background: #0D0D0D;
    overflow: hidden;
}

#footer-rule {
    margin-bottom: 24px;
}

#footer-rule .rule-line {
    transform: scaleX(1);
}

#footer-rule .rule-diamond {
    transform: rotate(45deg) scale(1);
}

#footer-text {
    font-family: 'Poiret One', 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 28px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 8px;
}

#footer-sub {
    margin-bottom: 40px;
}

.arch-inverted {
    position: relative;
    width: 100%;
    height: 250px;
}

.arch-inverted svg {
    width: 100%;
    max-width: 800px;
    height: 100%;
    display: block;
    margin: 0 auto;
}

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

    .panel-featured {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 280px;
    }

    .panel-small {
        min-height: 200px;
    }

    #site-title {
        font-size: 40px;
    }

    h2.section-heading {
        font-size: 28px;
    }
}

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

    #site-title {
        font-size: 28px;
        letter-spacing: 0.12em;
    }

    #grand-entrance {
        height: 320px;
    }

    .content-section {
        padding: 36px 20px;
    }

    h2.section-heading {
        font-size: 24px;
    }

    .panel-featured .panel-title {
        font-size: 24px;
    }
}

/* ============================================
   Stagger delays for bento panels
   ============================================ */
.bento-panel:nth-child(1) { transition-delay: 0ms; }
.bento-panel:nth-child(2) { transition-delay: 100ms; }
.bento-panel:nth-child(3) { transition-delay: 200ms; }
.bento-panel:nth-child(4) { transition-delay: 300ms; }
.bento-panel:nth-child(5) { transition-delay: 400ms; }
