/* ==========================================================================
   EVENTIQO — COMPONENTS.CSS
   Buttons · Navigation · Footer · Cards · Form Fields · Dividers · Preloader · Progress Bar
   ========================================================================== */

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.btn-primary-ev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-surface);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid var(--color-primary);
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.btn-primary-ev::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--color-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.btn-primary-ev:hover::before {
    transform: scaleX(1);
}

.btn-primary-ev:hover {
    background-color: var(--color-surface);
    color: var(--color-primary);
}

/* PRD §12.4 - Navigation CTA Border Animation (Clockwise) */
.btn-primary-ev.btn-primary-header::after {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid var(--color-accent);
    border-radius: 2px;
    opacity: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transition: opacity 0.3s ease;
}

.btn-primary-ev.btn-primary-header:hover::after {
    opacity: 1;
    animation: borderDrawClockwise 0.4s ease forwards;
}

@keyframes borderDrawClockwise {
    0% {
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }

    25% {
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
    }

    50% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%);
    }

    75% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

/* Subtle pulse on CTA */
.btn-primary-ev.btn-primary-header {
    animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(201, 169, 110, 0);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.08);
    }
}

.site-nav.scrolled .btn-primary-ev.btn-primary-header {
    border: 1px solid var(--color-primary);
}

.btn-ghost-ev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background-color: transparent;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid var(--color-primary);
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition:
        background-color var(--duration-hover) ease,
        color var(--duration-hover) ease;
}

.btn-ghost-ev:hover {
    background-color: var(--color-primary);
    color: var(--color-surface);
}

/* Ghost on dark backgrounds */
.btn-ghost-ev--light {
    color: var(--color-surface);
    border-color: var(--color-surface);
}

.btn-ghost-ev--light:hover {
    background-color: var(--color-surface);
    color: var(--color-primary);
}

/* Accent button (used max once per page) */
.btn-accent-ev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid var(--color-accent);
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity var(--duration-hover) ease;
}

.btn-accent-ev:hover {
    opacity: 0.88;
}


/* ─── Navigation ───────────────────────────────────────────────────────── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding: 1.25rem 0;
    background-color: transparent;
    border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
    background-color: var(--color-surface);
    border-bottom-color: var(--color-border);
    box-shadow: 0 1px 12px rgba(13, 13, 13, 0.05);
    padding: 0.875rem 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter var(--duration-hover) ease, height var(--duration-hover) ease;
}

.site-nav.scrolled .nav-logo img {
    filter: none;
    height: 48px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(249, 247, 244, 0.88);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color var(--duration-hover) ease;
    position: relative;
}

/* Nav link underline animation */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease-reveal);
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.site-nav.scrolled .nav-links a {
    color: var(--color-primary);
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
    color: var(--color-accent) !important;
}

.nav-cta {
    margin-left: var(--space-l);
}

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-surface);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger span:nth-child(3) {
    width: 20px;
    margin-left: auto;
    background-color: var(--color-accent) !important;
}

.site-nav.scrolled .nav-hamburger span {
    background-color: var(--color-primary);
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay nav */
.nav-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--color-deep);
    z-index: var(--z-nav-overlay);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Logo in overlay */
.nav-overlay-logo {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10;
}

.nav-overlay-logo img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-overlay .nav-links {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-overlay .nav-links a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-surface);
}

.nav-overlay .nav-links a:hover {
    color: var(--color-accent);
}

.nav-overlay .nav-cta {
    margin: 2rem 0 0 0;
}

/* Close button for overlay */
.nav-overlay-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(249, 247, 244, 0.3);
    border-radius: 2px;
    color: var(--color-surface);
    cursor: pointer;
    font-size: 1.25rem;
    transition: border-color var(--duration-hover) ease, color var(--duration-hover) ease;
    z-index: 10;
}

.nav-overlay-close:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

@media (max-width: 991px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .site-nav.menu-active .nav-links {
        display: none;
    }
}


/* ─── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
    background-color: var(--color-deep);
    color: var(--color-surface);
    padding: var(--space-2xl) 0 var(--space-xl);
}

.footer-accent-line {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
    margin-bottom: var(--space-xl);
    opacity: 0.6;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-surface);
    margin-bottom: var(--space-s);
}

.footer-logo img {
    height: 75px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: var(--space-m);
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: rgba(249, 247, 244, 0.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--space-l);
}

.footer-nav-title {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-s);
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-nav-list a {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: rgba(249, 247, 244, 0.65);
    transition: color var(--duration-hover) ease;
}

.footer-nav-list a:hover {
    color: var(--color-accent);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: var(--text-sm);
    color: rgba(249, 247, 244, 0.65);
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: var(--space-m);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(249, 247, 244, 0.2);
    border-radius: 2px;
    color: rgba(249, 247, 244, 0.65);
    transition:
        border-color var(--duration-hover) ease,
        color var(--duration-hover) ease;
    font-size: 1.1rem;
}

.footer-social a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(249, 247, 244, 0.1);
    margin-top: var(--space-l);
    padding-top: var(--space-m);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: var(--text-xs);
    color: rgba(249, 247, 244, 0.35);
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    font-size: var(--text-xs);
    color: rgba(249, 247, 244, 0.35);
    transition: color var(--duration-hover) ease;
}

.footer-legal-links a:hover {
    color: var(--color-accent);
}


/* ─── Cards ────────────────────────────────────────────────────────────── */
.card-ev {
    border: 1px solid var(--color-border);
    border-radius: 2px;
    padding: 2rem;
    background-color: var(--color-white);
    transition: border-color var(--duration-hover) ease, transform var(--duration-hover) ease, box-shadow var(--duration-hover) ease;
}

.card-ev:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(13, 13, 13, 0.08);
}


/* ─── Form Fields ──────────────────────────────────────────────────────── */
.form-group-ev {
    position: relative;
    margin-bottom: 1.75rem;
}

.form-group-ev label {
    position: absolute;
    top: 0.75rem;
    left: 0;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    pointer-events: none;
    transition:
        top 0.25s ease,
        font-size 0.25s ease,
        color 0.25s ease;
}

.form-group-ev.has-value label,
.form-group-ev:focus-within label {
    top: -1.1rem;
    font-size: var(--text-xs);
    color: var(--color-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-group-ev input,
.form-group-ev textarea,
.form-group-ev select {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    background: transparent;
    padding: 1.25rem 0 0.75rem;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-primary);
    outline: none;
    transition: border-color 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group-ev input:focus,
.form-group-ev textarea:focus {
    border-bottom-color: var(--color-accent);
}

.form-group-ev textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form error state */
.form-group-ev.error input,
.form-group-ev.error textarea {
    border-bottom-color: #C0392B;
}

.form-error-msg {
    font-size: 0.7rem;
    color: #C0392B;
    margin-top: 4px;
    display: none;
}

.form-group-ev.error .form-error-msg {
    display: block;
}


/* ─── WhatsApp FAB ─────────────────────────────────────────────────────── */
.whatsapp-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: var(--z-sticky-cta);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--duration-hover) ease, box-shadow var(--duration-hover) ease;
}

.whatsapp-fab.visible {
    pointer-events: all;
}

.whatsapp-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 32px rgba(37, 211, 102, 0.45);
}

.whatsapp-fab i {
    font-size: 32px;
}

@media (min-width: 992px) {
    /* .whatsapp-fab {
        display: none;
    } */
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ─── Section Eyebrow Label ────────────────────────────────────────────── */
.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--color-accent);
    flex-shrink: 0;
}

.eyebrow-text {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
}


/* ─── Stats Row ────────────────────────────────────────────────────────── */
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, var(--text-4xl));
    font-weight: 300;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}


/* ─── Client Logo ──────────────────────────────────────────────────────── */
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    filter: grayscale(100%);
    transition:
        opacity var(--duration-hover) ease,
        filter var(--duration-hover) ease;
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.client-logo img {
    max-height: 48px;
    max-width: 140px;
    object-fit: contain;
}


/* ─── Dot Indicators ───────────────────────────────────────────────────── */
.dot-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

.dot-nav button {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background-color: rgba(249, 247, 244, 0.3);
    cursor: pointer;
    padding: 0;
    transition:
        background-color var(--duration-hover) ease,
        transform var(--duration-hover) ease;
}

.dot-nav button.active {
    background-color: var(--color-accent);
    transform: scale(1.4);
}


/* ─── Gallery Item ─────────────────────────────────────────────────────── */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.85);
    transform: scale(1);
    transition:
        filter 0.4s ease,
        transform 0.4s ease;
}

.gallery-item:hover img {
    filter: saturate(1);
    transform: scale(1.03);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.75) 0%, transparent 100%);
    color: var(--color-surface);
    transform: translateY(100%);
    transition: transform 0.35s var(--ease-reveal);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption-title {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-surface);
}

.gallery-caption-sub {
    font-size: var(--text-xs);
    color: rgba(249, 247, 244, 0.7);
    margin-top: 2px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ─── Preloader ────────────────────────────────────────────────────────── */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: var(--color-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 80px;
    height: auto;
    margin-bottom: 2rem;
    opacity: 0;
    filter: brightness(0) invert(1);
    transform: translateY(20px);
    animation: preloaderIn 0.8s ease forwards;
}

.preloader-track {
    width: 200px;
    height: 1px;
    background-color: rgba(249, 247, 244, 0.1);
    position: relative;
    overflow: hidden;
}

.preloader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background-color: var(--color-accent);
    animation: preloaderProgress 2s infinite ease-in-out;
}

@keyframes preloaderIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes preloaderProgress {
    0% {
        left: -40%;
    }

    100% {
        left: 100%;
    }
}

/* ─── Scroll Progress Bar ──────────────────────────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    z-index: calc(var(--z-nav) + 1);
}

#scroll-indicator {
    height: 100%;
    width: 0%;
    background-color: var(--color-accent);
    transition: width 0.1s ease;
}

/* ─── Scroll to Top Button ─────────────────────────────────────────────── */
.scroll-top-btn {
    position: fixed;
    bottom: 2.3rem;
    right: 6.5rem;
    z-index: var(--z-sticky-cta);
    width: 44px;
    height: 44px;
    background-color: var(--color-surface);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
}

@media (max-width: 991px) {
    .nav-overlay.open .nav-links {
        display: flex;
    }

    .nav-overlay.open .nav-cta {
        display: block;
    }
}