/* ===================================================
   licence.broker - Editorial Broadsheet Styles
   =================================================== */

/* --- CSS Custom Properties --- */
:root {
    --warm-ivory: #F7F3EE;
    --deep-navy: #1B2A4A;
    --gold-accent: #D4A574;
    --dusty-rose: #E8D5C4;
    --teal-accent: #3A8A8A;
    --warm-gray: #8B7B6B;
    --light-text: #C9BFB0;
    --rule-line: #D4C5B4;
    --off-white: #EDE7DF;

    --font-display: 'Nunito', sans-serif;
    --font-body: 'Libre Baskerville', serif;

    --section-padding: clamp(4rem, 8vh, 7rem);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--warm-ivory);
    color: var(--deep-navy);
    line-height: 1.85;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* --- Shimmer Keyframes --- */
@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }
    100% {
        background-position: 400px 0;
    }
}

@keyframes shimmerSubtle {
    0% {
        background-position: -600px 0;
    }
    100% {
        background-position: 600px 0;
    }
}

@keyframes ruleExpand {
    0% {
        width: 0;
    }
    100% {
        width: 40%;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Section Bands (Stacked Layout) --- */
.section-band {
    width: 100%;
    padding: var(--section-padding) 0;
    position: relative;
}

.band-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* --- Masthead (Hero) --- */
.masthead {
    background-color: var(--warm-ivory);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.masthead-inner {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding: 0 2rem;
}

/* Shimmer Placeholders */
.shimmer-placeholder {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--warm-ivory) 0%, var(--off-white) 50%, var(--warm-ivory) 100%);
    background-size: 800px 100%;
    animation: shimmer 2s ease-in-out 1;
    border-radius: 4px;
}

.shimmer-title {
    width: 60%;
    height: 60px;
    top: 0;
}

.shimmer-rule {
    width: 40%;
    height: 2px;
    top: 80px;
}

.shimmer-subtitle {
    width: 45%;
    height: 20px;
    top: 105px;
}

.shimmer-placeholder.hidden {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Masthead Elements */
.masthead-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 5.5rem);
    letter-spacing: -0.01em;
    color: var(--deep-navy);
    opacity: 0;
    position: relative;
}

.masthead-title.visible {
    animation: fadeIn 500ms ease forwards;
}

.masthead-rule {
    width: 0;
    height: 1px;
    background-color: var(--gold-accent);
    margin: 1.2rem auto;
    position: relative;
}

.masthead-rule.visible {
    animation: ruleExpand 400ms ease forwards;
}

.masthead-subtitle {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.2rem;
    color: var(--warm-gray);
    min-height: 1.8rem;
    position: relative;
}

.masthead-subtitle .word {
    display: inline-block;
    opacity: 0;
    transition: opacity 150ms ease;
}

.masthead-subtitle .word.visible {
    opacity: 1;
}

/* Persistent shimmer on masthead */
.masthead::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(212, 165, 116, 0.04) 40%,
        transparent 60%
    );
    background-size: 600px 100%;
    animation: shimmerSubtle 8s linear infinite;
    pointer-events: none;
}

/* --- Catalogue Bands --- */
.band-ivory {
    background-color: var(--warm-ivory);
}

.band-navy {
    background-color: var(--deep-navy);
    color: var(--light-text);
}

.band-navy .category-title {
    color: var(--off-white);
}

.band-navy .category-label {
    color: var(--gold-accent);
}

.band-navy .category-description {
    color: var(--light-text);
}

.band-rose {
    background-color: var(--dusty-rose);
}

/* Column Layouts */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
}

/* Catalogue Items */
.catalogue-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 400ms ease, transform 400ms ease;
}

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

.category-label {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--warm-gray);
    display: block;
    margin-bottom: 0.75rem;
    position: relative;
}

/* Subtle shimmer on category labels */
.category-label::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 165, 116, 0.05) 50%,
        transparent 100%
    );
    background-size: 400px 100%;
    animation: shimmerSubtle 6s linear infinite;
    pointer-events: none;
}

.category-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    color: var(--deep-navy);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.category-description {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(0.9rem, 1.05vw, 1rem);
    line-height: 1.85;
    color: var(--deep-navy);
    margin-bottom: 1.5rem;
}

.band-navy .category-description {
    color: var(--light-text);
}

/* --- Duotone Photo Wrappers --- */
.duotone-photo-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.duotone-photo {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(1) sepia(0.3) contrast(1.1);
}

.duotone-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gold-accent);
    mix-blend-mode: multiply;
    opacity: 0.3;
    pointer-events: none;
}

.duotone-overlay.overlay-rose {
    background-color: var(--dusty-rose);
}

.photo-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 165, 116, 0.15) 50%,
        transparent 100%
    );
    background-size: 600px 100%;
    animation: shimmer 1.5s ease-in-out;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
}

.duotone-photo-wrapper.shimmer-active .photo-shimmer {
    opacity: 1;
}

/* --- Feature Band --- */
.feature-band {
    position: relative;
}

.feature-layout {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.feature-display {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 400ms ease, transform 400ms ease;
}

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

.feature-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 400ms ease, transform 400ms ease;
}

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

.feature-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.01em;
    color: var(--deep-navy);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.feature-accent {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--gold-accent);
    line-height: 1.6;
}

.feature-text .category-description {
    margin-bottom: 1.2rem;
}

.feature-text .category-description:last-child {
    margin-bottom: 0;
}

/* Patent Certificate Borders */
.patent-border-top,
.patent-border-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cpath d='M24 0L36 12L24 24L12 12Z' fill='none' stroke='%23D4A574' stroke-width='0.8' opacity='0.3'/%3E%3Ccircle cx='24' cy='12' r='2' fill='%23D4A574' opacity='0.25'/%3E%3Cpath d='M0 12L12 0M0 12L12 24M36 0L48 12M36 24L48 12' fill='none' stroke='%23D4A574' stroke-width='0.5' opacity='0.2'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    pointer-events: none;
}

.patent-border-top {
    top: 0;
}

.patent-border-bottom {
    bottom: 0;
}

/* --- Colophon Footer --- */
.colophon {
    background-color: var(--deep-navy);
    padding: clamp(3rem, 5vh, 5rem) 0 clamp(1.5rem, 3vh, 2.5rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gold-accent);
    margin-bottom: 1.2rem;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--light-text);
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--gold-accent);
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 191, 176, 0.15);
}

.footer-copyright p {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 0.8rem;
    color: var(--light-text);
    opacity: 0.6;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .three-col {
        grid-template-columns: 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .feature-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 600px) {
    .masthead {
        min-height: 70vh;
    }

    .shimmer-title {
        width: 80%;
    }

    .shimmer-subtitle {
        width: 70%;
    }
}
