/* URITI Modern - Custom Styles */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.font-heading {
    font-family: 'DM Sans', sans-serif;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: #395544;
    color: #DADACC;
    border-radius: 0.5rem;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 1rem;
}

/* Glass effect */
.glass {
    background: rgba(57, 85, 68, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-light {
    background: rgba(218, 218, 204, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Hero video */
.hero-video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Marquee animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-track {
    animation: marquee 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* Texture background */
.texture-bg {
    background-image:
        linear-gradient(135deg, rgba(245, 239, 224, 0.92) 0%, rgba(250, 247, 240, 0.92) 100%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Scroll indicator bounce */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.scroll-bounce {
    animation: bounce 2s ease-in-out infinite;
}

/* Transaction list hover */
.transaction-item {
    transition: transform 0.3s ease, background 0.3s ease;
}
.transaction-item:hover {
    transform: translateY(-4px);
}

/* Team card expand */
.team-bio {
    transition: max-height 0.6s ease, opacity 0.6s ease;
}
.team-bio.collapsed {
    max-height: 150px;
    overflow: hidden;
    opacity: 0.85;
}
.team-bio.expanded {
    max-height: 4000px;
    opacity: 1;
}
.team-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.625rem 1.375rem;
    border: 1px solid #395544;
    border-radius: 9999px;
    background: transparent;
    color: #395544;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.team-read-more:hover {
    background: #395544;
    color: #DADACC;
}
.team-read-more svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}
.team-read-more[aria-expanded="true"] svg {
    transform: rotate(180deg);
}
.team-expertise {
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #456856;
}

/* Header scrolled state */
header.scrolled {
    background: rgba(57, 85, 68, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile menu slide */
.mobile-menu-panel {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-panel.open {
    transform: translateX(0);
}

/* Prose for legal pages */
.prose-uriti h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    color: #395544;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.prose-uriti p, .prose-uriti li {
    line-height: 1.8;
    color: #395544;
    margin-bottom: 1rem;
}
.prose-uriti ul {
    list-style: disc;
    margin-left: 1.5rem;
}
.prose-uriti h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.125rem;
    color: #395544;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.prose-uriti h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #395544;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.prose-uriti ol {
    list-style: decimal;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.prose-uriti ol li {
    margin-bottom: 0.5rem;
}
.prose-uriti a {
    color: #b8a85a;
    text-decoration: underline;
}
.prose-uriti a:hover {
    color: #395544;
}

/* Contact modal */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal.open {
    opacity: 1;
    visibility: visible;
}

.contact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.contact-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #395544;
    border-radius: 1.75rem;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.contact-modal.open .contact-modal-dialog {
    transform: translateY(0) scale(1);
}

.contact-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #DADACC;
    font-size: 1.5rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.contact-modal-close:hover {
    opacity: 1;
}

.contact-modal-title {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #DADACC;
    line-height: 1.2;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.contact-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.contact-modal-btn {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: #DADACC;
    color: #395544;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.contact-modal-btn:hover {
    background: #fff;
    transform: translateY(-1px);
}

.contact-modal-address {
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(218, 218, 204, 0.85);
    max-width: 320px;
    margin: 0 auto;
}
