/* Base styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #e0e0e0;
}

/* Layout */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

/* Header */
header {
    background: #f5f5f5;
    border-bottom: 3px solid #2874a6;
    padding: 15px 0;
}

.header-content {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    max-height: 70px;
    border-radius: 4px;
}

.contact-header {
    text-align: right;
}

.contact-header p {
    margin: 0;
    font-size: 0.95rem;
}

.contact-header a {
    color: #2874a6;
    text-decoration: none;
}

.contact-header a:hover {
    text-decoration: underline;
}

/* Main wrapper with sidebar */
.main-wrapper {
    display: flex;
    flex: 1;
}

/* Sidebar */
.sidebar {
    width: 180px;
    min-width: 180px;
    background: #f8f9fa;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.sidebar img {
    width: 100%;
    max-width: 150px;
    height: auto;
}

.sidebar-text {
    font-size: 0.9rem;
    color: #1a5276;
    font-weight: 600;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.image-caption {
    font-size: 0.9rem;
    color: #1a5276;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
}

/* Main content */
main {
    flex: 1;
    padding: 20px 30px;
}

/* Sections */
section {
    margin-bottom: 30px;
}

h2 {
    color: #1a5276;
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #2874a6;
    padding-bottom: 8px;
}

/* Hero section */
.hero {
    margin-bottom: 20px;
}

.hero-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Intro */
.lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a5276;
    margin-bottom: 10px;
}

/* Services */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.service-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2874a6;
    font-weight: bold;
}

.service-list li:last-child {
    border-bottom: none;
}

/* Equipment */
.equipment ul {
    list-style: none;
    padding: 0;
}

.equipment li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.equipment li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2874a6;
    font-weight: bold;
}

.equipment li:last-child {
    border-bottom: none;
}

/* Workshop image */
.full-width-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Location */
.map-image {
    max-width: 100%;
    border-radius: 4px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background: #1a5276;
    color: #fff;
    text-align: center;
    padding: 15px;
}

footer p {
    margin: 0;
}

footer .version {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 5px;
}

/* Blazor error UI */
#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: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* Loading */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1a5276;
    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: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* Responsive */
@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        padding: 15px;
        order: -1;
    }

    .sidebar img {
        max-width: 80px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-header {
        text-align: center;
    }

    main {
        padding: 15px;
    }

    .hero-image {
        max-height: 200px;
    }

    h2 {
        font-size: 1.2rem;
    }
}
