/* =========================================================
   Looking Glass Analytics — Site Stylesheet
   ========================================================= */

/* ----- CSS Custom Properties ----- */
:root {
    --color-red: #c0392b;
    --color-red-dark: #992d22;
    --color-dark: #2c2c2c;
    --color-dark-2: #1a1a1a;
    --color-mid: #4a4a4a;
    --color-light-bg: #f5f5f5;
    --color-border: #ddd;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max-width: 1100px;
    --radius: 4px;
    --shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    --nav-height: 80px;
}

/* ----- Reset / Base ----- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 {
    line-height: 1.25;
    color: var(--color-dark);
    font-weight: 600;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { color: var(--color-text-light); }

a { color: var(--color-red); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ----- Layout Container ----- */
.container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ----- Site Shell ----- */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ----- Navigation ----- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-dark);
    border-bottom: 3px solid var(--color-red);
    height: var(--nav-height);
}

.nav-inner {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo img {
    height: 58px;
    width: auto;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 0.5rem 0.9rem;
    color: #cccccc;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
    color: var(--color-white);
    border-bottom: 2px solid var(--color-red);
    border-radius: 0;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: var(--color-white);
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
}

@media (max-width: 640px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-dark-2);
        padding: 1rem;
        gap: 0.1rem;
    }

    .nav-links.open { display: flex; }

    .nav-links a { padding: 0.7rem 1rem; }
}

/* ----- Hero Section ----- */
.hero {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 5rem 1.5rem;
    text-align: center;
}

.hero-inner {
    max-width: 720px;
    margin-inline: auto;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 1.25rem;
}

.hero-logo {
    display: block;
    margin-inline: auto;
    margin-bottom: 2rem;
    width: min(480px, 85vw);
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.hero-tagline {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: #cccccc;
    margin-bottom: 2rem;
    max-width: 580px;
    margin-inline: auto;
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-block;
    background: var(--color-red);
    color: var(--color-white);
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
}

.hero-cta:hover {
    background: var(--color-red-dark);
    text-decoration: none;
}

/* ----- Value Props Strip ----- */
.value-strip {
    background: var(--color-light-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 2.5rem 1.5rem;
}

.value-strip-inner {
    max-width: var(--max-width);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.value-item h3 {
    color: var(--color-red);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.value-item p {
    font-size: 0.92rem;
}

/* ----- Section Blocks ----- */
.section {
    padding: 4rem 1.5rem;
}

.section-alt {
    background: var(--color-light-bg);
}

.section-inner {
    max-width: var(--max-width);
    margin-inline: auto;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    max-width: 600px;
}

.section-label {
    display: inline-block;
    color: var(--color-red);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* ----- Cards Grid ----- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-red);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow);
}

.card h3 {
    margin-bottom: 0.65rem;
    color: var(--color-dark);
}

.card p {
    font-size: 0.93rem;
}

/* ----- Clients Grid ----- */
.clients-grid {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.clients-column {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
}

@media (max-width: 900px) {
    .clients-grid {
        flex-direction: column;
    }
}

.client-group {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-red);
    border-radius: var(--radius);
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: var(--shadow);
    width: 100%;
    margin-bottom: 1.5rem;
}

.client-group h3 {
    margin-bottom: 0.85rem;
    color: var(--color-dark);
    font-size: 1.05rem;
}

.client-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.client-group li {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.4;
    padding-left: 0.9rem;
    position: relative;
}

.client-group li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 5px;
    background: var(--color-red);
    border-radius: 50%;
}

/* ----- Partners Row ----- */
.partners-row {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
}

.partners-row h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
}

.partner-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-mid);
}

/* ----- Contact Page ----- */
.contact-block {
    max-width: 520px;
}

.contact-block h2 {
    margin-bottom: 1.5rem;
}

.contact-block-centered {
    max-width: 580px;
    margin-inline: auto;
    text-align: center;
}

.contact-block-centered p {
    margin-bottom: 1.75rem;
}

.contact-cta {
    font-size: 1.15rem;
    padding: 1rem 2.5rem;
}

.contact-followup {
    margin-top: 2rem;
    font-size: 0.92rem;
}

.contact-followup a {
    font-weight: 600;
}

.contact-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-list li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
}

.contact-value {
    font-size: 1rem;
    color: var(--color-dark);
}

.contact-value a {
    color: var(--color-red);
}

/* ----- Page Header (inner pages) ----- */
.page-header {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 3rem 1.5rem;
    border-bottom: 3px solid var(--color-red);
}

.page-header-inner {
    max-width: var(--max-width);
    margin-inline: auto;
}

.page-header h1 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #bbbbbb;
    max-width: 560px;
}

/* ----- Footer ----- */
.site-footer {
    background: var(--color-dark-2);
    color: #aaaaaa;
    padding: 2.5rem 1.5rem;
    font-size: 0.88rem;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--max-width);
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand img {
    height: 52px;
    width: auto;
    opacity: 1;
}

.footer-tagline {
    font-size: 0.82rem;
    color: #888888;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    line-height: 1.7;
}

.footer-info a {
    color: #aaaaaa;
}

.footer-info a:hover {
    color: var(--color-white);
}

.footer-copy {
    max-width: var(--max-width);
    margin-inline: auto;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.78rem;
    color: #666666;
}

/* ----- Blazor Infrastructure ----- */
h1:focus { outline: none; }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}
