/* ==========================================================================
   RestartAGD — Visual Modernization
   Google Font: Inter (replaces system fonts) + animations + CTA pulse
   ========================================================================== */

/* --- Mobile: center phone/hours and why sidebar --- */
@media only screen and (max-width: 40em) {

    .small-text-center.text-right,
    .small-text-center.medium-text-right {
        text-align: center !important;
    }

    .contact-city {
        text-align: center;
        padding-left: 0;
        list-style: none;
    }

    .why {
        padding-left: 0;
        padding-right: 0;
    }

    .why ul {
        padding-left: 0.5em;
        margin-left: 0;
    }

    aside#sidebar {
        padding-left: 0;
        padding-right: 0;
    }

    /* Global list indentation fix */
    article ul,
    article ol,
    .subpage ul,
    .subpage ol,
    .entry-content ul,
    .entry-content ol {
        margin-left: 0.8em;
        padding-left: 0;
    }
}

/* --- Typography: Inter overlay --- */
body,
.subpage,
.top-bar-section ul li>a,
.side-nav li a {
    font-family: 'Inter', Poppins, Helvetica, Roboto, Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.title,
.subtitle {
    font-family: 'Inter', Poppins, Helvetica, Roboto, Arial, sans-serif;
    letter-spacing: -0.01em;
}

/* --- Smooth transitions on all interactive elements --- */
a,
button,
input[type="submit"],
.button,
.btn,
.tabs dd>a,
.accordion .accordion-navigation>a {
    transition: all 0.25s ease;
}

/* --- Button hover effects --- */
a:hover,
.button:hover,
input[type="submit"]:hover {
    transform: translateY(-1px);
}

/* --- FAQ Accordion smooth open/close --- */
.accordion .accordion-navigation>.content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.3s ease;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.accordion .accordion-navigation>.content.active {
    max-height: 1000px;
    padding-top: 15px;
    padding-bottom: 15px;
    opacity: 1;
}

/* --- Sidebar card hover --- */
.subpage aside .why li {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.subpage aside .why li:hover {
    background-color: rgba(26, 54, 93, 0.03);
}

/* --- CTA Diagnosis Widget Button: Gradient + Pulse --- */
.ragd-btn-call {
    background: linear-gradient(135deg, #E8740C 0%, #F59E0B 100%);
    color: #fff !important;
    border-radius: 6px;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(232, 116, 12, 0.25);
    transition: all 0.3s ease;
    animation: cta-pulse 2.5s ease-in-out infinite;
}

.ragd-btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232, 116, 12, 0.35);
    background: linear-gradient(135deg, #C86000 0%, #E8740C 100%);
}

@keyframes cta-pulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(232, 116, 12, 0.25);
    }

    50% {
        box-shadow: 0 2px 20px rgba(232, 116, 12, 0.45);
    }
}

/* --- Subtle card/box lift on hover --- */
.description,
.cityAccessDiagnosis,
.results {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.description:hover,
.cityAccessDiagnosis:hover,
.results:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* --- Smooth image loading fade-in --- */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][src]:not([src="about:blank"]) {
    opacity: 1;
}