/* ==========================================================================
   portal-theme.client.css -- BUSINESS variant (Client Portal)
   ----------------------------------------------------------------------------
   Signature differences from base theme:
     - WHITE topbar with navy text (vs dark topbar in installer)
     - Very sharp corners (2-3px) everywhere
     - Serif headings (Georgia)
     - Warm ivory background
     - Navy primary + muted gold secondary accents
     - Flat bordered cards with no shadow/hover
     - Generous whitespace
     - Uppercase letter-spaced eyebrow labels
   ========================================================================== */

:root,
:root[data-theme="light"] {
    --in-brand-charcoal: #162947;
    --in-brand-blue: #3a5f8f;
    --in-brand-blue-strong: #1e3a5f;
    --in-brand-blue-soft: #edf2f8;

    --in-brand-gold: #b08440;
    --in-brand-gold-strong: #8b5e1f;
    --in-brand-gold-soft: #f8f0dc;

    --in-link: #1e3a5f;
    --in-link-hover: #0f2542;
    --in-focus-ring: 0 0 0 2px rgba(30, 58, 95, 0.3);

    /* Warm ivory / paper */
    --in-bg: #f7f4ee;
    --in-surface: #ffffff;
    --in-surface-alt: #faf7f0;
    --in-surface-sunken: #efeadf;
    --in-border: #d9d4c7;
    --in-border-strong: #b8b1a0;
    --in-divider: #e8e2d3;

    --in-text: #141c2b;
    --in-text-muted: #5b6b83;
    --in-text-subtle: #8b96a8;

    /* Very sharp corners - formal */
    --in-radius-sm: 2px;
    --in-radius-md: 2px;
    --in-radius-lg: 3px;
    --in-radius-xl: 4px;
    --in-radius-pill: 2px;

    /* Barely-there shadows */
    --in-shadow-sm: 0 1px 0 rgba(30, 58, 95, 0.05);
    --in-shadow-md: 0 1px 0 rgba(30, 58, 95, 0.06),
                    0 2px 4px rgba(30, 58, 95, 0.04);
    --in-shadow-lg: 0 2px 6px rgba(30, 58, 95, 0.08);

    /* Navy topbar in both modes -- lets the white INSTALLER portion of the
       logo read cleanly against it. Navy (#1e3a5f) keeps the "business"
       character distinct from the installer portal's near-black topbar. */
    --in-topbar-bg: #1e3a5f;
    --in-topbar-border: #122542;
    --in-topbar-text: #f7f4ee;
    --in-topbar-text-muted: #b8c5d8;
    --in-topbar-hover: rgba(255, 255, 255, 0.08);
    --in-topbar-active: rgba(176, 132, 64, 0.22);

    /* Serif display font for headings */
    --in-font-display: Georgia, "Times New Roman", "Source Serif Pro", serif;
}

:root[data-theme="dark"] {
    --in-bg: #0e1724;
    --in-surface: #172236;
    --in-surface-alt: #1f2d44;
    --in-surface-sunken: #0a1119;
    --in-overlay: rgba(10, 17, 25, 0.72);

    --in-border: #2a3c5a;
    --in-border-strong: #3a4f72;
    --in-divider: #1f2d44;

    --in-text: #eef2f8;
    --in-text-muted: #a8b4c7;
    --in-text-subtle: #7a8699;

    --in-brand-blue: #6e9cc8;
    --in-brand-blue-strong: #4a7fb3;
    --in-brand-blue-soft: #162947;

    --in-brand-gold: #d4b676;
    --in-brand-gold-strong: #e2c48f;
    --in-brand-gold-soft: #2d230e;

    --in-link: #93b4d8;
    --in-link-hover: #bfd4ea;
    --in-focus-ring: 0 0 0 2px rgba(147, 180, 216, 0.45);

    --in-shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.4);
    --in-shadow-md: 0 2px 6px rgba(0, 0, 0, 0.45);
    --in-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.55);

    /* Dark mode keeps a subdued navy topbar */
    --in-topbar-bg: #0e1724;
    --in-topbar-border: #050a14;
    --in-topbar-text: #eef2f8;
    --in-topbar-text-muted: #7a8699;
    --in-topbar-hover: rgba(255, 255, 255, 0.06);
    --in-topbar-active: rgba(212, 182, 118, 0.18);
}

/* ==========================================================================
   TOPBAR -- WHITE with navy text, subtle gold brand pill
   ========================================================================== */

.in-topbar {
    background: var(--in-topbar-bg);
    background-image: none;
    box-shadow: 0 1px 0 var(--in-topbar-border);
    border-bottom: 1px solid var(--in-topbar-border);
}

/* Topbar is navy in both light and dark modes -- the original logo
   (white INSTALLER + blue NET) sits directly on it with no chip. */
.in-topbar__brand-logo {
    background: transparent;
    padding: 0;
    box-shadow: none;
}
.in-topbar__brand-logo img {
    height: 32px;
}

.in-topbar__brand {
    color: var(--in-topbar-text);
    font-family: var(--in-font-display);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.in-topbar__brand-tag {
    background: var(--in-brand-gold-soft);
    color: var(--in-brand-gold-strong);
    border: 1px solid rgba(176, 132, 64, 0.4);
    font-family: var(--in-font-display);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 10px;
    padding: 4px 10px;
}

html[data-theme="dark"] .in-topbar__brand-tag {
    background: rgba(212, 182, 118, 0.12);
    color: var(--in-brand-gold);
}

.in-topbar__nav a,
.in-topbar__nav .in-nav-link {
    color: var(--in-topbar-text-muted);
    font-family: var(--in-font-sans);
    font-weight: 500;
    letter-spacing: 0.01em;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: var(--in-space-2) var(--in-space-3);
    margin-bottom: -1px;
}
.in-topbar__nav a:hover,
.in-topbar__nav .in-nav-link:hover {
    background: transparent;
    color: var(--in-topbar-text);
    border-bottom-color: var(--in-brand-gold);
}
.in-topbar__nav a.is-active,
.in-topbar__nav .in-nav-link.is-active {
    background: transparent;
    color: var(--in-topbar-text);
    border-bottom-color: var(--in-brand-gold);
}

.in-theme-toggle {
    color: var(--in-topbar-text-muted);
}
.in-theme-toggle:hover {
    background: var(--in-topbar-hover);
    color: var(--in-topbar-text);
}

/* ==========================================================================
   TYPOGRAPHY -- Serif headings throughout
   ========================================================================== */

h1, h2, h3, h4,
.in-page-header__title,
.in-hero__title,
.in-hero__headline,
.in-card__title,
.in-stat__value,
.ia-section__title,
.in-auth__title {
    font-family: var(--in-font-display);
    font-weight: 600;
    letter-spacing: -0.015em;
}

/* Eyebrow labels uppercase with wide tracking */
.in-hero__eyebrow,
.in-sidebar__group-title,
.in-badge {
    font-family: var(--in-font-sans);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 10px;
}

/* ==========================================================================
   PAGE HEADER -- solid navy underline, no gradient or glow
   ========================================================================== */

.in-page-header::after {
    background: var(--in-brand-blue-strong);
    width: 60px;
    height: 2px;
    border-radius: 0;
    box-shadow: none;
}

.in-page-header__title {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: var(--in-text);
    font-size: var(--in-fs-3xl);
}

/* ==========================================================================
   CARDS -- flat, bordered, no hover lift
   ========================================================================== */

.in-card {
    border: 1px solid var(--in-border);
    box-shadow: none;
    border-radius: var(--in-radius-lg);
    transition: border-color var(--in-dur-base) var(--in-ease);
}
.in-card:hover {
    border-color: var(--in-border-strong);
    box-shadow: none;
    transform: none;
}
.in-card--accent {
    border-top: 3px solid var(--in-brand-blue-strong);
}

.in-card__header {
    background: var(--in-surface-alt);
    border-bottom: 1px solid var(--in-border);
    padding: var(--in-space-4) var(--in-space-5);
}

.in-card__title {
    font-size: var(--in-fs-lg);
    margin: 0;
}

/* ==========================================================================
   GRID alignment -- force cards to line up at top and stretch to equal height
   so header rows / body rows / footers sit on the same Y across all cards
   ========================================================================== */

.in-stat-grid {
    align-items: stretch;
}
.in-stat-grid > .in-card,
.in-stat-grid > .in-stat {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    margin: 0;
}
.in-stat-grid > .in-card > .in-card__body {
    flex: 1;
}
.in-stat-grid > .in-card > .in-card__footer {
    margin-top: auto;
}

/* ==========================================================================
   STAT TILES -- no accent bar, no hover lift, flat
   ========================================================================== */

.in-stat {
    box-shadow: none;
    border: 1px solid var(--in-border);
    background: var(--in-surface);
}
.in-stat::before {
    display: none;
}
.in-stat:hover {
    transform: none;
    border-color: var(--in-border-strong);
    box-shadow: none;
}
.in-stat__value {
    color: var(--in-brand-blue-strong);
    font-family: var(--in-font-display);
}
html[data-theme="dark"] .in-stat__value {
    color: var(--in-brand-gold);
}

/* ==========================================================================
   BUTTONS -- flat, sharp, solid navy primary
   ========================================================================== */

.in-btn {
    border-radius: var(--in-radius-md);
    font-family: var(--in-font-sans);
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 10px 18px;
}

.in-btn--primary {
    background: var(--in-brand-blue-strong);
    border-color: var(--in-brand-blue-strong);
    box-shadow: none;
    background-image: none;
}
.in-btn--primary:hover {
    background: #132642;
    border-color: #132642;
    box-shadow: none;
}

.in-btn--secondary {
    background: var(--in-surface);
    color: var(--in-brand-blue-strong);
    border-color: var(--in-border-strong);
}

/* ==========================================================================
   HERO -- navy two-tone, no halo, no grid pattern
   ========================================================================== */

.in-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f1f38 100%);
    box-shadow: var(--in-shadow-md);
    border-color: rgba(255, 255, 255, 0.04);
    border-radius: var(--in-radius-lg);
}
.in-hero::before {
    background:
        radial-gradient(circle at 85% 25%, rgba(176, 132, 64, 0.14), transparent 55%),
        radial-gradient(circle at 15% 85%, rgba(176, 132, 64, 0.08), transparent 50%);
}
.in-hero::after {
    background-image: none;
}
.in-hero__halo { display: none; }
/* Hero has a navy gradient background; the original logo (INSTALLER white,
   NET blue) needs to float directly on it. The white INSTALLER shows cleanly
   on the dark navy; the blue NET is darker against the navy but still
   recognizable as the counterpoint. */
.in-hero__logo {
    transform: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}
.in-hero__logo:hover {
    transform: none;
}
.in-hero__eyebrow {
    background: rgba(176, 132, 64, 0.16);
    border: 1px solid rgba(176, 132, 64, 0.35);
    color: #d4b676;
    border-radius: var(--in-radius-sm);
}
.in-hero__title {
    font-family: var(--in-font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   SIDEBAR -- quieter, gold accent on active
   ========================================================================== */

.in-sidebar a,
.in-sidebar .in-side-link {
    border-radius: var(--in-radius-sm);
    font-weight: 500;
    transition: background var(--in-dur-fast) var(--in-ease),
                color var(--in-dur-fast) var(--in-ease);
}
.in-sidebar a:hover,
.in-sidebar .in-side-link:hover {
    transform: none;
    background: var(--in-surface-sunken);
}
.in-sidebar a.is-active,
.in-sidebar .in-side-link.is-active {
    position: relative;
    background: var(--in-brand-blue-soft);
    color: var(--in-brand-blue-strong);
    font-weight: 600;
}
.in-sidebar a.is-active::before,
.in-sidebar .in-side-link.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: var(--in-brand-gold);
}
.in-sidebar__group-title {
    color: var(--in-text-subtle);
    font-family: var(--in-font-sans);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 10px;
}

/* ==========================================================================
   INPUTS -- sharp, bordered
   ========================================================================== */

.in-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
    border-radius: var(--in-radius-sm);
    border: 1px solid var(--in-border-strong);
    background: var(--in-surface);
}

/* ==========================================================================
   BADGES -- gold primary accent option
   ========================================================================== */

.in-badge {
    border-radius: var(--in-radius-sm);
    padding: 3px 8px;
    font-weight: 600;
}

.in-badge--gold {
    background: var(--in-brand-gold-soft);
    color: var(--in-brand-gold-strong);
    border: 1px solid rgba(176, 132, 64, 0.35);
}
html[data-theme="dark"] .in-badge--gold {
    color: var(--in-brand-gold);
    border-color: rgba(212, 182, 118, 0.35);
}

/* ==========================================================================
   FOOTER -- serif credits
   ========================================================================== */

.in-footer {
    font-family: var(--in-font-sans);
    border-top: 1px solid var(--in-border);
    background: var(--in-surface);
}

