@import "tailwindcss";
@plugin "@tailwindcss/typography";
@source "../views";
@source "../../content";

@theme {
    --font-nunito: 'Nunito', sans-serif;
    --font-rubik: 'Rubik', sans-serif;
}

[x-cloak] {
    display: none !important;
}

/* ===== Prose content styling for Bard fields ===== */
.prose h2 {
    font-family: 'Nunito', sans-serif;
    color: var(--color-heading, #252a3f);
}
.prose h3 {
    font-family: 'Nunito', sans-serif;
    color: var(--color-heading, #252a3f);
}
.prose a {
    color: #6254e7;
}
.prose a:hover {
    color: #9289f1;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Card hover lift (WP service card style) ===== */
.card-hover {
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.5s ease;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px -8px rgba(59, 54, 99, 0.18);
}

/* Service card flip (purple bg on hover like WP) */
.card-service {
    display: block;
    text-decoration: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.5s ease, color 0.5s ease;
}
.card-service:hover {
    transform: translateY(-5px);
    background-color: #3b3663 !important;
    color: #fff;
    box-shadow: 14px 24px 43px 0px rgba(33, 41, 48, 0.42);
}
.card-service:hover h3,
.card-service:hover p,
.card-service:hover span {
    color: #fff !important;
}
.card-service:hover .card-accent-line {
    background-color: #fff;
}
.card-service:hover .icon-hover {
    background-color: rgba(255, 255, 255, 0.15);
}
.card-service:hover .icon-hover i {
    color: #ffc70a !important;
}

/* Icon container hover */
.icon-hover {
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.card-hover:hover .icon-hover {
    transform: scale(1.1);
    background-color: rgba(59, 54, 99, 0.15);
}

/* ===== Buttons (WP gradient style) ===== */
.btn-primary {
    background: linear-gradient(96deg, #6254e7 0%, #9289f1 100%);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    border: 2px solid #6254e7;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: linear-gradient(96deg, #9289f1 0%, #6254e7 100%);
}

.btn-orange {
    background: linear-gradient(90deg, #f0ac0e -20%, #ff7426 115%);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    border: 2px solid #f29111;
    transition: all 0.3s ease;
}
.btn-orange:hover {
    background: linear-gradient(90deg, #ff7426 -20%, #f0ac0e 115%);
}

/* Play button pulse animation — Salient-style dual expanding rings */
@keyframes nectar-pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.7); opacity: 0; }
}
.play-pulse {
    position: relative;
}
.play-pulse::before,
.play-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%) scale(0.35);
    opacity: 0;
    animation: nectar-pulse 2.6s cubic-bezier(0.25, 0.9, 0.2, 1) infinite;
}
.play-pulse::before {
    animation-delay: 0.4s;
}
.play-pulse::after {
    border-color: rgba(255, 255, 255, 0.4);
    animation-delay: 0s;
}

/* CTA button glow pulse */
.btn-glow {
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(255, 199, 10, 0.5);
}

/* Animated underline for links */
.link-underline {
    position: relative;
    text-decoration: none;
}
.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}
.link-underline:hover::after {
    width: 100%;
}

/* ===== Section title underline (WP style) ===== */
.title-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.title-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(96deg, #6254e7, #9289f1);
}

/* ===== Hero Animations ===== */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* Floating element bob */
@keyframes float-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.float-bob {
    animation: float-bob 3s ease-in-out infinite;
}

/* Hero image mover — matches old WP site animation */
@keyframes hero-mover {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}
.hero-mover {
    animation: hero-mover 1s ease-in-out infinite alternate;
}

/* Hero dot pattern overlay */
.hero-dots::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* ===== Page Polish ===== */
@keyframes page-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
main {
    animation: page-fade-in 0.4s ease-out;
}

/* Form input focus glow */
input:focus, textarea:focus, select:focus {
    border-color: #6254e7 !important;
    box-shadow: 0 0 0 3px rgba(98, 84, 231, 0.1);
}

/* ===== Footer with wave bg ===== */
.footer-wave {
    background-image: url('/assets/articles/uploads/2021/09/ot-footer-bg.png');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

/* Footer widget title underline (WP style) */
.footer-title {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 16px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background-color: #a0aec6;
}

/* ===== Blog card styling (WP masonry style) ===== */
.blog-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px -8px rgba(59, 54, 99, 0.18);
}
.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}
.blog-card-img {
    transition: transform 0.5s ease;
}

/* Blog card image overlay */
.blog-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.05) 100%);
}

/* ===== Header top bar (WP secondary nav style) ===== */
.top-bar-icon {
    color: #ffc70a;
}

/* Nav link hover effect */
.nav-link {
    position: relative;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #6254e7;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: 80%;
}

/* ===== Pricing badge (WP circular badge) ===== */
.price-badge {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(96deg, #9289f1 0%, #6254e7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 29px;
    margin: 0 auto;
}

/* ===== Full-bleed sections (break out of 90px padding) ===== */
.full-bleed {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
@media (min-width: 1024px) {
    .full-bleed {
        margin-left: -90px;
        margin-right: -90px;
        padding-left: 90px;
        padding-right: 90px;
    }
}

/* Hero section — adds navbar clearance */
.hero-section {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-top: -1.5rem;
}
@media (min-width: 1024px) {
    .hero-section {
        margin-left: -90px;
        margin-right: -90px;
    }
}

/* Full-screen hero — breaks out of max-w container to fill viewport */
.hero-fullscreen {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* ===== Wave separator shapes ===== */
.wave-top {
    position: relative;
}
.wave-top::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: #f3f5f7;
    clip-path: ellipse(55% 100% at 50% 0%);
    z-index: 1;
}

/* ===== Page transition — nectar-sweep animations are inline in <head> ===== */

/* ===== Timeline (History page) ===== */
.timeline {
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: linear-gradient(to bottom, #6254e7, #9289f1);
}
.timeline-entry {
    position: relative;
    display: flex;
    padding: 2.5rem 0;
}
.timeline-entry:nth-child(odd) {
    justify-content: flex-end;
}
.timeline-entry:nth-child(even) {
    justify-content: flex-start;
}
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 2.5rem;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(96deg, #6254e7, #9289f1);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(98, 84, 231, 0.4);
}
.timeline-dot-now {
    background: linear-gradient(96deg, #f0ac0e, #ff7426);
    box-shadow: 0 4px 15px rgba(255, 116, 38, 0.4);
    font-size: 18px;
}
.timeline-card {
    width: calc(50% - 50px);
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    position: relative;
}
/* Arrow pointing from the card toward the center line */
.timeline-card::before {
    content: '';
    position: absolute;
    top: 2.75rem;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
}
.timeline-entry:nth-child(odd) .timeline-card::before {
    left: -6px;
    box-shadow: -3px 3px 6px rgba(0, 0, 0, 0.04);
}
.timeline-entry:nth-child(even) .timeline-card::before {
    right: -6px;
    box-shadow: 3px -3px 6px rgba(0, 0, 0, 0.04);
}
.timeline-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Mobile: single column, line on left, cards fill the rest */
@media (max-width: 767px) {
    .timeline::before {
        left: 20px;
    }
    .timeline-dot {
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 11px;
    }
    .timeline-dot-now {
        font-size: 14px;
    }
    .timeline-entry,
    .timeline-entry:nth-child(odd),
    .timeline-entry:nth-child(even) {
        justify-content: flex-start;
        padding-left: 60px;
    }
    .timeline-card {
        width: 100%;
    }
    .timeline-entry:nth-child(odd) .timeline-card::before,
    .timeline-entry:nth-child(even) .timeline-card::before {
        left: -6px;
        right: auto;
        box-shadow: -3px 3px 6px rgba(0, 0, 0, 0.04);
    }
}

/* ===== Blog filter pills ===== */
.blog-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid #e2e0f0;
    background: transparent;
    color: #565e81;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
}
.blog-filter-pill:hover {
    background: rgba(98, 84, 231, 0.1);
    border-color: rgba(98, 84, 231, 0.3);
    color: #6254e7;
}
.blog-filter-pill.active {
    background: #6254e7;
    border-color: #6254e7;
    color: #fff;
}
.blog-filter-pill.active:hover {
    background: #5548d4;
}

/* Blog card gradient headers — rotating 4-color scheme */
.blog-card-gradient {
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-card:nth-child(4n+1) .blog-card-gradient {
    background: linear-gradient(135deg, #6254e7, #4f46e5);
}
.blog-card:nth-child(4n+2) .blog-card-gradient {
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
}
.blog-card:nth-child(4n+3) .blog-card-gradient {
    background: linear-gradient(135deg, #3b82f6, #6254e7);
}
.blog-card:nth-child(4n+4) .blog-card-gradient {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
}

/* ===== Hotel Automation — problem numbered circles ===== */
.ha-problem-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0ac0e, #ff7426);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(255, 116, 38, 0.3);
}

/* ===== Counter animation support ===== */
.counter-number {
    color: #6a5fe8;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

/* ===== Chat widget pulse animation ===== */
@keyframes chat-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(98, 84, 231, 0.5); }
    50% { box-shadow: 0 0 0 12px rgba(98, 84, 231, 0); }
}

/* ===== intl-tel-input — blend with the underlined form field style ===== */
.iti {
    display: block;
    width: 100%;
    --iti-hover-color: rgba(98, 84, 231, 0.08);
}
.iti .iti__selected-country-primary {
    padding-left: 0;
}
.iti__tel-input {
    line-height: 1.2;
}
.iti__dropdown-content {
    font-family: 'Nunito', sans-serif;
}
