/* ==========================================================================
   KAU Solutions Design System
   Navy corporate re-key of the estate's shared architecture (Kutech pattern).
   ========================================================================== */

:root {
    --kau-navy: #1f3a5c;
    --kau-navy-light: #2e5480;
    --kau-navy-deep: #16293f;
    --kau-steel: #8fb3d9;

    --bg-primary: #ffffff;
    --bg-secondary: #f3f5f8;
    --bg-dark: #141f2e;

    --text-primary: #1e2430;
    --text-secondary: #5a6472;
    --text-light: #ffffff;

    --border: #dfe3e9;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.6rem; }

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    color: var(--kau-navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--kau-navy-light);
}

::selection {
    background: var(--kau-navy);
    color: white;
}

/* Links inside body copy must be visible at a glance, not discovered by hover:
   weighted and underlined in the steel accent. Buttons and chrome are exempt. */
main p a:not(.btn),
main li a:not(.btn),
main td a {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--kau-steel);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

main p a:not(.btn):hover,
main li a:not(.btn):hover,
main td a:hover {
    text-decoration-color: var(--kau-navy-light);
}

.container {
    max-width: 66rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.narrow {
    max-width: 52rem;
}

/* --- Sections --- */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.heading-accent {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.heading-accent::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--kau-steel);
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--kau-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
}

.brand:hover {
    color: white;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.site-header nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-header nav a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
}

.site-header nav a:hover {
    color: var(--kau-steel);
}

/* --- Hero --- */
.hero {
    background: var(--kau-navy);
    color: white;
    padding: 4.5rem 0 3.75rem;
    text-align: center;
    background-image:
        radial-gradient(ellipse at 15% 25%, rgba(255, 255, 255, 0.06), transparent 55%),
        radial-gradient(ellipse at 85% 75%, rgba(0, 0, 0, 0.22), transparent 55%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: auto, auto, 48px 48px, 48px 48px;
}

.hero h1 {
    color: white;
    font-size: 2.4rem;
    margin: 0 0 1.1rem;
    line-height: 1.2;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.12rem;
    max-width: 640px;
    margin: 0 auto;
}

.hero-short {
    padding: 3.25rem 0 2.5rem;
}

.hero-short h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

/* --- Cards --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    background: var(--bg-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Cards in a row are equal height (grid stretch); the button pins to the bottom
   so every card's link sits on one line across the row. */
.product-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-card h2 {
    color: var(--kau-navy);
    font-size: 1.25rem;
    margin-top: 0;
}

.company-card {
    border: 1px solid var(--border);
    border-left: 3px solid var(--kau-navy);
    border-radius: 0.5rem;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    background: var(--bg-primary);
}

.company-card h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.company-card p {
    margin-bottom: 0;
}

/* --- Tables --- */
.data-table {
    border-collapse: collapse;
    margin: 0.75rem 0 1rem;
    font-size: 0.95rem;
}

.data-table th,
.data-table td {
    text-align: left;
    vertical-align: top;
    padding: 0.4rem 1.25rem 0.4rem 0;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    color: var(--text-primary);
    white-space: nowrap;
}

/* --- Tags & misc --- */
.tag {
    font-size: 0.62em;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.15rem 0.7rem;
    vertical-align: middle;
    white-space: nowrap;
}

.tag-active {
    color: #1d5c2f;
    border-color: #1d5c2f;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 0.375rem;
    background: var(--kau-navy);
    color: var(--text-light);
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn:hover {
    background: var(--kau-navy-light);
    color: var(--text-light);
}

.contact-email {
    font-size: 1.3rem;
    font-weight: 700;
}

.info-block {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.info-block h2 {
    margin-top: 0;
    font-size: 1.05rem;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.brand-tile {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.25rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-top: 3px solid var(--kau-navy);
    border-radius: 0.5rem;
}

.brand-tile h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--kau-navy);
}

.brand-role {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.brand-tile a {
    font-size: 0.85rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-decoration-color: var(--kau-steel);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.brand-tile a:hover {
    text-decoration-color: var(--kau-navy-light);
}

.docs-content h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--kau-steel);
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 1.5rem;
    font-size: 0.9rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 2rem;
}

.footer-brand {
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 300px;
}

.footer-heading {
    color: var(--kau-steel);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer a:hover {
    color: white;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 2rem 0 1rem;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 767.98px) {
    h1 { font-size: 2rem; }

    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .section {
        padding: 2.75rem 0;
    }
}
