/* ===================================
   Ebem CSS Variables & Global Styles
   Colors provided by MudBlazor via --mud-palette-* (see EbemTheme.cs)
   Font family provided by MudBlazor via --mud-typography-default-family
   =================================== */

:root {
    /* ---- Colors (XD design — not in MudBlazor palette) ---- */
    --color-border: #eaecf0;                     /* XD design */
    --color-gradient-blue-start: #0084be;        /* XD design — decorative gradient */
    --color-gradient-blue-end: #005f87;          /* XD design — decorative gradient */
    --color-card-green: #94c11f;                 /* XD design — card accent */
    --color-card-blue: #204788;                  /* XD design — card accent */
    --color-card-lime: #dcef62;                  /* XD design — card accent */

    /* ---- Tint colors (derived (10% mixin with white) of MudBlazor palette base colors) ---- */
    --color-primary-tint: rgb(231, 233, 235); /* Derived from --mud-palette-primary */
    --color-secondary-tint: rgb(234, 243, 210); /* Derived from --mud-palette-secondary */
    --color-tertiary-tint: rgb(229, 244, 251); /* Derived from --mud-palette-tertiary */

    /* ---- Colors (supplementary — not in MudBlazor palette) ---- */
    --color-bg-light: #f8f9fa;          /* Light background for alt sections */

    /* ---- Spacing ---- */
    --section-spacing: 5rem;            /* XD design — Homepage V3 */
    --ebem-section-spacing: 3rem;       /* Legacy ebem.css */

    /* ---- Radii ---- */
    --radius-md: 8px;                   /* EbemTheme.cs → LayoutProperties.DefaultBorderRadius + XD design */
    --radius-lg: 12px;                  /* XD design — Homepage V3 */
    --radius-xl: 16px;                  /* XD design — Homepage V3 */

    /* ---- Shadows ---- */
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);    /* XD design — Homepage V3 */
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);    /* XD design — Homepage V3 */

    /* ---- Scroll ---- */
    --scroll-offset: 130px;                          /* Sticky header height offset */

    /* ---- Legacy variables (still referenced) ---- */
    --ebem-card-background-color: #f5fbfc;  /* Legacy ebem.css */
    --ebem-card-swoosh-color: #e9f6fa;      /* Legacy ebem.css */

    /* MudBlazor overrides */
    --mud-typography-button-size: 16px; /* Override MudBlazor button font size to match design */
}

/* Global reset */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus,
h1:focus-visible, h2:focus-visible, h3:focus-visible,
h4:focus-visible, h5:focus-visible, h6:focus-visible {
    outline: none;
}

/* ===================================
   Site Structure
   =================================== */

.ebem-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ebem-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ===================================
   Shared CTA Button
   white bg, cornerRadius 8, padding 12px LR / 8px TB
   Text: 16px Semi Bold, color #152c45
   =================================== */

.ebem-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-primary);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--mud-typography-default-family);
    text-decoration: none;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    transition: opacity 0.2s ease;
}

.ebem-cta-button--dark {
    background: var(--mud-palette-primary);
    color: var(--mud-palette-surface);
}

.ebem-cta-button:hover {
    opacity: 0.9;
}

/* ===================================
   Shared Button-Link Styles
   =================================== */

.ebem-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    line-height: 1.5;
}

.ebem-btn--filled {
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-primary);
}

.ebem-btn--filled:hover {
    background-color: var(--mud-palette-primary-darken);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ebem-btn--outlined {
    background-color: transparent;
    color: var(--mud-palette-primary);
    border: 1px solid var(--mud-palette-primary);
}

.ebem-btn--outlined:hover {
    background-color: color-mix(in srgb, var(--mud-palette-primary) 6%, transparent);
}

/* ===================================
   SHARED CONTENT PAGES
   =================================== */

.ebem-content-section {
    padding: 64px 0;
}

.ebem-content-section__title {
    font-family: var(--mud-typography-default-family);
    font-size: 32px;
    font-weight: 700;
    color: var(--mud-palette-primary);
    margin: 0 0 24px;
}

.ebem-content-section__text {
    font-family: var(--mud-typography-default-family);
    font-size: 16px;
    line-height: 1.8;
    color: var(--mud-palette-text-secondary);
    margin: 0 0 16px;
    max-width: 800px;
}

.ebem-content-list {
    font-family: var(--mud-typography-default-family);
    font-size: 16px;
    line-height: 1.8;
    color: var(--mud-palette-text-secondary);
    padding-left: 24px;
    margin: 8px 0 16px;
}

.ebem-content-list--ordered {
    list-style: decimal;
}

/* ===================================
   Shared Responsive
   =================================== */

@media (max-width: 768px) {
    .ebem-content-section__title {
        font-size: 24px;
    }
}

