/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Design tokens: see tokens.css (loaded before this file) */

body {
    font-family: 'IranYekan', 'Segoe UI', Tahoma, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    direction: rtl;
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: var(--chrome-max-width, 1200px);
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 12000;
    padding: 12px 0;
}

.header-container {
    max-width: var(--chrome-max-width, 1200px);
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    justify-self: start;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.logo-img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--blue-950, #0b1f3a);
    line-height: 1.2;
}

.logo i {
    font-size: 24px;
}

.nav-menu {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    justify-self: center;
    flex-wrap: nowrap;
}

.nav-auth-mobile {
    display: none;
}

.header-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    justify-self: end;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    font-size: 14px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-color);
    color: white;
}

.header-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: inherit;
    border: 1.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.header-auth-btn i {
    font-size: 0.95rem;
}

.header-auth-btn--primary {
    background: var(--primary-color);
    color: #fff !important;
}

.header-auth-btn--primary:hover {
    background: var(--primary-dark);
}

.header-auth-btn--ghost {
    background: #f4f6f9;
    color: var(--text-color);
    border-color: #e2e8f0;
}

.header-auth-btn--ghost:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

.header-auth-caret {
    font-size: 0.65rem;
    opacity: 0.85;
}

.btn-login {
    background: var(--primary-color);
    color: white !important;
}

.btn-logout {
    color: var(--text-light);
}

.panel-menu-trigger {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.panel-menu-caret {
    font-size: 0.7rem;
    margin-inline-start: 2px;
    transition: transform 0.15s ease;
}

.panel-menu-trigger[aria-expanded="true"] .panel-menu-caret {
    transform: rotate(180deg);
}

.panel-menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    padding: 6px;
    z-index: 1200;
}

.panel-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.panel-menu__item:hover {
    background: var(--primary-light);
    color: var(--primary-deeper);
}

.panel-menu__item i {
    width: 16px;
    text-align: center;
    color: var(--primary-color);
}

.panel-switch {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.panel-switch__label {
    margin: 0;
    padding: 0 4px;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
}

.panel-switch__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}

.panel-switch__item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: var(--primary-color);
    color: white;
    padding: 60px 16px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.hero-description {
    font-size: 16px;
    margin-bottom: 32px;
    opacity: 0.8;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Sections */
section {
    padding: 48px 16px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--bg-color);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.benefit-card h3 {
    margin-bottom: 12px;
    color: var(--text-color);
}

.benefit-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* Categories */
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.category-card {
    background: var(--bg-color);
    padding: 24px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    text-align: center;
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 140px;
    flex: 0 0 auto;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--primary-light);
    color: var(--text-color);
    border-color: #b6d4f5;
}

.category-card i {
    font-size: 32px;
    color: var(--primary-color);
}

.category-card:hover i {
    color: var(--primary-dark);
}

.category-card span {
    font-size: 14px;
    font-weight: 500;
}

/* How It Works */
.steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--bg-color);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 8px;
    color: var(--text-color);
}

.step-content p {
    color: var(--text-light);
    font-size: 14px;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 320px));
    gap: 24px;
    justify-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.project-card {
    background: var(--bg-color);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 320px));
    gap: 24px;
    justify-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.service-card {
    background: var(--bg-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s;
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.project-header h3 {
    font-size: 18px;
    color: var(--text-color);
    flex: 1;
}

.project-budget {
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

.project-description {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    background: var(--bg-light);
    color: var(--text-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.project-time {
    color: var(--text-light);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-view {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

/* Social Proof */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.testimonial-card {
    background: var(--bg-color);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.testimonial-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info h4 {
    margin-bottom: 4px;
    color: var(--text-color);
}

.rating {
    color: #fbbf24;
    font-size: 14px;
}

.testimonial-text {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    text-align: center;
}

.stat-item {
    background: var(--bg-color);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
}

/* Footer — same navy family as heroes/header chrome */
.footer,
.footer-pro {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 56px 16px 24px;
}

.footer .container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr minmax(0, 2.6fr) 1fr;
    gap: 32px;
    margin-bottom: 32px;
    align-items: start;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.footer-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.footer-section h3,
.footer-section h4 {
    margin: 0 0 16px;
    color: var(--footer-heading);
    font-size: var(--font-size-base);
    font-weight: 700;
}

.footer-brand h3 {
    font-size: var(--font-size-lg);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.footer-logo img,
.footer-logo .logo-img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo .logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--footer-heading);
}

.footer-section p {
    color: var(--footer-text);
    font-size: 14px;
    margin: 0 0 16px;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a,
.footer-phone,
.footer-email {
    color: var(--footer-link);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: inline-block;
}

.footer-section ul li a:hover,
.footer-phone:hover,
.footer-email:hover {
    color: var(--footer-link-hover);
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(151, 157, 172, 0.12);
    border: 1px solid var(--footer-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--footer-border);
    color: var(--slate-400);
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

.footer-contact .footer-phone + .footer-email {
    margin-top: 8px;
}

.footer-contact-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
}

.footer-newsletter {
    margin-top: 0;
}

.footer-newsletter label {
    display: block;
    margin: 0 0 8px;
    color: var(--footer-heading);
    font-size: 13px;
    font-weight: 700;
}

.footer-newsletter-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 40px;
    gap: 0;
    border: 1px solid var(--footer-border);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.footer-newsletter-row input {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 100%;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.footer-newsletter-row input::placeholder {
    color: rgba(203, 213, 225, 0.7);
}

.footer-newsletter-row input:focus {
    background: rgba(255, 255, 255, 0.04);
}

.footer-newsletter-row button {
    flex-shrink: 0;
    height: 100%;
    min-width: 76px;
    padding: 0 14px;
    border: 0;
    border-radius: 0;
    border-inline-start: 1px solid var(--footer-border);
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.footer-newsletter-row button:hover {
    background: var(--primary-hover, #0354a8);
}

.footer-newsletter-row button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.footer-newsletter-error {
    margin: 6px 0 0;
    color: #fecaca;
    font-size: 11px;
}

.footer-newsletter-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
}

.footer-newsletter-modal[hidden] {
    display: none !important;
}

.footer-newsletter-modal__panel {
    width: 100%;
    max-width: 360px;
    padding: 24px 20px;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.footer-newsletter-modal__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f1fb;
    color: var(--primary-color);
    font-size: 18px;
}

.footer-newsletter-modal__panel h4 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
}

.footer-newsletter-modal__panel p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.footer-newsletter-modal__panel button {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.footer-newsletter-modal__panel button:hover {
    background: var(--primary-hover, #0354a8);
}

@media (min-width: 769px) {
    .footer-newsletter-row input {
        flex: 1;
        min-width: 0;
    }

    .footer-newsletter-row button {
        flex-shrink: 0;
        min-width: 72px;
    }
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 32px auto;
    background: var(--bg-color);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
    direction: rtl;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Dashboard */
.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
    padding: 12px 16px 24px;
    max-width: var(--chrome-max-width, 1200px);
    margin: 0 auto;
}

.dashboard-sidebar {
    background: var(--bg-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    height: fit-content;
    align-self: start;
}

.dashboard-menu {
    list-style: none;
}

.dashboard-menu li {
    margin-bottom: 8px;
}

.dashboard-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 14px;
    outline: none;
}

/* فقط .active همیشه آبی بماند — هاور جدا و فقط برای اشاره‌گر دقیق */
.dashboard-menu a.active {
    background: var(--primary-color);
    color: white;
}

@media (hover: hover) and (pointer: fine) {
    .dashboard-menu a:hover:not(.active):not(.logout-btn) {
        background: var(--primary-color);
        color: white;
    }
}

.dashboard-menu a:focus-visible:not(.active):not(.logout-btn) {
    box-shadow: inset 0 0 0 2px rgba(4, 102, 200, 0.45);
}

.dashboard-menu a.logout-btn {
    background: transparent;
    border: 1px solid #dc2626;
    color: #dc2626 !important;
}

@media (hover: hover) and (pointer: fine) {
    .dashboard-menu a.logout-btn:hover {
        background: #dc2626;
        border-color: #dc2626;
        color: #fff !important;
    }
}

.dashboard-menu a.logout-btn:active,
.dashboard-menu a.logout-btn:focus-visible {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff !important;
}

.dashboard-content {
    background: var(--bg-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

/* فقط هدر عنوان داخل محتوا — نه هدر چسبان پنل (header.dashboard-header) */
.dashboard-content > .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.dashboard-title {
    font-size: 24px;
    color: var(--text-color);
}

/* Cards */
.card {
    background: var(--bg-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 18px;
    color: var(--text-color);
}

/* Profile */
.profile-header {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border-color);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.profile-info h2 {
    margin-bottom: 8px;
    color: var(--text-color);
}

.profile-stats {
    display: flex;
    gap: 32px;
    margin-top: 16px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-light);
}

/* Mobile Responsive - Web App Style */
@media (max-width: 768px) {

    /* Base Mobile Styles */
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }

    section {
        padding: 24px 12px;
    }

    /* Header Mobile */
    .header {
        padding: 8px 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 12px;
        grid-template-columns: none;
    }

    .logo {
        font-size: 18px;
        justify-self: auto;
    }

    .logo-img {
        width: 36px;
        height: 36px;
    }

    .logo-text {
        font-size: 0.98rem;
    }

    .logo i {
        font-size: 20px;
    }

    /* Desktop nav stays desktop-only; mobile uses bottom nav + more sheet */
    .nav-menu {
        display: none !important;
    }

    .dashboard-header-center {
        display: none;
    }

    .header-end {
        justify-self: auto;
    }

    .header-actions {
        display: flex;
        gap: 6px;
    }

    .header-auth-btn {
        min-height: 38px;
        min-width: 38px;
        padding: 0 10px;
        gap: 6px;
        border-radius: 10px;
    }

    .header-auth-btn .header-auth-label,
    .header-auth-btn .header-auth-caret {
        display: none;
    }

    .header-auth-btn i {
        font-size: 1rem;
        margin: 0;
    }

    .menu-toggle {
        display: none !important;
    }

    .nav-auth-mobile {
        display: none !important;
    }

    /* Hero Mobile */
    .hero {
        padding: 40px 12px;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
    }

    /* Sections Mobile */
    .section-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    /* Grids Mobile */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .categories-grid {
        justify-content: center;
        gap: 12px;
    }
    
    .category-card {
        min-width: 120px;
        flex: 0 0 auto;
    }

    .category-card {
        padding: 16px 12px;
    }

    .category-card i {
        font-size: 28px;
    }

    .category-card span {
        font-size: 12px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-card {
        padding: 16px;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .project-header h3 {
        font-size: 16px;
    }

    .project-budget {
        font-size: 13px;
        padding: 6px 12px;
    }

    .testimonials {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .testimonial-card {
        padding: 16px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-item {
        padding: 24px;
    }

    .stat-number {
        font-size: 28px;
    }

    /* Steps Mobile */
    .steps {
        gap: 16px;
    }

    .step {
        padding: 16px;
        gap: 16px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* Dashboard Mobile */
    .dashboard {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }

    .dashboard-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        z-index: 10000;
        border-radius: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        padding: 80px 20px 24px;
    }

    .dashboard-sidebar .dashboard-menu {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-sidebar.active {
        right: 0;
    }

    .dashboard-content {
        padding: 16px 12px;
        border-radius: 0;
        box-shadow: none;
        min-height: calc(100vh - 60px);
    }

    .dashboard-content > .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 12px;
        margin-bottom: 20px;
    }

    .dashboard-title {
        font-size: 20px;
    }

    .dashboard-content > .dashboard-header .btn {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 12px;
    }

    /* Cards Mobile */
    .card {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: var(--radius-sm);
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .card-title {
        font-size: 16px;
    }

    /* Profile Mobile */
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .profile-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    /* Forms Mobile */
    .form-container {
        padding: 24px 16px;
        margin: 16px auto;
        border-radius: var(--radius-sm);
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-control {
        padding: 14px 16px;
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    /* Buttons Mobile */
    .btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .btn-sm {
        padding: 10px 16px;
        font-size: 13px;
    }

    .btn-block {
        width: 100%;
        justify-content: center;
    }

    /* Footer Mobile — 2×2 link grid + full-width newsletter */
    .footer,
    .footer-pro {
        padding: 28px 16px calc(20px + 88px + env(safe-area-inset-bottom, 0px));
    }

    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px 16px;
        margin-bottom: 16px;
        align-items: start;
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--footer-border);
    }

    .footer-brand p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 12px;
        font-size: 13px;
        line-height: 1.65;
    }

    .footer-logo {
        margin-bottom: 10px;
    }

    .footer-logo img,
    .footer-logo .logo-img {
        width: 40px;
        height: 40px;
    }

    .footer-logo .logo-text {
        font-size: 1.05rem;
    }

    .social-links {
        justify-content: flex-start;
        gap: 8px;
    }

    .social-links a {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    /* Flatten wrappers so all 4 sections sit in the 2-col grid */
    .footer-links,
    .footer-aside {
        display: contents;
    }

    .footer-section {
        text-align: start;
        min-width: 0;
    }

    .footer-section h4 {
        margin-bottom: 10px;
        font-size: 13px;
    }

    .footer-section ul li {
        margin-bottom: 6px;
    }

    .footer-section ul li a,
    .footer-phone,
    .footer-email {
        font-size: 13px;
        word-break: break-word;
    }

    .footer-contact-meta {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 0;
    }

    .footer-contact .footer-phone + .footer-email {
        margin-top: 0;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
        margin-top: 2px;
    }

    .footer-newsletter-row {
        height: 42px;
    }

    .footer-newsletter-row button {
        min-width: 80px;
    }

    .footer-bottom {
        padding-top: 14px;
        font-size: 12px;
    }

    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 12px;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 20px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-title {
        font-size: 18px;
    }

    .card-title {
        font-size: 15px;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 20px;
        width: 56px;
        height: 56px;
        background: var(--primary-color);
        color: white;
        border-radius: 50%;
        border: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 999;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

/* NOTE: Do not redefine .hidden here — it breaks Tailwind responsive pairs like `hidden md:block`. */