/* ============================================
   DACCAA Custom Styles
   Supplements theme.json with effects that
   Gutenberg block styles can't handle natively.
   ============================================ */

/* ----- Pulse Animation (24/7 Helpline) ----- */
.daccaa-pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--wp--preset--color--success, #4a8c6f);
    border-radius: 50%;
    display: inline-block;
    animation: daccaa-pulse 2s infinite;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}

@keyframes daccaa-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 140, 111, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(74, 140, 111, 0); }
}

/* ----- Scroll Reveal Animation ----- */
/* Add "daccaa-reveal" as an Additional CSS Class on any block */
.daccaa-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.daccaa-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger children for grouped reveals */
.daccaa-reveal-stagger > .wp-block-column:nth-child(1),
.daccaa-reveal-stagger > .wp-block-group:nth-child(1) { transition-delay: 0s; }
.daccaa-reveal-stagger > .wp-block-column:nth-child(2),
.daccaa-reveal-stagger > .wp-block-group:nth-child(2) { transition-delay: 0.1s; }
.daccaa-reveal-stagger > .wp-block-column:nth-child(3),
.daccaa-reveal-stagger > .wp-block-group:nth-child(3) { transition-delay: 0.2s; }
.daccaa-reveal-stagger > .wp-block-column:nth-child(4),
.daccaa-reveal-stagger > .wp-block-group:nth-child(4) { transition-delay: 0.3s; }

/* ----- Card Hover Effects ----- */
.daccaa-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.daccaa-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 30px rgba(26, 39, 68, 0.12);
}

/* ----- Accent Top Border on Hover ----- */
.daccaa-accent-top {
    position: relative;
    overflow: hidden;
}
.daccaa-accent-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wp--preset--color--sky, #5b8cb8), var(--wp--preset--color--warm, #d4a86a));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}
.daccaa-accent-top:hover::before {
    opacity: 1;
}

/* ----- Section Label Style ----- */
.daccaa-section-label {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: var(--wp--preset--color--sky, #5b8cb8) !important;
}

/* ----- Crisis Banner Label ----- */
.daccaa-crisis-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wp--preset--color--success, #4a8c6f);
    background: rgba(74, 140, 111, 0.08);
    padding: 4px 10px;
    border-radius: 100px;
    display: inline-block;
}

/* ----- Phone Number Display ----- */
.daccaa-phone-display {
    font-family: var(--wp--preset--font-family--display, Georgia, serif);
    font-size: 24px;
    letter-spacing: 0.5px;
    color: var(--wp--preset--color--navy, #243557);
}
.daccaa-phone-display a {
    color: inherit;
    text-decoration: none;
}
.daccaa-phone-display a:hover {
    color: var(--wp--preset--color--sky, #5b8cb8);
}

/* ----- Utility Bar ----- */
.daccaa-utility-bar {
    font-size: 13.5px;
    letter-spacing: 0.02em;
}
.daccaa-utility-bar a {
    color: var(--wp--preset--color--warm-light, #e8c98e) !important;
    text-decoration: none;
}
.daccaa-utility-bar a:hover {
    color: var(--wp--preset--color--warm, #d4a86a) !important;
}

/* ----- Glassmorphism Cards (Services) ----- */
.daccaa-glass-card {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.daccaa-glass-card:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
}

/* ----- Meeting Type Icon Wrapper ----- */
.daccaa-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: var(--wp--preset--color--white, #ffffff);
    box-shadow: 0 2px 20px rgba(26, 39, 68, 0.06);
}

/* ----- Check Mark List ----- */
.daccaa-check-list {
    list-style: none !important;
    padding-left: 0 !important;
}
.daccaa-check-list li {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--wp--preset--color--border, #e2ddd5);
}
.daccaa-check-list li:last-child {
    border-bottom: none;
}

/* ----- Preamble Card ----- */
.daccaa-preamble-card {
    position: relative;
}
.daccaa-preamble-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 32px;
    right: 32px;
    height: 4px;
    background: linear-gradient(90deg, var(--wp--preset--color--sky, #5b8cb8), var(--wp--preset--color--warm, #d4a86a));
    border-radius: 4px 4px 0 0;
    z-index: 1;
}

/* ----- Header Sticky Shadow ----- */
.daccaa-sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 12px rgba(26, 39, 68, 0.04);
}

/* ----- Logo Mark ----- */
.daccaa-logo-mark {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, var(--wp--preset--color--navy, #243557), var(--wp--preset--color--sky, #5b8cb8));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--wp--preset--font-family--display, Georgia, serif);
    font-size: 18px;
    letter-spacing: -0.5px;
}

/* ----- Hero Overlay Effects ----- */
.daccaa-hero-overlay {
    position: relative;
}
.daccaa-hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(91, 140, 184, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 168, 106, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.daccaa-hero-overlay > * {
    position: relative;
    z-index: 1;
}

/* ----- Footer Styles ----- */
.daccaa-footer a {
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none;
}
.daccaa-footer a:hover {
    color: var(--wp--preset--color--warm-light, #e8c98e) !important;
}

/* ----- Responsive Adjustments ----- */
@media (max-width: 768px) {
    .daccaa-phone-display {
        font-size: 20px;
    }
    .daccaa-hide-mobile {
        display: none !important;
    }
}

/* ----- Editor-only: disable animations so content is visible while editing ----- */
.editor-styles-wrapper .daccaa-reveal {
    opacity: 1 !important;
    transform: none !important;
}
