/* Shared styles for Meta Veritas platform / solution pages */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --blue: #0099D8;
    --blue-dark: #0077b3;
    --blue-light: #e6f3ff;
    --teal: #007a8c;
    --yellow: #FFCF01;
    --yellow-light: #fff9e6;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #666;
    --gray-dark: #333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background: var(--white);
}

header {
    background: var(--white);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 153, 216, 0.3);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.logo-img { height: 40px; width: auto; margin-bottom: 0.2rem; mix-blend-mode: multiply; filter: brightness(1.1); }
.logo-text { font-size: 0.8rem; font-weight: 500; color: var(--blue); }
.logo-text span { color: var(--yellow); font-weight: bold; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    color: var(--blue);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active { border-bottom-color: var(--yellow); }

.dropdown { position: relative; display: inline-block; }
.dropdown > a { display: inline-block; padding-bottom: 1rem; margin-bottom: -0.5rem; }
.dropdown-content {
    display: none;
    position: absolute;
    background: var(--white);
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    z-index: 200;
    border-top: 3px solid var(--yellow);
    overflow: hidden;
}
.dropdown-content a {
    color: var(--gray-dark);
    padding: 0.75rem 1rem;
    display: block;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.95rem;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background: var(--blue-light); color: var(--blue); }
.dropdown:hover .dropdown-content { display: block; }

.page-hero {
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--white) 55%, var(--yellow-light) 100%);
    padding: 3rem 1.5rem;
    text-align: center;
}

.page-hero .mv-logo { max-width: 280px; height: auto; margin: 0 auto 1rem; display: block; }
.page-hero h1 { font-size: 2.4rem; color: var(--blue-dark); margin-bottom: 0.75rem; line-height: 1.25; }
.page-hero .tagline { font-size: 1.15rem; color: var(--gray); max-width: 820px; margin: 0 auto 1.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}
.btn-primary { background: var(--yellow); color: var(--blue-dark); }
.btn-primary:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-secondary:hover { background: var(--blue); color: var(--white); }

.content-wrap { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.content-wrap h2 {
    font-size: 1.75rem;
    color: var(--blue-dark);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--yellow-light);
}
.content-wrap h3 { font-size: 1.15rem; color: var(--blue); margin: 1.25rem 0 0.5rem; }
.content-wrap p { margin-bottom: 1rem; }
.content-wrap ul { margin: 0.75rem 0 1.25rem 1.5rem; }
.content-wrap li { margin-bottom: 0.45rem; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.back-link:hover { text-decoration: underline; }

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.stat-card {
    background: var(--blue-light);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
}
.stat-card strong { display: block; font-size: 1.6rem; color: var(--blue-dark); }
.stat-card span { font-size: 0.9rem; color: var(--gray); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}
.product-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-left: 4px solid var(--yellow);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 153, 216, 0.08);
}
.product-card h3 { margin-top: 0; }
.product-card .product-name { font-size: 0.85rem; color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.hub-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(0, 153, 216, 0.12);
    border-top: 4px solid var(--blue);
    transition: 0.3s;
}
.hub-card:hover { transform: translateY(-4px); }
.hub-card h3 { color: var(--blue-dark); margin-bottom: 0.5rem; }
.hub-card a { color: var(--blue); font-weight: 600; text-decoration: none; }
.hub-card a:hover { text-decoration: underline; }

.callout {
    background: var(--yellow-light);
    border-left: 4px solid var(--yellow);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.hero-image {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.arch-diagram {
    background: var(--gray-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}
.arch-diagram svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }

.logo-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 12px;
}
.logo-wall img {
    height: 44px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.9;
}
.logo-wall img:hover { filter: none; opacity: 1; }

.related-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0; }
.related-links a {
    background: var(--blue-light);
    color: var(--blue-dark);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}
.related-links a:hover { background: var(--blue); color: var(--white); }

.cta-band {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: var(--white);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 12px;
    margin: 2rem 0;
}
.cta-band h2 { color: var(--white); border: none; margin-top: 0; }
.cta-band p { max-width: 640px; margin: 0 auto 1.25rem; }

/* Brochure modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}
.modal-box h3 { color: var(--blue-dark); margin-bottom: 0.5rem; }
.modal-box .form-group { margin-bottom: 1rem; text-align: left; }
.modal-box label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.9rem; }
.modal-box input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}
.modal-box .form-error { color: #c00; font-size: 0.85rem; margin-top: 0.35rem; display: none; }
.modal-box .form-success { color: var(--teal); font-weight: 600; display: none; }

footer {
    background: #1a2a3a;
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    margin-top: 2rem;
}
footer a { color: var(--yellow); text-decoration: none; margin: 0 0.5rem; }

@media (max-width: 768px) {
    .page-hero h1 { font-size: 1.85rem; }
    .dropdown-content { position: static; box-shadow: none; border: none; }
    nav { flex-direction: column; gap: 0.5rem; }
}
