/* Explain: Styling for various UI components including social icons and a rotating footer text. */
.brand-seal {
    background: linear-gradient(135deg, var(--accent-color), #f2d98b 44%, #a9872d);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 12px 28px rgba(201, 166, 70, 0.22);
    font-family: var(--font-heading);
    letter-spacing: 0.04em;
}

.nav-anchor.is-active,
.vault-link.is-active {
    background: rgba(201, 166, 70, 0.18);
    color: var(--gold-soft);
}

.nav-oracle,
.nav-anchor.nav-oracle.is-active {
    font-family: var(--font-future);
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    background-image: linear-gradient(100deg, #a9872d 0%, #c9a646 18%, #e4cb7a 34%, #fff6d5 50%, #e4cb7a 66%, #c9a646 82%, #a9872d 100%);
    background-size: 200% auto;
    background-repeat: repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(201, 166, 70, 0.45));
    animation: oracle-gold-shimmer 5s linear infinite;
}

@keyframes oracle-gold-shimmer {
    from {
        background-position: 0% center;
    }
    to {
        background-position: -200% center;
    }
}

.title-shimmer {
    background-image: linear-gradient(100deg, #a9872d 0%, #c9a646 18%, #e4cb7a 34%, #fff6d5 50%, #e4cb7a 66%, #c9a646 82%, #a9872d 100%);
    background-size: 200% auto;
    background-repeat: repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 16px rgba(201, 166, 70, 0.5));
    animation: oracle-gold-shimmer 5s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .title-shimmer {
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-oracle,
    .nav-anchor.nav-oracle.is-active {
        animation: none;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.eyebrow span {
    display: inline-block;
    height: 1px;
    width: 3rem;
    background: currentColor;
}

.metric-tile {
    border: 1px solid rgba(247, 241, 227, 0.12);
    border-radius: 1.25rem;
    background: rgba(247, 241, 227, 0.06);
    padding: 1rem;
    backdrop-filter: blur(12px);
}

.metric-tile strong {
    display: block;
    color: var(--gold-soft);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.metric-tile span {
    margin-top: 0.35rem;
    display: block;
    color: var(--ivory-muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

.shield-monogram {
    clip-path: polygon(50% 0, 88% 14%, 88% 54%, 50% 100%, 12% 54%, 12% 14%);
    background:
        linear-gradient(135deg, rgba(201, 166, 70, 0.95), rgba(247, 241, 227, 0.78) 48%, rgba(151, 113, 25, 0.92)),
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.75), transparent 22%);
    box-shadow: var(--shadow-gold);
}

.shield-monogram span {
    color: var(--midnight-color);
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-0.08em);
}

.editorial-card {
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.62);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.editorial-card h3,
.contact-note span {
    color: var(--midnight-color);
}

.editorial-card h3 {
    margin-top: 0.8rem;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
}

.editorial-card p {
    margin-top: 0.8rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.section-number,
.service-index {
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.24em;
}

.service-vault-card {
    min-height: 23rem;
    border: 1px solid rgba(247, 241, 227, 0.14);
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(247, 241, 227, 0.1), rgba(247, 241, 227, 0.045));
    padding: 2rem;
    transition: transform 300ms ease, border-color 300ms ease, background 300ms ease;
}

.service-vault-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-border);
    background: linear-gradient(180deg, rgba(247, 241, 227, 0.15), rgba(247, 241, 227, 0.07));
}

.service-icon {
    color: var(--gold-soft);
    font-size: 1.35rem;
}

.process-card,
.testimonial-card {
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.process-dot {
    display: inline-flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--ivory-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(59, 20, 95, 0.22);
}

.testimonial-card {
    background: linear-gradient(180deg, #fffdf8, rgba(255, 255, 255, 0.72));
}

.contact-note {
    display: flex;
    min-height: 5.5rem;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.58);
    padding: 1.25rem;
    line-height: 1.6;
}

.status-success {
    border: 1px solid rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
}

.status-error {
    border: 1px solid rgba(185, 28, 28, 0.25);
    background: rgba(185, 28, 28, 0.08);
    color: #991b1b;
}

.social-brand {
    position: relative;
    display: inline-flex;
    height: 2.75rem;
    width: 2.75rem;
    flex: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 999px;
    color: #ffffff;
    font-size: 1.1rem;
    transition: transform 300ms ease, box-shadow 300ms ease, filter 300ms ease;
}

.social-brand::before {
    content: "";
    position: absolute;
    top: -60%;
    left: -120%;
    z-index: 1;
    width: 55%;
    height: 220%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    transform: rotate(14deg);
    animation: social-brand-shine 3.6s ease-in-out infinite;
    pointer-events: none;
}

.social-brand:nth-child(2)::before {
    animation-delay: 0.55s;
}

.social-brand:nth-child(3)::before {
    animation-delay: 1.1s;
}

@keyframes social-brand-shine {
    0% {
        left: -120%;
    }

    55%, 100% {
        left: 160%;
    }
}

@keyframes social-brand-glow {
    0%, 100% {
        box-shadow: 0 8px 22px rgba(var(--social-glow-rgb), 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 10px 30px rgba(var(--social-glow-rgb), 0.8), 0 0 22px 4px rgba(var(--social-glow-rgb), 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    }
}

.social-brand:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.social-brand-facebook {
    --social-glow-rgb: 24, 119, 242;
    background: #1877f2;
    animation: social-brand-glow 3.4s ease-in-out infinite;
}

.social-brand-facebook:hover {
    transform: translateY(-3px) scale(1.06);
    filter: brightness(1.12) saturate(1.1);
}

.social-brand-instagram {
    --social-glow-rgb: 238, 42, 123;
    background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7);
    animation: social-brand-glow 3.4s ease-in-out 0.55s infinite;
}

.social-brand-instagram:hover {
    transform: translateY(-3px) scale(1.06);
    filter: brightness(1.12) saturate(1.1);
}

.social-brand-tiktok {
    --social-glow-rgb: 37, 244, 238;
    background: #010101;
    animation: social-brand-glow 3.4s ease-in-out 1.1s infinite;
}

.social-brand-tiktok:hover {
    transform: translateY(-3px) scale(1.06);
    filter: brightness(1.25) saturate(1.15);
}

@media (prefers-reduced-motion: reduce) {
    .social-brand {
        animation: none;
        transition: none;
    }

    .social-brand::before {
        display: none;
        animation: none;
    }

    .social-brand:hover {
        transform: none;
    }
}

.footer-rotator {
    display: grid;
    place-items: center;
    min-height: 1.7rem;
    text-align: center;
}

.footer-rotator-line {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 520ms ease, transform 520ms ease;
    pointer-events: none;
}

.footer-rotator-line.is-active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .footer-rotator-line {
        transition: none;
    }
}
