/* ==========================================================================
   Venturien Law — placeholder design tokens
   Replace the values in :root with the Venturien Brand Kit once it exists.
   Nothing below this block should need to change when that happens —
   every color, font, radius and spacing value used across the site and
   portal is drawn from these variables.
   ========================================================================== */

:root {
    /* Color */
    --color-primary: #24425F; /* deep navy — Meridian + Studio Fusion */
    --color-primary-light: #33567A;
    --color-accent: #5468e0;
    --color-accent-hover: #4356c4;
    --color-bg: #F5F7FA;
    --color-surface: #ffffff;
    --color-border: #DDE3EA;
    --color-text: #12151C;
    --color-text-muted: #3E4653;
    --color-success: #1f8a5c;
    --color-warning: #b7791f;
    --color-danger: #c0392b;

    /* Status colors for the sprint board */
    --status-backlog: #8a8f9c;
    --status-active: #5468e0;
    --status-review: #b7791f;
    --status-completed: #1f8a5c;

    /* Type */
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shape & spacing */
    --radius: 12px;
    --radius-sm: 8px;
    --space-section: 56px;
    --space-section-mobile: 32px;
    --shadow-card: 0 1px 3px rgba(20, 24, 40, 0.08), 0 1px 2px rgba(20, 24, 40, 0.06);
    --max-width: 1120px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.55;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin: 0 0 0.5em;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Site header/nav ---- */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}
.brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-primary);
}
.brand span { color: var(--color-accent); }
.site-header nav a {
    color: var(--color-text);
    margin-left: 24px;
    font-weight: 500;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    background: var(--color-accent);
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.btn:hover { background: var(--color-accent-hover); text-decoration: none; }
.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}
.btn-secondary:hover { background: var(--color-accent); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 0.875rem; }

/* ---- Hero ---- */
.hero {
    padding: 96px 0 var(--space-section);
    text-align: left;
}
.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 700;
}
.hero h1 { font-size: 2.6rem; max-width: 720px; }
.hero p.lead { font-size: 1.15rem; color: var(--color-text-muted); max-width: 620px; }
.hero .actions { margin-top: 28px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero .note { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 12px; }

/* ---- Sections / cards ---- */
section { padding: var(--space-section) 0; }
h2 { margin-bottom: 4px; }
.lead { font-size: 1.05rem; color: var(--color-text-muted); }
h1 + p.lead, h2 + p.lead { margin-top: 0; }
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (max-width: 800px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    :root { --space-section: var(--space-section-mobile); }
    .hero { padding-top: 56px; }
}

/* ---- Footer ---- */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 32px 0;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-top: 48px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}
.footer-links a {
    color: var(--color-text-muted);
    text-decoration: underline;
}
.footer-links a:hover {
    color: var(--color-text);
}

/* ---- Forms ---- */
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
input[type=text], input[type=email], input[type=password], textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 16px;
    background: #fff;
    color: var(--color-text);
}
textarea { min-height: 120px; resize: vertical; }
.field-error { color: var(--color-danger); font-size: 0.875rem; margin-top: -10px; margin-bottom: 16px; }
.flash-error {
    background: #fdecea; border: 1px solid var(--color-danger); color: var(--color-danger);
    padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px;
}
.flash-success {
    background: #eaf7f0; border: 1px solid var(--color-success); color: var(--color-success);
    padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px;
}

/* ---- Portal shell ---- */
.portal-shell { display: flex; min-height: 100vh; }
.portal-sidebar {
    width: 240px;
    background: var(--color-primary);
    color: #fff;
    padding: 24px 0;
    flex-shrink: 0;
}
.portal-sidebar .brand { color: #fff; padding: 0 24px 24px; display: block; }
.portal-sidebar .brand span { color: #9aa8ff; }
.portal-sidebar a {
    display: block;
    color: #cfd4ea;
    padding: 10px 24px;
    font-size: 0.95rem;
}
.portal-sidebar a:hover, .portal-sidebar a.active {
    background: var(--color-primary-light);
    color: #fff;
    text-decoration: none;
}
.portal-main { flex: 1; padding: 32px 40px; max-width: 960px; }
.portal-topbar {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px;
}
.user-chip { font-size: 0.9rem; color: var(--color-text-muted); }

/* ---- Sprint board ---- */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.board-col { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 12px; }
.board-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.board-col.backlog h4 { color: var(--status-backlog); }
.board-col.active h4 { color: var(--status-active); }
.board-col.review h4 { color: var(--status-review); }
.board-col.completed h4 { color: var(--status-completed); }
.ticket-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: 0.875rem;
}
.ticket-card .cat { color: var(--color-text-muted); font-size: 0.75rem; }
@media (max-width: 900px) {
    .portal-shell { flex-direction: column; }
    .portal-sidebar { width: 100%; }
    .board { grid-template-columns: 1fr 1fr; }
}

/* ---- Document vault ---- */
table.vault { width: 100%; border-collapse: collapse; margin-top: 16px; }
table.vault th, table.vault td {
    text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border); font-size: 0.9rem;
}
table.vault th { color: var(--color-text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
.folder-tag {
    display: inline-block; background: var(--color-bg); border: 1px solid var(--color-border);
    border-radius: 999px; padding: 2px 10px; font-size: 0.75rem; color: var(--color-text-muted);
}

/* ---- Pinned post ---- */
.pinned-post {
    border-left: 4px solid var(--color-accent);
    background: var(--color-surface);
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}
.pinned-post .pin-label {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--color-accent); font-weight: 700; margin-bottom: 8px;
}


/* ---- Nav dropdown (Our Services) ---- */
.site-header nav {
    display: flex;
    align-items: center;
}
.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: -12px;
}
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    min-width: 220px;
    padding: 8px 0;
    z-index: 20;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    display: block;
}
.nav-dropdown a {
    display: block;
    margin-left: 0;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--color-text);
}
.nav-dropdown a:hover {
    background: var(--color-bg);
    color: var(--color-accent);
}
[id] {
    scroll-margin-top: 90px;
}


/* ---- Who we serve accordion ---- */
.accordion-item { padding: 0; }
.accordion-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary h3 { margin: 0; }
.accordion-item summary:hover h3 { color: var(--color-accent); }
.accordion-item .accordion-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--color-accent);
    transition: transform 0.15s ease;
}
.accordion-item[open] .accordion-icon { transform: rotate(45deg); }
.accordion-item .accordion-body {
    padding: 0 24px 20px;
}
.accordion-item .accordion-body p {
    margin: 0;
    color: var(--color-text-muted);
}


/* ---- Package card expand/collapse ---- */
.card-toggle {
    margin: 10px 0 4px;
    border-top: 1px solid var(--color-border);
    padding-top: 10px;
}
.card-toggle > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
}
.card-toggle > summary::-webkit-details-marker {
    display: none;
}
.card-toggle > summary::marker {
    content: "";
    display: none;
}
.card-toggle > summary {
    -webkit-appearance: none;
    appearance: none;
}
.card-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    color: var(--color-text-muted);
    transition: transform 0.2s ease;
}
.card-toggle[open] > summary .card-toggle-icon {
    transform: rotate(45deg);
}
.card-toggle-body {
    margin-top: 12px;
}
.card-toggle-body p:first-child {
    margin-top: 0;
}

/* ---- Hero image ---- */
.hero .container:has(.hero-image) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: center; }
.hero .hero-image img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; box-shadow: 0 12px 32px rgba(10, 20, 40, 0.18); }
@media (max-width: 900px) { .hero .container:has(.hero-image) { grid-template-columns: 1fr; gap: 32px; } .hero .hero-image { max-width: 420px; } }
