/* ===========================================================================
   NovaWorks · additions on top of the shared design system (style.css).
   style.css carries the full design system; this file only adds the few
   components specific to novaworks.pt and its admin panel.
   =========================================================================== */

/* Anchored sections clear of the sticky header. */
#aeo,
#pricing {
    scroll-margin-top: 92px;
}

/* Product price · large on the products page, small chip on the homepage. */
.product-price {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.15;
    color: var(--terra);
    margin: 4px 0 16px;
}

.product-price .lbl {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 3px;
}

.price-tag {
    margin-top: auto;
    padding-top: 14px;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--terra);
}

/* Tiered pricing on the products page (price field with "|" syntax). */
.product-price-tiers {
    font-size: 1rem;
}

.price-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.price-tier {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    padding: 12px 16px;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.2;
    color: var(--ink);
    text-align: left;
    transition: border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
}

.price-tier:hover,
.price-tier.is-active {
    border-color: var(--terra);
    box-shadow: 0 8px 22px rgba(196, 90, 58, 0.16);
    color: var(--terra);
    transform: translateY(-1px);
}

.price-tier.featured {
    border-color: var(--terra);
    box-shadow: 0 8px 22px rgba(196, 90, 58, 0.16);
    color: var(--terra);
    padding-top: 16px;
}

/* Laat de uitgelichte tier "rusten" als er een andere is aangeklikt: zo licht
   alleen de actieve pill op (de badge blijft staan). Hover/actief blijven werken. */
.price-tier.featured:not(.is-active):not(:hover) {
    border-color: var(--line);
    color: var(--ink);
    box-shadow: none;
}

.price-tier-badge {
    position: absolute;
    top: -9px;
    left: 12px;
    background: var(--terra);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 2px 9px;
    white-space: nowrap;
}

.price-tier-note {
    font-size: 0.88rem;
    color: var(--ink-mute);
    margin: 2px 0 14px;
}

.price-tier-panels {
    margin-top: 12px;
}

.price-tier-panel {
    background: rgba(196, 90, 58, 0.07);
    border: 1px solid rgba(196, 90, 58, 0.18);
    border-radius: 12px;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
    padding: 14px 16px;
}

/* Klikbare links in chatbot-antwoorden. */
.chat-msg.assistant a {
    color: var(--terra);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.chat-msg.assistant a:hover {
    color: var(--terra-deep);
}

/* Two-up grid (homepage products overview). */
.services-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 719px) {
    .services-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* "Coming soon" project status pill. */
.work-kind.soon {
    color: #9c7733;
    background: rgba(212, 156, 71, 0.28);
}

.work-card.is-soon .work-preview {
    opacity: 0.92;
}

/* Products page · alternating image / text rows. */
.product-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.product-shot img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    background: var(--bg-card);
}

.product-info h2 {
    margin: 6px 0 14px;
}

@media (min-width: 900px) {
    .product-row {
        grid-template-columns: 1fr 1fr;
        gap: 56px;
    }

    .product-row-flip .product-shot {
        order: 2;
    }
}

/* Admin · form spacing and per-language fieldsets. */
.admin-form > .field,
.admin-form > .field-row,
.admin-form > fieldset,
.admin-form > label {
    margin-bottom: 18px;
    display: block;
}

.admin-fieldset {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px 6px;
    margin: 20px 0;
}

.admin-fieldset legend {
    font-weight: 600;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terra-deep);
    padding: 0 8px;
}

.admin-bar .brand-slogan {
    color: var(--terra-deep);
}

/* FAQ accordion (uses native <details>, no JavaScript needed). */
.faq-list {
    display: grid;
    gap: 12px;
    max-width: 820px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    font-weight: 600;
    color: var(--ink);
    font-size: 1.02rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--terra-deep);
}

.faq-marker {
    color: var(--ink-mute);
    flex: none;
    display: inline-flex;
    transition: transform .2s var(--easing);
}

.faq-item[open] .faq-marker {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px;
}

.faq-answer p {
    margin: 0;
    color: var(--ink-soft);
}

/* Blog · article cards. */
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 720px) {
    .article-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1000px) {
    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s var(--easing), border-color .25s, box-shadow .25s;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--ink-mute);
    box-shadow: var(--shadow);
}

.article-card .thumb {
    aspect-ratio: 16 / 10;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--line);
}

.article-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-card .body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.article-card .date {
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.article-card h3 {
    margin: 0;
    font-weight: 500;
}

.article-card .body p {
    margin: 0;
    font-size: 0.92rem;
}

.article-card .read-more {
    margin-top: auto;
    padding-top: 6px;
    color: var(--terra);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Single article page. */
.article-hero-img {
    max-width: 920px;
    margin: 0 auto 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    overflow: hidden;
}

.article-hero-img img {
    width: 100%;
    display: block;
}

.article-meta {
    color: var(--ink-mute);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.article-body {
    max-width: 720px;
}

.article-body h2 {
    font-size: clamp(1.4rem, 1.4vw + 1rem, 1.9rem);
    margin: 36px 0 12px;
}

.article-body p {
    font-size: 1.06rem;
    line-height: 1.7;
}

/* Project cards: fill the preview cleanly on mobile.
   The base design system letterboxes screenshots with object-fit:contain,
   which leaves blank space under images that are not exactly 4:3. Using
   cover makes every card fill edge to edge, with no whitespace. */
@media (max-width: 700px) {
    .work-preview.has-screenshot {
        aspect-ratio: 16 / 11;
        padding: 0;
        background: var(--bg-warm);
    }

    .work-preview.has-screenshot .work-screenshot {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        background: var(--bg-card);
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 430px) {
    .work-preview.has-screenshot {
        aspect-ratio: 4 / 3;
    }
}

/* Mobile menu: keep all menu links, the language buttons and the CTA in
   view without scrolling. The base design system sized the drawer for
   fewer items; with the current navigation it needs to be more compact. */
.mobile-menu {
    gap: 16px;
}

.mobile-menu nav {
    margin-top: 4px;
    gap: 0;
}

.mobile-menu nav a {
    font-size: 1.45rem;
    padding: 12px 0;
}

.mm-langs {
    margin-top: 2px;
}

/* Shorter screens: tighten one more step so nothing falls off-screen. */
@media (max-height: 740px) {
    .mobile-menu {
        gap: 12px;
        padding: 16px 20px;
    }

    .mobile-menu nav a {
        font-size: 1.2rem;
        padding: 9px 0;
    }
}

@media (max-width: 380px) {
    .mobile-menu nav a {
        font-size: 1.2rem;
        padding: 10px 0;
    }
}
