@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary:   #1B2B4B; /* navy */
    --accent:    #D62B2B; /* red */
    --bg:        #F7F8FA; /* light gray */
    --text-dark: #1A1A1A;
    --fog:       #B8C2D4;
    --accent-light: #FF6B6B; /* accent tint for text on dark backgrounds, WCAG AA */
}

/* Divi's default link color (#2ea3f2) is only 2.75:1 contrast on white —
   fails WCAG AA. Override site-wide with brand colors that pass AA. */
a { color: var(--primary); }
a:hover { color: var(--accent); }

/* Brand type */
body, p, .et_pb_text_inner { font-family: 'Inter', sans-serif; }
h1, h2, h3, h4, h5, h6, .et_pb_module .et_pb_heading { font-family: 'Poppins', sans-serif; font-weight: 700; }

/* Mobile sticky CTA bar */
.ccnj-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: var(--primary);
}
.ccnj-mobile-cta a {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
}
.ccnj-mcta-btn { background: var(--accent); }
@media (max-width: 767px) {
    .ccnj-mobile-cta { display: flex; }
    body { padding-bottom: 54px; }
}

/* Scroll reveal */
.ccnj-reveal            { opacity:0; transform:translateY(28px);
                          transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1); }
.ccnj-reveal.is-visible { opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

/* Service cards (home + services index) */
.ccnj-service-card {
    display: block;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}
a.ccnj-card-link { display: block; text-decoration: none; color: inherit; }
.ccnj-service-card:hover,
a.ccnj-card-link:hover .ccnj-service-card { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,0.12); }
.ccnj-card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.ccnj-service-card h3 { font-size: 1.05rem; margin: 16px 20px 8px; }
.ccnj-service-card p  { font-size: 0.88rem; margin: 0 20px 20px; color: #555; line-height: 1.55; }

/* Breadcrumbs (inner-page title bar) */
/* Homepage hero — full-bleed photo w/ dark overlay, ~820px centered content,
   matching the reference site's actual hero treatment */
.ccnj-hero-photo {
    background-size: cover;
    background-position: center center;
    padding: 160px 24px 100px;
    display: flex;
    justify-content: center;
}
.ccnj-hero-inner { max-width: 820px; text-align: center; }
.ccnj-hero-eyebrow {
    color: var(--accent-light, #FF6B6B);
    font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    font-size: 0.85rem; margin-bottom: 12px;
}
.ccnj-hero-inner h1 { color: #fff; font-size: 2.6rem; line-height: 1.2; margin-bottom: 16px; }
.ccnj-hero-sub { color: var(--fog); font-size: 1.05rem; margin-bottom: 28px; }
.ccnj-hero-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: 700; font-size: 0.9rem; letter-spacing: 0.03em;
    padding: 16px 36px;
    border-radius: 4px;
    text-decoration: none;
}
.ccnj-hero-btn:hover { background: var(--accent-light, #FF6B6B); color: #fff; }

.ccnj-title-bar {
    padding: 100px 24px 56px;
    text-align: center;
}
.ccnj-title-bar h1 { color: #fff; margin-bottom: 10px; }
.ccnj-breadcrumbs { font-size: 0.82rem; color: var(--fog); }
.ccnj-breadcrumbs a { color: var(--fog); text-decoration: none; }
.ccnj-breadcrumbs a:hover { color: #fff; }
.ccnj-crumb-sep { margin: 0 4px; opacity: .6; }

/* Footer lists */
.ccnj-footer-list, .ccnj-footer-contact { list-style: none; margin: 0; padding: 0; }
.ccnj-footer-list li, .ccnj-footer-contact li { margin-bottom: 8px; font-size: 0.85rem; color: var(--fog); }
.ccnj-footer-list a, .ccnj-footer-contact a { color: var(--fog); text-decoration: none; }
.ccnj-footer-list a:hover, .ccnj-footer-contact a:hover { color: #fff; }

/* Two-column facility list */
.ccnj-facility-cols { display: flex; flex-wrap: wrap; gap: 0 32px; }
.ccnj-facility-cols ul { list-style: none; margin: 0; padding: 0; flex: 1 1 200px; }
.ccnj-facility-cols li { padding: 6px 0; font-size: 0.95rem; }
.ccnj-facility-cols li::before { content: "\2713"; color: var(--accent); font-weight: 700; margin-right: 10px; }

/* Icon tile (replaces broken blurb-module icons, see ccnj_divi.py) */
.ccnj-icon-tile { text-align: center; padding: 16px 8px; }
.ccnj-icon-tile .ccnj-icon {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 36px;
    line-height: 1;
}
.ccnj-icon-tile h4 { margin: 0; font-size: 1rem; }

/* Generic checkmark list */
.ccnj-check-list { list-style: none; margin: 16px 0; padding: 0; }
.ccnj-check-list li { padding: 6px 0; font-size: 0.95rem; }
.ccnj-check-list li::before { content: "\2713"; color: var(--accent); font-weight: 700; margin-right: 10px; }

/* Photo gallery + lightbox */
.ccnj-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.ccnj-gallery-grid img {
    width: 100%; height: 170px; object-fit: cover;
    border-radius: 8px; cursor: pointer;
    transition: transform .2s ease;
}
.ccnj-gallery-grid img:hover { transform: scale(1.03); }
#ccnj-lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.9);
    display: none; align-items: center; justify-content: center;
    z-index: 99999; cursor: zoom-out; padding: 24px;
}
#ccnj-lightbox.ccnj-active { display: flex; }
#ccnj-lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 6px; }

/* Testimonials placeholder */
.ccnj-testimonial-placeholder {
    text-align: center;
    padding: 48px 24px;
    border: 2px dashed rgba(0,0,0,0.15);
    border-radius: 12px;
    color: #555;
}
