:root {
    --bg-navy: #002b49;
    --text-dark: #1e293b;
    --text-secondary: #475569;
    
    /* Card Theme Colors */
    --theme-purple-bg: #f3e8ff;
    --theme-purple-shape: #e9d5ff;
    --theme-purple-accent: #a855f7;
    
    --theme-blue-bg: #e0f2fe;
    --theme-blue-shape: #bae6fd;
    --theme-blue-accent: #0ea5e9;
    
    --theme-yellow-bg: #fef9c3;
    --theme-yellow-shape: #fde047;
    --theme-yellow-accent: #eab308;
    
    --theme-green-bg: #dcfce7;
    --theme-green-shape: #86efac;
    --theme-green-accent: #22c55e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-navy);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.app-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, #0c4a6e 0%, #002b49 100%);
    z-index: -1;
}

.glow-spot {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.flyer-wrapper {
    width: 100%;
    max-width: 1000px;
    padding: 2rem;
}

/* Header */
.brand-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo {
    height: 90px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 0 20px rgba(45, 212, 191, 0.3));
}

.brand-tagline {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0.5rem;
    background: linear-gradient(to right, #2dd4bf, #38bdf8, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    text-transform: capitalize;
}

/* Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Link Wrapper for Cards */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
    perspective: 1000px;
    position: relative;
    z-index: 1;
}

.service-card-link:hover {
    transform: scale(1.02);
    z-index: 10;
}

/* Card Base */
.service-card {
    border-radius: 24px;
    height: 320px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s ease-out;
    background-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    background-size: 200% 200%;
    transform-style: preserve-3d;
}

/* Animations: spin & zoom */

@keyframes spin-fast {
    0% { transform: rotateX(0); }
    100% { transform: rotateX(-360deg); }
}

@keyframes zoom-slow {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: scale(12);
        opacity: 0;
    }
}

/* Zoom on link wrapper */
.is-zooming {
    animation: zoom-slow 1s ease-in forwards !important;
    z-index: 7000 !important;
    pointer-events: none;
}

/* Spin on card */
.is-spinning {
    animation: spin-fast 0.55s linear infinite !important;
    pointer-events: none;
}

/* Shine overlay */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
}

/* Themes */
.card-purple {
    background-color: var(--theme-purple-bg);
}
.card-purple .card-bg-shape {
    background-color: var(--theme-purple-shape);
}
.card-purple h2 {
    color: #581c87;
}

.card-blue {
    background-color: var(--theme-blue-bg);
}
.card-blue .card-bg-shape {
    background-color: var(--theme-blue-shape);
}
.card-blue h2 {
    color: #0369a1;
}

.card-yellow {
    background-color: var(--theme-yellow-bg);
}
.card-yellow .card-bg-shape {
    background-color: var(--theme-yellow-shape);
}
.card-yellow h2 {
    color: #854d0e;
}

.card-green {
    background-color: var(--theme-green-bg);
}
.card-green .card-bg-shape {
    background-color: var(--theme-green-shape);
}
.card-green h2 {
    color: #14532d;
}

/* Background curve shape */
.card-bg-shape {
    position: absolute;
    top: -12%;
    right: -12%;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    z-index: 0;
    transition:
        width 0.35s ease,
        height 0.35s ease,
        top 0.35s ease,
        right 0.35s ease,
        opacity 0.35s ease;
}

.service-card:hover .card-bg-shape {
    width: 115%;
    height: 115%;
    top: -25%;
    right: -25%;
}

.card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.service-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    max-width: 70%;
}

.arrow-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    backdrop-filter: blur(4px);
}

/* Content details */
.flyer-details {
    margin-bottom: auto;
}

.highlight-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--theme-purple-accent);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.promo-code {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.hover-info {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.35;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.service-card:hover .hover-info {
    opacity: 1;
    transform: translateY(0);
}

.detail-list {
    list-style: none;
    padding: 0;
}

.detail-list li {
    color: var(--theme-blue-accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.coming-soon-badge {
    background: var(--theme-yellow-accent);
    color: #fff;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
    transform: rotate(-2deg);
}

.price-tags .price {
    display: block;
    color: var(--theme-green-accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-blue .price-tags .price {
    color: var(--theme-blue-accent);
}

.card-blue .price strong {
    color: #0369a1;
}

.price strong {
    font-size: 1.2rem;
    color: #14532d;
}

/* Images */
.card-image-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.logo-placeholder {
    height: 90px;
    width: auto;
    opacity: 0.9;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.05));
    transition:
        transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        filter 0.3s ease;
}

.service-card:hover .logo-placeholder {
    transform: scale(1.08) translateY(-4px);
    filter: drop-shadow(0 12px 20px rgba(14, 165, 233, 0.4));
    opacity: 1;
}

/* Footer */
.site-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.compliance-badges {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.badge.hipaa {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #38bdf8;
    transform: translateY(-3px);
}

.legal-text p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.warning-text {
    font-weight: 600;
    color: #f87171 !important;
}

.legal-links {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: #fff;
}

.separator {
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive breakpoints */

@media (max-width: 768px) {
    .flyer-wrapper {
        padding: 1.5rem;
    }

    .brand-header {
        margin-bottom: 1.5rem;
    }

    .brand-logo {
        height: 70px;
    }

    .brand-tagline {
        font-size: 1.3rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        height: auto;
        min-height: 280px;
    }
    
    .card-content {
        padding: 1.25rem;
    }

    .service-card h2 {
        font-size: 1.35rem;
    }

    .service-card:hover {
        transform: none;
    }
    
    .service-card-link:hover {
        transform: scale(1.01);
    }
}

@media (max-width: 480px) {
    .flyer-wrapper {
        padding: 1rem;
    }

    .brand-logo {
        height: 60px;
    }

    .brand-tagline {
        font-size: 1.1rem;
    }

    .service-card h2 {
        font-size: 1.25rem;
        max-width: 80%;
    }
    
    .card-image-wrapper {
        margin-top: 0.5rem;
    }
    
    .logo-placeholder {
        height: 70px;
    }

    .footer-content {
        gap: 1rem;
    }
    
    .compliance-badges {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .legal-text p {
        font-size: 0.75rem;
    }
}
