/* ============================================================
   Paloma Software corporate site
   Paloma theme. The Panda Wolf site lives in website/src/PandaWolfWeb.
   ============================================================ */

:root {
    /* Paloma palette — derived from logo */
    --paloma-ink: #061b39;
    --paloma-ink-2: #0d2950;
    --paloma-cream: #f5efe2;
    --paloma-parchment: #ebe2cd;
    --paloma-gold: #c9a14a;
    --paloma-gold-bright: #e6bf63;
    --paloma-rust: #8a3a2a;
    --paloma-muted: #6c7282;

    /* Panda Wolf palette — playful, gamey */
    --pw-night: #1b0f2a;
    --pw-purple: #5b2a86;
    --pw-magenta: #d63384;
    --pw-cyan: #20c4d6;
    --pw-yellow: #ffd23f;
    --pw-cream: #faf3e7;
    --pw-ink: #0a0612;

    /* Defaults bind to Paloma — warm, human direction */
    --clay: #b5572f;
    --clay-bright: #c8683c;

    --bg: #fbf6ef;                 /* warm paper */
    --bg-alt: #f1e7d8;             /* soft sand */
    --bg-hero: var(--paloma-ink);  /* header + hero stay navy */
    --fg: #20303f;                 /* warm ink */
    --fg-muted: #6e6256;           /* warm taupe */
    --fg-on-dark: var(--paloma-cream);
    --accent: var(--paloma-gold);
    --accent-bright: var(--paloma-gold-bright);
    --rule: rgba(32, 48, 63, 0.12);

    --btn-primary-bg: var(--clay);
    --btn-primary-bg-hover: var(--clay-bright);
    --btn-primary-fg: #ffffff;

    --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
    --font-accent: var(--font-body);
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --container-max: 1200px;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(32,48,63,0.06), 0 2px 8px rgba(32,48,63,0.05);
    --shadow-md: 0 6px 20px rgba(32,48,63,0.09), 0 14px 34px rgba(32,48,63,0.07);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.12;
    margin: 0 0 0.6em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--accent);
    letter-spacing: 0.03em;
}
/* Paloma eyebrow: an uppercase label with a gold dot, not a serif flourish */
.theme-paloma .eyebrow {
    font-family: var(--font-display);
    font-style: normal;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}
.theme-paloma .eyebrow::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 0.55rem;
    vertical-align: middle;
}
.theme-paloma .hero p.lede { font-style: normal; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 120ms ease;
}
a:hover { color: var(--accent-bright); text-decoration: underline; }

p { margin: 0 0 1em; }

img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease, color 120ms ease, border-color 120ms ease;
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-fg);
    border-color: var(--btn-primary-bg);
}
.btn-primary:hover { background: var(--btn-primary-bg-hover); border-color: var(--btn-primary-bg-hover); }

.btn-ghost {
    background: transparent;
    color: var(--fg-on-dark);
    border-color: rgba(245, 239, 226, 0.4);
}
.btn-ghost:hover { background: rgba(245, 239, 226, 0.08); border-color: var(--fg-on-dark); }

.btn-outline {
    background: transparent;
    color: var(--fg);
    border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--paloma-ink); }

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-hero);
    color: var(--fg-on-dark);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1.5rem;
    min-height: 72px;
}
.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--fg-on-dark);
}
.site-header__brand:hover { text-decoration: none; }

.site-header__mark { height: 42px; width: auto; display: block; }

.site-header__wordmark { display: flex; flex-direction: column; line-height: 1; }
.site-header__name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--fg-on-dark);
}
.site-header__sub {
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 3px;
}

.site-header__brand--pw img { height: 54px; width: auto; display: block; max-width: 300px; }

.attribution {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--fg-muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.site-nav a {
    color: var(--fg-on-dark);
    font-family: var(--font-display);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
}
.site-nav a:hover { color: var(--accent-bright); text-decoration: none; }
.site-nav a.active { color: var(--accent-bright); }

.site-nav__cta { padding: 0.5rem 1rem; }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(245, 239, 226, 0.35);
    color: var(--fg-on-dark);
    border-radius: 8px;
    padding: 0.45rem;
    line-height: 0;
    cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease;
}
.nav-toggle:hover { border-color: var(--fg-on-dark); background: rgba(245, 239, 226, 0.08); }

@media (max-width: 820px) {
    .site-nav {
        display: none;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    .site-header.is-open .site-nav {
        display: flex;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg-hero);
        padding: 0.5rem 1.5rem 1.25rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        box-shadow: var(--shadow-md);
    }
    .site-header.is-open .site-nav a {
        padding: 0.9rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .site-header.is-open .site-nav a:last-child { border-bottom: none; }
    .site-nav__cta {
        text-align: center;
        margin-top: 0.75rem;
        padding: 0.85rem 1rem;
    }
    .nav-toggle { display: inline-flex; }
}

/* ---- Footer ---- */
.site-footer {
    background: var(--paloma-ink);
    color: var(--paloma-cream);
    padding: 4rem 0 2rem;
}
.site-footer a { color: var(--paloma-cream); }
.site-footer a:hover { color: var(--paloma-gold-bright); }
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2.5rem;
}
@media (max-width: 820px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
.site-footer__col h4 {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--paloma-gold);
    margin-bottom: 1rem;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: 0.4rem; font-size: 0.95rem; }
.site-footer__brandlink {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    margin-bottom: 0.9rem;
}
.site-footer__brandlink:hover { text-decoration: none; }
.site-footer__mark { height: 40px; width: auto; display: block; }
.site-footer__wordmark { display: flex; flex-direction: column; line-height: 1; }
.site-footer__name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--paloma-cream);
}
.site-footer__sub {
    font-family: var(--font-display);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--paloma-gold);
    margin-top: 3px;
}
.site-footer__bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(245, 239, 226, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(245, 239, 226, 0.6);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    background: var(--bg-hero);
    color: var(--fg-on-dark);
    padding: 6rem 0 7rem;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(60% 60% at 80% 20%, rgba(201, 161, 74, 0.18), transparent 60%),
        radial-gradient(50% 50% at 10% 90%, rgba(138, 58, 42, 0.20), transparent 60%);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 820px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero { padding: 4rem 0 4.5rem; }
}
.hero h1 { color: var(--fg-on-dark); }
.hero p.lede {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    color: rgba(245, 239, 226, 0.85);
    max-width: 38ch;
}
/* Caveat is a display face — keep it for accents, not running text */
.hero__cta { display: flex; gap: 0.85rem; margin-top: 1.5rem; flex-wrap: wrap; }
.hero__art {
    display: flex; justify-content: center; align-items: center;
}
.hero__art img {
    max-height: 320px;
    width: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
}

/* ---- Section ---- */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section__head .eyebrow { display: block; margin-bottom: 0.5rem; }

/* ---- Cards / product grid ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 980px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    text-decoration: none;
    color: var(--fg);
    position: relative;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    text-decoration: none;
}
.product-card__mark {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card__mark img { max-height: 140px; max-width: 100%; width: auto; object-fit: contain; }
.product-card h3 {
    font-family: var(--font-display);
    margin: 0;
}
.product-card p { color: var(--fg-muted); margin: 0; }
.product-card__more {
    margin-top: auto;
    color: var(--accent);
    font-size: 0.85rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---- Feature card icon badge ---- */
.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 161, 74, 0.12);
    color: var(--accent);
}
.card-icon svg { width: 24px; height: 24px; }
/* ---- Feature list grid ---- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.75rem;
}
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-item {
    padding-top: 1.1rem;
    border-top: 2px solid var(--accent);
}
.feature-item h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
.feature-item p { color: var(--fg-muted); margin: 0; font-size: 0.98rem; }

/* ---- PalomaGrants showcase on the home page ---- */
.showcase {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
}
.showcase__lede { font-size: 1.2rem; color: var(--fg-muted); margin: 0 0 1.5rem; }
.showcase__list { padding-left: 1.2rem; margin: 0 0 1.5rem; display: grid; gap: 0.75rem; }
.showcase__price { font-weight: 600; margin: 0 0 1.5rem; }
.showcase__mark { max-width: 280px; width: 100%; justify-self: center; }
@media (max-width: 820px) {
    .showcase { grid-template-columns: 1fr; }
    .showcase__mark { display: none; }
}

/* ---- Page (subpage) header ---- */
.page-hero {
    padding: 4rem 0 3rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--rule);
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--fg-muted); max-width: 60ch; font-size: 1.1rem; }

/* ---- Stub badge for placeholder content ---- */
.stub-badge {
    display: inline-block;
    background: rgba(201, 161, 74, 0.15);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

/* ---- Form ---- */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--fg);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    font: inherit;
    background: var(--bg);
    color: var(--fg);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.15);
}

/* ---- Misc ---- */
#blazor-error-ui {
    background: #b32121; color: #fff;
    padding: 1rem 1.5rem; position: fixed; bottom: 0; left: 0; right: 0;
    display: none; z-index: 1000;
}
#blazor-error-ui[style*="block"] { display: block !important; }
#blazor-error-ui a { color: #fff; text-decoration: underline; margin-left: 1rem; }

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; font-size: 0.9rem; }
