/* =====================================================
   LEGAL DESK BD - REDESIGN LAYER  (v2.0)
   -----------------------------------------------------
   Loaded last. Refines typography, colour, components and
   interaction states using Bootstrap 5 + Bootstrap Icons.
   It never changes markup structure, grid definitions or
   responsive breakpoints defined in style.css/responsive.css.
===================================================== */


/* =====================================================
   1. BASE
===================================================== */

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--accent);
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: inherit;
    text-wrap: balance;
}

/* Bengali reads better without negative tracking */
html[lang="bn"] h1,
html[lang="bn"] h2,
html[lang="bn"] h3,
html[lang="bn"] h4,
html[lang="bn"] .eyebrow {
    letter-spacing: 0;
}

html[lang="bn"] body {
    line-height: 1.9;
}

p {
    text-wrap: pretty;
}

/* Bootstrap Icons sit neatly in text */
.bi {
    display: inline-block;
    line-height: 1;
    vertical-align: -0.125em;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.site-header :focus-visible,
.site-footer :focus-visible,
.section-dark :focus-visible,
.hero :focus-visible {
    outline-color: var(--accent-light);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* =====================================================
   2. BUTTONS
===================================================== */

.btn,
.header-action-btn,
.profile-button,
.pagination-btn {
    gap: 0.55rem;
}

.btn {
    min-height: 50px;
    padding: 0 30px;
    border-radius: var(--radius);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                background-color 0.25s ease, color 0.25s ease,
                border-color 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    border-color: var(--accent);
    color: var(--primary-dark);
    box-shadow: 0 8px 22px rgba(198, 154, 58, 0.32);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: linear-gradient(135deg, #f0cd75 0%, var(--accent-light) 100%);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(198, 154, 58, 0.42);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-light {
    border-width: 1.5px;
    background: rgba(255, 255, 255, 0.04);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
    transform: translateY(-2px);
}

.text-link {
    font-weight: 600;
}

.text-link .bi {
    transition: transform 0.25s ease;
}

.text-link:hover .bi {
    transform: translateX(4px);
}

.text-link:hover {
    gap: 9px;
}


/* =====================================================
   3. HEADER
===================================================== */

.site-header {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-bottom: 1px solid rgba(198, 154, 58, 0.28);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 10px 34px rgba(6, 22, 41, 0.35);
}

.header-container {
    min-height: 82px;
}

.header-logo .logo-mark {
    border-radius: 12px;
    border: 1.5px solid var(--accent);
    background: rgba(198, 154, 58, 0.1);
    font-family: var(--font-heading);
    font-weight: 700;
}

.header-logo .logo-text strong {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    letter-spacing: 0.02em;
}

.header-logo .logo-text small {
    color: var(--accent-light);
    opacity: 0.85;
}

.primary-menu > li > a {
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.primary-menu > li > a {
    background:
        linear-gradient(var(--accent), var(--accent)) no-repeat left calc(100% - 22px) / 0 2px;
    transition: color 0.25s ease, background-size 0.3s ease;
}

.primary-menu > li > a:hover {
    background-size: 100% 2px;
}

/* dropdown caret using Bootstrap Icons font (chevron-down = \f282) */
.primary-menu > li.menu-item-has-children > a::before {
    order: 2;
    margin-left: 6px;
    content: "\f282";
    font-family: "bootstrap-icons";
    font-size: 0.62rem;
    opacity: 0.7;
}

.primary-menu .sub-menu {
    border-top: 3px solid var(--accent);
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
}

.primary-menu .sub-menu a {
    position: relative;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus {
    padding-left: 26px;
}

.header-action-btn {
    height: 44px;
    border-radius: var(--radius);
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(198, 154, 58, 0.25);
    transition: transform 0.25s ease, background-color 0.25s ease,
                color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-action-btn:hover {
    transform: translateY(-1px);
}

/* first header button (Check Case Status) = ghost style */
.header-buttons .header-action-btn:first-child {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

.header-buttons .header-action-btn:first-child:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-light);
    color: var(--white);
}

.header-action-btn .bi {
    font-size: 1rem;
}



.menu-toggle {
    border-radius: var(--radius);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}


/* =====================================================
   4. HERO & SECTION HEADINGS
===================================================== */

.hero {
    background:
        radial-gradient(900px 520px at 88% 8%, rgba(198, 154, 58, 0.20), transparent 62%),
        radial-gradient(700px 480px at 0% 100%, rgba(43, 90, 148, 0.45), transparent 65%),
        linear-gradient(115deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
}

.hero h1 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero h1 span {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(90deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 17.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
}

.hero-meta {
    border-top-color: rgba(255, 255, 255, 0.18);
}

.hero-meta strong {
    font-family: var(--font-heading);
    font-size: 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.section-heading h2,
.section-top h2 {
    font-weight: 600;
    letter-spacing: -0.015em;
}

.section-heading h2 span {
    font-style: italic;
    font-weight: 500;
}

.section-light {
    background: linear-gradient(180deg, #eef1f7 0%, #f6f8fc 100%);
}

.intro-text .lead {
    color: var(--accent-dark);
    font-weight: 500;
}


/* =====================================================
   5. CARDS
===================================================== */

/* ---- Practice areas (home + practice-area page) ---- */
.practice-grid {
    gap: 24px;
    background: transparent;
    border: 0;
}

.practice-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-6px);
    border-color: rgba(198, 154, 58, 0.55);
    box-shadow: var(--shadow-lg);
}

.practice-icon {
    border-radius: 14px;
    border: 1px solid rgba(198, 154, 58, 0.35);
    background: rgba(198, 154, 58, 0.12);
    color: var(--accent-dark);
    font-size: 24px;
    line-height: 1;
}

.practice-icon .bi,
.practice-icon i {
    font-size: 24px;
    line-height: 1;
}

.practice-card h3 {
    font-weight: 600;
}

.practice-number {
    font-family: var(--font-heading);
}

/* ---- Advocates ---- */
.advocate-card,
.directory-advocate-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.advocate-card:hover,
.directory-advocate-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(198, 154, 58, 0.5);
}

.advocate-role {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(198, 154, 58, 0.14);
    color: var(--accent-dark);
    letter-spacing: 0.14em;
}

.advocate-content h3 {
    font-weight: 600;
}

.profile-button .bi,
.text-link .bi {
    transition: transform 0.25s ease;
}

.profile-button:hover .bi {
    transform: translateX(4px);
}

/* ---- Features ---- */
.features-grid {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature {
    transition: background-color 0.3s ease;
}

.feature:hover {
    background: #fbf8f0;
}

.feature-number {
    font-weight: 600;
}

.feature h3 {
    font-weight: 600;
}

/* ---- Articles / resources ---- */
.article-card,
.resource-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover,
.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    background:
        radial-gradient(420px 220px at 90% 0%, rgba(198, 154, 58, 0.28), transparent 60%),
        linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}

.article-content h3 {
    font-weight: 600;
}

/* ---- Inner pages: info cards ---- */
.practice-card-content,
.appointment-info-card,
.appointment-contact-card,
.contact-quick-card,
.contact-info-item,
.location-card,
.office-hours-card,
.faq-intro-card,
.faq-item,
.faq-sidebar,
.privacy-contact-card,
.privacy-sidebar-inner,
.resources-intro-note,
.advocate-contact-box,
.legal-notice-inner {
    border-radius: var(--radius-lg);
}

.appointment-form-wrapper,
.contact-form-wrapper,
.faq-search-box,
.practice-search-box,
.search-input-wrapper,
.profile-modal-container {
    border-radius: var(--radius-lg);
}

.appointment-form-wrapper,
.contact-form-wrapper {
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.faq-item {
    border: 1px solid var(--border);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover,
.faq-item.open {
    border-color: rgba(198, 154, 58, 0.55);
    box-shadow: var(--shadow-sm);
}

.faq-toggle {
    border-radius: 50%;
    font-size: 14px;
    font-weight: 400;
}

.practice-expand span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(198, 154, 58, 0.14);
    font-size: 13px;
}

/* ---- Tabs, filters, pagination ---- */
.practice-tab,
.pagination-btn,
.pagination-next,
.pagination-prev {
    border-radius: var(--radius-pill);
}

/* ---- Icon chips in contact blocks ---- */
.contact-info-icon,
.contact-icon,
.contact-direct-link > span,
.legal-notice-icon,
.faq-search-icon,
.resources-search-icon,
.search-icon,
.no-results-icon,
.success-icon {
    display: inline-grid;
    place-items: center;
    line-height: 1;
}

.contact-info-icon,
.contact-icon,
.contact-direct-link > span {
    border-radius: 12px;
}

.contact-info-icon .bi,
.contact-icon .bi,
.contact-direct-link > span .bi {
    font-size: 1.15rem;
}

.faq-search-icon .bi,
.resources-search-icon .bi,
.search-icon .bi {
    font-size: 1.05rem;
}

.no-results-icon .bi {
    font-size: 1.6rem;
}

.success-icon .bi {
    font-size: 1.7rem;
}

.contact-social a {
    display: inline-grid;
    place-items: center;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.contact-social a:hover {
    transform: translateY(-3px);
}

.contact-social a .bi {
    font-size: 1.05rem;
}


/* =====================================================
   6. FORMS
===================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="number"],
select,
textarea {
    border-radius: var(--radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--ring);
}

input::placeholder,
textarea::placeholder {
    color: #8a93a6;
}

/* custom checkbox tick: Bootstrap-style SVG instead of a text glyph */
.checkbox-label input:checked + .custom-checkbox::after,
.checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
    content: "";
    width: 12px;
    height: 12px;
    font-size: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: translate(-50%, -50%);
}

.custom-checkbox {
    border-radius: 6px;
}


/* =====================================================
   7. MODAL / OVERLAYS
===================================================== */

.profile-modal-container {
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.profile-modal-close {
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    line-height: 1;
}

#clearFaqSearch {
    display: inline-grid;
    place-items: center;
    line-height: 1;
}


/* =====================================================
   8. FOOTER
===================================================== */

.site-footer {
    position: relative;
    background:
        radial-gradient(700px 360px at 100% 0%, rgba(198, 154, 58, 0.10), transparent 60%),
        linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-top: 3px solid var(--accent);
}

.footer-column h4 {
    position: relative;
    padding-bottom: 12px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.footer-column h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column a,
.footer-column p,
.footer-address {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.footer-column a {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
}

.footer-column a:hover {
    color: var(--accent-light);
}

.footer-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.7;
}

.footer-column .bi,
.footer-address .bi {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 1rem;
    transform: translateY(2px);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.8;
}

.footer-bottom {
    align-items: center;
}

.footer-bottom p,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12.5px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.back-to-top {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: var(--primary-dark);
    box-shadow: 0 10px 26px rgba(6, 22, 41, 0.35);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-4px);
}


/* =====================================================
   9. WORDPRESS CONTENT (posts / pages)
===================================================== */

.entry-content a,
.single-content a,
.post-content a {
    color: var(--accent-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.entry-content a:hover,
.single-content a:hover,
.post-content a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.entry-content img,
.single-content img,
.post-content img {
    border-radius: var(--radius);
}
