/* ==========================================================================
   Northshore Digital Agency - Custom Component Styles
   ========================================================================== */

/* ==========================================================================
   1. Pricing Cards
   ========================================================================== */

.pricing-card-featured {
    transform: scale(1.05);
    z-index: 2;
    position: relative;
}

.pricing-columns {
    align-items: center;
}

.promo-badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 9999px;
    background: rgba(212, 160, 23, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pricing-features {
    list-style: none;
    padding-left: 0 !important;
}

.pricing-features li {
    padding: 0.4rem 0;
    padding-left: 1.6rem;
    position: relative;
}

.pricing-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: 700;
}

/* ==========================================================================
   2. Testimonial Carousel
   ========================================================================== */

.testimonial-carousel {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.testimonial-slide {
    width: 100%;
}

.testimonial-quote {
    position: relative;
    padding-top: 1.5rem;
}

.testimonial-quote::before {
    content: '\201C';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    font-family: 'Sora', serif;
    color: var(--color-gold);
    opacity: 0.3;
    line-height: 1;
    pointer-events: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-gray-400);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    border-color: var(--color-gold);
}

.carousel-dot.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    transform: scale(1.2);
}

/* ==========================================================================
   3. Industry Tiles
   ========================================================================== */

.industry-tile {
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.industry-tile:hover {
    border-bottom: 3px solid var(--color-gold);
    box-shadow: var(--shadow-glass-gold);
}

/* ==========================================================================
   4. Trust Badge
   ========================================================================== */

.trust-badge {
    display: inline-block !important;
    width: auto !important;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   5. Feature Checklist
   ========================================================================== */

.feature-checklist {
    list-style: none;
    padding-left: 0 !important;
}

.feature-checklist li {
    padding: 0.35rem 0;
    padding-left: 1.6rem;
    position: relative;
}

.feature-checklist li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: 700;
}

/* ==========================================================================
   6. Contact Form
   ========================================================================== */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: var(--color-gray-800);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.form-submit {
    padding: 0.875rem 2rem;
    background: var(--gradient-gold);
    color: var(--color-navy);
    border: none;
    border-radius: 9999px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glass-gold);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glass-elevated);
}

/* ==========================================================================
   7. Navigation Enhancements
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.glass-header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(27, 45, 91, 0.06);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

/* Active nav link underline */
.wp-block-navigation-item.current-menu-item>a {
    color: var(--color-gold) !important;
    position: relative;
}

/* Mobile drawer glass overlay */
.wp-block-navigation__responsive-container.is-menu-open {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Header CTA glow */
.header-cta .wp-block-button__link {
    box-shadow: var(--shadow-glass-gold);
    transition: all 0.3s ease;
}

.header-cta .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(212, 160, 23, 0.35);
}

/* ==========================================================================
   8. Blog Cards
   ========================================================================== */

.glass-card .wp-block-post-featured-image img {
    transition: transform 0.4s ease;
}

.glass-card:hover .wp-block-post-featured-image img {
    transform: scale(1.03);
}

/* ==========================================================================
   9. FAQ Accordion
   ========================================================================== */

.faq-item {
    margin-bottom: 0.75rem;
}

.faq-item summary {
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-navy);
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-gold);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] summary::after {
    content: '\2013';
}

.faq-item p {
    margin-top: 0.75rem;
}

/* ==========================================================================
   10. Scroll-to-Top Button
   ========================================================================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(27, 45, 91, 0.1);
    box-shadow: var(--shadow-glass);
    color: var(--color-gold);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--color-gold);
    color: var(--color-navy);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glass-gold);
}

/* ==========================================================================
   11. Wave Divider
   ========================================================================== */

.site-footer-wave {
    margin-bottom: -2px;
    line-height: 0;
}

.wave-divider-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   12. Footer Styles
   ========================================================================== */

.footer-logo img {
    filter: brightness(0) invert(1);
}

.footer-links {
    list-style: none;
    padding-left: 0 !important;
}

.footer-links li {
    padding: 0.2rem 0;
}

.footer-links li a {
    color: var(--color-gray-400);
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-links li a:hover {
    color: var(--color-gold);
}

/* ==========================================================================
   13. CTA Banner Glass Overlay
   ========================================================================== */

.cta-banner-gold {
    position: relative;
}

.cta-banner-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
}

.cta-banner-gold>* {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   14. Service Detail Zigzag
   ========================================================================== */

@media (min-width: 768px) {
    .is-reversed {
        flex-direction: row-reverse;
    }
}

.service-mockup {
    overflow: hidden;
}

.service-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--color-gray-100);
    min-height: 300px;
}

/* ==========================================================================
   15. Stat Items
   ========================================================================== */

.stat-item {
    text-align: center;
}

/* ==========================================================================
   16. Most Popular Badge
   ========================================================================== */

.most-popular-badge,
.full-service-badge {
    display: inline-block !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

/* Mobile */
@media (max-width: 639px) {
    .pricing-card-featured {
        transform: scale(1);
    }

    .pricing-columns {
        flex-direction: column !important;
    }

    .industries-grid {
        flex-wrap: wrap !important;
    }

    .industries-grid>.wp-block-column {
        flex-basis: calc(50% - 0.75rem) !important;
    }

    .glass-card,
    .glass-card-dark,
    .glass-card-featured {
        border-radius: var(--radius-md);
    }

    .hero-section {
        min-height: 80vh !important;
    }

    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Tablet */
@media (min-width: 640px) and (max-width: 1023px) {
    .industries-grid>.wp-block-column {
        flex-basis: calc(33.333% - 1rem) !important;
    }
}

/* Desktop large */
@media (min-width: 1440px) {
    .hero-section {
        min-height: 85vh !important;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

/* ==========================================================================
   17. SVG Icon Containers
   ========================================================================== */

.service-icon,
.industry-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.industry-icon {
    margin-bottom: 0.75rem;
}

.star-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   18. Hero Trust Indicators
   ========================================================================== */

.hero-trust-indicators {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: var(--wp--preset--spacing--50, 2rem);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

/* ==========================================================================
   19. Glass Ghost Button (Hero secondary CTA)
   ========================================================================== */

.glass-ghost-btn .wp-block-button__link {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.glass-ghost-btn .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   20. Hero CTA Glow
   ========================================================================== */

.hero-cta-primary .wp-block-button__link {
    box-shadow: 0 4px 24px rgba(212, 160, 23, 0.35);
    transition: all 0.3s ease;
}

.hero-cta-primary .wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(212, 160, 23, 0.5);
}

@media print {

    .site-header,
    .site-footer,
    .site-footer-wave,
    .scroll-to-top,
    .cta-banner-gold,
    .cta-banner-navy,
    .carousel-dots {
        display: none !important;
    }

    .glass-card,
    .glass-card-dark,
    .glass-card-featured {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}