/*
 * Corporate Junction UI layer. Loaded after the theme CSS, so everything here
 * overrides style.css. Tokens first, then type, then components.
 */
:root {
    --cj-ink: #1f1c1d;
    --cj-text: #4a4546;
    --cj-muted: #6b6566;
    --cj-brick: #af2633;
    --cj-brick-deep: #8a1d28;
    --cj-stone: #f5f3f2;
    --cj-rule: #e4dfdd;
    --cj-charcoal: #2a2526;
    --cj-radius: 8px;
    --cj-serif: "Source Serif 4", Georgia, serif;
    --cj-sans: "Hanken Grotesk", "Nunito", system-ui, sans-serif;
}

/* ---- Type ---- */
body {
    font-family: var(--cj-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--cj-text);
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--cj-serif);
    color: var(--cj-ink);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
h1, .banner-section .banner-content .title, .hero-1 .hero-1-content .title {
    font-family: var(--cj-serif);
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.08;
    font-weight: 700;
    color: var(--cj-ink);
}
.hero-1 .hero-1-content p { font-size: 19px; color: var(--cj-text); max-width: 56ch; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { line-height: 1.7 !important; text-wrap: pretty; }
a { color: var(--cj-brick); }
a:hover { color: var(--cj-brick-deep); }
.tm-area p, .tm-area li, .tm-inner-content p, .tm-inner-content li { max-width: 72ch; }
.tm-area p, .tm-area li { font-size: 18px; }
.tm-area h2 { margin-top: 2.2rem; }
.tm-area a { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 1px !important; }
.tm-area a.btn, .tm-area .accordion-title a { text-decoration: none !important; }
.text-muted, .section-title p { color: var(--cj-muted) !important; }

/* ---- Header ---- */
.navbar-area, .navbar-area.is-sticky {
    background: #fff !important;
    border-bottom: 1px solid var(--cj-rule);
    box-shadow: none;
}
.acavo-nav .navbar .navbar-nav .nav-item a, .navbar-nav .nav-link {
    color: var(--cj-ink);
    font-family: var(--cj-sans);
    font-size: 16px;
    font-weight: 500;
}
.acavo-nav .navbar .navbar-nav .nav-item a:hover,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--cj-brick); }

/* ---- Buttons ---- */
.btn.theme-btn-1 {
    background: var(--cj-brick) none;
    border-radius: var(--cj-radius);
    box-shadow: none;
    height: 48px;
    line-height: 48px;
    padding: 0 28px;
    font-family: var(--cj-sans);
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.2s ease;
}
.btn.theme-btn-1:hover { background: var(--cj-brick-deep) none; box-shadow: none; color: #fff; }
.btn.theme-btn-1[style*="25D366"], .btn.theme-btn-1[style*="25d366"] { background: #1f9d55 none !important; }
.btn.theme-btn-1[style*="25D366"]:hover, .btn.theme-btn-1[style*="25d366"]:hover { background: #17824a none !important; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #1f1c1d;
    outline-offset: 2px;
}

/* ---- Section headings: one short rule instead of two animated bars ---- */
.title-bdr { width: 56px; height: 3px; margin-bottom: 28px; }
.left-bdr, .right-bdr { animation: none; }
.left-bdr { width: 56px; height: 3px; border-radius: 0; background: var(--cj-brick); }
.right-bdr { display: none; }
.section-title h6 { color: var(--cj-brick); text-transform: none; font-family: var(--cj-sans); letter-spacing: 0; }

/* ---- Hero / banner ---- */
.banner-section { background: var(--cj-stone); }
.banner-section .banner-content p { font-size: 19px; color: var(--cj-text); max-width: 56ch; }

/* ---- Cards: flat, bordered, one hover state ---- */
.download-1-img, .why-choose-us-img { border-radius: var(--cj-radius); }
[class*="service-"] .single-service, .service-box, .single-service-box, .acavo-card, .card {
    border: 1px solid var(--cj-rule);
    border-radius: 10px;
    box-shadow: none;
    transition: border-color 0.2s ease;
}
[class*="service-"] .single-service:hover, .service-box:hover, .single-service-box:hover, .acavo-card:hover, .card:hover {
    border-color: var(--cj-brick);
    box-shadow: none;
}
.shadow { box-shadow: none !important; border: 1px solid var(--cj-rule); }

/* ---- Forms ---- */
.form-group label { font-family: var(--cj-sans); font-weight: 600; color: var(--cj-ink); }
.form-group .form-control, .form-control {
    border: 1px solid #b9b2b0;
    border-radius: var(--cj-radius);
    min-height: 46px;
    background: #fff;
    color: var(--cj-ink);
}
.form-control:focus { border-color: var(--cj-brick); box-shadow: 0 0 0 3px rgba(175, 38, 51, 0.15); }

/* ---- FAQ accordion ---- */
.faq-accordion .accordion .accordion-title { font-family: var(--cj-serif); font-weight: 600; color: var(--cj-ink); }
.faq-accordion .accordion .accordion-item { border-color: var(--cj-rule); }

/* ---- Tables in guides ---- */
.table { color: var(--cj-text); }
.table thead th { background: var(--cj-stone); color: var(--cj-ink); font-family: var(--cj-sans); border-bottom: 2px solid var(--cj-rule); }
.table-bordered td, .table-bordered th { border-color: var(--cj-rule); }

/* ---- Dark band: CTA + footer in warm charcoal ---- */
.cta-area .get-start-box { background: var(--cj-charcoal); border-radius: 12px; box-shadow: none; }
.cta-area .get-start-box .section-heading .section__title { color: #fff; }
.cta-area .get-start-box .section-heading .section__sub, .cta-area .get-start-box .section-heading .section__meta { color: #d9d3d1 !important; }
.cta-area .get-start-box .button-shared.text-end .cta-btn { background: #fff; color: var(--cj-ink); border-radius: var(--cj-radius); }
.footer-style { background: var(--cj-charcoal) !important; }
.footer-style, .footer-style p, .footer-style a, .footer-style li { color: #d9d3d1; }
.footer-style a:hover { color: #fff; }
.footer-style .footer-title, .footer-style h5, .footer-style h4 { color: #fff; font-family: var(--cj-serif); }

/* ---- Related-links component and floating buttons ---- */
.related-cta h2 { margin-top: 0; }
.related-cta a:not(.btn) { text-decoration: underline !important; text-underline-offset: 3px; }

/* ---- Motion: respect the visitor's setting ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
    body { font-size: 16px; }
    .tm-area p, .tm-area li { font-size: 17px; }
    .banner-section .banner-content p { font-size: 17px; }
    .btn.theme-btn-1 { padding: 0 22px; }
}
