/* Taplink — custom styles on top of Tailwind CDN */

:root {
    --bl-blue: #224CC7;
    --bl-green: #00BA8D;
    --bl-orange: #FF6600;
    --bl-dark: #1f2937;
    --bl-body: #6b7280;
}

body {
    color: var(--bl-dark);
}

/* Hero card / 3D tilt effect */
#ex1 {
    perspective: 800px;
    transform-style: preserve-3d;
}

#ex1-layer {
    transition: transform 0.1s ease-out;
}

/* Decorative dot pattern behind hero image */
.dot-pattern {
    width: 93px;
    height: 93px;
    background-image: radial-gradient(var(--bl-blue) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    background-position: 0 0;
    display: block;
}

/* Smooth in-page scrolling for nav anchors */
html {
    scroll-behavior: smooth;
}

/* Pricing card shadow */
.shadow-pricing {
    box-shadow: 0 20px 40px rgba(34, 76, 199, 0.08);
}

/* Force-print friendly fallback for hero on mobile */
@media (max-width: 1024px) {
    #ex1 {
        max-width: 480px;
        margin: 0 auto;
    }
}

/* Back-to-top button (bottom-right). JS toggles .is-visible past a
   scroll threshold; default state is invisible and non-interactive. */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 9999px;
    background-color: var(--bl-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease;
    z-index: 30;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #1a3da3;
}

.back-to-top:focus {
    outline: none;
}

.back-to-top:focus-visible {
    box-shadow: 0 0 0 3px rgba(34, 76, 199, 0.4), 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* Contact form submit button while a POST is in flight. */
button.is-submitting {
    opacity: 0.7;
    cursor: wait;
}

/* Cookie consent banner. Hidden until JS adds .is-visible (only on
   first visit, until the user makes a choice). */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1f2937;
    color: #fff;
    padding: 1rem;
    z-index: 60;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
    transform: translateY(110%);
    transition: transform 0.3s ease;
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .cookie-banner__inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.cookie-banner__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
}

@media (min-width: 768px) {
    .cookie-banner__text {
        text-align: left;
    }
}

.cookie-banner__link {
    color: var(--bl-green);
    text-decoration: underline;
}

.cookie-banner__link:hover {
    color: #fff;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.cookie-banner__btn--primary {
    background-color: var(--bl-green);
    color: #fff;
}

.cookie-banner__btn--primary:hover {
    background-color: #009b76;
}

.cookie-banner__btn--secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.cookie-banner__btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
