/* ==========================================================================
   Sahaa Technologies - UI Components
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    line-height: 1.2;
}
.btn .icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}
.btn:hover .icon {
    transform: translateX(3px);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-white);
    border-color: var(--accent);
    box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--text-white);
    box-shadow: 0 6px 20px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}
.btn-dark:hover {
    background-color: var(--primary-light);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--border-light);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(201, 130, 24, 0.06);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.3);
}
.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}
.btn-pill {
    border-radius: var(--radius-pill);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-pill);
}
.badge-accent {
    background: rgba(201, 130, 24, 0.12);
    color: var(--accent);
    border: 1px solid rgba(201, 130, 24, 0.3);
}
.badge-cyan {
    background: rgba(24, 51, 88, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(24, 51, 88, 0.22);
}
.badge-emerald {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Individual Flyout Dropdown for Main Menu Items */
.has-dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--accent);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 18px 36px rgba(15, 34, 61, 0.12);
    padding: 0.6rem 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition-base);
    z-index: 1000;
}
.dropdown-menu.dropdown-right {
    left: auto;
    right: 0;
}
.dropdown-menu.dropdown-wide {
    min-width: 330px;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
}
.dropdown-item-link:hover {
    background-color: var(--bg-alt);
    color: var(--accent);
    transform: translateX(4px);
}
.dropdown-item-link svg {
    width: 17px;
    height: 17px;
    color: var(--accent);
    flex-shrink: 0;
}
.dropdown-footer-link {
    display: block;
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    border-top: 1px solid var(--border-light);
    margin-top: 0.4rem;
    text-decoration: none;
}
.dropdown-footer-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Mega Menu Dropdown */
.has-mega-menu {
    position: static;
}
.mega-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface-card);
    border-top: 1px solid var(--border-light);
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 20px 40px rgba(11, 19, 43, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 999;
}
.has-mega-menu:hover .mega-menu-wrapper,
.has-mega-menu:focus-within .mega-menu-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 280px;
    gap: 2rem;
    padding: 2.5rem 0;
}
.mega-col-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mega-col-title svg {
    width: 18px;
    height: 18px;
}

.mega-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.mega-link-item a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}
.mega-link-item a:hover {
    background-color: var(--bg-alt);
    color: var(--accent);
    transform: translateX(4px);
}
.mega-link-item a svg {
    width: 16px;
    height: 16px;
    color: var(--text-light);
    transition: color var(--transition-fast);
}
.mega-link-item a:hover svg {
    color: var(--accent);
}

/* Mega menu promo card */
.mega-promo-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.mega-promo-box h4 {
    color: var(--text-white);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.mega-promo-box p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* Mobile Offcanvas Drawer */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 19, 43, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}
.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: var(--surface-card);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow-y: auto;
}
.mobile-drawer.active {
    transform: translateX(0);
}
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}
.drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: var(--text-muted);
}
.drawer-close svg {
    width: 24px;
    height: 24px;
}
.drawer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.drawer-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
}
.drawer-nav-link:hover, .drawer-nav-link.active {
    background: var(--bg-alt);
    color: var(--accent);
}
.drawer-submenu {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.drawer-submenu a {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: block;
    padding: 0.35rem 0.5rem;
}
.drawer-submenu a:hover {
    color: var(--accent);
}

/* Feature Checkmark List */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.98rem;
    color: var(--text-primary);
}
.feature-item svg {
    width: 20px;
    height: 20px;
    color: var(--emerald);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Process Workflow Steps */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}
.process-card {
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}
.process-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.step-number-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px var(--accent-glow);
}
.process-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.process-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .process-grid { grid-template-columns: 1fr; }
}

/* FAQ Accordion */
.accordion-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.accordion-item {
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}
.accordion-item.active {
    border-color: var(--accent);
}
.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast);
}
.accordion-header:hover {
    color: var(--accent);
}
.accordion-chevron {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}
.accordion-item.active .accordion-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s;
    background-color: var(--bg-alt);
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 0 1.5rem;
}
.accordion-item.active .accordion-body {
    max-height: 500px;
    padding: 1.25rem 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
}
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Modal Dialog */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 19, 43, 0.65);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}
.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}
.modal-dialog {
    background: var(--surface-card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.92);
    transition: transform var(--transition-base);
    overflow: hidden;
    position: relative;
}
.modal-backdrop.active .modal-dialog {
    transform: scale(1);
}
.modal-header {
    padding: 1.75rem 2rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
}
.modal-header h3 {
    font-size: 1.35rem;
    color: var(--primary);
}
.modal-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem;
    border-radius: 50%;
}
.modal-close-btn:hover {
    color: var(--rose);
}
.modal-close-btn svg {
    width: 22px;
    height: 22px;
}
.modal-body {
    padding: 2rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    min-width: 300px;
    max-width: 420px;
    background: var(--surface-card);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    border-left: 4px solid var(--accent);
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-base);
}
.toast.active {
    transform: translateY(0);
    opacity: 1;
}
.toast-success { border-left-color: var(--emerald); }
.toast-error { border-left-color: var(--rose); }
.toast-message {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
}
.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.toast-success .toast-icon { color: var(--emerald); }
.toast-error .toast-icon { color: var(--rose); }

/* Floating Quick Contact Badge */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #25d366;
    color: white;
    padding: 0.75rem 1.2rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.floating-whatsapp:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.45);
    color: white;
}
.floating-whatsapp svg {
    width: 20px;
    height: 20px;
}
