/*
  App-level styles for GLOBAL LEGAL COMPANY.
  Loaded after css/styles.css (SB UI Kit Pro build) so the overrides below win.
*/

/* Brand palette carried over from the original static site */
:root {
    --bs-primary: #0F4C5C;
    --bs-primary-rgb: 15, 76, 92;
    --bs-link-color: #0F4C5C;
    --bs-link-color-rgb: 15, 76, 92;
    --bs-link-hover-color: #0B323D;
    --bs-link-hover-color-rgb: 11, 50, 61;
}

a { color: #0F4C5C; }
a:hover { color: #0B323D; }

/* Fixed navbar: brand logo and anchored-section offset */
.glc-navbar-logo { height: 46px; }
section[id] { scroll-margin-top: 90px; }
.navbar-marketing.navbar-dark .navbar-nav .nav-link.active { color: #fff; }

/* Font Awesome icons inside SB UI Kit icon stacks (the kit only sizes SVGs) */
.icon-stack i { font-size: 1rem; line-height: 1; }
.icon-stack.icon-stack-lg i { font-size: 1.35rem; }
.icon-stack.icon-stack-xl i { font-size: 1.75rem; }

/* Page imagery */
.glc-hero-photo { max-width: 350px; border-radius: 50%; object-fit: cover; background-color: #aaa; }
.glc-title-muted { color: #aaa; }
.glc-ceo-photo { width: 230px; height: 230px; border-radius: 50%; object-fit: cover; object-position: top; background-color: #f2f6fc; }
.glc-404 { max-width: 320px; }

/* Anchor chips on the services page header */
.glc-anchor-chip { text-decoration: none; }
.glc-anchor-chip:hover { color: #fff !important; }

/* ---- Blazor loading splash ---- */
.glc-splash { position: fixed; inset: 0; background: #212832; }

.glc-splash-brand {
    position: absolute;
    top: 11vh;
    width: 100%;
    text-align: center;
    color: #fff;
    font-family: "Metropolis", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.08em;
}

.glc-splash-brand span {
    display: block;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    letter-spacing: 0.38em;
    margin-top: 0.25rem;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 7rem;
    height: 7rem;
    inset: 24vh 0 auto 0;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 0.5rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #daf0f2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    inset: calc(24vh + 2.9rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Cargando…");
}

/* ---- Blazor error UI ---- */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    color: #212832;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "Ha ocurrido un error. / An error has occurred.";
}
