html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgM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MDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

#app:has(.runde-loader) {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 42%, rgba(197, 155, 72, 0.09), transparent 34rem),
        #080808;
}

.runde-loader {
    min-height: 100vh;
    display: grid;
    place-content: center;
    justify-items: center;
    width: 100%;
    padding: 2rem;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.runde-loader-brand {
    display: grid;
    gap: 0.15rem;
    margin-bottom: 2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.runde-loader-brand span {
    color: #c59b48;
    font-family: 'Ultra', Georgia, serif;
    font-size: clamp(2rem, 6vw, 3.75rem);
    line-height: 1;
    text-transform: none;
}

.runde-loader-brand strong {
    color: rgba(255, 255, 255, 0.86);
    font-family: 'Monda', sans-serif;
    font-size: clamp(0.68rem, 2vw, 0.92rem);
    font-weight: 400;
    letter-spacing: 0.34em;
}

.stitch-stage {
    position: relative;
    width: min(78vw, 620px);
    height: 150px;
}

.stitch-thread {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.thread-line,
.thread-shadow {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: runde-thread-pull 2.7s cubic-bezier(0.42, 0, 0.3, 1) infinite;
}

.thread-shadow {
    stroke: rgba(0, 0, 0, 0.72);
    stroke-width: 8;
    transform: translateY(3px);
}

.thread-line {
    stroke: #c59b48;
    stroke-width: 4;
    filter: drop-shadow(0 0 5px rgba(197, 155, 72, 0.42));
}

.loader-needle {
    animation: runde-needle-visibility 2.7s linear infinite;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
}

.needle-body {
    fill: #d9dde0;
    stroke: #70767b;
    stroke-width: 0.8;
}

.needle-eye {
    fill: #b9bec2;
    stroke: #f6f6f6;
    stroke-width: 1;
}

.needle-eye-opening {
    fill: #080808;
    stroke: #666c71;
    stroke-width: 0.7;
}

.runde-loader-message {
    margin: 1.5rem 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-family: 'Monda', sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.loader-dots::after {
    content: "";
    animation: runde-loading-dots 1.4s steps(4, end) infinite;
}

@keyframes runde-thread-pull {
    0% {
        stroke-dashoffset: 1;
        opacity: 0.15;
    }
    14% {
        opacity: 1;
    }
    76% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    92%, 100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

@keyframes runde-needle-visibility {
    0% { opacity: 0; }
    9%, 78% { opacity: 1; }
    92%, 100% { opacity: 0; }
}

@keyframes runde-loading-dots {
    0% { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75%, 100% { content: "..."; }
}

@media (max-width: 520px) {
    .stitch-stage {
        width: 88vw;
        height: 120px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .thread-line,
    .thread-shadow,
    .loader-needle,
    .loader-dots::after {
        animation: none;
    }

    .thread-line,
    .thread-shadow {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    .loader-needle {
        display: none;
    }
}

code {
    color: #c02d76;
}

/* Compact black page headers. The home-page hero intentionally keeps its own design. */
.reviews-hero,
.gallery-hero,
.services-hero-section,
.contact-hero-section,
.service-hero {
    background: linear-gradient(135deg, #080808, #181818) !important;
    background-image: none !important;
    padding: 92px 20px !important;
    min-height: 0 !important;
}

.service-hero .min-vh-75 {
    min-height: 0 !important;
}

.gallery-title,
.services-hero-title,
.contact-hero-title,
.service-hero .hero-title,
.reviews-hero h1 {
    font-size: clamp(2.35rem, 5vw, 3.6rem) !important;
    margin-top: 0;
}

.service-hero .hero-buttons {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .reviews-hero,
    .gallery-hero,
    .services-hero-section,
    .contact-hero-section,
    .service-hero {
        padding: 68px 18px !important;
    }
}
