/* ============================================
   yourcommunityservice.com — Global Styles
   .NET 10 Blazor Hybrid · Mobile-First
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --deep-lilac: #7d5ba6;
    --harvest-orange: #f17300;
    --fresh-sky: #3fa7d6;
    --banana-cream: #fee440;
    --lime-flash: #89fc00;

    --deep-lilac-rgb: 125, 91, 166;
    --harvest-orange-rgb: 241, 115, 0;
    --fresh-sky-rgb: 63, 167, 214;
    --banana-cream-rgb: 254, 228, 64;
    --lime-flash-rgb: 137, 252, 0;

    --bg-dark: #030027;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ECF8F8;
    --text-secondary: #9ab8be;
    --text-muted: #5a7a82;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Quicksand', system-ui, -apple-system, sans-serif;
    --font-mono: 'Cascadia Code', 'Fira Code', monospace;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --nav-height: 64px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--fresh-sky);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--banana-cream);
}

h1:focus {
    outline: none;
}

/* --- Typography --- */
.text-gradient {
    background: linear-gradient(135deg, var(--fresh-sky), var(--deep-lilac), var(--harvest-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-warm {
    background: linear-gradient(135deg, var(--harvest-orange), var(--banana-cream), var(--lime-flash));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--harvest-orange), #ff9a3c);
    color: #030027;
    box-shadow: 0 4px 24px rgba(var(--harvest-orange-rgb), 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px rgba(var(--harvest-orange-rgb), 0.5);
    color: #030027;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(var(--fresh-sky-rgb), 0.4);
}

.btn-secondary:hover {
    border-color: var(--fresh-sky);
    background: rgba(var(--fresh-sky-rgb), 0.1);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.btn-glow {
    background: linear-gradient(135deg, var(--lime-flash), var(--fresh-sky));
    color: #030027;
    box-shadow: 0 4px 24px rgba(var(--lime-flash-rgb), 0.3);
}

.btn-glow:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 40px rgba(var(--lime-flash-rgb), 0.45);
    color: #030027;
}

/* --- Glass Card --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out-expo);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(var(--fresh-sky-rgb), 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(var(--fresh-sky-rgb), 0.4);
    }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes dash-draw {
    to { stroke-dashoffset: 0; }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.animate-fade-down {
    opacity: 0;
    animation: fadeInDown 0.6s var(--ease-out-expo) forwards;
}

.animate-scale {
    opacity: 0;
    animation: fadeInScale 0.6s var(--ease-out-expo) forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

/* --- Section Layout --- */
.section {
    padding: 5rem 1.25rem;
    position: relative;
}

.section-tight {
    padding: 3.5rem 1.25rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Icon Wrapper --- */
.icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.icon-wrap svg {
    width: 28px;
    height: 28px;
}

.icon-lilac { background: rgba(var(--deep-lilac-rgb), 0.15); }
.icon-orange { background: rgba(var(--harvest-orange-rgb), 0.15); }
.icon-sky { background: rgba(var(--fresh-sky-rgb), 0.15); }
.icon-cream { background: rgba(var(--banana-cream-rgb), 0.15); }
.icon-lime { background: rgba(var(--lime-flash-rgb), 0.15); }

/* --- Blazor defaults (keep) --- */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1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NjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* --- Responsive --- */
@media (min-width: 640px) {
    .section { padding: 6rem 2rem; }
}

@media (min-width: 1024px) {
    .section { padding: 7rem 2rem; }
}
