:root {
    --nav-bg: #1e2233;
    --primary: #4f7ef7;
    --primary-dark: #3563d8;
    --primary-light: #eef2ff;
    --text: #111827;
    --text-muted: #6b7280;
    --bg: #f7f8fc;
    --surface: #ffffff;
    --border: #e5e7eb;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --max-w: 1100px;
    --px: clamp(1rem, 4vw, 2.5rem);
}


* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

main { flex: 1; }

.content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 3.5rem var(--px);
}

/* ── Typography ── */
h1, h2, h3, h4 {
    line-height: 1.25;
    font-weight: 700;
    color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

p, li { color: var(--text-muted); }
p + p { margin-top: 0.9rem; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary { background-color: var(--primary); color: #fff; }
.btn-primary:hover { background-color: var(--primary-dark); }

.btn-outline { background-color: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-outline:hover { border-color: #fff; color: #fff; }

.btn-outline-dark { background-color: transparent; border-color: var(--border); color: var(--text); }
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--nav-bg) 0%, #2d3561 100%);
    color: #fff;
    padding: clamp(3.5rem, 9vw, 6.5rem) var(--px);
    text-align: center;
}
    .hero h1 {
        color: #fff;
        font-size: 2rem;
        margin-bottom: 1rem;
    }
.hero .sub { color: rgba(255,255,255,0.72); font-size: 1.15rem; max-width: 560px; margin: 1rem auto 0; }
.hero .highlight { color: #7aa4fa; }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 2.25rem; }

.hero-sm {
    padding: clamp(2rem, 5vw, 3.5rem) var(--px);
    text-align: center;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.hero-sm p { color: var(--text-muted); max-width: 520px; margin: 0.75rem auto 0; }

/* ── Section label ── */
.section-label {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ── Features ── */
.feature-section {
    padding: clamp(2.5rem, 7vw, 5rem) 0;
    text-align: center;
}
.feature-section > h2 { margin-bottom: 2rem; }
.feature-section > p { max-width: 500px; margin: 0 auto 2.5rem;}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    text-align: left;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    flex-direction: column;
}

.card img {
    max-width: 25%;
    aspect-ratio: 1/1;
}

.card p {
    font-size: 0.77rem;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.feature-grid .card h3 { margin-bottom: 0.4rem; }

/* ── Pricing ── */
.pricing-section { padding: clamp(2.5rem, 7vw, 5rem) 0; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: .75rem;
    align-items: start;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,126,247,0.15), var(--shadow-md);
}
.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
}
.pricing-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin: 1rem 0 0.25rem;
}
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-desc { font-size: 0.875rem; margin-bottom: 0.5rem; }

.pricing-features {
    list-style: none;
    margin: 0rem;
    display: flex;
    flex-direction: column;
}
.pricing-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0rem;
}
.pricing-features li::before { color: var(--primary); font-weight: 700; flex-shrink: 0; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ── About ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.about-text h2 { margin-bottom: 1rem; }
.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.value-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}
.value-card h4 { margin-bottom: 0.25rem; font-size: 0.95rem; }
.value-card p { font-size: 0.85rem; margin: 0; }

/* -- Service -- */
.service-grid {
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items:unsafe center;
}

.service-text{
    margin-bottom: 3rem;
    margin-top:3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-text p {
    align-items: flex-start;
    margin-top: 2rem;
    margin-bottom: 2rem
}

.service-grid {
    display: grid;
    grid-template-columns: auto;
    gap: 1rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

    .service-card h4 {
        margin-bottom: 0.25rem;
        font-size: 0.95rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

.service-grid-bottom {
    display: grid;
    gap: 1.5rem;
    grid-template-columns:auto ;
    text-align: left;
}

.service-hero {
    background: linear-gradient(135deg, var(--nav-bg) 0%, #2d3561 100%);
    color: #fff;
    padding: clamp(3.5rem, 9vw, 6.5rem) var(--px);
    text-align: center;
}

    .service-hero p {
        color:lightgrey;
    }

    .service-hero h1 {
        color: #fff;
        font-size: 2rem;
        margin-bottom: .5rem;
    }

    .service-hero .sub {
        color: rgba(255,255,255,0.72);
        font-size: 1.15rem;
        max-width: 560px;
        margin: 1rem auto 0;
    }

    .service-hero .highlight {
        color: #7aa4fa;
    }

.service-hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.25rem;
}

.service-hero-sm {
    padding: clamp(2rem, 5vw, 3.5rem) var(--px);
    text-align: center;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

    .service-hero-sm p {
        color: var(--text-muted);
        max-width: 520px;
        margin: 0.75rem auto 0;
    }

.service-section-label {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ── Contact ── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    align-items: start;
}

.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,126,247,0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-info-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    flex-direction: column;
}
.contact-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-info-item h4 { margin-bottom: 0.15rem; font-size: 0.9rem; }
.contact-info-item p { font-size: 0.85rem; margin: 0; }

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-container-hours {
    display: flex;
    flex-direction: column;
}


/* ── 404 ── */
.not-found-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(3rem, 10vw, 6rem) var(--px);
    min-height: 50vh;
}
.not-found-code {
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 900;
    line-height: 1;
    color: var(--border);
    margin-bottom: 0.5rem;
}
.not-found-wrap h1 { margin-bottom: 0.75rem; }
.not-found-wrap p { max-width: 400px; margin-bottom: 2rem; }

/* ── Responsive ── */
@media (max-width: 800px) {
    .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .values-grid { grid-template-columns: 1fr; }
}

/* ── Blazor loading indicator ── */
.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 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: #1b6ec2;
    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");
}
