/*
 * DoxOnCall — landing-page styles.
 * All rules scoped to #dox-XXX-page wrappers so they never bleed into
 * existing pages or the Hello Elementor / Amelia surfaces.
 *
 * Specificity discipline (see doconcall theme CLAUDE.md §3):
 *  - Always include :visited and :hover variants on every CTA anchor.
 *  - Page-embedded resets like `#dox-XXX-page a { color:inherit !important }`
 *    sit at (1,0,1). Class-scoped rules `#dox-XXX-page a.dox-cta` (1,1,1)
 *    beat them only WITH :visited/:hover variants.
 */

/* ─────────────────────────────────────────────────────────────────────────
   AMELIA v2 BUTTON OVERRIDE
   The active Elementor Kit (id=8) sets `.elementor-kit-8 button { ... }`
   at (0,1,1), which clobbers Amelia's brand styling. Re-assert at (0,2,1).
   ──────────────────────────────────────────────────────────────────────── */
.elementor-kit-8 .amelia-v2-booking button,
.elementor-kit-8 .amelia-v2-booking input[type="button"],
.elementor-kit-8 .amelia-v2-booking input[type="submit"] {
    background-color: var(--dox-primary) !important;
    color:            #fff !important;
    border-radius:    8px !important;
    padding:          12px 28px !important;
    font-weight:      600 !important;
    font-size:        15px !important;
    line-height:      1.4 !important;
    letter-spacing:   normal !important;
    text-transform:   none !important;
    cursor:           pointer !important;
    border:           none !important;
    transition:       background 0.2s ease !important;
    box-shadow:       0 2px 8px rgba(14, 110, 107, 0.25) !important;
}
.elementor-kit-8 .amelia-v2-booking button:hover,
.elementor-kit-8 .amelia-v2-booking button:focus {
    background-color: var(--dox-primary-deep) !important;
    color: #fff !important;
}
.elementor-kit-8 .amelia-v2-booking button[class*="secondary"],
.elementor-kit-8 .amelia-v2-booking button[class*="outline"],
.elementor-kit-8 .amelia-v2-booking button[class*="ghost"],
.elementor-kit-8 .amelia-v2-booking button[class*="back"],
.elementor-kit-8 .amelia-v2-booking button[class*="cancel"] {
    background-color: transparent !important;
    color:            var(--dox-primary) !important;
    border:           2px solid var(--dox-primary) !important;
    box-shadow:       none !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   GLOBAL BOOK BUTTON (.dox-btn--book) — used by dox_amelia_cta()
   ──────────────────────────────────────────────────────────────────────── */
[id^="dox-"][id$="-page"] a.dox-btn--book,
[id^="dox-"][id$="-page"] a.dox-btn--book:visited,
[id^="dox-"][id$="-page"] a.dox-btn--book:hover {
    display: inline-block;
    background: var(--dox-primary);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: none;
    box-shadow: var(--dox-shadow-md);
    transition: background 0.2s ease, transform 0.15s ease;
}
[id^="dox-"][id$="-page"] a.dox-btn--book:hover {
    background: var(--dox-primary-deep);
    transform: translateY(-1px);
}
[id^="dox-"][id$="-page"] a.dox-btn--ghost,
[id^="dox-"][id$="-page"] a.dox-btn--ghost:visited {
    display: inline-block;
    background: transparent;
    color: var(--dox-primary) !important;
    padding: 12px 28px;
    border-radius: 999px;
    border: 2px solid var(--dox-primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 10px;
}
[id^="dox-"][id$="-page"] a.dox-btn--ghost:hover {
    background: var(--dox-primary-soft);
    color: var(--dox-primary-deep) !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   PAGE LAYOUT PRIMITIVES
   ──────────────────────────────────────────────────────────────────────── */
.dox-wrap {
    max-width: var(--dox-container);
    margin: 0 auto;
    padding: 0 var(--dox-container-pad);
}

.dox-hero {
    background: linear-gradient(135deg, var(--dox-primary-soft) 0%, #fff 100%);
    padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px);
    border-bottom: 1px solid var(--dox-line);
}
.dox-hero .dox-eyebrow {
    display: inline-block;
    background: var(--dox-primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 18px;
}
.dox-hero p.dox-lede {
    font-size: clamp(18px, 2vw, 21px);
    color: var(--dox-ink-soft);
    margin: 0 0 28px;
    max-width: 720px;
}
.dox-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.dox-trust {
    display: flex; flex-wrap: wrap; gap: 16px 28px;
    margin-top: 28px; font-size: 14px; color: var(--dox-ink-soft);
}
.dox-trust span { display: inline-flex; align-items: center; gap: 6px; }
.dox-trust span::before { content: "✓"; color: var(--dox-success); font-weight: 700; }

.dox-section { padding: clamp(48px, 6vw, 80px) 0; }
.dox-section--soft { background: var(--dox-bg-soft); }

/* ─────────────────────────────────────────────────────────────────────────
   PRICE / RESPONSE BAND
   ──────────────────────────────────────────────────────────────────────── */
.dox-pricing {
    background: linear-gradient(135deg, var(--dox-primary) 0%, var(--dox-primary-deep) 100%);
    color: #fff;
    border-radius: var(--dox-radius-lg);
    padding: 32px;
    box-shadow: var(--dox-shadow-lg);
    display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.dox-pricing .dox-price-amount { font-size: 44px; font-weight: 700; font-family: var(--dox-font-display); }
.dox-pricing .dox-price-note { opacity: 0.85; font-size: 14px; }

/* CTA links sitting on the dark pricing band — guard all states */
[id^="dox-"][id$="-page"] .dox-pricing a,
[id^="dox-"][id$="-page"] .dox-pricing a:visited,
[id^="dox-"][id$="-page"] .dox-pricing a:hover {
    background: #fff !important;
    color: var(--dox-primary) !important;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
[id^="dox-"][id$="-page"] .dox-pricing a:hover { background: #f3f9f9 !important; }

/* ─────────────────────────────────────────────────────────────────────────
   FAQ ACCORDIONS — native <details><summary>
   ──────────────────────────────────────────────────────────────────────── */
.dox-faq {
    background: #fff;
    border: 1px solid var(--dox-line);
    border-radius: var(--dox-radius);
    margin: 10px 0;
    box-shadow: var(--dox-shadow-sm);
    overflow: hidden;
}
.dox-faq summary {
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 600;
    color: var(--dox-ink);
    list-style: none;
    position: relative;
    padding-right: 56px;
    font-size: 16px;
}
.dox-faq summary::-webkit-details-marker { display: none; }
.dox-faq summary::after {
    content: "+";
    position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; line-height: 26px; text-align: center;
    color: var(--dox-primary); font-size: 22px; font-weight: 400;
    border: 1px solid var(--dox-line); border-radius: 50%;
    transition: transform 0.2s ease, background 0.2s ease;
}
.dox-faq[open] summary::after { content: "−"; background: var(--dox-primary-soft); }
.dox-faq .dox-faq-a {
    padding: 0 22px 20px; color: var(--dox-ink-soft); line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────────────────
   FEATURE GRID (services list, benefits, etc.)
   ──────────────────────────────────────────────────────────────────────── */
.dox-grid { display: grid; gap: 18px; }
.dox-grid--3 { grid-template-columns: repeat(3, 1fr); }
.dox-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .dox-grid--3, .dox-grid--2 { grid-template-columns: 1fr; } }

.dox-card {
    background: #fff;
    border: 1px solid var(--dox-line);
    border-radius: var(--dox-radius);
    padding: 22px;
    box-shadow: var(--dox-shadow-sm);
}
.dox-card h3 { margin-top: 0; }
.dox-card .dox-card-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--dox-primary-soft); color: var(--dox-primary);
    font-weight: 700; font-size: 22px; margin-bottom: 10px;
}

/* ─────────────────────────────────────────────────────────────────────────
   BREADCRUMB
   ──────────────────────────────────────────────────────────────────────── */
.dox-breadcrumb {
    font-size: 13px; color: var(--dox-ink-soft); margin: 0 0 18px;
}
.dox-breadcrumb a { color: var(--dox-primary); text-decoration: none; }
.dox-breadcrumb a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────────────────────────────────
   BOTTOM CTA BAND
   ──────────────────────────────────────────────────────────────────────── */
.dox-cta-bottom {
    background: linear-gradient(135deg, #0B1B25 0%, var(--dox-primary-deep) 100%);
    color: #fff;
    padding: clamp(40px, 6vw, 72px) var(--dox-container-pad);
    border-radius: var(--dox-radius-lg);
    text-align: center;
    margin: 32px auto;
    max-width: var(--dox-container);
}
.dox-cta-bottom h2 { color: #fff; margin: 0 0 12px; }
.dox-cta-bottom p { color: rgba(255,255,255,0.86); max-width: 600px; margin: 0 auto 24px; }

[id^="dox-"][id$="-page"] .dox-cta-bottom a,
[id^="dox-"][id$="-page"] .dox-cta-bottom a:visited,
[id^="dox-"][id$="-page"] .dox-cta-bottom a:hover {
    background: #fff !important;
    color: var(--dox-primary-deep) !important;
    padding: 16px 36px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}
[id^="dox-"][id$="-page"] .dox-cta-bottom a:hover { background: var(--dox-accent) !important; color: #0B1B25 !important; }

/* ─────────────────────────────────────────────────────────────────────────
   RELATED GUIDES (cross-link aside)
   ──────────────────────────────────────────────────────────────────────── */
.dox-related {
    background: var(--dox-primary-soft);
    border-radius: var(--dox-radius);
    padding: 24px;
    margin: 32px 0;
}
.dox-related h3 { margin: 0 0 12px; font-size: 18px; }
.dox-related ul { list-style: none; margin: 0; padding: 0; }
.dox-related li { margin: 8px 0; }
.dox-related a { color: var(--dox-primary-deep); font-weight: 600; text-decoration: none; }
.dox-related a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────────────────────────────────
   MOBILE-FIRST PADDING — prevent edge-bleed inside scoped pages
   ──────────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    [id^="dox-"][id$="-page"] .elementor-section .elementor-container {
        padding-left:  var(--dox-container-pad) !important;
        padding-right: var(--dox-container-pad) !important;
    }
    .dox-pricing { flex-direction: column; align-items: flex-start; }
    .dox-hero-ctas { flex-direction: column; align-items: stretch; }
    .dox-hero-ctas a { text-align: center; }
}
