/* ═══════════════════════════════════════════════════════════
   ARIMA — Custom Styles
   Premium institutional design system
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
    --arima-900: #0F3332;
    --arima-800: #174A48;
    --arima-700: #1D5C59;
    --arima-100: #F4F7F7;
    --gold-500: #B89B5E;
    --gold-400: #C9AF78;
    --gold-600: #A08545;
}

/* ── Smooth Scroll ────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

/* ── Alpine.js cloak ──────────────────────────────────────── */
[x-cloak] {
    display: none !important;
}

/* ── Nav Links ────────────────────────────────────────────── */
.nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold-500);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav-link:hover {
    color: #fff;
    padding-left: 0.5rem;
}

/* ── Gold CTA Button ─────────────────────────────────────── */
.btn-gold {
    background: var(--gold-500);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 1.75rem;
    border-radius: 0.375rem;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-gold:hover {
    background: var(--gold-600);
    box-shadow: 0 4px 20px rgba(184, 155, 94, 0.3);
    transform: translateY(-1px);
}

/* ── Hero Button Variants ────────────────────────────────── */
.btn-hero-primary {
    background: var(--gold-500);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.875rem 2.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.btn-hero-primary:hover {
    background: var(--gold-600);
    box-shadow: 0 8px 32px rgba(184, 155, 94, 0.35);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    background: transparent;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.875rem 2.25rem;
    border-radius: 0.5rem;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.btn-hero-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* ── Scroll Animation ─────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ── Hero Down Arrow ──────────────────────────────────────── */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    50% {
        transform: translateY(12px) translateX(-50%);
    }
}

.hero-arrow {
    animation: float 2.5s ease-in-out infinite;
}

/* ── Service Cards ────────────────────────────────────────── */
.service-card {
    background: #fff;
    border: 1px solid #DCE5E4;
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--arima-800), var(--gold-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    border-color: transparent;
    box-shadow: 0 12px 40px rgba(15, 51, 50, 0.12);
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-subitem {
    padding: 0.5rem 0;
    padding-left: 1.25rem;
    border-left: 2px solid #DCE5E4;
    font-size: 0.875rem;
    color: #4a5568;
    transition: all 0.3s ease;
}

.service-subitem:hover {
    color: var(--arima-800);
    border-left-color: var(--gold-500);
    padding-left: 1.5rem;
}

/* ── Methodology Timeline ─────────────────────────────────── */
.timeline-step {
    position: relative;
    text-align: center;
    flex: 1;
}

.timeline-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--arima-800);
    border: 3px solid var(--gold-500);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.timeline-step:hover .timeline-dot {
    background: var(--gold-500);
    transform: scale(1.15);
    box-shadow: 0 0 24px rgba(184, 155, 94, 0.4);
}

.timeline-line {
    position: absolute;
    top: 24px;
    left: calc(50% + 28px);
    right: calc(-50% + 28px);
    height: 2px;
    background: linear-gradient(90deg, var(--gold-500), rgba(184, 155, 94, 0.2));
    z-index: 1;
}

/* ── Team Carousel ────────────────────────────────────────── */
.team-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.team-card img {
    filter: grayscale(100%) contrast(1.05);
    transition: filter 0.5s ease;
}

.team-card:hover img {
    filter: grayscale(30%) contrast(1.1);
}

/* Swiper lateral fade */
.team-swiper {
    padding: 2rem 0 4rem;
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.team-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.team-swiper .swiper-pagination-bullet-active {
    background: var(--gold-500);
    width: 28px;
    border-radius: 5px;
}

/* ── Contact Form ─────────────────────────────────────────── */
.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-input:focus {
    border-color: var(--gold-500);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(184, 155, 94, 0.15);
}

/* ── Section Label ────────────────────────────────────────── */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 0.75rem;
}

.section-label-light {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 0.75rem;
}

/* ── Responsive Mobile Methodology ────────────────────────── */
@media (max-width: 768px) {
    .timeline-line {
        display: none;
    }

    .timeline-container {
        flex-direction: column;
        gap: 2rem;
    }
}

/* ── Subtle Background Pattern ────────────────────────────── */
.bg-pattern {
    background-image:
        radial-gradient(circle at 20% 80%, rgba(184, 155, 94, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(23, 74, 72, 0.05) 0%, transparent 50%);
}

/* ── Profile Overlay ──────────────────────────────────────── */
.profile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 51, 50, 0.95);
    backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Dropdown Links ──────────────────────────────────────── */
.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    background: var(--arima-100);
    color: var(--arima-800);
    padding-left: 1.5rem;
}

/* ── Alternating Section Background ──────────────────────── */
.section-alt {
    background:
        radial-gradient(circle at 20% 80%, rgba(184, 155, 94, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(23, 74, 72, 0.05) 0%, transparent 50%),
        #F9FAFB;
}
