/* =====================================================
   Vieira Solutions — base (rebrand: black + gold + silver)
   ===================================================== */
html, body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

h1:focus { outline: none; }

/* Text selection */
::selection {
    background: rgba(212, 175, 55, 0.55);
    color: #000000;
}

/* Custom scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D4AF37 0%, #8B6914 100%);
    border-radius: 6px;
    border: 2px solid #000000;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #F4D03F 0%, #D4AF37 100%);
}

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

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.6); }
    50%      { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.65), 0 0 0 12px rgba(37, 211, 102, 0); }
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* =====================================================
   Hero
   ===================================================== */
.hero-section {
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0) 75%),
        url('/imgs/hero-bg.png');
    background-size: cover, auto 110%;
    background-position: center, right center;
    background-repeat: no-repeat, no-repeat;
    background-color: #000000;
    padding: 5rem 0 6rem 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .hero-section {
        background-size: cover, auto 100%;
    }
}

@media (max-width: 960px) {
    .hero-section {
        background-image:
            linear-gradient(180deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.96) 100%),
            url('/imgs/hero-bg.png');
        background-size: cover, cover;
        background-position: center, center;
    }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(139, 105, 20, 0.08));
    color: #F4D03F;
    border: 1px solid rgba(212, 175, 55, 0.55);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.18);
    animation: fadeInUp 0.7s ease 0s both;
}

.hero-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #FFFFFF;
    margin: 1rem 0;
    max-width: 600px;
    text-shadow:
        0 0 40px rgba(255, 255, 255, 0.12),
        0 0 80px rgba(212, 175, 55, 0.08);
    animation: fadeInUp 0.8s ease 0.12s both;
}

/* Silver chrome metallic gradient (used in hero accent words) */
.gradient-text,
.gradient-text-silver {
    background: linear-gradient(135deg, #FFFFFF 0%, #DCDCDC 25%, #FFFFFF 50%, #999999 75%, #FFFFFF 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: shimmer 6s ease-in-out infinite;
}

/* Gold gradient (used in section headings and brand "SOLUTIONS") */
.gradient-text-gold {
    background: linear-gradient(135deg, #F4D03F 0%, #D4AF37 40%, #8B6914 70%, #D4AF37 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: shimmer 6s ease-in-out infinite;
}

.hero-subtitle {
    color: #B8B8B8;
    font-size: 0.95rem;
    max-width: 420px;
    line-height: 1.55;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease 0.25s both;
}

.hero-section .mud-button-root {
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* =====================================================
   Section labels / titles
   ===================================================== */
.section-tag {
    color: #D4AF37;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
}

.section-title {
    font-family: 'Sora', 'Inter', sans-serif;
    text-align: center;
    color: #FFFFFF;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-top: 0.5rem;
}

/* =====================================================
   Services
   ===================================================== */
.services-section {
    padding: 5rem 0;
    background: #000000;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.service-card {
    position: relative;
    background: linear-gradient(180deg, #0F0F0F 0%, #050505 100%) !important;
    border: 1px solid #2A2218 !important;
    border-radius: 16px !important;
    padding: 1.8rem !important;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(244, 208, 63, 0.55) 0%, rgba(212, 175, 55, 0) 50%, rgba(212, 175, 55, 0.35) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: transparent !important;
    box-shadow:
        0 20px 50px rgba(212, 175, 55, 0.20),
        0 0 80px rgba(212, 175, 55, 0.08);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: transparent;
    border: 1.5px solid rgba(212, 175, 55, 0.55);
    color: #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, #F4D03F, #D4AF37);
    color: #000000;
    border-color: #F4D03F;
    box-shadow: 0 0 28px rgba(212, 175, 55, 0.55);
}

/* =====================================================
   About + Pilares (insta-style)
   ===================================================== */
.pillar-card {
    background: linear-gradient(180deg, #0F0F0F 0%, #060606 100%);
    border: 1px solid #2A2218;
    border-radius: 14px;
    padding: 1.2rem 0.8rem;
    text-align: center;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.pillar-card:hover {
    border-color: #D4AF37;
    transform: translateY(-3px);
}

.pillar-icon {
    color: #D4AF37;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.pillar-label {
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.3;
}

/* =====================================================
   Contact
   ===================================================== */
.contact-section {
    padding: 4rem 0 5rem 0;
    background: #000000;
}

.contact-card {
    position: relative;
    background: linear-gradient(180deg, #0F0F0F 0%, #050505 100%) !important;
    border: 1px solid #2A2218 !important;
    border-radius: 20px !important;
    padding: 2.5rem !important;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(212, 175, 55, 0.05) inset;
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background: #000000;
    border-top: 1px solid #1A1308;
    padding: 3rem 0 1.5rem 0;
    color: #B8B8B8;
}

.footer h6 {
    font-family: 'Sora', 'Inter', sans-serif;
    color: #FFFFFF;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: #B8B8B8;
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer a:hover {
    color: #D4AF37;
    transform: translateX(2px);
}

.footer-slogan {
    color: #D4AF37;
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 1rem;
}

/* =====================================================
   Brand logo image
   ===================================================== */
.brand-logo {
    height: 56px;
    width: auto;
    display: block;
}

.brand-logo-footer {
    height: 64px;
    width: auto;
    display: block;
    margin-bottom: 0.5rem;
}

/* =====================================================
   WhatsApp floating button (kept green — brand color)
   ===================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.25s ease;
    animation: pulseGlow 2.6s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(-4deg);
    color: white;
}

/* =====================================================
   MudBlazor button overrides — gold gradient
   ===================================================== */
.mud-button-filled.mud-button-filled-primary {
    background: linear-gradient(135deg, #F4D03F 0%, #D4AF37 50%, #8B6914 100%) !important;
    border: none !important;
    color: #000000 !important;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
}

.mud-button-filled.mud-button-filled-primary:hover {
    background: linear-gradient(135deg, #FFE066 0%, #F4D03F 50%, #D4AF37 100%) !important;
    box-shadow:
        0 14px 36px rgba(212, 175, 55, 0.55),
        0 0 60px rgba(212, 175, 55, 0.35) !important;
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.mud-button-filled.mud-button-filled-primary:active {
    transform: translateY(0);
}

/* Outlined "ghost" buttons (Nossos Serviços) */
.mud-button-outlined.mud-button-outlined-default {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(212, 175, 55, 0.55) !important;
    color: #F4D03F !important;
    backdrop-filter: blur(6px);
    transition: all 0.25s ease !important;
    font-weight: 600 !important;
}

.mud-button-outlined.mud-button-outlined-default:hover {
    background: rgba(212, 175, 55, 0.12) !important;
    border-color: #F4D03F !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.25);
}

/* =====================================================
   MudBlazor form fields — outlined dark
   ===================================================== */
.mud-input-outlined .mud-input-outlined-border {
    border-color: #2A2218 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mud-input-outlined:hover .mud-input-outlined-border {
    border-color: #5A4A22 !important;
}

.mud-input-outlined.mud-shrink .mud-input-outlined-border,
.mud-input-control:focus-within .mud-input-outlined-border {
    border-color: #D4AF37 !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

/* =====================================================
   Blazor error & loading
   ===================================================== */
#blazor-error-ui {
    color-scheme: dark only;
    background: #2A1F0A;
    color: #fff;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    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;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #2A2218;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #D4AF37;
    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;
    color: #B8B8B8;
    font-weight: 600;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Carregando");
}
