/* =====================================================
   CDD Homepage — Featured Lawyers + Support Styles
   ===================================================== */

/* ---- Featured Lawyers Grid ---- */
.cdd-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 0 36px;
}
@media (max-width: 900px) {
    .cdd-featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .cdd-featured-grid { grid-template-columns: 1fr; }
}

.cdd-featured-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.cdd-featured-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.14);
    transform: translateY(-3px);
}

.cdd-featured-photo {
    background: #e8eff8;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    overflow: hidden;
}
.cdd-featured-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cdd-no-photo {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a6496 100%);
}
.cdd-no-photo span {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.cdd-featured-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.cdd-featured-name {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}
.cdd-featured-name a {
    color: #1a3a5c;
    text-decoration: none;
}
.cdd-featured-name a:hover { color: #2a6496; text-decoration: underline; }

.cdd-featured-firm {
    font-size: 13px;
    color: #555;
    margin: 0 0 4px;
    font-style: italic;
}
.cdd-featured-location {
    font-size: 13px;
    color: #777;
    margin: 0 0 10px;
}
.cdd-featured-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 14px;
    flex: 1;
}
.cdd-featured-areas .cdd-practice-tag {
    font-size: 11px;
    background: #e8eff8;
    color: #1a3a5c;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 500;
}
.cdd-featured-btn {
    display: inline-block;
    background: #1a3a5c;
    color: #fff !important;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: background .2s;
    margin-top: auto;
}
.cdd-featured-btn:hover { background: #2a6496; }

/* ---- Practice Area Pills ---- */
.cdd-area-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 10px 0;
}
.cdd-area-pill {
    display: inline-block;
    background: #fff;
    border: 2px solid #1a3a5c;
    color: #1a3a5c;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s, color .2s;
}
.cdd-area-pill:hover {
    background: #1a3a5c;
    color: #fff;
}

/* ---- How It Works Steps ---- */
.cdd-steps-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
    padding: 10px 0;
}
@media (max-width: 700px) {
    .cdd-steps-wrap { grid-template-columns: 1fr; gap: 24px; }
}
.cdd-step-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1a3a5c;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.cdd-step h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 8px;
}
.cdd-step p {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

/* ---- Benefits List ---- */
.cdd-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.cdd-benefits-list li {
    font-size: 16px;
    color: #d0e6f8;
    padding: 8px 0 8px 32px;
    position: relative;
    line-height: 1.4;
}
.cdd-benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #5cb85c;
    font-weight: 700;
    font-size: 18px;
}

/* ---- Tier Cards ---- */
.cdd-tier-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 580px) {
    .cdd-tier-grid { grid-template-columns: 1fr; }
}
.cdd-tier-card {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    padding: 20px;
    position: relative;
}
.cdd-tier-card.featured-tier {
    background: rgba(255,255,255,.18);
    border-color: #5cb85c;
}
.cdd-tier-card .tier-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: #5cb85c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.cdd-tier-card .tier-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}
.cdd-tier-card .tier-price {
    font-size: 22px;
    font-weight: 700;
    color: #b8d4f0;
    margin: 0 0 12px;
}
.cdd-tier-card .tier-price span {
    font-size: 13px;
    font-weight: 400;
    color: #93b8d8;
}
.cdd-tier-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cdd-tier-card ul li {
    font-size: 13px;
    color: #c8dff0;
    padding: 4px 0 4px 18px;
    position: relative;
}
.cdd-tier-card ul li::before {
    content: "·";
    position: absolute;
    left: 4px;
    color: #b8d4f0;
    font-weight: 700;
}
.cdd-tier-soon {
    font-size: 11px;
    color: #93b8d8;
    font-style: italic;
    margin-top: 8px;
    display: block;
}

/* ---- CTA Button override inside dark sections ---- */
.cdd-homepage-cta-wrap {
    text-align: center;
    margin-top: 10px;
}
.cdd-homepage-cta-wrap a.cdd-cta-main-btn {
    display: inline-block;
    background: #5cb85c;
    color: #fff !important;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    transition: background .2s, transform .2s;
    letter-spacing: .3px;
}
.cdd-homepage-cta-wrap a.cdd-cta-main-btn:hover {
    background: #4cae4c;
    transform: translateY(-2px);
}

/* ---- Stats bar ---- */
.cdd-stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.15);
}
.cdd-stat-item {
    text-align: center;
}
.cdd-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}
.cdd-stat-label {
    display: block;
    font-size: 13px;
    color: #93b8d8;
    margin-top: 2px;
}

/* Search controls on the dark marketing hero. */
.home .cdd-search-bar__label{color:#fff!important}.home .cdd-search-bar__input,.home .cdd-search-bar__select,.home .cdd-search-bar__button{height:46px!important;box-sizing:border-box}.home .cdd-search-bar__input{padding:10px 12px!important}.home .cdd-search-bar__fields{align-items:flex-end}
