:root {
    --primary: #0b57a4;
    --primary-dark: #07376e;
    --primary-light: #e6f0fa;
    --primary-gradient: linear-gradient(135deg, #0b57a4 0%, #07376e 100%);

    --accent: #f4b323;
    --accent-hover: #dca01d;

    --bg-body: #f8faff;
    --bg-white: #ffffff;

    --text-main: #1f2933;
    --text-muted: #52606d;
    --text-light: #9aa5b1;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 8px rgba(11, 87, 164, 0.05);
    --shadow-md: 0 8px 24px rgba(11, 87, 164, 0.08);
    --shadow-lg: 0 16px 40px rgba(11, 87, 164, 0.12);
    --shadow-float: 0 20px 50px rgba(7, 55, 110, 0.15);

    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    font-family: "Vazirmatn", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5 {
    color: var(--primary-dark);
    font-weight: 800;
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
    letter-spacing: -0.5px;
}
h2 {
    font-size: 2.2rem;
}
h3 {
    font-size: 1.35rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.section {
    padding: 100px 0;
    position: relative;
}
.bg-white {
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 70px;
}

.section-header h2 {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

/* Decorative underline for titles */
.section-header h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 5px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 10px;
}

.section-header p {
    font-size: 1.15rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 10px;
    font-family: "IRANSans", sans-serif !important;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    color: var(--primary-dark);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.95rem;
}

/* --- Header --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--primary);
}
.nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s;
}
.nav-link:hover::before {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}
.hamburger div {
    width: 28px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
    padding: 80px 0 160px; /* Extra bottom padding for the wave */
    background: radial-gradient(circle at top left, #f5f7fb, #ffffff);
    position: relative;
    overflow: hidden;
}

/* Abstract Background blobs */
.hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: var(--primary-light);
    opacity: 0.3;
    border-radius: 50%;
    z-index: 0;
    filter: blur(60px);
}
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -50px;
    width: 400px;
    height: 400px;
    background: var(--accent);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
    filter: blur(60px);
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    margin-bottom: 24px;
    color: var(--primary-dark);
}
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-muted);
    max-width: 550px;
}
.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual - Dashboard Mockup */
.hero-visual {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.mockup-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-float);
    position: absolute;
    transition: transform 0.3s;
}

/* Main Dashboard Interface */
.dashboard-main {
    width: 90%;
    height: 380px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
}

.dash-header {
    height: 50px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
    background: #fcfdfe;
}
.dash-dots {
    display: flex;
    gap: 6px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}
.dot.red {
    background: #fc8181;
}
.dot.yellow {
    background: #f6ad55;
}
.dot.green {
    background: #68d391;
}

.dash-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.dash-title-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.dash-line {
    height: 12px;
    border-radius: 6px;
    background: #edf2f7;
    width: 60%;
}

.dash-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    background: #fff;
}
.dash-icon {
    width: 40px;
    height: 40px;
    background: #ebf8ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.dash-text {
    flex: 1;
}
.dash-bar {
    height: 8px;
    width: 80%;
    background: #e2e8f0;
    border-radius: 4px;
    margin-top: 6px;
}
.dash-badge {
    padding: 4px 10px;
    background: #e6fffa;
    color: #2c7a7b;
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Floating Elements */
.float-card {
    z-index: 3;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.float-1 {
    top: 30px;
    left: -20px;
    animation: float-y 6s ease-in-out infinite;
}

.float-2 {
    bottom: 40px;
    right: -30px;
    animation: float-y 7s ease-in-out infinite 1s;
}

.icon-check {
    background: #c6f6d5;
    color: #22543d;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.icon-msg {
    background: #bee3f8;
    color: #2a4365;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

@keyframes float-y {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Wave Separator */
.wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}
.wave-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}
.wave-fill {
    fill: #ffffff;
}

/* --- Benefits --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid #f0f4f8;
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: white;
}

.benefit-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    opacity: 0;
    transition: 0.3s;
}
.benefit-card:hover::before {
    opacity: 1;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.8rem;
    transition: var(--transition);
}

.benefit-card:hover .icon-circle {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

/* --- Process --- */
.process-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
}

/* Dashed Line */
.process-line {
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-image: linear-gradient(
        to right,
        #ccc 50%,
        rgba(255, 255, 255, 0) 0%
    );
    background-position: bottom;
    background-size: 15px 1px;
    background-repeat: repeat-x;
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    padding: 0 15px;
}

.step-num {
    width: 80px;
    height: 80px;
    background: var(--bg-white);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.step-item:hover .step-num {
    background: var(--primary);
    color: var(--accent);
    transform: scale(1.1);
}

/* --- Services --- */
.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 35px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.service-icon {
    margin-bottom: 20px;
    color: var(--accent);
}

.service-link {
    margin-top: 20px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.service-link:hover {
    gap: 10px;
}

/* --- Lawyers --- */
.lawyer-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.lawyer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.lawyer-img-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.lawyer-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-light);
}

.badge-pro {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.lawyer-name {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}
.lawyer-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 15px;
}

/* --- About --- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}
.manager-box {
    background: var(--primary-dark);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.manager-box::after {
    content: "";
    position: absolute;
    top: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.15;
}
.manager-box h3 {
    color: var(--accent);
    margin-bottom: 15px;
}
.manager-box p {
    color: #e2e8f0;
    margin: 0;
}

/* --- Booking & Form --- */
.booking-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
}
.booking-form {
    padding: 50px;
    flex: 1.5;
}
.booking-cta {
    flex: 1;
    background: var(--primary);
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
/* Geometric Pattern on CTA */
.booking-cta::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border: 40px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}
.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: var(--transition);
}
.form-input:focus {
    border-color: var(--primary);
    background: #fff;
}

/* --- FAQ Accordion --- */
.accordion-item {
    background: var(--bg-white);
    margin-bottom: 15px;
    border-radius: var(--radius-sm);
    border: 1px solid #eef2f6;
    overflow: hidden;
    transition: var(--transition);
}
.accordion-item.active {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    width: 100%;
    text-align: right;
    padding: 20px 25px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.icon-plus {
    font-size: 1.5rem;
    color: var(--primary);
    transition: 0.3s;
}
.accordion-item.active .icon-plus {
    transform: rotate(45deg);
    color: var(--accent);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fbfdff;
}
.accordion-content p {
    padding: 0 25px 25px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.accordion-item.active .accordion-content {
    max-height: 300px;
}

/* --- Articles (Thumbnails) --- */
.article-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f4f8;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.article-thumb {
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* CSS Gradients for distinct thumbnails */
.thumb-1 {
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}
.thumb-2 {
    background: linear-gradient(120deg, #fccb90 0%, #d57eeb 100%);
}
.thumb-3 {
    background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
}

.article-thumb svg {
    width: 60px;
    height: 60px;
    fill: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}
.article-card:hover .article-thumb svg {
    transform: scale(1.1);
    fill: #fff;
}

.article-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.article-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
}
.article-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.5;
    transition: 0.3s;
}
.article-card:hover .article-title {
    color: var(--primary);
}
.article-link {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info {
    background: var(--primary-dark);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
}
.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.info-icon {
    min-width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.map-box {
    height: 180px;
    background: #e2e8f0;
    border-radius: 8px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-weight: bold;
}

/* --- Footer --- */
footer {
    background-color: #051b36;
    color: #cbd5e0;
    padding: 60px 0 30px;
    font-size: 0.95rem;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
}
.footer-links a {
    margin: 0 15px;
    color: #a0aec0;
    transition: 0.3s;
}
.footer-links a:hover {
    color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-visual {
        height: 400px;
    }
    .about-wrapper {
        grid-template-columns: 1fr;
    }
    .booking-section {
        flex-direction: column;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .process-line {
        display: none;
    }
    .process-container {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 85%;
        height: calc(100vh - var(--header-height));
        background: white;
        flex-direction: column;
        padding: 40px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: 0.4s ease;
        align-items: flex-start;
        overflow-y: auto;
    }
    .nav-menu.active {
        right: 0;
    }
    .hamburger {
        display: flex;
    }
    h1 {
        font-size: 2.2rem;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
}
