/* ─── Nord base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: #2E3440;
    color: #ECEFF4;
    scroll-behavior: smooth;
}

/* ─── Page wrapper (below fixed AppBar) ─────────────────────── */
.page-content {
    padding-top: 64px;
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero-section {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #2E3440 0%, #3B4252 60%, #2E3440 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(136,192,208,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(94,129,172,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 1rem;
}

.hero-tagline {
    color: #ECEFF4 !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    color: #D8DEE9 !important;
    font-size: 1.15rem !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Section spacing ────────────────────────────────────────── */
.py-16 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.mb-2  { margin-bottom: 0.5rem !important; }
.mb-4  { margin-bottom: 1rem !important; }
.mb-8  { margin-bottom: 2rem !important; }
.mb-10 { margin-bottom: 2.5rem !important; }
.mt-4  { margin-top: 1rem !important; }
.h-100 { height: 100%; }

/* ─── Service cards ──────────────────────────────────────────── */
.service-card {
    background: #3B4252 !important;
    border: 1px solid #434C5E !important;
    border-radius: 12px !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: #88C0D0 !important;
    box-shadow: 0 12px 32px rgba(136,192,208,0.12) !important;
}

/* ─── Why section ────────────────────────────────────────────── */
.why-section {
    background: #3B4252;
}

.why-item { padding: 1.5rem; }

/* ─── Portfolio cards ────────────────────────────────────────── */
.portfolio-card {
    background: #3B4252 !important;
    border: 1px solid #434C5E !important;
    border-radius: 12px !important;
    transition: transform 0.25s ease, border-color 0.25s ease;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    border-color: #88C0D0 !important;
}

.portfolio-icon-wrap {
    width: 56px;
    height: 56px;
    background: rgba(136,192,208,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* ─── Pricing cards ──────────────────────────────────────────── */
.pricing-card {
    background: #3B4252 !important;
    border: 1px solid #434C5E !important;
    border-radius: 16px !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.25) !important;
}

.pricing-card.featured {
    border-color: #88C0D0 !important;
    box-shadow: 0 0 0 2px #88C0D0, 0 16px 40px rgba(136,192,208,0.15) !important;
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #88C0D0, #5E81AC);
}

.pricing-price {
    font-size: 3rem !important;
    font-weight: 700 !important;
    color: #88C0D0 !important;
    line-height: 1 !important;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    color: #D8DEE9;
    font-size: 0.9rem;
}

/* ─── Contact ────────────────────────────────────────────────── */
.contact-card {
    background: #3B4252 !important;
    border: 1px solid #434C5E !important;
    border-radius: 16px !important;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #434C5E;
}

.contact-info-item:last-child { border-bottom: none; }

/* ─── Brand name ─────────────────────────────────────────────── */
.brand-name {
    font-weight: 700 !important;
    letter-spacing: -0.5px;
    color: #ECEFF4 !important;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: #2E3440;
    border-top: 1px solid #434C5E;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

/* ─── Page header ────────────────────────────────────────────── */
.page-header {
    background: linear-gradient(160deg, #3B4252 0%, #2E3440 100%);
    padding: 5rem 0 3rem;
}

/* ─── About ──────────────────────────────────────────────────── */
.value-item {
    padding: 1.25rem 1.5rem;
    border-left: 3px solid #88C0D0;
    background: rgba(136,192,208,0.05);
    border-radius: 0 8px 8px 0;
}

/* ─── Nav overrides ──────────────────────────────────────────── */
.mud-nav-link.active {
    color: #88C0D0 !important;
    background: rgba(136,192,208,0.08) !important;
}

.mud-appbar { border-bottom: 1px solid #434C5E !important; }
.mud-drawer { border-right: 1px solid #434C5E !important; }

/* ─── Error UI (overridden in index.html inline) ─────────────── */
#blazor-error-ui { display: none; }
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 959px) {
    .hero-section { min-height: auto; padding: 5rem 0; }
    .py-16 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
    .pricing-price { font-size: 2.5rem !important; }
}
