:root {
    --primary: #f03c02;
    --primary-hover: #fd5c28;
    --primary-light: #fff0ea;
    --dark: #2b2320;
    --text: #4d4643;
    --text-light: #65534c;
    --text-muted: #b4aca8;
    --bg-light: #f6f3f2;
    --bg-gray: #ebe6e4;
    --border: #e0dbd8;
    --white: #ffffff;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
    --radius: 10px;
    --radius-lg: 15px;
    --transition: all 0.3s ease;
    --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-heading: "Muli", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 40px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 25px 0;
    }
}

.section-title {
    text-align: center;
    /*margin-bottom: 25px;*/
}

.section-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 6px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--primary);
    margin: 6px auto 0;
}

.section-title p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ===== Header / Navigation ===== */
.lawyer-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.lawyer-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.lawyer-header .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lawyer-header .brand img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.lawyer-header .brand span {
    color: var(--primary);
}

.lawyer-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.lawyer-nav a {
    padding: 8px 0 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-decoration: none;
}

.lawyer-nav a:hover,
.lawyer-nav a.active {
    color: var(--primary);
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.3rem;
    color: var(--dark);
    cursor: pointer;
    border: none;
    background: none;
    padding: 5px;
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: block;
    }

    .lawyer-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .lawyer-nav.open {
        display: flex;
    }

    .lawyer-nav a {
        width: 100%;
        padding: 10px 14px;
        font-size: 13px;
        border-bottom: 1px solid var(--border);
    }

    .lawyer-nav a:last-child {
        border-bottom: none;
    }
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--white);
}

.hero-section .hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 2px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-section .hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.hero-section .hero-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
    max-width: 700px;
}

.hero-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-custom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
}

.btn-primary-custom:hover {
    background: var(--primary-hover);
    color: var(--white);
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    color: var(--white);
}

.hero-contact-card {
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius);
    padding: 18px;
}

.hero-contact-card h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.hero-contact-card h3 i {
    color: var(--primary);
    margin-right: 6px;
}

.hero-contact-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.hero-contact-card p i {
    width: 18px;
    color: var(--primary);
    margin-right: 6px;
}

.hero-contact-card a {
    color: var(--white);
    text-decoration: none;
}

.hero-contact-card a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 35px;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-contact-card {
        margin-top: 18px;
    }
}

/* ===== Lawyer Intro ===== */
.lawyer-intro {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
}

.lawyer-intro .row {
    display: flex;
    align-items: stretch;
}

.lawyer-intro .img-col {
    display: flex;
    align-items: stretch;
}

.lawyer-intro .img-col .profile-img {
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    border: 3px solid var(--primary);
    box-shadow: 0 3px 15px rgba(240, 60, 2, 0.2);
}

.lawyer-intro .intro-text {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text);
}

.lawyer-intro .qualifications {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-top: 14px;
    border-left: 3px solid var(--primary);
}

.lawyer-intro .qualifications h4 {
    color: var(--dark);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.lawyer-intro .qualifications ul {
    margin-bottom: 0;
    padding-left: 18px;
}

.lawyer-intro .qualifications li {
    margin-bottom: 4px;
    color: var(--text);
    font-size: 0.85rem;
}

.lawyer-intro .qualifications li::marker {
    color: var(--primary);
}

@media (max-width: 768px) {
    .lawyer-intro {
        padding: 15px;
    }

    .lawyer-intro .row {
        display: block;
    }

    .lawyer-intro .img-col {
        display: block;
    }

    .lawyer-intro .img-col .profile-img {
        max-width: 200px;
        height: auto;
        margin: 0 auto 15px;
        display: block;
    }
}

/* ===== Feature Cards (Services) ===== */
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.feature-card .icon-wrap {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    margin-bottom: 0;
    vertical-align: middle;
    transition: var(--transition);
}

.feature-card:hover .icon-wrap {
    background: var(--primary);
}

.feature-card .icon-wrap i {
    font-size: 1.1rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .icon-wrap i {
    color: var(--white);
}

.feature-card .feature-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-light);
}

.feature-card p {
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 0;
    flex: 1;
}

/* ===== Case Cards ===== */
.case-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.case-card .case-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-light);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    margin-bottom: 0;
    vertical-align: middle;
    flex-shrink: 0;
}

.case-card .case-icon i {
    font-size: 0.85rem;
    color: var(--primary);
}

.case-card .case-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.case-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-light);
}

.case-card > p {
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 10px;
    flex: 1;
}

.case-card .result {
    background: var(--bg-light);
    padding: 8px 12px;
    border-radius: 5px;
    border-left: 3px solid var(--primary);
}

.case-card .result strong {
    color: var(--primary);
    font-size: 0.75rem;
    display: block;
    margin-bottom: 2px;
}

.case-card .result span {
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.5;
}

/* ===== Contact Section ===== */
.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-item-box {
    text-align: center;
    padding: 14px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.contact-item-box:hover {
    background: var(--bg-light);
    box-shadow: var(--shadow-hover);
}

.contact-item-box i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.contact-item-box h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-item-box p {
    color: var(--text);
    font-size: 0.82rem;
    margin-bottom: 0;
}

.contact-item-box a {
    color: var(--primary);
    font-weight: 600;
}

.contact-badges {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.contact-badges .badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.75rem;
}

.badge-primary-custom {
    background: var(--primary);
    color: var(--white);
}

.badge-secondary-custom {
    background: var(--bg-gray);
    color: var(--text-light);
}

/* ===== Footer ===== */
.lawyer-footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 0 20px;
    font-size: 13px;
}

.lawyer-footer h5 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.lawyer-footer p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.lawyer-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lawyer-footer ul li {
    margin-bottom: 4px;
}

.lawyer-footer ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    transition: var(--transition);
    text-decoration: none;
}

.lawyer-footer ul li a:hover {
    color: var(--primary);
    padding-left: 3px;
}

.lawyer-footer ul li a i {
    font-size: 0.65rem;
    margin-right: 4px;
    color: var(--primary);
}

.lawyer-footer .contact-item {
    margin-bottom: 6px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

.lawyer-footer .contact-item i {
    width: 16px;
    color: var(--primary);
    margin-right: 5px;
}

.lawyer-footer .contact-item a {
    color: rgba(255, 255, 255, 0.6);
}

.lawyer-footer .contact-item a:hover {
    color: var(--primary);
}

.lawyer-footer .qrcode-img {
    max-width: 100px;
    border-radius: 6px;
}

@media (max-width: 991px) {
    .lawyer-footer {
        display: none !important;
    }
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    right: 15px;
    bottom: 15px;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    text-decoration: none;
    line-height: 0;
}

.back-to-top i {
    line-height: 0;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-hover);
    color: var(--white);
}

/* ===== Section Backgrounds ===== */
.bg-section-light {
    background: var(--bg-light);
}

.bg-section-gray {
    background: var(--bg-gray);
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
    .section-title h2 {
        font-size: 1.2rem;
    }

    .contact-card {
        padding: 18px;
    }

    .hero-btns .btn-custom {
        width: 100%;
        justify-content: center;
    }
}
